/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    --primary:      #1a1a2e;
    --primary-light:#16213e;
    --accent:       #c9a84c;
    --accent-light: #e2c97e;
    --accent-dark:  #a0842d;
    --text:         #2d3748;
    --text-light:   #718096;
    --text-muted:   #a0aec0;
    --bg:           #f7f8fa;
    --card-bg:      #ffffff;
    --border:       #e2e8f0;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
    --shadow:       0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
    --radius:       10px;
    --radius-lg:    16px;
    --transition:   0.25s ease;
    --header-h:     72px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Container ──────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ─── Top Bar ─────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--primary);
    color: rgba(255,255,255,.7);
    font-size: .75rem;
    padding: 6px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 42px;
    height: 42px;
    color: var(--accent);
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.02em;
}
.logo-sub { display: block; font-size: .68rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }

.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
    flex: 1;
    padding: 9px 18px;
    font-size: .9rem;
    border: none;
    outline: none;
    background: transparent;
}
.header-search button {
    padding: 0 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}
.header-search button svg { width: 18px; height: 18px; }
.header-search button:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* ─── Main Nav ────────────────────────────────────────────────────────────── */
.main-nav {
    background: var(--primary);
}
.nav-list {
    display: flex;
    align-items: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block;
    padding: 13px 20px;
    color: rgba(255,255,255,.85);
    font-size: .875rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--accent); }
.nav-list .has-dropdown:hover .dropdown { display: block; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 8px 0;
    border-top: 2px solid var(--accent);
}
.dropdown li a {
    display: block;
    padding: 9px 18px;
    font-size: .875rem;
    color: var(--text);
    transition: background var(--transition);
}
.dropdown li a:hover { background: var(--bg); color: var(--accent); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: .8rem;
    color: var(--text-muted);
}
.breadcrumb ol { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: '›'; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); white-space: nowrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--accent-light);
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.4); }
.btn-outline {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
    background: var(--primary);
    color: #fff;
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: .8rem; }

