/* =============================================
    Sebez - Main Stylesheet
    Premium Light Blue + Off-White Theme
    ============================================= */

/* CSS Variables */
:root {
    --color-bg: #d9dbe4;
    --color-bg-secondary: #c3cbd6;
    --color-bg-tertiary: #dcdde9;
    --color-surface: #bfdbfe;
    --color-surface-hover: #dbeafe;
    --color-text: #1e3a5f;
    --color-text-secondary: #4a7aab;
    --color-text-dark: #0f2a4a;
    --color-text-muted: #6b8fb5;
    --color-border: rgba(96, 165, 250, 0.18);
    --color-border-dark: #bfdbfe;
    --color-accent: #3b82f6;
    --color-accent-hover: #2563eb;
    --color-success: #16a34a;
    --color-warning: #f59e0b;
    --color-danger: #dc2626;
    --color-info: #0284c7;
    --color-purple: #6366f1;
    --color-sale: #ef4444;
    --color-new: #22c55e;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 12px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 8px 24px rgba(59, 130, 246, 0.13);
    --shadow-lg: 0 12px 40px rgba(59, 130, 246, 0.18);
    --shadow-glass: 0 10px 30px rgba(219, 234, 254, 0.6);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --navbar-height: 72px;
    --container-max: 1400px;
    --glass-bg: rgba(240, 246, 255, 0.82);
    --glass-border: rgba(96, 165, 250, 0.20);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-surface);
    color: var(--color-text-dark);
    border-color: var(--color-surface);
}

.btn-dark {
    background: var(--color-text-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.btn-icon:hover {
    background: var(--glass-bg);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-info);
}

.badge-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    /* CSS fallback: auto-hide after 3.5s even if JS fails */
    animation: loaderAutoHide 0.4s ease forwards 3.5s;
}

/* CSS-only auto-hide animation — ultimate fallback */
@keyframes loaderAutoHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    font-size: 14px;
    max-width: 360px;
}

.toast-success {
    border-left: 3px solid var(--color-success);
}

.toast-error {
    border-left: 3px solid var(--color-danger);
}

.toast-info {
    border-left: 3px solid var(--color-info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Flash Message */
.flash-message {
    position: fixed;
    top: var(--navbar-height);
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    z-index: 9998;
    font-size: 14px;
    animation: fadeDown 0.3s ease;
}

.flash-success {
    background: var(--color-success);
    color: #fff;
}

.flash-error {
    background: var(--color-danger);
    color: #fff;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    margin-left: 12px;
    font-size: 18px;
    cursor: pointer;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-base);
    background: #dbeafe;
}

.navbar.scrolled {
    background: #dbeafe;
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.10);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* NO position:relative here — keeps .navbar as the positioning parent */
}

.navbar-logo {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Legacy fallback */
.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-text-dark);
}

/* ── Sebez Brand Logo ── */
.sebez-logo-wrap {
    text-decoration: none !important;
}

.sebez-logo {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    line-height: 1;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.sebez-logo-wrap:hover .sebez-logo {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.sebez-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.40);
    margin-right: 6px;
    flex-shrink: 0;
    transition: box-shadow var(--transition-fast);
}

.sebez-logo-wrap:hover .sebez-logo-icon {
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.55);
}

.sebez-logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 5px;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 60%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

/*
 * ABSOLUTE-CENTER NAV
 * .navbar is position:fixed and full viewport width.
 * By anchoring left:0 + right:0 + height:100% on .navbar-nav,
 * it stretches across the full screen.
 * display:flex + justify-content:center then places the links
 * at the exact mathematical center of the viewport — always.
 */
.navbar-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    /* let clicks pass through to logo/icons behind */
}

.navbar-nav .nav-list {
    display: flex;
    gap: 8px;
    pointer-events: auto;
    /* re-enable clicks on the actual nav items */
}

.navbar-nav .nav-link,
.navbar-nav .nav-item-mega,
.navbar-nav .mega-menu {
    pointer-events: auto;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-secondary);
}

/* Mega Menu */
.nav-item-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 700px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav-item-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 24px;
}

.mega-menu-col h4 {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.mega-menu-col ul li a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-text);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mega-menu-col ul li a:hover {
    color: var(--color-text-secondary);
    padding-left: 4px;
}

.mega-menu-featured {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.mega-menu-featured p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 8px 0 16px;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    /* stay above the nav layer */
}

.icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: var(--color-surface);
    color: var(--color-text-dark);
    border-radius: var(--radius-full);
}

/* Search */
.search-wrapper {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 14px;
}

.search-form button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--glass-bg);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item .name {
    font-size: 13px;
    font-weight: 500;
}

.search-result-item .price {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* User Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
}

.user-dropdown a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--glass-bg);
}

/* Mobile Menu */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(191, 219, 254, 0.18);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--color-bg-secondary);
    padding: 24px;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-close {
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: 24px;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.hero-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    animation: fadeUp 0.8s ease;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-content .btn {
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: var(--radius-full);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: color var(--transition-fast);
}

.section-header .view-all:hover {
    color: var(--color-text-secondary);
}

.section-light {
    background: #f0f7ff;
    color: var(--color-text-dark);
}

.section-light .section-header p {
    color: var(--color-text-muted);
}

/* =============================================
   PRODUCT GRID & CARDS
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-bg-secondary);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    z-index: 2;
}

.badge-sale {
    background: var(--color-sale);
    color: var(--color-text);
}

.badge-new {
    background: var(--color-new);
    color: var(--color-surface);
    left: auto;
    right: 12px;
}

.badge-oos {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-info);
    backdrop-filter: blur(10px);
}

.product-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card-actions .btn-icon {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text-dark);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.product-card-actions .btn-icon:hover {
    background: var(--color-surface);
}

.product-card-info {
    padding: 16px 4px;
}

.product-card-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.product-card-name:hover {
    color: var(--color-text-secondary);
}

.product-card-rating {
    margin-bottom: 6px;
}

.product-card-rating .stars {
    font-size: 12px;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 15px;
    font-weight: 600;
}

.price-compare {
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

.section-light .price-current {
    color: var(--color-text-dark);
}

/* Stars */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: var(--color-border);
    font-size: 14px;
}

.star.filled {
    color: #fbbf24;
}

/* =============================================
   CATEGORIES
   ============================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(219, 234, 254, 0.95), rgba(147, 197, 253, 0.15) 60%, transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.category-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* =============================================
   PROMO BANNER
   ============================================= */
.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 0 24px;
    max-width: calc(var(--container-max) - 48px);
    margin-left: auto;
    margin-right: auto;
}

.promo-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.promo-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(240, 249, 255, 0.93);
    padding: 24px;
}

.promo-banner-content h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 12px;
}

.promo-banner-content p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.review-card .stars {
    margin-bottom: 12px;
}

.review-card .comment {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    font-style: italic;
}

.review-card .author {
    font-size: 14px;
    font-weight: 600;
}

.review-card .product-name {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #f0f9ff 100%);
    border-radius: var(--radius-xl);
    margin: 0 24px;
    max-width: calc(var(--container-max) - 48px);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.newsletter h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.newsletter p {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    border-radius: var(--radius-full);
    padding: 14px 24px;
}

.newsletter-form .btn {
    flex-shrink: 0;
}

/* =============================================
   INSTAGRAM GALLERY
   ============================================= */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(96, 165, 250, 0.14);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.instagram-item:hover::after {
    opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #e8f4fd;
    border-top: 1px solid rgba(96, 165, 250, 0.22);
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-about {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-surface);
    color: var(--color-text-dark);
}

.footer-col h4 {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-text-secondary);
}

.footer-contact li {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.footer-payments {
    display: flex;
    gap: 8px;
}

.payment-badge {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
    padding-top: calc(var(--navbar-height) + 16px);
    /* clear the fixed navbar */
    padding-bottom: 16px;
}

.breadcrumb ol {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 8px;
    color: var(--color-text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li a {
    color: var(--color-text-secondary);
}

.breadcrumb li a:hover {
    color: var(--color-text);
}

.breadcrumb li.active {
    color: var(--color-text);
}

/* =============================================
   SHOP PAGE
   ============================================= */
/* =============================================
   SHOP LAYOUT & SIDEBAR
   ============================================= */
.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    padding: 0 0 80px;
    align-items: start;
}

.shop-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
    height: fit-content;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* Mobile filter toggle button — hidden on desktop */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 16px;
}

.filter-toggle-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
}

/* Sidebar close button — shown only when drawer is open */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: 4px;
}

/* ---- FILTER GROUPS ---- */
.filter-group {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.filter-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    color: var(--color-text-secondary);
}

