/* =================================================
   ROOT VARIABLES & GLOBAL RESET
   ================================================= */
:root {
    /* Primary colour vars are injected by base.html AFTER this file loads.
       Only static, never-changing vars live here. */
    --bg:            #f4f8fb;
    --surface:       #ffffff;
    --surface-2:     #eaf3fa;
    --glass-bg:      rgba(255,255,255,0.75);
    --blur:          blur(20px);
    --text:          #1a1a2e;
    --text-muted:    #5a6a7a;
    --text-light:    #9badb8;
    --border:        #d0e6f5;
    --transition:    0.3s ease;
    /* Safe fallbacks — overridden by base.html theme-override block */
    --primary:       #2B9FD8;
    --primary-dark:  #1a7ab0;
    --primary-light: #e8f5fd;
    --glass-border:  rgba(43,159,216,0.18);
    --shadow:        0 4px 24px rgba(43,159,216,0.10);
    --shadow-hover:  0 8px 32px rgba(43,159,216,0.22);
    --hero-font:     system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--hero-font, 'Segoe UI', Arial, sans-serif);
}

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

/* =================================================
   FADE-IN ANIMATION
   ================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.show { opacity: 1; transform: translateY(0); }

/* =================================================
   HEADER & NAVIGATION
   ================================================= */
header {
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    gap: 20px;
    box-shadow: 0 2px 16px rgba(43,159,216,0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.logo-container h1,
.logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-container img { height: 50px; width: auto; }

.floating-cart {
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}

/* Hamburger */
.menu-toggle { display: none; }

.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    order: -1;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: none;
    flex-direction: column;
    background: var(--surface);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(43,159,216,0.10);
}

.nav-menu a {
    padding: 15px 0;
    display: block;
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-menu a:hover { color: var(--primary); }

.menu-toggle:checked ~ .nav-menu { display: flex; }
.menu-toggle:checked + .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle:checked + .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* product.html navbar */
header.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 70px;
}
header.navbar .logo img { height: 50px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text); text-decoration: none; transition: var(--transition); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }


/* =================================================
   HERO SECTION
   ================================================= */
.hero {
    text-align: center;
    padding: 60px 5% 20px;
    background: linear-gradient(160deg, #e8f5fd 0%, #f4f8fb 60%);
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
}

.hero-text { width: 25%; z-index: 2; text-align: left; }

.hero-text h2 {
    color: var(--primary);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

#sneaker-container {
    width: 550px;
    height: 460px;
    flex-shrink: 0;
    z-index: 1;
}

#sneaker-container canvas {
    filter: drop-shadow(0 40px 80px rgba(43,159,216,0.25));
}


/* =================================================
   BRAND TILES SECTION
   ================================================= */
.collections-section { padding: 20px 5% 40px; }

.brand-tiles-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease,
                background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.brand-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(43,159,216,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.brand-tile:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    background: var(--primary-light);
}

.brand-tile-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(43,159,216,0.10);
    padding: 8px;
    overflow: hidden;
    background: #fff;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-tile-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.2;
}

.brand-tile-arrow {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
}

.brand-tile:hover .brand-tile-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.section-title {
    width: 100%;
    text-align: center;
    color: var(--primary);
    margin: 50px 0 20px;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* =================================================
   PRODUCT GRID & CARDS
   ================================================= */
.shop-section { padding: 0 5% 60px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 45vw), 1fr));
    gap: 24px;
    padding: 20px 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card img {
    height: 160px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 8px;
    background: var(--surface-2);
    padding: 8px;
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.brand-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
    color: var(--text);
}

.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    margin: 4px 0;
}

.card button {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}


/* =================================================
   PRODUCT DETAILS PAGE
   ================================================= */
.product-page {
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    background: var(--bg);
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-image { flex: 1; min-width: 280px; }

.product-image img {
    width: 100%;
    border-radius: 14px;
    background: var(--surface-2);
    padding: 16px;
    filter: drop-shadow(0 16px 36px rgba(43,159,216,0.15));
}

.product-info { flex: 1; min-width: 280px; }

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--text);
}