/* ─── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 20px;
    flex-wrap: wrap;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
}
.section-title span { color: var(--accent); }
.section-sub {
    font-size: .9rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ─── Category Cards ─────────────────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.cat-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.cat-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 1.4rem;
}
.cat-card h3 { font-size: .9rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.cat-card span { font-size: .78rem; color: var(--text-muted); }

/* ─── Product Grid ───────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent);
}
.product-card-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg);
}
.product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-thumb img { transform: scale(1.05); }
.badge-360 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--accent);
    font-size: .65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50px;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.badge-360 svg { width: 12px; height: 12px; }
.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50px;
    letter-spacing: .06em;
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category {
    font-size: .72rem;
    color: var(--accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.product-card-body h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 6px;
}
.product-card-body p {
    font-size: .8rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-sku { font-size: .72rem; color: var(--text-muted); }
.btn-view {
    background: var(--primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 50px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-view svg { width: 14px; height: 14px; }
.btn-view:hover { background: var(--accent); transform: none; }

/* ─── 360° Viewer ────────────────────────────────────────────────────────── */
.viewer360-outer {
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
/*
 * padding-bottom trick: height = 100% of width → 1:1 square.
 * Works in ALL browsers (no aspect-ratio dependency).
 * All children are absolute-filled inside this box.
 */
.viewer360-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f8f8;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.viewer360-container:active { cursor: grabbing; }

/* Every direct child fills the container */
.viewer360-container > * {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Loading: flex-centered overlay */
.v360-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #f8f8f8;
    color: var(--text-light);
}

/* Image fills box, object-fit keeps it inside without cropping */
.v360-image {
    display: none;
    object-fit: contain;
    object-position: left center;
    background: #f8f8f8;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Hint: override the fill-container rule via higher specificity */
.viewer360-container > .v360-hint {
    width: auto;
    height: auto;
    top: auto;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}
.v360-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.v360-loading-text { font-size: .85rem; font-weight: 500; }
.v360-progress-bar-outer {
    width: 140px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.v360-progress-bar-inner {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.2s ease;
    width: 0%;
}
.v360-hint {
    background: rgba(26,26,46,.75);
    color: #fff;
    font-size: .78rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.v360-hint svg { width: 16px; height: 16px; }
.v360-hint.hidden { opacity: 0; }

.viewer360-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--primary);
    gap: 10px;
}
.v360-controls { display: flex; gap: 8px; align-items: center; }
.v360-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.v360-btn:hover { background: rgba(255,255,255,.2); }
.v360-btn.active { background: var(--accent); color: #fff; }
.v360-btn svg { width: 17px; height: 17px; }
.v360-frame-info {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
    font-family: monospace;
}
.v360-scrubber {
    flex: 1;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.2);
    outline: none;
    cursor: pointer;
    max-width: 200px;
}
.v360-scrubber::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* ─── Product Detail ─────────────────────────────────────────────────────── */
.product-page { padding: 40px 0 60px; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-info { }
.product-info-category {
    font-size: .78rem;
    color: var(--accent-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}
.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 12px;
}
.product-info-sku { font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }
.product-info-sku strong { color: var(--text); }
.product-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.product-info-desc {
    font-size: .95rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 24px;
}
.product-specs { margin-bottom: 24px; }
.product-specs h3 { font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 8px 0; font-size: .875rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table td:first-child { color: var(--text-light); width: 40%; }
.spec-table td:last-child { font-weight: 500; color: var(--text); }
.product-frame-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,.1);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--accent-dark);
    font-size: .8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

/* ─── Filters / Toolbar ──────────────────────────────────────────────────── */
.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    background: #fff;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.products-count { font-size: .875rem; color: var(--text-light); }
.products-count strong { color: var(--text); }
.products-sort select {
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 7px 12px;
    font-size: .85rem;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.products-sort select:focus { border-color: var(--accent); }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination-nav { margin-top: 48px; display: flex; justify-content: center; }
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
}
.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--text);
    background: #fff;
    transition: all var(--transition);
}
.page-item .page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled .page-link { opacity: .4; pointer-events: none; }

/* ─── Search Page ─────────────────────────────────────────────────────────── */
.search-header {
    background: var(--primary);
    padding: 40px 0;
    color: #fff;
    text-align: center;
}
.search-header h1 { font-size: 1.6rem; font-weight: 600; margin-bottom: 16px; }
.search-form-big {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.search-form-big:focus-within { border-color: var(--accent); }
.search-form-big input {
    flex: 1;
    padding: 14px 22px;
    background: transparent;
    color: #fff;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
}
.search-form-big input::placeholder { color: rgba(255,255,255,.5); }
.search-form-big button {
    padding: 0 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    font-family: inherit;
    transition: background var(--transition);
}
.search-form-big button:hover { background: var(--accent-dark); }

/* ─── No Results ─────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 20px; opacity: .3; }
.empty-state h3 { font-size: 1.2rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; }

/* ─── Related Products ───────────────────────────────────────────────────── */
.related-section { padding: 48px 0; background: var(--bg); border-top: 1px solid var(--border); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); margin-top: auto; }
.footer-top { padding: 56px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-logo .logo-name { color: #fff; display: block; font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 4px; }
.footer-logo .logo-sub { color: var(--accent); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.footer-col p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,.15);
    border: 1px solid rgba(201,168,76,.3);
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: 16px;
}
.footer-badge svg { width: 16px; height: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(201,168,76,.12);
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent-dark);
    border: 1px solid rgba(201,168,76,.25);
}

/* ─── Mobile Responsive ──────────────────────────────────────────────────── */

