:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-surface-alt: #f8fafc;
    --bg-topbar: #0f172a;
    --bg-header: #ffffff;
    --bg-filter: #ffffff;
    --bg-card: #ffffff;
    --bg-badge: #dbeafe;
    --bg-specs: #f8fafc;
    --bg-input: #ffffff;
    --bg-dropdown: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    --text-badge: #1d4ed8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --whatsapp: #25d366;
    --whatsapp-hover: #1da851;
    --success: #22c55e;
    --danger: #ef4444;
    --gold: #D4AF37;
    
    --header-height: 72px;
    --filter-height: 56px;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-hover: #334155;
    --bg-surface-alt: #1e293b;
    --bg-topbar: #020617;
    --bg-header: #1e293b;
    --bg-filter: #1e293b;
    --bg-card: #1e293b;
    --bg-badge: #1e3a5f;
    --bg-specs: #0f172a;
    --bg-input: #0f172a;
    --bg-dropdown: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --text-badge: #60a5fa;
    
    --border-color: #334155;
    --border-light: #1e293b;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a5f;
    --gold: #fbbf24;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--header-height);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

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

ul {
    list-style: none;
}

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

.ad-section {
    padding: 20px 0;
    text-align: center;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 44px;
    touch-action: manipulation;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-whatsapp:disabled:hover {
    background: var(--whatsapp);
    box-shadow: none;
    transform: none !important;
}

/* ---------- HEADER ---------- */
header {
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-family: 'Outfit', sans-serif;
    gap: 0px;
}

.logo-brand {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, var(--accent) 0%, #7c3aed 45%, #ec4899 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.4s ease;
}

.logo:hover .logo-brand {
    background-position: right center;
}

.logo-tagline {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.logo-wati {
    color: var(--accent);
    font-weight: 700;
    -webkit-text-fill-color: var(--accent);
}

.logo:hover .logo-tagline {
    color: var(--text-secondary);
}

/* ---------- HAMBURGER MENU ---------- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.hamburger-menu:hover .hamburger-line {
    background: var(--accent);
}

/* ---------- NAV OVERLAY ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 4px 0;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    min-height: 36px;
    touch-action: manipulation;
}

.account-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.account-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.dropdown-menu .dropdown-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.dropdown-menu .dropdown-header .welcome-text {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.dropdown-menu .dropdown-header .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.dropdown-menu .dropdown-item i {
    width: 18px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.dropdown-menu .btn-login-dropdown {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
    text-decoration: none;
}

.dropdown-menu .btn-login-dropdown:hover {
    background: var(--accent-hover);
}

.dropdown-menu .btn-register-dropdown {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-menu .btn-register-dropdown:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent);
}

.dropdown-menu .dropdown-footer-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 10px;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0;
    touch-action: manipulation;
}

.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(20deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--bg-surface-hover);
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    padding: 24px 0 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.page-header p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* Active filter note */
.page-header .active-filter-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-header .active-filter-note i {
    color: var(--accent);
    margin-right: 4px;
}

.page-header .active-filter-note a {
    color: var(--accent);
    text-decoration: underline;
    margin-left: 8px;
    font-weight: 500;
}

.page-header .active-filter-note a:hover {
    color: var(--accent-hover);
}

/* ============================================================
   SHOP IPHONE DROPDOWN (page header, right corner)
   ============================================================ */
.shop-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 18px;
    float: right;
    clear: both;
    z-index: 60;
}

.shop-dropdown-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}

.shop-dropdown-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.shop-dropdown-btn i:first-child {
    font-size: 0.95rem;
}

.shop-dropdown-btn .chevron {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.shop-dropdown-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* DEFAULT: hidden. display:none so nothing can override it */
.shop-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    max-height: 340px;
    overflow-y: auto;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin: 0;
    list-style: none;
    z-index: 1000;
}

/* ONLY shown when JS adds .open */
.shop-dropdown-menu.open {
    display: block;
}

.shop-dropdown-menu li {
    margin: 0;
    list-style: none;
}

.shop-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.shop-dropdown-menu a i {
    width: 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.shop-dropdown-menu a:hover {
    background: var(--bg-surface-hover);
    color: var(--accent);
}

.shop-dropdown-menu a:hover i {
    color: var(--accent);
}

.shop-dropdown-menu a.active-filter {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.shop-dropdown-menu a.active-filter i {
    color: #fff;
}

.shop-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 4px;
    padding: 0;
    pointer-events: none;
}

/* Slim scrollbar */
.shop-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.shop-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 999px;
}