/* Product page rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}

.stars { display: flex; gap: 2px; }
.star  { line-height: 1; }
.star-full  { color: #f5a623; }
.star-half  { color: #f5a623; opacity: 0.6; }
.star-empty { color: #cde0ee; }
.star-lg { font-size: 1.4rem; }
.star-sm { font-size: 0.82rem; }

.rating-score {
    font-size: 1rem;
    font-weight: 700;
    color: #f5a623;
}

.rating-count {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Card mini rating */
.card-rating { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.card-rating-score { font-size: 0.75rem; color: var(--text-light); }

.product-info .description {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 16px 0;
    font-size: 0.95rem;
    border-left: 2px solid var(--primary);
    padding-left: 14px;
}

.product-info label { font-size: 0.9rem; color: var(--text-muted); }

/* =================================================
   COLOR SWATCHES
   ================================================= */
.color-section {
    margin: 16px 0 4px;
}

.color-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.color-label span {
    color: var(--primary);
    font-weight: 700;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--swatch-color);
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-swatch:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 12px rgba(43,159,216,0.25);
}

.color-swatch.active {
    border-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(43,159,216,0.2), 0 4px 12px rgba(43,159,216,0.2);
}

/* Light swatches need a visible border on white bg */
.color-swatch.color-swatch-light {
    border-color: var(--border);
}

.color-swatch.color-swatch-light.active {
    border-color: var(--primary);
}

/* Smooth image transition on color change */
.product-image img {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#size-select { display: none; }

.product-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.buy-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.btn-buynow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 2px solid transparent;
}
.btn-buynow:hover { opacity: 0.92; }


/* =================================================
   SIMILAR PRODUCTS SECTION
   ================================================= */
.similar-section {
    padding: 20px 5% 60px;
    max-width: 1300px;
    margin: 0 auto;
    background: var(--bg);
}

.similar-header { text-align: center; margin-bottom: 10px; }

.similar-title {
    font-size: 1.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.similar-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 8px auto 0;
    border-radius: 2px;
}

.similar-subtitle {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.similar-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 20px 0 !important;
}

@media (max-width: 1024px) {
    .similar-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .similar-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .similar-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .similar-grid { grid-template-columns: repeat(2, 1fr) !important; }
}


/* =================================================
   FOOTER & WHATSAPP
   ================================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    z-index: 999;
    transition: transform 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); }

footer {
    padding: 50px 5%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-grid h3 { color: var(--primary); margin-bottom: 12px; font-size: 1rem; }
.footer-grid p  { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a  { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--primary); }

.footer-grid input {
    width: 100%;
    padding: 10px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    margin-bottom: 10px;
    outline: none;
}
.footer-grid input:focus { border-color: var(--primary); }

.footer-grid button {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}
.footer-grid button:hover { background: var(--primary-dark); }

.copyright { text-align: center; color: var(--text-light); font-size: 0.85rem; margin-top: 10px; }


/* =================================================
   TOAST
   ================================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--surface);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
    box-shadow: var(--shadow-hover);
}
.toast.show { transform: translateX(-50%) translateY(0); }


/* =================================================
   RESPONSIVE — TABLET (max 1024px)
   ================================================= */
@media (max-width: 1024px) {
    .brand-tiles-grid { grid-template-columns: repeat(4, 1fr); }
    #sneaker-container { width: 420px; height: 360px; }
    .hero-text h2 { font-size: 2rem; }
}


/* =================================================
   RESPONSIVE — MOBILE (max 768px)
   ================================================= */
@media (max-width: 768px) {
    .hero { padding: 30px 4% 10px; }
    .hero-layout { flex-direction: column; gap: 10px; }
    .hero-text.left, .hero-text.right { display: none; }
    #sneaker-container { width: 100%; height: 360px; }

    .brand-tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .brand-tile { padding: 14px 8px 12px; gap: 7px; }
    .brand-tile-name { font-size: 0.7rem; }
    .brand-tile-arrow { display: none; }

    /* Lock to exactly 2 columns on all mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 10px 0;
    }
    .card { padding: 12px; }
    .card img { height: 120px; }
    .card-info h3 { font-size: 0.82rem; }
    .price { font-size: 0.95rem; }
    .card button { padding: 8px; font-size: 0.8rem; }

    .section-title { font-size: 22px; margin: 30px 0 10px; letter-spacing: 1px; }

    .product-container { flex-direction: column; padding: 24px; gap: 24px; }
    .product-info h1 { font-size: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .whatsapp-btn { width: 46px; bottom: 20px; right: 16px; }
    header { padding: 0 4%; gap: 12px; }
    .logo-container h1 { font-size: 1.2rem; }
}


/* =================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ================================================= */
@media (max-width: 480px) {
    .brand-tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    /* Still 2 columns, smaller gap */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .card img { height: 100px; }
    .card-info h3 { font-size: 0.78rem; }
    .price { font-size: 0.88rem; }

    #sneaker-container { height: 320px; }
}

/* ── HERO FONT (set from admin) ── */
.hero-headline, .hero-eyebrow, .hero-sub, .hero-cta {
    font-family: var(--hero-font, system-ui, sans-serif);
}

/* =================================================
   GLOBAL SEARCH BAR (in header)
   ================================================= */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search-input {
    padding: 7px 34px 7px 12px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.82rem;
    outline: none;
    background: var(--bg);
    color: var(--text);
    width: 36px;
    transition: border-color 0.2s, width 0.35s ease, background 0.2s;
    cursor: pointer;
}

.header-search-input:focus,
.header-search-input:not(:placeholder-shown) {
    border-color: var(--primary);
    width: 200px;
    background: var(--surface);
    cursor: text;
}

.header-search-input::placeholder { color: transparent; }
.header-search-input:focus::placeholder { color: var(--text-light); }

.header-search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0;
    line-height: 1;
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow: hidden;
    display: none;
}

