.product-detail-v2 { padding-bottom: 48px; }

.product-page-app .breadcrumb {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.product-page-app .breadcrumb a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.product-page-app .breadcrumb-item.active {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .product-page-app {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
    }

    .product-page-app .breadcrumb {
        font-size: 12px;
        margin-bottom: 8px !important;
    }

    .product-page-app h1.fw-bold {
        font-size: 1.25rem;
    }

    .product-page-app .pd-gallery-main {
        border-radius: 12px;
        aspect-ratio: 1;
    }
}

.pd-gallery-main {
    position: relative;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: zoom-in;
}

.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .35s;
}

.pd-gallery-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    pointer-events: none;
}

/* Horizontal thumb strip — one row, scroll if many */
.pd-thumb-strip-wrap {
    margin-top: 10px;
    position: relative;
}

.pd-thumb-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 4px 6px;
}

.pd-thumb-strip::-webkit-scrollbar {
    display: none;
}

.pd-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #fff;
    transition: border-color .15s, transform .15s;
}

@media (min-width: 768px) {
    .pd-thumb {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }
}

.pd-thumb.active,
.pd-thumb:hover {
    border-color: #F9A825;
    box-shadow: 0 0 0 2px rgba(249, 168, 37, .25);
    transform: scale(1.02);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-zoom-modal .modal-body {
    padding: 0;
    background: #000;
}

.pd-zoom-modal img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Sticky buy bar — mobile app style */
.product-mobile-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(108px + env(safe-area-inset-bottom, 0));
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    border: 1px solid #E5E7EB;
}

.product-mobile-bar .btn {
    min-height: 44px;
}

.review-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review-images img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.review-form-box {
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 22px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}

.review-form-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.review-star-picker {
    display: flex;
    gap: 6px;
}

.review-star-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 1.5rem;
    color: #d1d5db;
    line-height: 1;
    cursor: pointer;
}

.review-star-btn.active {
    color: #F9A825;
}

.review-paste-zone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
}

.review-paste-zone:focus,
.review-paste-zone:hover {
    border-color: #F9A825;
    background: #fffbeb;
    outline: none;
}

.review-paste-zone i {
    display: block;
    font-size: 1.5rem;
    color: #F9A825;
    margin-bottom: 6px;
}

.review-paste-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.review-paste-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.review-paste-thumb {
    position: relative;
    width: 72px;
    height: 72px;
}

.review-paste-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.review-paste-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.review-form-msg {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
}

.review-form-msg.is-success { color: #059669; }
.review-form-msg.is-error { color: #dc2626; }
.review-form-msg.is-loading { color: #6b7280; }
