/* ==========================================================================
   AESTIA 3D — PRODUCT PAGE DESIGN SYSTEM (STEEL/GREY THEME)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    /* ── STEEL / GREY PALETTE ── */
    --primary: #3E4C59;
    --primary-light: #7B8794;
    --primary-hover: #1F2933;
    --primary-color: #3E4C59;

    --accent: #7B8794;
    --accent-color: #7B8794;

    --baby: #F0F2F5;
    --baby-mid: #E1E5EB;
    --baby-deep: #C7D0D8;
    --blush: #9AA5B1;
    --rose: #3E4C59;
    --rose-dark: #1F2933;
    --warm: #323F4B;
    --petal: #FFFFFF;
    --snow: #F8F9FA;
    --bg: #FFFFFF;
    --surface: #F0F2F5;

    --charcoal: #1F2933;
    --ink: #101419;
    --text-body: #1F2933;
    --text-muted: #616E7C;
    --text-main: #1F2933;

    --mist: rgba(62, 76, 89, 0.08);
    --border: rgba(62, 76, 89, 0.22);
    --border-soft: rgba(123, 135, 148, 0.35);
    --box-shadow: 0 8px 32px rgba(31, 41, 51, 0.08);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);

    --gold: linear-gradient(135deg, #E1E5EB, #9AA5B1);
    --gold-solid: #9AA5B1;
    --gold-light: #C7D0D8;

    /* ── LAYOUT / COMPONENT ── */
    --success-color: #4caf50;
    --error-color: #c0392b;
    --border-radius: 6px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --header-height: 72px;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-body);
    background-color: var(--snow);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px; /* base corrected from magnified state */
}

main { flex-grow: 1; }

a { text-decoration: none; color: inherit; }

button { border: none; font-family: inherit; background: none; cursor: pointer; }

img { max-width: 100%; height: auto; display: block; }

.visually-hidden,
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* GRAIN OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 600;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
    opacity: .35;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.eyebrow {
    font-size: .6rem;
    letter-spacing: .5em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blush);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--blush);
}

.sec-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 1.6rem;
}
.sec-title em { font-style: italic; color: var(--rose); }

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 56px;
    background-color: rgba(248, 249, 250, .97);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-soft);
    height: var(--header-height);
    transition: var(--transition);
}

.hamburger-btn {
    display: none;
    font-size: 1.2rem;
    color: var(--ink);
    justify-self: start;
    padding: 8px;
}

.close-drawer-btn {
    display: none;
    font-size: 1.3rem;
    color: var(--ink);
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 8px;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 20, 25, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s;
}
.drawer-overlay.active { display: block; opacity: 1; }

.nav-drawer { display: contents; }

.left-section {
    justify-self: start;
    display: flex;
    align-items: center;
    position: relative;
}

.account-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.account-circle {
    font-size: 1.3rem;
    color: var(--warm);
    transition: color 0.3s;
}
.account-container:hover .account-circle { color: var(--rose); }

.user-status {
    font-size: .52rem;
    letter-spacing: .14em;
    font-weight: 500;
    padding: 3px 8px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    text-transform: uppercase;
    border-radius: 4px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 200px;
    background-color: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    box-shadow: var(--box-shadow);
    display: none;
    z-index: 1001;
    border-radius: var(--border-radius);
}
.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--warm);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover {
    background-color: var(--baby);
    color: var(--rose);
    padding-left: 24px;
}

.drawer-actions {
    justify-self: end;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-right: 48px;
    grid-column: 3;
    grid-row: 1;
    pointer-events: auto;
}

.btn-label { display: none; }

/* LOGO — image-only version */
.header-logo {
    font-family: 'Cormorant', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .25em;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-transform: uppercase;
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
    text-decoration: none;
}

/* When an <img class="site-logo"> is present, show it and hide text spans */
.header-logo img.site-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.header-logo:has(img.site-logo)::after { content: none !important; }
.header-logo:has(img.site-logo) .aes,
.header-logo:has(img.site-logo) .tia3d,
.header-logo:has(img.site-logo) .three,
.header-logo:has(img.site-logo) .In,
.header-logo:has(img.site-logo) .inscipe { display: none !important; }

/* Fallback text logo */
.header-logo::after {
    content: 'Store';
    font-family: 'Jost', sans-serif;
    font-size: .42rem;
    letter-spacing: .6em;
    font-weight: 500;
    color: var(--blush);
    text-transform: uppercase;
    margin-top: 4px;
    text-align: center;
}
.header-logo .aes { color: var(--ink); }
.header-logo .tia3d { color: var(--rose); }

.right-section-cart {
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--border-soft);
    color: var(--warm);
    width: 40px;
    height: 40px;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
    border-radius: 50%;
    text-decoration: none;
}
.icon-action-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
    background-color: var(--baby);
    transform: translateY(-2px);
}

.icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cart-count,
#favorites-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--rose);
    color: white;
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--snow);
}
#favorites-count { top: -9px; right: -11px; }

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.search-bar-container {
    width: 100%;
    max-width: 580px;
    margin: 1.5rem auto 1.2rem;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.search-input-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
}
.search-input-wrapper input {
    width: 100%;
    height: 100%;
    padding: 0.5rem 54px 0.5rem 1.5rem;
    border: 1px solid var(--border-soft);
    background-color: var(--snow);
    font-family: 'Jost', sans-serif;
    font-size: .88rem;
    letter-spacing: .02em;
    color: var(--ink);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(62, 76, 89, .04);
    border-radius: 28px;
}
.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--blush);
    box-shadow: 0 6px 28px rgba(62, 76, 89, .1);
}
.search-input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-weight: 300;
}
.search-input-wrapper .btn,
.search-submit-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    width: 40px;
    height: 40px;
    color: var(--rose);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
}
.search-input-wrapper .btn:hover,
.search-submit-btn:hover {
    color: var(--rose-dark);
    transform: translateY(-50%) scale(1.1);
}

.suggestion-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    background-color: var(--snow);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.suggestion-item {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover {
    background-color: var(--baby);
    color: var(--rose);
    padding-left: 1.5rem;
}
.suggestion-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
}

/* ==========================================================================
   PRODUCT MAIN CONTENT
   ========================================================================== */
.product-main {
    flex: 1;
    padding: 0 56px 2.5rem;
}

.product-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(31, 41, 51, 0.05);
}

.product-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Main Image */
.main-image-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: visible;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: crosshair;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--baby) 0%, var(--snow) 100%);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 1 / 1;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-image video {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: var(--ink);
}

.main-image:has(video) { aspect-ratio: unset; }
.main-image-container:hover .main-image img { transform: scale(1.1); }

.image-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 20, 25, 0.5);
    backdrop-filter: blur(8px);
    color: var(--snow);
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    color: var(--snow);
    background: rgba(16, 20, 25, 0.5);
    padding: 5px 12px;
    border-radius: 18px;
    opacity: 0;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

.zoom-hint {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--snow);
    background: rgba(16, 20, 25, 0.45);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 4px;
    opacity: 0.8;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(248, 249, 250, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}
.share-icon:hover {
    background: var(--snow);
    border-color: var(--rose);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(62, 76, 89, 0.15);
}
.share-icon i { font-size: .95rem; color: var(--warm); transition: color 0.3s; }
.share-icon:hover i { color: var(--rose); }

/* Thumbnails */
.thumbnail-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
}
.thumbnail-section::-webkit-scrollbar { display: none; }

.thumbnail-section img,
.thumbnail-section .video-thumbnail {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
    background: linear-gradient(145deg, var(--baby) 0%, var(--snow) 100%);
    flex-shrink: 0;
}
.thumbnail-section img:hover,
.thumbnail-section .video-thumbnail:hover {
    border-color: var(--blush);
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(62, 76, 89, 0.1);
}
.thumbnail-section img.active,
.thumbnail-section .video-thumbnail.active {
    border-color: var(--rose);
    box-shadow: 0 4px 10px rgba(62, 76, 89, 0.15);
}

.video-thumbnail {
    background-size: cover;
    background-position: center;
    position: relative;
}
.duration-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(16, 20, 25, 0.7);
    backdrop-filter: blur(4px);
    color: var(--snow);
    padding: 2px 6px;
    font-size: 0.64rem;
    border-radius: 4px;
}

/* Product Details Section */
.product-details-section {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.product-title {
    font-family: 'Cormorant', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
}
.price .original-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price .discounted-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--rose-dark);
    font-family: 'Jost', sans-serif;
}

/* MRP Tooltip */
.mrp-tooltip { position: relative; display: inline-block; }
.mrp-tooltip-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 4px;
    transition: color 0.3s;
}
.mrp-tooltip-button:hover { color: var(--rose); }

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: var(--snow);
    color: var(--ink);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 22px rgba(62, 76, 89, 0.12);
    position: absolute;
    z-index: 1001;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 190px;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.mrp-tooltip-button:hover + .tooltip-text,
.mrp-tooltip-button:focus + .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.tooltip-text .tooltip-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
}
.tooltip-text .tooltip-item .tooltip-label { font-weight: 500; color: var(--text-muted); }
.tooltip-text .tooltip-item .tooltip-value { font-weight: 600; color: var(--ink); }
.tooltip-text::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--snow) transparent;
}

/* Stock Status */
.stock-status { margin: 8px 0; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; }
.stock-status.in-stock  { color: var(--success-color); }
.stock-status.low-stock  { color: var(--blush); }
.stock-status.out-of-stock { color: var(--error-color); }

/* Offers & Delivery */
.offers {
    background: linear-gradient(135deg, var(--baby) 0%, rgba(240, 242, 245, 0.5) 100%);
    padding: 14px 18px;
    border-radius: 9px;
    font-size: 0.82rem;
    color: var(--ink);
    margin: 12px 0;
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
}
.offers::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--rose), var(--blush));
    border-radius: 4px 0 0 4px;
}
.offers p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
}
.offers i { color: var(--rose); font-size: 0.9rem; }

.delivery-section { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0; }

/* Action Buttons */
@keyframes shimmer { from { left: -100%; } to { left: 100%; } }

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn.add-to-cart,
.btn.buy-now {
    padding: 14px;
    border: none;
    border-radius: 7px;
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    font-family: 'Jost', sans-serif;
}