/* Radio & Checkbox filter rows */
.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    /* KEY FIX: prevent text from wrapping */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group label:hover {
    background: var(--glass-bg);
}

/* Radio button — fixed size, never stretched by global input rule */
.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    accent-color: var(--color-accent);
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.filter-group input[type="range"] {
    width: 100%;
    accent-color: var(--color-accent);
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    height: auto;
}

.price-range-display {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 10px;
    font-weight: 500;
}

/* Color swatches */
.color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    outline: 2px solid transparent;
    outline-offset: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.color-swatch.active,
.color-swatch:hover {
    outline-color: var(--color-accent);
    border-color: #fff;
}

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-results-count {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.shop-sort select {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-full);
}

/* =============================================
   PRODUCT DETAIL
   ============================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: calc(var(--navbar-height) + 24px) 0 80px;
}

.product-gallery {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

.gallery-main {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-secondary);
    margin-bottom: 12px;
    cursor: zoom-in;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
}

.gallery-thumb {
    width: 72px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    opacity: 0.6;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-surface);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 8px;
}

.product-info .product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-info .product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.product-info .price-current {
    font-size: 28px;
    font-weight: 700;
}

.product-info .price-compare {
    font-size: 18px;
}

.product-info .short-desc {
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.size-btn.active,
.size-btn:hover {
    border-color: var(--color-surface);
    background: var(--color-surface);
    color: var(--color-text-dark);
}

.size-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.color-btn.active {
    border-color: var(--color-surface);
    box-shadow: 0 0 0 2px var(--color-bg);
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.quantity-selector button:hover {
    background: var(--glass-bg);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    padding: 10px;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.product-actions .btn {
    flex: 1;
}

.product-tabs {
    margin-top: 48px;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    color: var(--color-text);
    border-bottom-color: var(--color-surface);
}

.tab-content {
    padding: 24px 0;
    display: none;
}

.tab-content.active {
    display: block;
}

.specs-table {
    width: 100%;
}

.specs-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--color-text-secondary);
    width: 40%;
}

/* Zoom Modal */
.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--color-surface);
    cursor: pointer;
}

/* =============================================
   CART PAGE
   ============================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: calc(var(--navbar-height) + 24px) 0 80px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: var(--font-primary);
}

.cart-item-info .variant {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.cart-item-price {
    font-size: 15px;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-remove {
    font-size: 13px;
    color: var(--color-danger);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.cart-remove:hover {
    opacity: 0.7;
}

.cart-summary {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--color-border);
    margin-top: 12px;
    padding-top: 16px;
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.coupon-form input {
    flex: 1;
    font-size: 13px;
    padding: 10px 14px;
}

.coupon-form .btn {
    padding: 10px 16px;
    font-size: 12px;
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* =============================================
   CHECKOUT PAGE
   ============================================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: calc(var(--navbar-height) + 24px) 0 80px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method.active {
    border-color: var(--color-surface);
    background: var(--glass-bg);
}

.payment-method input {
    width: auto;
}

.payment-method .method-name {
    font-weight: 600;
    font-size: 15px;
}

.payment-method .method-number {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.payment-method-cod {
    border-style: dashed;
}

.payment-method-cod.active {
    border-color: var(--color-success);
    background: rgba(34, 197, 94, 0.06);
}

.payment-method-cod .method-name {
    color: var(--color-success);
}

.payment-instructions {
    padding: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* =============================================
   PAYMENT ACCORDION
   ============================================= */
.payment-accordion {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.payment-accordion.is-open {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.payment-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    background: transparent;
    transition: background var(--transition-fast);
    user-select: none;
    outline: none;
}

.payment-accordion-header:hover,
.payment-accordion.is-open .payment-accordion-header {
    background: var(--glass-bg);
}

.payment-accordion-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-accordion-icon {
    font-size: 22px;
    line-height: 1;
}

.payment-accordion-header .method-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.payment-accordion-header .method-number {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.payment-accordion-chevron {
    font-size: 22px;
    line-height: 1;
    color: var(--color-text-secondary);
    transition: transform var(--transition-base);
    display: inline-block;
}

.payment-accordion.is-open .payment-accordion-chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* Body: hidden by default, slides open */
.payment-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 12px;
    background: var(--color-bg);
}

.payment-accordion.is-open .payment-accordion-body {
    max-height: 320px; /* enough for 3 options */
    padding: 10px 12px 14px;
}

/* Child payment methods inside accordion */
.payment-method-digital {
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--color-bg-secondary);
}