.search-dropdown.open { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--text);
}

.search-result-item:hover { background: var(--surface-2); }

.search-result-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--surface-2);
    flex-shrink: 0;
}

.search-result-info { display: flex; flex-direction: column; gap: 2px; }
.search-result-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.search-result-brand { font-size: 0.74rem; color: var(--text-light); }
.search-result-price { font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-left: auto; flex-shrink: 0; }

.search-no-results {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    /* On mobile, search icon only by default */
    .header-search-input {
        width: 36px;
        padding: 7px 34px 7px 10px;
    }

    /* When focused on mobile — expand as full-width overlay bar */
    .header-search-input:focus {
        position: fixed;
        top: 0; left: 0; right: 0;
        width: 100% !important;
        height: 60px;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid var(--primary);
        padding: 0 44px 0 16px;
        font-size: 1rem;
        z-index: 2001;
        background: var(--surface);
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    /* Move search button to fixed position when input is focused */
    .header-search:focus-within .header-search-btn {
        position: fixed;
        top: 16px;
        right: 14px;
        z-index: 2002;
        font-size: 1.1rem;
        pointer-events: auto;
    }

    /* Dropdown full width on mobile */
    .header-search:focus-within .search-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 12px 12px;
        z-index: 2000;
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* =================================================
   DEAL PRICE & OFFER TAG (product cards)
   ================================================= */
.deal-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 2px 0;
}

.deal-original {
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.deal-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    background: #fff0f0;
    color: #e53e3e;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.deal-tag.deal-tag-green {
    background: #f0fff4;
    color: #276749;
}

.product-page .deal-wrap {
    margin: 8px 0 4px;
}

.product-page .deal-original {
    font-size: 1rem;
}

.product-page .deal-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
}

/* =================================================
   PRODUCT PAGE — SIZE CHIPS (replaces select dropdown)
   ================================================= */
.size-section { margin: 16px 0 20px; }

.size-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.size-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.size-unit-label {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.size-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-chip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 9px 11px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
    position: relative;
    gap: 2px;
}

.size-chip-btn:hover:not(.oos):not(.selected) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.size-chip-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.size-chip-btn.oos {
    opacity: 0.35;
    cursor: not-allowed;
}

/* UK label — always visible unless unit=euro */
.size-chip-uk {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

/* EU label — smaller, below UK */
.size-chip-eu {
    font-size: 0.62rem;
    opacity: 0.65;
    line-height: 1;
    letter-spacing: 0.1px;
}

.size-chip-btn.selected .size-chip-eu { opacity: 0.88; }

/* Stock dot for low inventory */
.size-chip-btn .stock-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5a623;
}

/* Hidden input that holds the selected UK value */
#size-select { display: none; }

/* =================================================
   PRODUCT SPECIFICATIONS
   ================================================= */
.product-specs {
    margin: 16px 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.specs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: var(--surface-2);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.specs-header:hover { background: var(--primary-light); }

.specs-arrow {
    font-size: 0.9rem;
    transition: transform 0.25s;
    color: var(--text-muted);
}

.specs-body {
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.3s ease;
}

.specs-body.collapsed { max-height: 0; }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.specs-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--border);
}

.spec-key {
    padding: 9px 16px;
    color: var(--text-muted);
    font-weight: 600;
    width: 40%;
    background: var(--surface);
}

.spec-val {
    padding: 9px 16px;
    color: var(--text);
    background: var(--surface);
}