.btn.add-to-cart {
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: var(--snow);
    box-shadow: 0 6px 20px rgba(62, 76, 89, 0.22);
    position: relative;
    overflow: hidden;
}
.btn.add-to-cart::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
}
.btn.add-to-cart:hover::after { left: 100%; }
.btn.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(62, 76, 89, 0.3);
}

.btn.buy-now {
    background: transparent;
    color: var(--warm);
    border: 1.5px solid var(--border);
}
.btn.buy-now:hover {
    background: var(--baby);
    color: var(--rose-dark);
    border-color: var(--rose);
    transform: translateY(-2px);
}

/* Size & Color Selection */
.selection-section { margin: 20px 0; }
.size-selection,
.color-selection { margin-bottom: 18px; }
.size-selection h4,
.color-selection h4 {
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--ink);
    font-weight: 500;
}
.size-options,
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-options button,
.color-options button {
    padding: 8px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    background: transparent;
    font-size: 0.82rem;
    min-width: 40px;
    min-height: 40px;
    transition: var(--transition);
    color: var(--warm);
    font-family: 'Jost', sans-serif;
}
.size-options button:hover,
.color-options button:hover { border-color: var(--rose); color: var(--rose); }
.size-options button.selected,
.color-options button.selected {
    border-color: var(--rose);
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: var(--snow);
}

/* Description & Details */
.product-description {
    margin-top: 20px;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.toggle-icon {
    margin: 16px 0;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px dashed var(--border-soft);
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.toggle-icon:hover { background: var(--baby); border-color: var(--rose); }

.product-details { margin-top: 14px; }
.product-details h3 {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 10px;
    font-weight: 500;
}
.product-details table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.product-details table th,
.product-details table td {
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    text-align: left;
}
.product-details table th {
    background: var(--baby);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.product-details table td { background: transparent; color: var(--ink); }

/* ==========================================================================
   SELLER
   ========================================================================== */
.seller-container {
    margin: 1.5rem auto;
    max-width: 1280px;
    padding: 0 56px;
}

.seller-box {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}
.seller-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(62, 76, 89, 0.1);
}
.seller-header { display: flex; align-items: center; gap: 12px; }
.seller-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.seller-link {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rose);
    transition: color 0.3s;
}
.seller-link:hover { color: var(--rose-dark); }

.seller-store-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: var(--snow);
    padding: 10px 22px;
    border-radius: var(--border-radius);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    align-self: flex-start;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(62, 76, 89, 0.2);
}
.seller-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(62, 76, 89, 0.28);
}

/* ==========================================================================
   RELATED PRODUCTS
   ========================================================================== */
.related-products-section {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    padding: 0 56px 2.5rem;
}

.related-products-scroll-container {
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.related-products-scroll-container::-webkit-scrollbar { display: none; }

.related-products-container {
    display: flex;
    gap: 18px;
    padding: 0;
}

.related-product-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    scroll-snap-align: start;
}
.related-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(62, 76, 89, 0.1);
    border-color: var(--border);
}

.related-product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--baby) 0%, var(--snow) 100%);
    flex-shrink: 0;
}
.related-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}
.related-product-card:hover .related-product-image { transform: scale(1.06); }

