/* ═══════════════════════════════════════
   ELEGANZA — Product Components CSS
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   ELEGANZA — Product Detail Page
   Design tokens: navy #1a1a2e / gold #c8a96e / cream #faf9f7
═══════════════════════════════════════════════════════════════ */

/* ── Page background ──────────────────────────────────────── */
.product-detail-section {
    background: #faf9f7;
    padding: 2.5rem 0 0;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.product-breadcrumb .breadcrumb { margin: 0; }
.product-breadcrumb .breadcrumb-item a {
    color: #9ca3af; font-size: .8rem; text-decoration: none;
    transition: color .2s;
}
.product-breadcrumb .breadcrumb-item a:hover { color: #c8a96e; }
.product-breadcrumb .breadcrumb-item.active,
.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af; font-size: .8rem;
}

/* ── Gallery ──────────────────────────────────────────────── */
.product-gallery-grid {
    position: sticky;
    top: 90px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.gallery-grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    aspect-ratio: 4/5;
}
.gallery-grid-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 4;
}
.gallery-grid-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.gallery-grid-item:hover img { transform: scale(1.04); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,46,.18);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s;
}
.gallery-overlay i { color: #fff; font-size: 1.6rem; }
.gallery-grid-item:hover .gallery-overlay { opacity: 1; }

/* Mobile scroll */
.gallery-scroll {
    display: flex; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.scroll-item {
    flex: 0 0 85vw; scroll-snap-align: start;
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 4/5; background: #fff;
}
.scroll-item img { width: 100%; height: 100%; object-fit: cover; }

/* No image placeholder */
.no-image {
    aspect-ratio: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #f3f4f6; border-radius: 16px;
    color: #d1d5db;
}
.no-image i { font-size: 4rem; margin-bottom: .5rem; }
.no-image p { font-size: .85rem; color: #9ca3af; }

/* ── Product Info panel ───────────────────────────────────── */
.product-info { padding: .5rem 0; }

/* ── Title ────────────────────────────────────────────────── */
.product-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0;
}

/* ── Wishlist button ──────────────────────────────────────── */
.btn-wishlist {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,169,110,.35);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    font-size: 1.1rem;
    transition: all .25s;
    padding: 0;
}
.btn-wishlist:hover, .btn-wishlist.active {
    background: linear-gradient(135deg,#c8a96e,#d4b97e);
    border-color: #c8a96e;
    color: #fff;
}

/* ── Rating ───────────────────────────────────────────────── */
.product-rating {
    display: flex; align-items: center; gap: .5rem;
    flex-wrap: wrap;
}
.product-rating .stars i { color: #c8a96e; font-size: .85rem; }
.rating-text { font-size: .82rem; color: #6b7280; }
.scroll-to-reviews {
    color: #c8a96e; text-decoration: none;
    font-size: .82rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: .2rem;
    transition: gap .2s;
}
.scroll-to-reviews:hover { gap: .4rem; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.scroll-to-reviews i { animation: bounce 1.2s infinite; }

/* ── Badges ───────────────────────────────────────────────── */
.product-badges .badge {
    background: linear-gradient(135deg,#dc2626,#ef4444) !important;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    padding: .3rem .7rem; border-radius: 20px;
}

/* ── Price ────────────────────────────────────────────────── */
.product-price {
    display: flex; align-items: baseline; gap: .65rem;
    flex-wrap: wrap;
}
.price-current {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}
.price-old {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

/* ── Tier unit / total live display ──────────────────────── */
#pd-tier-unit, #pd-tier-total {
    background: rgba(200,169,110,.06);
    border-left: 3px solid #c8a96e;
    border-radius: 0 6px 6px 0;
    padding: .3rem .75rem;
    font-size: .82rem;
}

/* ── Qty Tier Box ─────────────────────────────────────────── */
/* ── Promotion Info Box ──────────────────────────────── */
.promo-info-box {
    border: 1.5px solid #7c3aed44;
    border-radius: 12px;
    overflow: hidden;
    background: #faf5ff;
}
.promo-info-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid #7c3aed22;
}
.promo-info-row:last-child { border-bottom: none; }
.promo-info-icon {
    font-size: 1.1rem;
    color: #7c3aed;
    margin-top: .15rem;
    flex-shrink: 0;
}
.promo-info-title { font-weight: 600; font-size: .9rem; color: #4c1d95; }
.promo-info-desc  { font-size: .82rem; color: #6d28d9; margin-top: .15rem; }

.qty-tier-box {
    background: #fff;
    border: 1px solid rgba(200,169,110,.3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(200,169,110,.1);
}
.qty-tier-header {
    background: linear-gradient(135deg,#1a1a2e,#16213e);
    color: #c8a96e;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: .5rem 1rem;
}
.qty-tier-row {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    border-bottom: 1px solid rgba(200,169,110,.1);
    transition: background .15s;
}
.qty-tier-row:last-child { border-bottom: none; }
.qty-tier-row.active { background: rgba(200,169,110,.07); }
.qty-tier-label { font-size: .84rem; color: #374151; font-weight: 500; }
.qty-tier-right { display: flex; align-items: center; gap: .5rem; }
.qty-tier-badge {
    background: linear-gradient(135deg,#c8a96e,#d4b97e);
    color: #1a1a2e; font-size: .7rem; font-weight: 800;
    padding: .15rem .6rem; border-radius: 20px;
}
.qty-tier-price {
    font-size: .88rem; font-weight: 700;
    color: #374151; min-width: 5rem; text-align: right;
}
.qty-tier-row.active .qty-tier-badge { box-shadow: 0 2px 8px rgba(200,169,110,.4); }
.qty-tier-row.active .qty-tier-price { color: #c8a96e; }

/* ── Family / Color selector ──────────────────────────────── */
.product-family-selector { padding: 0; }
.family-products-grid {
    display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.family-product-item {
    position: relative;
    width: 64px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none; display: block;
}
.family-product-item:hover {
    border-color: #c8a96e;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(200,169,110,.25);
}
.family-product-item.active {
    border-color: #c8a96e;
    border-width: 2.5px;
    box-shadow: 0 0 0 3px rgba(200,169,110,.15);
}
.family-product-image {
    position: relative; width: 100%; aspect-ratio: 1;
    background: #faf9f7;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.family-product-image img { width: 100%; height: 100%; object-fit: cover; }
.family-product-image .no-image-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; background: #f3f4f6; color: #d1d5db; font-size: 1.5rem;
}
.family-product-item .active-indicator {
    position: absolute; top: 3px; right: 3px;
    background: linear-gradient(135deg,#c8a96e,#d4b97e);
    color: #1a1a2e; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .65rem;
}

/* ── Short description ────────────────────────────────────── */
.product-short-desc p {
    font-size: .9rem; color: #6b7280; line-height: 1.65;
    margin: 0;
}

/* ── Variant label ────────────────────────────────────────── */
.product-variant-label-minimal {
    display: block;
    font-size: .78rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #9ca3af;
    margin-bottom: .6rem;
}
.product-variant-grid-minimal {
    display: flex; flex-wrap: wrap; gap: 8px;
}

/* ── Variant buttons ──────────────────────────────────────── */
.product-variant-btn-minimal {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: .5rem .9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all .2s;
    min-height: 40px; min-width: 54px;
    font-weight: 600; font-size: .82rem; color: #374151;
}
.product-variant-btn-minimal:hover:not(.disabled) {
    border-color: #c8a96e;
    color: #1a1a2e;
}
.product-variant-btn-minimal.active {
    border-color: #1a1a2e;
    background: #1a1a2e;
    color: #c8a96e;
    box-shadow: 0 2px 10px rgba(26,26,46,.2);
}
.product-variant-btn-minimal.active::after {
    content: '✓';
    position: absolute; top: 3px; right: 4px;
    font-size: 9px; color: #c8a96e; font-weight: 900;
}
.product-variant-btn-minimal.disabled {
    opacity: .38; cursor: not-allowed; text-decoration: line-through;
}
.product-variant-btn-minimal.disabled:hover {
    border-color: #e5e7eb; background: #fff; color: #374151;
}

/* ── Quantity selector ────────────────────────────────────── */
.product-quantity-selector-minimal {
    display: flex; align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px; overflow: hidden;
    background: #fff;
}
.product-quantity-btn-minimal {
    background: #fff; border: none;
    width: 38px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s;
    font-size: 1rem; color: #374151;
}
.product-quantity-btn-minimal:hover:not(:disabled) { background: #faf9f7; }
.product-quantity-btn-minimal:disabled { opacity: .4; cursor: not-allowed; }
.product-quantity-input-minimal {
    width: 52px; height: 46px; border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center; font-weight: 700; font-size: .9rem;
    background: #fff; color: #1a1a2e;
}
.product-quantity-input-minimal:focus { outline: none; }

/* ── Add to Cart button ───────────────────────────────────── */
.product-btn-add-cart-minimal {
    width: 100%; height: 46px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);
    color: #c8a96e;
    border: none;
    border-radius: 10px;
    font-weight: 700; font-size: .9rem; letter-spacing: .03em;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    cursor: pointer;
    transition: all .2s;
    position: relative; overflow: hidden;
}
.product-btn-add-cart-minimal::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(200,169,110,.12),transparent);
    opacity: 0; transition: opacity .2s;
}
.product-btn-add-cart-minimal:hover:not(:disabled)::before { opacity: 1; }
.product-btn-add-cart-minimal:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,26,46,.3);
}
.product-btn-add-cart-minimal:disabled { opacity: .65; cursor: not-allowed; }
.product-btn-add-cart-minimal:active { transform: scale(.98); }
.product-btn-add-cart-minimal.btn-oos {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
}
.out-of-stock-banner {
    display: flex;
    align-items: center;
    padding: .75rem 1.2rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #6c757d;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
}

/* ── Size chart button ────────────────────────────────────── */
.btn-size-chart {
    background: transparent;
    border: 1.5px solid rgba(200,169,110,.4);
    color: #c8a96e;
    font-size: .82rem; font-weight: 600;
    border-radius: 8px; padding: .4rem 1rem;
    transition: all .2s;
}
.btn-size-chart:hover {
    background: rgba(200,169,110,.08);
    border-color: #c8a96e;
}
.size-chart-content {
    background: #fff; border-radius: 10px;
    border: 1px solid rgba(200,169,110,.2);
    padding: 1rem; overflow-x: auto;
}

/* ── Stock info ───────────────────────────────────────────── */
.stock-info {
    font-size: .82rem; color: #6b7280;
}
.stock-info .bi-check-circle { color: #16a34a; }
.stock-info .bi-x-circle { color: #dc2626; }

/* ── Product meta ─────────────────────────────────────────── */
.product-meta {
    display: flex; flex-direction: column; gap: .35rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(200,169,110,.15);
}
.meta-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8rem;
}
.meta-label { color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; min-width: 70px; }
.meta-value { color: #374151; }
.meta-value a { color: #c8a96e; text-decoration: none; }
.meta-value a:hover { text-decoration: underline; }
.category-badge {
    display: inline-block;
    background: rgba(200,169,110,.1);
    color: #c8a96e; font-size: .72rem; font-weight: 600;
    padding: .15rem .55rem; border-radius: 20px;
    text-decoration: none; transition: background .2s;
}
.category-badge:hover { background: rgba(200,169,110,.2); color: #c8a96e; }

/* ── Benefits column ──────────────────────────────────────── */
.product-benefits {
    display: flex; flex-direction: column; gap: .8rem;
    padding: 1.2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(200,169,110,.15);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    position: sticky; top: 90px;
}
.benefit-item {
    display: flex; align-items: flex-start; gap: .7rem;
}
.benefit-item > i {
    font-size: 1.2rem; color: #c8a96e; flex-shrink: 0; margin-top: .05rem;
}
.benefit-item h6 {
    font-size: .82rem; font-weight: 700; color: #1a1a2e; margin: 0 0 .15rem;
}
.benefit-item p {
    font-size: .73rem; color: #9ca3af; margin: 0; line-height: 1.4;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700; color: #1a1a2e;
    position: relative; padding-bottom: .7rem; margin-bottom: 1.2rem;
}
.section-heading::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 36px; height: 2.5px;
    background: linear-gradient(90deg,#c8a96e,#d4b97e);
    border-radius: 2px;
}

.product-description-section,
.product-specifications-section {
    background: #fff;
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(200,169,110,.12);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.description-content {
    color: #4b5563; line-height: 1.8; font-size: .92rem;
}
.description-content h2,
.description-content h3,
.description-content h4 {
    font-family: 'Playfair Display', serif;
    color: #1a1a2e;
}

/* Specifications table */
.specifications-table {
    border: none; margin: 0;
}
.specifications-table td {
    border: none;
    border-bottom: 1px solid rgba(200,169,110,.1);
    padding: .65rem .5rem; vertical-align: middle;
    font-size: .87rem;
}
.specifications-table tr:last-child td { border-bottom: none; }
.spec-label {
    font-weight: 700; color: #6b7280; width: 38%;
    text-transform: uppercase; font-size: .75rem; letter-spacing: .03em;
}
.spec-value { color: #1a1a2e; font-weight: 500; }

/* ── Reviews sidebar ──────────────────────────────────────── */
.product-reviews-sidebar {
    background: #fff;
    padding: 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(200,169,110,.12);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.reviews-chat-list {
    max-height: 480px; overflow-y: auto;
    padding-right: .25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,169,110,.3) transparent;
}
.reviews-chat-list::-webkit-scrollbar { width: 4px; }
.reviews-chat-list::-webkit-scrollbar-thumb { background: rgba(200,169,110,.3); border-radius: 4px; }

.review-chat-bubble {
    background: #faf9f7;
    border: 1px solid rgba(200,169,110,.15);
    border-left: 3px solid #c8a96e;
    border-radius: 0 10px 10px 0;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.review-chat-bubble::before { display: none; }
.review-chat-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: .35rem;
}
.review-chat-header strong { font-size: .85rem; color: #1a1a2e; }
.review-chat-time { font-size: .7rem; color: #9ca3af; }
.review-chat-rating { margin-bottom: .35rem; }
.review-chat-rating i { font-size: .8rem; color: #c8a96e; }
.review-chat-text { font-size: .85rem; color: #4b5563; line-height: 1.5; }

/* Review form */
.add-review-form {
    background: #faf9f7;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(200,169,110,.2);
    margin-top: 1rem;
}
.add-review-form h6 { font-weight: 700; color: #1a1a2e; font-size: .88rem; }
.rating-input-compact {
    display: flex; flex-direction: row-reverse;
    justify-content: flex-end; gap: .25rem;
}
.rating-input-compact input { display: none; }
.rating-input-compact label {
    cursor: pointer; font-size: 1.4rem; color: #d1d5db; transition: color .15s;
}
.rating-input-compact input:checked ~ label,
.rating-input-compact label:hover,
.rating-input-compact label:hover ~ label { color: #c8a96e; }
.add-review-form .form-control {
    border-color: rgba(200,169,110,.3);
    font-size: .85rem;
    border-radius: 8px;
}
.add-review-form .form-control:focus {
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200,169,110,.12);
}
.add-review-form .btn-primary {
    background: linear-gradient(135deg,#1a1a2e,#16213e);
    border: none; color: #c8a96e;
    font-size: .82rem; font-weight: 700;
    border-radius: 8px; padding: .45rem 1.1rem;
}
.add-review-form .btn-primary:hover {
    background: linear-gradient(135deg,#16213e,#0f3460);
    color: #d4b97e;
}
.alert-sm { padding: .5rem; font-size: .82rem; }

/* ── Landing Content Section ──────────────────────────────── */
.landing-content-section {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    border: 1px solid rgba(200,169,110,.12);
}

.landing-content-section h1,
.landing-content-section h2,
.landing-content-section h3,
.landing-content-section h4,
.landing-content-section h5,
.landing-content-section h6 {
    color: #1a1a2e;
    font-family: 'Playfair Display', serif;
}

/* ── Related products section ─────────────────────────────── */
.related-products-section {
    background: #faf9f7;
    padding: 3rem 0 4rem;
}
.related-products-section .section-heading { text-align: center; }
.related-products-section .section-heading::after {
    left: 50%; transform: translateX(-50%);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox-overlay {
    background: rgba(15,20,40,.95) !important;
}

/* ═══════════════════════════════════════
   ELEGANZA — Variant Selection Modal
   ═══════════════════════════════════════ */

/* ── Modal animation ── */
#variantSelectionModal .modal-content {
    animation: modalSlideUp 0.28s ease-out;
}
@keyframes modalSlideUp {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Layout System ── */
.vmd-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* PC Layout */
.vmd-image-section {
    flex: 0 0 180px;
}

.vmd-content-section {
    flex: 1;
    min-width: 0;
}

/* Image styling */
.vmd-image-container {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    border: 1px solid rgba(200,169,110,.1);
}

.vmd-image-link {
    display: block;
    text-decoration: none;
}

.vmd-image-link:hover .vmd-image-container {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.vmd-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.vmd-no-image-icon {
    font-size: 2.5rem;
}

/* Product title */
.vmd-product-title-section {
    width: 100%;
}

.vmd-mobile-title {
    display: none; /* Hidden on desktop */
}

.vmd-title-link {
    text-decoration: none;
    color: inherit;
}

.vmd-title-link:hover {
    color: #c8a96e;
}

.vmd-product-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
    transition: color .2s ease;
}

/* Variant buttons */
.vmd-variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

/* Cart section */
.vmd-cart-section {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.variant-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .6rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    min-height: 36px;
    font-weight: 600;
    font-size: .8rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.variant-btn:hover:not(.disabled) { 
    border-color: #c8a96e; 
    background: #fffbf0; 
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(200,169,110,.15);
}
.variant-btn.active { 
    border-color: #c8a96e; 
    background: #c8a96e; 
    color: #fff; 
    box-shadow: 0 4px 12px rgba(200,169,110,.3);
    transform: translateY(-1px);
}
.variant-btn.disabled { opacity:.4; cursor:not-allowed; text-decoration:line-through; }
.variant-btn.disabled:hover { 
    border-color:#d1d5db; 
    background:#fff; 
    transform: none;
    box-shadow: none;
}
.variant-btn.active::after {
    content:'✓';
    position:absolute; top:-2px; right:-2px;
    width:14px; height:14px;
    background:#fff; color:#c8a96e;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:9px; font-weight:bold;
    border: 1px solid #c8a96e;
}

/* ── Qty tier box compact ── */
.qty-tier-box-compact {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.qty-tier-header-compact {
    background: #f9fafb;
    padding: .35rem .6rem;
    font-size: .7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb;
}
.qty-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem .6rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background .15s;
}
.qty-tier-row:last-child { border-bottom: none; }
.qty-tier-row.active { background: rgba(200,169,110,.1); }
.qty-tier-label { font-size:.75rem; color:#374151; font-weight:500; }
.qty-tier-right { display:flex; align-items:center; gap:.4rem; }
.qty-tier-badge {
    background: #c8a96e;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 6px;
}
.qty-tier-price { font-size:.8rem; font-weight:700; color:#374151; }
.qty-tier-row.active .qty-tier-badge { box-shadow:0 2px 8px rgba(200,169,110,.4); }
.qty-tier-row.active .qty-tier-price { color:#c8a96e; }

/* ── Quantity selector compact ── */
.quantity-selector-compact {
    display:flex; align-items:center; gap:0;
    border:1.5px solid #d1d5db; border-radius:6px;
    overflow:hidden; background:#fff;
    flex-shrink: 0;
}
.quantity-btn-compact {
    background:#fff; border:none;
    width:32px; height:36px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:all .15s; font-size:.9rem; color:#374151;
}
.quantity-btn-compact:hover:not(:disabled) { background:#f3f4f6; }
.quantity-btn-compact:disabled { opacity:.5; cursor:not-allowed; }
.quantity-input-compact {
    width:50px; height:36px; border:none;
    border-left:1px solid #d1d5db; border-right:1px solid #d1d5db;
    text-align:center; font-weight:600; font-size:.9rem; background:#fff;
}
.quantity-input-compact:focus { outline:none; }

/* ── Add to cart button compact ── */
.btn-add-to-cart-compact {
    flex: 1;
    height: 36px; 
    padding: 0 .75rem;
    background: linear-gradient(135deg, #c8a96e, #d4b97e); 
    color: #1a1a2e; 
    border: none; 
    border-radius: 6px;
    font-weight: 600; 
    font-size: .8rem;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all .2s ease;
    box-shadow: 0 2px 4px rgba(200,169,110,.2);
    min-width: 0;
}
.btn-add-to-cart-compact:hover:not(:disabled) { 
    background: linear-gradient(135deg, #d4b97e, #c8a96e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,169,110,.4);
}
.btn-add-to-cart-compact:disabled { opacity:.7; cursor:not-allowed; }
.btn-add-to-cart-compact:active { transform:scale(.98); }

/* ── Error alert ── */
#variantError { display:none !important; }
#variantError.show { display:flex !important; }

/* ── Product Detail Responsive ── */
@media (max-width: 991px) {
    .product-benefits, .product-gallery-grid { position: static; }
    .product-reviews-sidebar { position: static; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-grid-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
@media (max-width: 767px) {
    .product-detail-section { padding: 1.5rem 0 3rem; }
    .product-title { font-size: 1.35rem; }
    .price-current { font-size: 1.6rem; }
    .section-heading { font-size: 1.1rem; }
    .product-description-section,
    .product-specifications-section,
    .product-reviews-sidebar { padding: 1.2rem; }
    
    /* Modal responsive */
    #variantSelectionModal .modal-header { 
        padding: 0.75rem 1rem !important; 
    }
    
    #variantSelectionModal .modal-body { 
        padding: 1rem !important; 
    }
    
    /* Mobile layout: image + title horizontal, rest below */
    .vmd-layout {
        flex-direction: column;
        gap: .75rem;
    }
    
    /* Mobile image + title section */
    .vmd-image-section {
        flex: none;
        display: flex;
        align-items: flex-start;
        gap: .75rem;
        width: 100%;
        margin-bottom: .5rem;
    }
    
    .vmd-image-container {
        width: 70px;
        height: 90px;
        flex-shrink: 0;
    }
    
    .vmd-no-image-icon {
        font-size: 1.8rem;
    }
    
    /* Show mobile title */
    .vmd-mobile-title {
        display: flex !important;
        flex: 1;
        margin-bottom: 0 !important;
        align-items: flex-start;
        margin-top: .25rem;
    }
    
    .vmd-product-title {
        font-size: .85rem;
        line-height: 1.2;
    }
    
    /* Content section adjustments */
    .vmd-content-section {
        width: 100%;
    }
    
    /* Variant buttons mobile */
    .vmd-variant-buttons { 
        gap: 4px; 
    }
    
    .variant-btn { 
        font-size: .7rem; 
        padding: .3rem .4rem;
        min-height: 28px;
    }
    
    /* Cart section mobile */
    .vmd-cart-section {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .quantity-selector-compact {
        flex-shrink: 0;
        border-width: 1px;
    }
    
    .quantity-btn-compact {
        width: 30px;
        height: 32px;
        font-size: .85rem;
    }
    
    .quantity-input-compact {
        width: 45px;
        height: 32px;
        font-size: .85rem;
        border-left-width: 1px;
        border-right-width: 1px;
    }
    
    .btn-add-to-cart-compact {
        height: 32px;
        font-size: .75rem;
        padding: 0 .5rem;
    }
    
    #vmd-final-price {
        font-size: 1.15rem !important;
    }
    
    .modal-title {
        font-size: .85rem !important;
    }
    
    #variantProductName {
        font-size: .75rem !important;
    }
    
    #variantTypeLabel {
        font-size: .75rem !important;
    }
    
    /* Hide desktop title on mobile */
    .vmd-desktop-title {
        display: none !important;
    }
}
@media (max-width: 575px) {
    .family-product-item { width: 56px; }
    .gallery-grid { gap: 5px; }
}