.shop-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ---------- PRODUCT GRID ---------- */
#catalog {
    padding: 24px 0 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.product-card .image-wrapper {
    background: var(--bg-surface-alt);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
    position: relative;
}

.product-card .image-wrapper img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.02);
}

.product-card .badge {
    display: inline-block;
    background: var(--bg-badge);
    color: var(--text-badge);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
    transition: background 0.3s ease, color 0.3s ease;
}

.product-card .badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .product-card .badge.out-of-stock {
    background: #7f1d1d;
    color: #fca5a5;
}

.product-card .badge.condition-new {
    background: #dcfce7;
    color: #16a34a;
}

.product-card .badge.condition-pre-owned {
    background: #fef3c7;
    color: #d97706;
}

[data-theme="dark"] .product-card .badge.condition-new {
    background: #064e3b;
    color: #86efac;
}

[data-theme="dark"] .product-card .badge.condition-pre-owned {
    background: #78350f;
    color: #fbbf24;
}

.product-card .info {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .info .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.product-card .info .storage {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 2px 0 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.product-card .info .storage span {
    background: var(--bg-surface-hover);
    padding: 0 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.product-card .info .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin: 4px 0 2px;
    transition: color 0.3s ease;
}

/* ---------- COLOR SWATCHES ---------- */
.color-swatches {
    display: flex;
    gap: 6px;
    margin: 6px 0 10px;
    flex-wrap: wrap;
}

.color-swatches .swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-block;
    transition: all 0.25s ease;
    cursor: default;
    touch-action: manipulation;
    flex-shrink: 0;
}

.color-swatches .swatch:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

/* ---------- PRODUCT SPECS ---------- */
.product-card .info .specs-toggle {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 10px;
    background: none;
    border: none;
    padding: 4px 0;
    transition: color 0.3s ease;
    touch-action: manipulation;
    font-family: 'Inter', sans-serif;
}

.product-card .info .specs-toggle:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.product-card .info .specs-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-specs);
    padding: 10px 12px;
    border-radius: 6px;
    margin: 4px 0 14px;
    display: none;
    border-left: 3px solid var(--accent);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

.product-card .info .specs-details.show {
    display: block;
}

.product-card .info .specs-details i {
    width: 16px;
    color: var(--accent);
    margin-right: 6px;
}

/* ---------- ACTIONS ---------- */
.product-card .info .actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.product-card .info .actions .btn {
    flex: 1;
    min-width: 70px;
    text-align: center;
    font-size: 0.75rem;
    padding: 8px 12px;
    min-height: 38px;
}

.product-card .info .actions .btn-whatsapp {
    flex: 1;
}

.product-card .info .actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- HOW TO ORDER ---------- */
#how {
    padding: 40px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

#how h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: color 0.3s ease;
    text-align: center;
}