.related-product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.related-product-title {
    font-family: 'Cormorant', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-product-pricing { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.related-product-pricing .original-price { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.related-product-pricing .discounted-price { font-size: 1rem; color: var(--rose-dark); font-weight: 600; }

.add-to-cart-button {
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: var(--snow);
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
    width: 100%;
    margin-top: auto;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(62, 76, 89, 0.15);
}
.add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(62, 76, 89, 0.22);
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    color: var(--warm);
}
.scroll-left { left: 0; }
.scroll-right { right: 0; }
.scroll-button:hover {
    background: var(--snow);
    border-color: var(--rose);
    color: var(--rose);
}

/* Magnifier */
.magnifier {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid var(--border-soft);
    background-color: #FFF;
    box-shadow: 0 6px 22px rgba(62, 76, 89, 0.15);
    pointer-events: none;
    z-index: 10;
    background-repeat: no-repeat;
}

/* ==========================================================================
   BOTTOM NAVIGATION
   ========================================================================== */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .52rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: 20%;
    transition: color 0.3s;
    font-weight: 500;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 5px; }
.nav-item.active,
.nav-item:hover { color: var(--rose-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--ink);
    padding: 64px 56px 36px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
.footer-section h3 {
    font-size: .58rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(154, 165, 177, 0.12);
    font-weight: 600;
    text-align: left;
}
.footer-section p {
    font-size: .84rem;
    line-height: 2;
    color: rgba(225, 229, 235, .45);
    font-weight: 400;
    max-width: 320px;
}
.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.footer-section ul li a,
.footer-section ul li {
    font-size: .82rem;
    color: rgba(225, 229, 235, .38);
    transition: color .3s;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-section ul li a:hover { color: var(--baby); padding-left: 4px; }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(154, 165, 177, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}
.footer-bottom p {
    font-size: .72rem;
    color: rgba(225, 229, 235, .26);
    letter-spacing: .05em;
    margin: 0;
}
.footer-bottom::after {
    content: 'AESTIA';
    font-family: 'Cormorant', serif;
    font-size: .95rem;
    letter-spacing: .38em;
    color: rgba(225, 229, 235, .06);
}

/* ==========================================================================
   SWEETALERT OVERRIDES
   ========================================================================== */
div:where(.swal2-container) div:where(.swal2-popup) {
    width: min(340px, calc(100vw - 2rem));
    max-width: 360px;
    border-radius: var(--border-radius) !important;
    background: var(--snow) !important;
    border: 1px solid var(--border-soft) !important;
    padding: 1.1rem !important;
}
div:where(.swal2-container) h2:where(.swal2-title) {
    font-family: 'Cormorant', serif !important;
    color: var(--ink) !important;
    font-size: 1.35rem !important;
    margin-bottom: 0.4rem;
}
div:where(.swal2-container) div:where(.swal2-html-container) {
    font-family: 'Jost', sans-serif !important;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    line-height: 1.5;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background: linear-gradient(135deg, var(--rose), var(--rose-dark)) !important;
    border-radius: var(--border-radius) !important;
    font-family: 'Jost', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 0.76rem !important;
    padding: 10px 22px !important;
    border: none !important;
}
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    background: transparent !important;
    border: 1px solid var(--border-soft) !important;
    color: var(--warm) !important;
    border-radius: var(--border-radius) !important;
    font-family: 'Jost', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-size: 0.76rem !important;
    padding: 10px 22px !important;
}
.swal2-popup { max-height: calc(100vh - 80px); overflow-y: auto; }

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(16, 20, 25, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow: auto;
}
.zoom-modal .modal-content { position: relative; max-width: 90%; max-height: 90vh; }
.zoom-modal .modal-close {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 1.1rem;
    background: var(--baby);
    border: 1px solid var(--border-soft);
    color: var(--warm);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.zoom-modal .pinch-zoom-container {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
}
.zoom-modal .zoomable-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* ==========================================================================
   RESPONSIVE: TABLET
   ========================================================================== */
@media (max-width: 1024px) {
    header,
    .product-main,
    .seller-container,
    .related-products-section,
    footer { padding-left: 28px; padding-right: 28px; }
}

/* ==========================================================================
   RESPONSIVE: DESKTOP (>768)
   ========================================================================== */
@media (min-width: 769px) {
    body { padding-bottom: 0; }

    .product-top {
        display: grid;
        grid-template-columns: 84px 1fr 1fr;
        gap: 28px;
        align-items: flex-start;
    }

    .main-image-container {
        grid-column: 2/3;
        width: 100%;
        max-width: 440px;
    }

    .main-image {
        aspect-ratio: unset;
        min-height: 340px;
        max-height: 440px;
        height: 400px;
    }

    .main-image img {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: contain;
    }

    .main-image video { max-height: 400px; }

    .thumbnail-section {
        grid-column: 1/2;
        flex-direction: column;
        width: 84px;
        gap: 12px;
        overflow: visible;
    }
    .thumbnail-section img,
    .thumbnail-section .video-thumbnail {
        width: 76px; height: 76px;
        min-width: 76px; min-height: 76px;
    }

    .product-details-section {
        grid-column: 3/4;
        text-align: left;
    }

    .product-title { font-size: 2rem; margin-bottom: 16px; }

    .price { flex-direction: row; align-items: baseline; gap: 12px; }
    .price-wrapper { justify-content: flex-start; }
    .price .original-price { font-size: 0.9rem; }
    .price .discounted-price { font-size: 1.5rem; }

    .buttons { flex-direction: row; gap: 16px; }
    .btn.add-to-cart,
    .btn.buy-now { width: auto; padding: 14px 32px; }

    .seller-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 28px;
    }

    .related-products-scroll-container { overflow-x: visible; }
    .related-products-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 22px;
    }
    .related-product-card { width: 100%; max-width: 300px; }
    .scroll-button { display: none; }
}

/* ==========================================================================
   RESPONSIVE: MOBILE (<768)
   ========================================================================== */
@media (max-width: 768px) {
    :root { --header-height: 62px; }

    header { padding: 0 16px; grid-template-columns: auto 1fr auto; }

    .hamburger-btn { display: block; z-index: 1002; }

    .header-logo {
        grid-column: 2;
        margin: 0 auto;
        font-size: 1.2rem;
    }

    .right-section-cart { grid-column: 3; }

    .nav-drawer {
        position: fixed;
        top: 0; left: -100%;
        width: 280px; height: 100vh;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 72px 20px 20px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        box-shadow: 4px 0 22px rgba(0,0,0,0.07);
        display: flex;
    }
    .nav-drawer.open { left: 0; }

    .close-drawer-btn { display: block; }

    .left-section { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }

    .user-status { display: none; }

    .dropdown-menu {
        position: static;
        display: block !important;
        box-shadow: none; border: none;
        background: transparent; padding-left: 0;
        width: 100%; margin-top: 18px;
    }
    .dropdown-menu a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(154, 165, 177, 0.15);
        font-size: 0.72rem;
    }

    .drawer-actions {
        flex-direction: column; gap: 12px;
        align-items: stretch; margin: 0;
        border-top: 1px solid var(--border-soft);
        padding-top: 24px;
        grid-column: unset; grid-row: unset;
    }

    .icon-action-btn {
        width: 100%; justify-content: flex-start;
        border: none; border-radius: 0;
        background: transparent; height: auto; padding: 8px 0;
    }
    .icon-action-btn:hover { background: transparent; transform: none; color: var(--rose-dark); }
    .icon-wrap i { font-size: 1.1rem; width: 22px; text-align: left; }

    .btn-label {
        display: inline-block;
        margin-left: 13px;
        font-family: 'Jost', sans-serif;
        font-size: 0.76rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        font-weight: 500;
    }

    #favorites-count { top: -7px; right: -13px; }

    .search-bar-container {
        margin: 0; padding: 0 14px;
        max-height: 0; overflow: hidden; opacity: 0;
        transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s, margin 0.3s;
    }
    .search-bar-container.mobile-search-visible {
        max-height: 110px; opacity: 1;
        margin: 0.8rem auto; overflow: visible;
    }

    .search-input-wrapper { height: 44px; }
    .search-input-wrapper input { font-size: 0.84rem; padding-left: 1.2rem; }

    .bottom-navigation { display: flex; }

    body { padding-bottom: 84px; }

    .product-main { padding: 0 14px 1.8rem; }

    .product-container { padding: 1rem; border-radius: 10px; }

    .main-image-container { max-width: 100%; border-radius: 10px; }
    .main-image { border-radius: 10px; }
    .main-image img {
        max-height: 75vw;
        aspect-ratio: 1/1;
        object-fit: contain;
        width: 100%;
    }
    .main-image video { max-height: 75vw; }
    .main-image-container:hover .main-image img { transform: scale(1.18); }

    .magnifier, .zoom-hint { display: none; }
    .share-icon { width: 34px; height: 34px; }

    .thumbnail-section img,
    .thumbnail-section .video-thumbnail {
        width: 56px; height: 56px;
        min-width: 56px; min-height: 56px;
        border-radius: 7px;
    }

    .product-title { font-size: 1.3rem; }

    .buttons {
        position: static; background: transparent;
        backdrop-filter: none; padding: 10px 0 0;
        border-top: none; margin: 0; z-index: auto;
    }

    .seller-container { padding: 0 14px; }
    .seller-box { padding: 16px; border-radius: 10px; }

    .related-products-section { padding: 0 14px 3.5rem; }
    .related-products-scroll-container { scroll-snap-type: x mandatory; }
    .related-products-container { padding: 0; }
    .related-product-card { width: 200px; border-radius: 10px; }
    .related-product-image-container { height: 160px; }

    .footer-container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-section h3,
    .footer-section ul,
    .footer-bottom { text-align: center; align-items: center; justify-content: center; }
    .footer-section p { margin: 0 auto; }
    footer { padding: 48px 16px 90px; }
}