.payment-method-digital:last-child {
    margin-bottom: 0;
}

.payment-method-digital.active {
    border-color: var(--color-accent);
    background: var(--color-surface-hover);
}

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(30px);
}

.auth-card h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
}

.auth-card .btn {
    margin-top: 8px;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.auth-links a {
    color: var(--color-text);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* =============================================
   PROFILE PAGE
   ============================================= */
.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: calc(var(--navbar-height) + 24px) 0 80px;
}

.profile-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
    height: fit-content;
}

.profile-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.profile-nav a.active,
.profile-nav a:hover {
    background: var(--glass-bg);
}

.profile-content {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.profile-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
    font-family: var(--font-primary);
}

.order-card {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: border-color var(--transition-fast);
}

.order-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card-header .order-number {
    font-weight: 600;
    font-size: 14px;
}

.order-card-header .order-date {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.order-total {
    font-weight: 700;
    font-size: 16px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    gap: 4px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--color-surface);
    color: var(--color-text-dark);
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header {
    padding: calc(var(--navbar-height) + 40px) 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--color-text-secondary);
}

.order-actions {
    display: flex;
    gap: 12px;
}
.order-actions .btn {
    flex: 1;
}

/* =============================================
   RESPONSIVE — Full Device Coverage
   ============================================= */