/* Tablet (≤1024px) — keep 2 columns, just unstick the viewer */
@media (max-width: 1024px) {
    .product-layout { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .product-viewer-col { position: static !important; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; flex-basis: 100%; max-width: 100%; }
    .nav-toggle { display: flex; }

    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-list > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .dropdown {
        display: block;
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        border-radius: 0;
        border-top: none;
        padding: 0;
    }
    .dropdown li a { padding-left: 36px; color: rgba(255,255,255,.6); }
    .dropdown li a:hover { background: rgba(255,255,255,.05); color: var(--accent); }

    .hero { padding: 40px 0 32px; }
    .hero h1 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .hero p { font-size: .95rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .section { padding: 32px 0; }
    .section-header { margin-bottom: 24px; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .products-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* 360 Viewer */
    .product-viewer-col { position: static; width: 100%; }
    .viewer360-outer { border-radius: 10px; }
    /*
     * Product page: stack columns and keep the viewer fully responsive.
     * We override the square "padding-bottom" trick with an explicit height that
     * adapts to viewport size so it never overflows small screens.
     */
    .product-layout { grid-template-columns: 1fr; }
    .viewer360-outer {
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .viewer360-container {
        padding-bottom: 0;
        height: min(92vw, 480px);
        max-height: 70vh;
    }
    .viewer360-toolbar { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
    .v360-scrubber { max-width: 120px; }
    .v360-frame-info { display: none; }

    /* Product page */
    .product-page { padding: 20px 0 40px; }
    .product-layout { gap: 16px; }
    .product-info h1 { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }

    /* Frame strip */
    .frame-strip { gap: 6px; padding: 8px 0; }
    .frame-thumb { width: 46px; height: 46px; }

    /* Breadcrumb */
    .breadcrumb { font-size: .72rem; }
    .breadcrumb ol { flex-wrap: wrap; }
}

/* Small phones (≤640px) — single column, viewer capped at 340px */
@media (max-width: 640px) {
    .product-layout { grid-template-columns: 1fr; gap: 20px; }
    .product-viewer-col { position: static !important; width: 100%; }

    /* Cap viewer size so it doesn't fill the whole screen */
    .viewer360-outer {
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Very small phones (≤480px) */
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-card-body { padding: 12px; }
    .product-card-body h3 { font-size: .85rem; }
    .product-card-body p { display: none; }

    /* Viewer controls */
    .v360-btn { width: 30px; height: 30px; }
    .v360-btn svg { width: 14px; height: 14px; }
    .v360-scrubber { max-width: 80px; }
    .viewer360-toolbar { padding: 7px 8px; }
    .frame-thumb { width: 40px; height: 40px; }
}

/* ─── Logo (uploaded) ─────────────────────────────────────────────────────── */
.logo--image .logo-img-wrap { display: flex; align-items: center; max-height: 52px; }
.logo--image .logo-img { max-height: 52px; width: auto; max-width: 200px; object-fit: contain; }

/* ─── Front flash (contact form) ───────────────────────────────────────────── */
.flash-front-wrap { padding: 12px 20px 0; }
.flash-front { padding: 12px 16px; border-radius: var(--radius); font-size: .875rem; margin-bottom: 8px; }
.flash-front-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #166534; }
.flash-front-info { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #1e40af; }
.flash-front-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #991b1b; }

/* ─── Static / Contact pages ──────────────────────────────────────────────── */
.static-page-inner { max-width: 820px; }
.static-page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3.5vw, 2.25rem); color: var(--primary); margin-bottom: 8px; }
.static-page-body { font-size: .95rem; line-height: 1.75; color: var(--text); margin-top: 16px; }
.contact-intro { font-size: .95rem; color: var(--text-light); margin-top: 8px; max-width: 640px; line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.card-static { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-static h2 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; }
.contact-form .form-row { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.contact-form .req { color: #c53030; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: inherit; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn-primary { margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error-banner { background: rgba(229,62,62,.1); border: 1px solid rgba(229,62,62,.35); color: #9b2c2c; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: .9rem; }
.contact-map-embed { position: relative; width: 100%; padding-bottom: 70%; height: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.contact-map-embed .contact-map-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ─── WhatsApp floating button ───────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .45);
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(37, 211, 102, .55); color: #fff; }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 768px) {
    .whatsapp-float { width: 52px; height: 52px; left: 14px; bottom: 14px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