@media (max-width: 480px) {
    .product-title { font-size: 1.1rem; }
    .price .discounted-price { font-size: 1.1rem; }
    .btn.add-to-cart,
    .btn.buy-now { padding: 11px; font-size: .6rem; }
    .thumbnail-section img,
    .thumbnail-section .video-thumbnail {
        width: 48px; height: 48px;
        min-width: 48px; min-height: 48px;
    }
    .search-input-wrapper { height: 40px; }
    .search-input-wrapper input { font-size: 0.78rem; }
    .related-product-card { width: 155px; }
    .related-product-image-container { height: 126px; }
    .related-product-title { font-size: 0.9rem; }
}

/* ==========================================================================
   CUSTOMIZATION SECTION
   ========================================================================== */
.customization-section {
    margin-top: 1.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(248, 249, 250, 0.45);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 28px rgba(62, 76, 89, 0.04);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.customization-section:hover {
    box-shadow: 0 10px 36px rgba(62, 76, 89, 0.08);
    border-color: rgba(62, 76, 89, 0.25);
}

.customization-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid rgba(62, 76, 89, 0.08);
    transition: background 0.25s ease;
    font-family: 'Jost', sans-serif;
}
.customization-toggle:hover { background: rgba(62, 76, 89, 0.04); }

.customization-heading-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: -0.2px;
    word-break: break-word;
}
.customization-heading-left i {
    color: var(--rose);
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(62, 76, 89, 0.3));
    flex-shrink: 0;
}

.customization-chevron {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}
.customization-toggle:hover .customization-chevron { color: var(--rose); }

.customization-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 22px;
}
.customization-body.open { padding: 22px; max-height: 900px; }

#customizationToggleBtn[aria-expanded="true"]  .customization-chevron { transform: rotate(0deg); }
#customizationToggleBtn[aria-expanded="false"] .customization-chevron { transform: rotate(-180deg); }

.custom-option { margin-bottom: 20px; }
.custom-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
    border-radius: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}
.text-price { background-color: rgba(62, 76, 89, 0.1); color: var(--rose-dark); }
.free-price { background-color: rgba(154, 165, 177, 0.15); color: var(--blush); }

.premium-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--snow);
    color: var(--ink);
    font-family: 'Jost', sans-serif;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}
.premium-input:focus {
    outline: none;
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(62, 76, 89, 0.1);
}
.premium-input::placeholder { color: var(--text-muted); font-weight: 300; }

.price-note { color: var(--rose); font-size: 0.76rem; margin-top: 6px; display: block; font-weight: 500; opacity: 0.9; }

.file-upload-wrapper { position: relative; width: 100%; }