/* ── TABLET  ≤ 1024 px ── */
@media (max-width: 1024px) {

    /* Shop: sidebar becomes slide-in drawer */
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-toggle-btn {
        display: inline-flex;
    }

    .shop-sidebar {
        position: fixed !important;
        top: 0; left: 0;
        width: 300px;
        max-width: 90vw;
        height: 100dvh;
        overflow-y: auto !important;
        z-index: 3000;
        background: var(--color-bg-secondary, #fff) !important;
        border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
        transform: translateX(-110%) !important;
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: 48px 24px 0;
        display: block !important;
    }

    .shop-sidebar form {
        padding-bottom: 32px;
    }

    .shop-sidebar form button[type="submit"] {
        position: sticky;
        bottom: 24px;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 -8px 16px var(--color-bg-secondary, #fff);
    }

    .shop-sidebar.active { transform: translateX(0) !important; }

    .sidebar-close-btn {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(30, 58, 95, 0.35);
        z-index: 2999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active { display: block; }

    /* Product detail: single column */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery { position: static; }

    /* Cart & Checkout */
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Profile */
    .profile-layout {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mega menu — disabled on tablet */
    .mega-menu { display: none !important; }
}

/* ── MOBILE  ≤ 768 px ── */
@media (max-width: 768px) {

    /* Order Confirmation Actions */
    .order-actions {
        flex-direction: column;
    }
    .order-actions .btn {
        width: 100%;
    }

    /* ── Navbar: flex space-between — hamburger | logo (centre) | Wishlist+Cart ── */
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        gap: 0;
    }

    /* Hamburger — left edge */
    .navbar-toggle {
        display: flex;
        flex: 0 0 auto;
        padding: 8px;
    }

    /* Logo — fills the middle, text centred */
    .navbar-logo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Actions — right edge, shows Wishlist, Cart, and User */
    .navbar-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0;
    }

    /* Hide Search from the mobile header */
    .navbar-actions .search-wrapper { display: none; }

    /* Wishlist, Cart, and User MUST stay visible — reset any previous hide rules */
    .navbar-actions .navbar-icon,
    .navbar-actions .user-menu { display: inline-flex !important; }

    /* Slightly reduce icon sizes on mobile to fit nicely */
    .navbar-actions .navbar-icon,
    .navbar-actions .user-toggle {
        padding: 6px;
    }
    .navbar-actions .navbar-icon svg,
    .navbar-actions .user-toggle svg {
        width: 18px;
        height: 18px;
    }

    .navbar-nav { display: none; }

    /* ── Hero: portrait-safe height + keep subject in frame ── */
    .hero {
        height: 50vh;
        min-height: 300px;
    }

    .hero-slide img {
        object-fit: contain;
        object-position: center;
        background-color: var(--color-surface, #fff);
    }

    .hero-content {
        bottom: 5%;
        padding: 0 12px;
    }

    .hero-content h1 {
        font-size: 28px !important;
        margin-bottom: 10px;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .hero-content p {
        font-size: 15px !important;
        margin-bottom: 16px;
    }

    .hero-dots { bottom: 12px; }

    /* ── Sections ── */
    .section { padding: 56px 0; }

    .section-header { margin-bottom: 32px; }

    /* ── Product grid: 2 columns ── */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ── Categories: 2 columns ── */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card { aspect-ratio: 1/1; }

    .category-card h3 { font-size: 18px; }

    /* ── Promo banner ── */
    .promo-banner { margin: 0 12px; }

    .promo-banner img { height: 220px; }

    /* ── Reviews: 1 column ── */
    .reviews-grid { grid-template-columns: 1fr; }

    /* ── Newsletter ── */
    .newsletter {
        padding: 48px 20px;
        margin: 0 12px;
    }

    .newsletter h2 { font-size: 24px; }

    .newsletter-form { flex-direction: column; }

    .newsletter-form .btn { width: 100%; }

    /* ── Cart ── */
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }

    .cart-item-image {
        width: 80px;
        height: 104px;
    }

    .cart-summary { position: static; }

    /* ── Checkout ── */
    .form-row { grid-template-columns: 1fr; }

    /* ── Profile ── */
    .profile-sidebar { position: static; }

    .profile-content { padding: 20px 16px; }

    /* ── Product detail ── */
    .gallery-thumbs { gap: 6px; }

    .gallery-thumb {
        width: 56px;
        height: 74px;
    }

    .product-actions { flex-direction: column; }

    .product-actions .btn { width: 100%; }

    .tab-btn { padding: 12px 16px; font-size: 13px; }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-payments { justify-content: center; flex-wrap: wrap; }

    /* ── Instagram ── */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Auth ── */
    .auth-card { padding: 32px 20px; }

    /* ── Order card ── */
    .order-card-header { flex-direction: column; align-items: flex-start; gap: 4px; }

    .order-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── SMALL MOBILE  ≤ 480 px ── */
@media (max-width: 480px) {

    /* Container tighter padding */
    .container { padding: 0 14px; }

    /* ── Navbar: even tighter ── */
    .navbar-container {
        padding: 0 10px;
    }

    /* Logo shrinks gracefully */
    .sebez-logo-text {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .sebez-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        margin-right: 4px;
    }

    /* ── Hero: compact on very small phones ── */
    .hero {
        height: 40vh;
        min-height: 250px;
    }

    .hero-slide img { 
        object-fit: contain;
        object-position: center; 
    }

    .hero-content {
        padding: 0 10px;
        bottom: 2%;
    }

    .hero-content h1 {
        font-size: 22px !important;
    }

    .hero-content p {
        font-size: 13px !important;
    }

    /* ── Sections ── */
    .section { padding: 40px 0; }

    /* ── Product grid: single column ── */
    .product-grid { grid-template-columns: 1fr; }

    /* ── Category grid: single column ── */
    .category-grid { grid-template-columns: 1fr; }

    .category-card { aspect-ratio: 3/2; }

    /* ── Promo banner ── */
    .promo-banner { margin: 0 6px; }

    .promo-banner img { height: 180px; }

    /* ── Newsletter ── */
    .newsletter {
        padding: 36px 16px;
        margin: 0 6px;
        border-radius: var(--radius-lg);
    }

    .newsletter h2 { font-size: 20px; }

    /* ── Cart item: slim ── */
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 90px;
    }

    /* ── Auth ── */
    .auth-page { padding: 16px; }

    .auth-card { padding: 28px 16px; }

    /* ── Profile content ── */
    .profile-content { padding: 16px 12px; }

    /* ── Shop toolbar ── */
    .shop-toolbar { flex-direction: column; align-items: flex-start; }

    /* ── Pagination ── */
    .pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* ── Section headers ── */
    .section-header h2 { font-size: 24px; }

    /* ── Footer ── */
    .footer { padding: 48px 0 24px; }

    /* ── Toast ── */
    .toast-container {
        right: 12px;
        left: 12px;
    }

    .toast { max-width: 100%; }
}



/* Lazy load */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Main content offset */
.main-content {
    min-height: 60vh;
}

/* Checkout: zone badge animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Checkout: select dropdowns full width */
.checkout-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
}

.checkout-form select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* =============================================
   Password Eye Toggle
   ============================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 48px;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 0;
}

.eye-toggle:hover {
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.08);
}

.eye-toggle:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.eye-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