.how-steps {
    display: flex;
    justify-content: center;
    gap: 20px 30px;
    flex-wrap: wrap;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.how-step .step-number {
    background: var(--accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 58px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo-brand {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.5rem;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background: var(--bg-dropdown);
        box-shadow: var(--shadow-lg);
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    nav ul li a:hover {
        background: var(--bg-surface-hover);
    }
    
    .account-dropdown {
        width: 100%;
    }
    
    .account-btn {
        width: 100%;
        padding: 12px 16px;
        justify-content: flex-start;
        border-radius: 8px;
        font-size: 0.95rem;
    }
    
    .account-btn:hover {
        background: var(--bg-surface-hover);
    }
    
    .dropdown-menu {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 8px 0 8px 16px;
        background: transparent;
    }
    
    .dropdown-menu.show {
        display: block;
        animation: none;
    }
    
    .dropdown-menu .dropdown-header {
        padding-bottom: 8px;
    }
    
    .theme-toggle {
        margin-top: 4px;
        width: 100%;
        border-radius: 8px;
        padding: 12px 16px;
        justify-content: center;
        height: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    
    .color-swatches .swatch {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    /* Shop dropdown: full width, stacked below the paragraph */
    .shop-dropdown-wrapper {
        float: none;
        display: block;
        width: 100%;
        margin-top: 14px;
    }

    .shop-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .shop-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 54px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    header .container {
        flex-wrap: nowrap;
    }
    
    .logo img {
        height: 26px;
    }
    
    .logo-brand {
        font-size: 0.9rem;
    }
    
    .logo-tagline {
        font-size: 0.45rem;
        letter-spacing: 0.08em;
    }
    
    nav {
        width: 260px;
        padding: 56px 16px 16px;
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .account-btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .page-header h1 {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-card .image-wrapper {
        min-height: 100px;
        padding: 8px;
    }
    
    .product-card .image-wrapper img {
        max-height: 90px;
    }
    
    .product-card .info {
        padding: 10px 10px 14px;
    }
    
    .product-card .info .product-name {
        font-size: 0.75rem;
    }
    
    .product-card .info .storage {
        font-size: 0.65rem;
        gap: 4px;
    }
    
    .product-card .info .storage span {
        padding: 0 6px;
    }
    
    .product-card .info .price {
        font-size: 0.95rem;
    }
    
    .color-swatches .swatch {
        width: 20px;
        height: 20px;
    }
    
    .product-card .info .specs-toggle {
        font-size: 0.65rem;
    }
    
    .product-card .info .specs-details {
        font-size: 0.65rem;
        padding: 8px 10px;
    }
    
    .product-card .info .actions {
        gap: 6px;
    }
    
    .product-card .info .actions .btn {
        font-size: 0.6rem;
        padding: 4px 8px;
        min-height: 30px;
        min-width: 50px;
    }
    
    .product-card .badge {
        font-size: 0.5rem;
        padding: 1px 8px;
    }
    
    .how-step {
        font-size: 0.7rem;
        gap: 6px;
    }
    
    .how-step .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .whatsapp-float {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }
    
    .dropdown-menu {
        right: -10px;
        min-width: 160px;
        padding: 10px;
    }
    
    .dropdown-menu .dropdown-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .shop-dropdown-btn {
        font-size: 0.8rem;
        padding: 9px 12px;
    }

    .shop-dropdown-menu a {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .product-card .image-wrapper {
        min-height: 80px;
        padding: 6px;
    }
    
    .product-card .image-wrapper img {
        max-height: 70px;
    }
    
    .product-card .info {
        padding: 8px 8px 12px;
    }
    
    .product-card .info .product-name {
        font-size: 0.65rem;
    }
    
    .product-card .info .price {
        font-size: 0.8rem;
    }
    
    .color-swatches .swatch {
        width: 16px;
        height: 16px;
    }
    
    .product-card .info .actions .btn {
        font-size: 0.55rem;
        padding: 3px 6px;
        min-height: 26px;
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ---------- UTILITY ---------- */
.text-center {
    text-align: center;
}
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
/* ===== VIEW DETAILS BUTTON ===== */
.btn-view-details {
    background: var(--accent);
    color: #fff;
    flex: 1;
    width: 100%;
}

.btn-view-details:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Clickable product card elements */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.product-name-link:hover {
    color: var(--accent);
}

/* ============================================================
   HERO SECTION (replaces .page-header on the homepage)
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0 40px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 32px;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    max-width: 14ch;
    transition: color 0.3s ease;
}

.hero-sub {
    margin-top: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 48ch;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn-hero-primary {
    background: var(--accent);
    color: #fff;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.trust-item i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Decorative color-dot cluster, echoes the product color swatches */
.hero-visual {
    position: relative;
    height: 220px;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 60% 40%, rgba(37, 99, 235, 0.18), transparent 60%);
    border-radius: 50%;
    z-index: 0;
}

.hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 70%;
    max-height: 70%;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    opacity: 0;
    animation: logoIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

@keyframes logoIn {
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo { animation: none; opacity: 1; transform: translateY(-50%) scale(1); }
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(circle at 60% 40%, rgba(59, 130, 246, 0.22), transparent 60%);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        height: 140px;
        order: -1;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 32px 0 28px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
        max-width: none;
    }
    .hero-actions .btn {
        flex: 1 1 auto;
        min-width: 140px;
    }
    .trust-strip {
        gap: 10px 16px;
    }
    .trust-item {
        font-size: 0.75rem;
    }
}


/* ============================================================
   BADGE ROW (trust + condition + stock badges together)
   ============================================================ */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.badge-row .badge {
    margin-bottom: 0;
}

.badge-trust i {
    margin-right: 2px;
    font-size: 0.55rem;
}