.premium-file-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: var(--snow);
    border: 1.5px dashed rgba(62, 76, 89, 0.28);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-family: 'Jost', sans-serif;
    font-size: 0.86rem;
}
.premium-file-input:hover {
    border-color: var(--rose);
    background: rgba(62, 76, 89, 0.02);
}
.premium-file-input::file-selector-button {
    margin-right: 14px;
    padding: 8px 16px;
    border: none;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: white;
    border-radius: 7px;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(62, 76, 89, 0.2);
}
.premium-file-input::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(62, 76, 89, 0.28);
}

.image-preview-container {
    margin-top: 14px;
    text-align: center;
    padding: 16px;
    background: var(--snow);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}
.image-preview-container p {
    font-size: 0.74rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.image-preview-container img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    object-fit: contain;
}

.premium-apply-btn {
    margin-top: 8px;
    width: 100%;
    background: var(--ink);
    color: white;
    padding: 16px;
    border-radius: 10px;
    font-weight: 500;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.premium-apply-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}
.premium-apply-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
    .customization-section { margin-top: 16px; border-radius: 12px; }
    .customization-heading { font-size: 0.96rem; margin-bottom: 13px; gap: 7px; }
    .custom-option label { font-size: 0.86rem; flex-wrap: wrap; }
    .premium-input { padding: 10px 12px; font-size: 0.86rem; }
    .premium-file-input { padding: 7px; }
    .premium-file-input::file-selector-button { padding: 6px 10px; font-size: 0.76rem; margin-right: 8px; }
    .premium-apply-btn { padding: 12px; font-size: 0.86rem; }
    .price-badge { font-size: 0.66rem; padding: 2px 5px; }
}

/* ==========================================================================
   DESKTOP SEARCH — INLINE EXPAND
   ========================================================================== */
@media (min-width: 769px) { .mobile-search-only { display: none !important; } }
@media (max-width: 768px) { .desktop-search-wrapper { display: none !important; } }

.desktop-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    width: 40px;
    min-width: 40px;
    border-radius: 28px;
    border: 1.5px solid transparent;
    background: transparent;
    overflow: hidden;
    transition:
        width 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.30s ease,
        border-color 0.30s ease,
        box-shadow 0.30s ease;
}
.desktop-search-wrapper.srch-open {
    width: 280px;
    background: rgba(248, 249, 250, 0.98);
    border-color: var(--blush);
    box-shadow: 0 5px 26px rgba(62, 76, 89, 0.13);
}
.desktop-search-wrapper.srch-ready { overflow: visible; }

.desktop-srch-icon-btn {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
    z-index: 2;
    position: relative;
}
.desktop-srch-icon-btn:hover,
.desktop-search-wrapper.srch-open .desktop-srch-icon-btn { color: var(--rose); }

.desktop-srch-form {
    flex: 1;
    display: flex; align-items: center;
    min-width: 0;
    opacity: 0; pointer-events: none;
    transition: opacity 0.20s ease 0.16s;
}
.desktop-search-wrapper.srch-open .desktop-srch-form { opacity: 1; pointer-events: auto; }

.desktop-srch-field {
    flex: 1;
    border: none; background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.84rem;
    color: var(--ink); outline: none;
    min-width: 0; padding: 0;
    letter-spacing: 0.02em;
}
.desktop-srch-field::placeholder { color: var(--text-muted); font-weight: 300; font-size: 0.8rem; }

.desktop-srch-close {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--baby);
    color: var(--warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.66rem;
    cursor: pointer;
    margin-right: 7px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease 0.16s, background 0.2s, color 0.2s;
}
.desktop-search-wrapper.srch-open .desktop-srch-close { opacity: 1; pointer-events: auto; }
.desktop-srch-close:hover { background: var(--rose); color: #fff; }

.desktop-search-wrapper .suggestion-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    min-width: 280px;
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(62, 76, 89, 0.13);
    z-index: 1200;
    max-height: 340px; overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 76, 89, 0.2) transparent;
}
.desktop-search-wrapper .suggestion-box::-webkit-scrollbar { width: 3px; }
.desktop-search-wrapper .suggestion-box::-webkit-scrollbar-thumb {
    background: rgba(62, 76, 89, 0.22);
    border-radius: 4px;
}

.suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    cursor: pointer;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.18s, padding-left 0.18s;
    text-decoration: none;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--baby); padding-left: 16px !important; }

.suggestion-image {
    width: 44px !important; height: 44px !important;
    object-fit: cover !important;
    border-radius: 7px !important;
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}
.suggestion-item > span {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem; font-weight: 500;
    color: var(--ink); line-height: 1.3; flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.suggestion-item:hover > span { color: var(--rose-dark); }

.search-bar-container .suggestion-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px; right: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--box-shadow);
    max-height: 280px; overflow-y: auto;
    z-index: 100; background: var(--snow);
}

/* ==========================================================================
   BREADCRUMB NAVIGATION
   ========================================================================== */
.breadcrumb-nav {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 56px 5px;
}
.breadcrumb-list {
    list-style: none;
    display: flex; align-items: center;
    flex-wrap: wrap; gap: 0;
}
.breadcrumb-item a,
.breadcrumb-item {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem; font-weight: 400;
    letter-spacing: 0.04em; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 180px;
}
.breadcrumb-item a:hover { color: var(--rose); }
.breadcrumb-item a i { font-size: 0.62rem; margin-right: 2px; }

.breadcrumb-sep {
    font-size: 0.64rem; color: var(--border);
    padding: 0 6px; user-select: none; font-weight: 300;
}

.breadcrumb-current {
    color: var(--ink); font-weight: 500;
    max-width: 250px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1024px) { .breadcrumb-nav { padding: 8px 28px 5px; } }
@media (max-width: 768px) {
    .breadcrumb-nav { padding: 6px 14px 3px; }
    .breadcrumb-item a,
    .breadcrumb-item { font-size: 0.64rem; max-width: 110px; }
    .breadcrumb-current { max-width: 160px; }
}
@media (max-width: 480px) {
    .breadcrumb-item a,
    .breadcrumb-item { max-width: 80px; }
    .breadcrumb-current { max-width: 110px; }
}
/* --------------------------------------------------------------------------
   1. REVIEWS SECTION WRAPPER
   -------------------------------------------------------------------------- */
.reviews-section-wrapper {
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 0 56px;
}

.reviews-section-inner {
    position: relative;
    background: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
}

/* Subtle decorative accent */
.reviews-section-inner::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 76, 89, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Section heading row */
.reviews-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.4rem;
}

.reviews-heading-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviews-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blush);
    display: flex;
    align-items: center;
    gap: 11px;
}

.reviews-eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--blush);
}

.reviews-main-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.06;
    margin: 0;
}

.reviews-main-title em {
    font-style: italic;
    color: var(--rose);
}

/* --------------------------------------------------------------------------
   2. SUMMARY BLOCK
   -------------------------------------------------------------------------- */
.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(62, 76, 89, 0.05) 0%, rgba(240, 242, 245, 0.3) 100%);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1.8rem 2.2rem;
    margin-bottom: 2.2rem;
    position: relative;
    overflow: hidden;
}

.reviews-summary::after {
    content: '"';
    font-family: 'Cormorant', serif;
    font-size: 12rem;
    line-height: 1;
    color: rgba(62, 76, 89, 0.04);
    position: absolute;
    right: 1.8rem;
    top: -1rem;
    pointer-events: none;
    user-select: none;
}

/* Score column */
.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 100px;
    padding-right: 2.2rem;
    border-right: 1px solid var(--border-soft);
}

.rating-score {
    font-family: 'Cormorant', serif;
    font-size: 4rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stars-display {
    display: flex;
    gap: 3px;
}

.stars-display .star {
    font-size: 0.92rem;
    color: #E8A838;
    line-height: 1;
}

.stars-display .star.empty {
    color: var(--baby-deep);
}

.review-count-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Bars column */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 48px 1fr 34px;
    align-items: center;
    gap: 10px;
}

.rating-bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.bar {
    height: 4px;
    background: var(--baby-mid);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--rose), var(--blush));
    transform-origin: left;
    transform: scaleX(0);
    animation: barGrow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes barGrow {
    to { transform: scaleX(1); }
}

.rating-bar-pct {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. FILTER TABS
   -------------------------------------------------------------------------- */
.review-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-soft);
    background: transparent;
    border-radius: 28px;
    font-family: 'Jost', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--rose);
    color: var(--rose);
    background: rgba(62, 76, 89, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(62, 76, 89, 0.25);
}

/* --------------------------------------------------------------------------
   4. REVIEW CARDS GRID
   -------------------------------------------------------------------------- */
.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* Loading state */
.reviews-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.reviews-loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--baby-mid);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reviews-loading-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Empty / error state */
.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.reviews-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
    opacity: 0.35;
}

.reviews-empty p {
    font-size: 0.86rem;
    line-height: 1.7;
}

/* Individual Card */
.review-card {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1.4rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease;
    animation: cardIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.review-card:nth-child(1) { animation-delay: 0.00s; }
.review-card:nth-child(2) { animation-delay: 0.06s; }
.review-card:nth-child(3) { animation-delay: 0.12s; }
.review-card:nth-child(4) { animation-delay: 0.18s; }
.review-card:nth-child(5) { animation-delay: 0.24s; }
.review-card:nth-child(6) { animation-delay: 0.30s; }

/* Hover shimmer accent bar */
.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--blush), var(--rose));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 14px 14px 0 0;
}

.review-card:hover::before { transform: scaleX(1); }

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(62, 76, 89, 0.1), 0 6px 20px rgba(0,0,0,0.05);
    border-color: var(--border);
}

/* Card header row */
.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

/* Avatar */
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(62, 76, 89, 0.12), rgba(62, 76, 89, 0.22));
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rose);
    flex-shrink: 0;
    letter-spacing: 0;
}

.review-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-author {
    font-family: 'Jost', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
    margin: 0;
}

.review-stars-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars .star {
    font-size: 0.75rem;
    color: #E8A838;
    line-height: 1;
}

.review-stars .star.empty {
    color: var(--baby-deep);
}

.review-rating-num {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rose);
}

/* Date badge */
.review-date-badge {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--baby);
    padding: 3px 9px;
    border-radius: 18px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
}

/* Review text */
.review-text {
    font-size: 0.84rem;
    color: rgba(16, 20, 25, 0.7);
    line-height: 1.75;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Media thumbnails */
.review-media {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.review-image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--border-soft);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-image:hover {
    transform: scale(1.07);
    border-color: var(--rose);
    box-shadow: 0 4px 14px rgba(62, 76, 89, 0.2);
}

.review-video-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1.5px solid var(--border-soft);
    background: rgba(16, 20, 25, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.review-video-thumb::after {
    content: '▶';
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.9;
}

.review-video-thumb:hover {
    transform: scale(1.07);
    border-color: var(--rose);
}

/* Expand hint */
.review-expand-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--blush);
    margin-top: 9px;
    opacity: 0;
    transition: opacity 0.3s;
}

.review-expand-hint::after {
    content: '↗';
    font-size: 0.7rem;
}

.review-card:hover .review-expand-hint { opacity: 1; }

/* --------------------------------------------------------------------------
   5. LOAD MORE BUTTON
   -------------------------------------------------------------------------- */
.load-more-btn {
    display: block;
    margin: 2.2rem auto 0;
    padding: 12px 32px;
    background: transparent;
    color: var(--warm);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    font-family: 'Jost', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 28px;
    z-index: 0;
}

.load-more-btn:hover::before { transform: scaleX(1); }

.load-more-btn:hover {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 7px 24px rgba(62, 76, 89, 0.25);
}

.load-more-btn span { position: relative; z-index: 1; }

.load-more-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. REVIEW MODAL
   -------------------------------------------------------------------------- */
#reviewModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 20, 25, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: var(--snow);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.2rem 2.2rem 1.8rem;
    width: 100%;
    max-width: 600px;
    max-height: 86vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    position: relative;
    box-shadow: 0 28px 72px rgba(62, 76, 89, 0.14), 0 8px 22px rgba(0,0,0,0.08);
    animation: modalSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 76, 89, 0.2) transparent;
}

.modal-content::-webkit-scrollbar { width: 3px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(62, 76, 89, 0.22); border-radius: 4px; }

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal top accent bar */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--blush), var(--rose));
    border-radius: 20px 20px 0 0;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--baby);
    border: 1px solid var(--border-soft);
    color: var(--warm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--rose);
    color: #fff;
    border-color: transparent;
    transform: rotate(90deg);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.1rem;
    padding-right: 38px;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-soft);
}

.modal-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(62, 76, 89, 0.12), rgba(62, 76, 89, 0.24));
    border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant', serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--rose);
    flex-shrink: 0;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-author {
    font-family: 'Cormorant', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.modal-stars-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.modal-stars {
    display: flex;
    gap: 3px;
}

.modal-stars .star { font-size: 0.85rem; color: #E8A838; }
.modal-stars .star.empty { color: var(--baby-deep); }

.modal-date {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modal body text */
.modal-review-text {
    font-size: 0.94rem;
    color: rgba(16, 20, 25, 0.76);
    line-height: 1.8;
    margin: 0 0 1.3rem;
    white-space: pre-line;
    word-break: break-word;
}

/* Modal media gallery */
.modal-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 0.7rem;
}

.modal-media-item {
    border-radius: 12px;
    overflow: hidden;
    background: var(--baby);
    border: 1px solid var(--border-soft);
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.modal-media-item:hover {
    border-color: var(--border);
    box-shadow: 0 7px 22px rgba(62, 76, 89, 0.1);
}

.modal-media-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.modal-media-item:hover img { transform: scale(1.05); }

.modal-media-item video {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   7. NOTIFICATION TOAST
   -------------------------------------------------------------------------- */
.notification {
    position: fixed;
    top: 18px; right: 18px;
    background: var(--ink);
    color: var(--snow);
    padding: 10px 20px;
    border-radius: 7px;
    z-index: 3000;
    font-size: 0.8rem;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 7px 26px rgba(0,0,0,0.18);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   8. ACCESSIBILITY
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE — TABLET (≤1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .reviews-section-wrapper { padding: 0 28px; }
    .reviews-section-inner  { padding: 2.2rem; }
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE — MOBILE (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .reviews-section-wrapper {
        padding: 0 14px;
        margin: 1.8rem auto;
    }

    .reviews-section-inner {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .reviews-heading-row { margin-bottom: 1.6rem; }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.2rem 1.4rem;
    }

    .overall-rating {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        min-width: unset;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: 1rem;
    }

    .rating-score { font-size: 2.8rem; }

    .reviews-summary::after { display: none; }

    .reviews-list { grid-template-columns: 1fr; }

    .review-card { padding: 1.1rem; }

    /* Mobile modal: sheet from bottom */
    #reviewModal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh;
        padding: 1.8rem 1.3rem calc(1.4rem + env(safe-area-inset-bottom));
        animation: modalSlideUpMobile 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideUpMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .modal-author { font-size: 1.15rem; }

    .modal-media {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .load-more-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE — SMALL MOBILE (≤480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .reviews-section-inner { padding: 1rem; }

    .review-image,
    .review-video-thumb { width: 46px; height: 46px; }

    .filter-btn { padding: 7px 12px; font-size: 0.6rem; }

    .reviews-main-title { font-size: 1.35rem; }
}

