/* Import Modern Variable Fonts with ALL weights */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.0/dist/font/sans.css');

/* CSS Custom Properties - LIGHT MODE DEFAULT */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b; /* Blaža tamno siva umjesto čiste crne */
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-purple: #0ea5e9; /* Djurdja Blue */
    --accent-pink: #22d3ee;
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #7c3aed, #ec4899);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12);
    --border-light: rgba(0, 0, 0, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-primary: 'Inter', 'Geist Sans', -apple-system, system-ui, sans-serif;
    --font-display: 'Geist Sans', 'Inter', -apple-system, system-ui, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-width: 1280px;
    --nav-height: 140px;
    --announcement-height: 40px;
}

/* Dark Mode */
.dark-mode {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1b8;
    --text-muted: #71717a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.5);
    --border-light: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height za moderni iOS */
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Force Tailwind fonts on all elements that might override them */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display) !important;
    font-weight: 800; /* Extra Bold like Djurdja */
    letter-spacing: -0.05em !important; /* Extremely Tight tracking like Djurdja */
    -webkit-font-smoothing: antialiased;
    line-height: 1.1;
    text-transform: none !important; /* No uppercase for headings */
}

.hero-title {
    font-weight: 900 !important;
    letter-spacing: -0.06em !important;
}

/* Mega Menu & Nav Refinement to match Djurdja Aesthetic */
.nav-link-trigger, .nav-link-simple, .mega-menu-heading, .mega-menu-link {
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}

.mega-menu-heading {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
}

.mega-menu-count, .mega-menu-sub-count, .mobile-cat-count {
    background: none !important; /* Brišem sive krugove */
    color: var(--accent-purple) !important;
    font-weight: 700 !important;
    font-size: 0.8em !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 5px;
}

.mega-menu-count::before, .mega-menu-sub-count::before { content: '('; }
.mega-menu-count::after, .mega-menu-sub-count::after { content: ')'; }


/* Mega Menu & Nav Refinement to match Djurdja Aesthetic */
.nav-link-trigger, .nav-link-simple {
    text-transform: none !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 0.9rem;
}

.mega-menu-heading {
    text-transform: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-link {
    text-transform: none !important;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: all 0.2s;
}

.mega-menu-link:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

/* Redizajn brojeva - micanje sivih krugova */
.mega-menu-count, .mega-menu-sub-count, .mobile-cat-count {
    background: none !important;
    color: var(--accent-purple) !important;
    font-weight: 700 !important;
    font-size: 0.8em !important;
    opacity: 0.7;
    margin-left: 4px;
    border: none !important;
}

.mega-menu-count::before, .mega-menu-sub-count::before {
    content: '(';
}
.mega-menu-count::after, .mega-menu-sub-count::after {
    content: ')';
}
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; color: inherit; }
input { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding doesn't add to width */
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    #pendulum-cart { display: none; }
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    cursor: default;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.toast-icon.success { background: var(--success); }
.toast-icon.danger { background: var(--danger); }
.toast-icon.info { background: var(--accent-cyan); }
.toast-icon.wishlist { background: var(--accent-pink); }
.toast-icon.coupon { background: var(--accent-purple); }

.toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.toast-close {
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px;
    transition: color var(--transition-fast);
}

.toast-close:hover { color: var(--text-primary); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(100px) scale(0.9); }
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    background: var(--gradient-primary);
    color: white;
    height: var(--announcement-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.announcement-scroll {
    display: flex;
    white-space: nowrap;
    animation: scrollAnnouncement 30s linear infinite;
}

.announcement-text {
    flex-shrink: 0;
    padding: 0 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-sep {
    margin: 0 16px;
    opacity: 0.5;
}

.countdown-inline {
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

@keyframes scrollAnnouncement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.navbar {
    position: fixed;
    top: var(--announcement-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.announcement-bar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.nav-hidden {
    transform: translateY(calc(-100% - var(--announcement-height) - 10px));
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .navbar {
        top: var(--announcement-height);
        height: 60px;
        display: flex;
        align-items: center;
    }
    .navbar.scrolled {
        top: var(--announcement-height) !important;
    }
    .nav-inner {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 10px;
    }
    .announcement-bar {
        display: flex;
    }
    .announcement-text {
        font-size: 11px;
    }
    .logo-text {
        font-size: 20px !important;
    }
    .nav-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    #notification-btn, #wishlist-nav-btn, #profile-nav-btn, .nav-action-btn.theme-toggle {
        display: none !important;
    }
    .nav-actions {
        gap: 8px;
    }
    /* Hide some icons on very small screens if needed, or scale them */
}

body.dark-mode .navbar {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-light);
}

.navbar.scrolled {
    top: 0;
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 60px; /* Razmak između logoa i navigacije */
}

.logo {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.nav-links > a,
.nav-links > div { height: 100%; display: flex; align-items: center; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto; /* Ovo gura samo ikone skroz desno */
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.nav-action-btn.theme-toggle {
    display: none !important;
}

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

.footer-logo-img {
    height: 160px;
    width: auto;
    margin-bottom: 30px;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-pink);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.nav-links > a,
.nav-links > div { height: 100%; display: flex; align-items: center; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-badge.visible { transform: scale(1); }

.action-badge.bump {
    animation: badgeBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown {
    position: fixed;
    top: calc(var(--announcement-height) + var(--nav-height) + 8px);
    right: 80px;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transition: all var(--transition-base);
    backdrop-filter: blur(20px);
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.notification-header h4 { font-size: 15px; font-weight: 600; }

.mark-read {
    font-size: 12px;
    color: var(--accent-purple);
    font-weight: 500;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.notification-item:hover { background: var(--bg-card-hover); }

.notification-item.unread { background: rgba(124, 58, 237, 0.03); }
.dark-mode .notification-item.unread { background: rgba(124, 58, 237, 0.08); }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-content p { font-size: 13px; line-height: 1.4; }
.notification-content p strong { font-weight: 600; }
.notification-time { font-size: 11px; color: var(--text-muted); }

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
}

.mobile-menu.active { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-header button {
    font-size: 20px;
    color: var(--text-secondary);
}

.mobile-menu-links {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.mobile-menu-links a,
.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-links a i,
.mobile-dropdown-trigger i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-dropdown-trigger span {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-links a:hover,
.mobile-dropdown-trigger:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-cat-count {
    font-size: 10px;
    background: var(--border-light);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--text-muted);
}

.mobile-dropdown-content {
    background: var(--bg-primary);
    display: none;
    padding-left: 20px;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown.active .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-chevron {
    transition: transform 0.3s;
    font-size: 12px !important;
}

.mobile-menu-footer { padding: 20px 24px; }

/* ============================================
   MEGA MENU — Modern Fashion Nav
   ============================================ */

/* --- Nav link items --- */
.nav-link-simple,
.nav-link-trigger {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
    letter-spacing: 0.01em;
    line-height: 1;
}

.nav-link-simple::after,
.nav-link-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-simple:hover,
.nav-link-dropdown:hover .nav-link-trigger,
.nav-link-dropdown.active .nav-link-trigger {
    color: var(--accent-purple);
}

.nav-link-simple:hover::after,
.nav-link-dropdown:hover .nav-link-trigger::after,
.nav-link-dropdown.active .nav-link-trigger::after {
    transform: scaleX(1);
}

.nav-link-sale {
    color: var(--danger) !important;
    font-weight: 600;
}
.nav-link-sale::after {
    background: var(--danger) !important;
}

.nav-home-link {
    color: var(--text-muted) !important;
    font-size: 13px;
    opacity: .75;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-home-link:hover,
.nav-home-link.active {
    color: var(--accent-purple) !important;
    opacity: 1;
}

/* --- Dropdown wrapper --- */
.nav-link-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* --- Mega menu panel --- */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary, #fff);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    overflow: hidden;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Purple gradient accent strip at top of mega menu */
.mega-menu-accent {
    height: 3px;
    background: var(--gradient-primary);
    width: 100%;
}

.mega-menu-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px 28px;
}

/* Header row: category title + "see all" link */
.mega-menu-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    margin-bottom: 20px;
}

.mega-menu-category-title {
    font-size: 16px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.mega-menu-see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.mega-menu-see-all:hover { gap: 10px; }
.mega-menu-see-all i { font-size: 11px; }

.mega-menu-body {
    display: flex;
    gap: 40px;
}

.mega-menu-columns {
    display: flex;
    gap: 0;
    flex: 1;
    flex-wrap: wrap;
}

.mega-menu-column {
    min-width: 150px;
    flex-shrink: 0;
    padding-right: 32px;
}

/* Column heading */
.mega-menu-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, #000);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mega-menu-heading:hover {
    color: var(--accent-purple);
}

.mega-menu-count {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card-hover, #f5f5f5);
    padding: 1px 5px;
    border-radius: 10px;
    letter-spacing: 0;
    text-transform: none;
    font-family: inherit;
}

/* Subcategory links */
.mega-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-secondary, #555);
    padding: 5px 8px;
    margin: 0 -8px;
    border-radius: 6px;
    transition: background 0.12s ease, color 0.12s ease;
    line-height: 1.4;
    text-decoration: none;
}

.mega-menu-sub-count {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mega-menu-link:hover {
    background: rgba(139, 92, 246, 0.07);
    color: var(--accent-purple);
}

/* Promo image on the right */
.mega-menu-promo {
    min-width: 200px;
    max-width: 220px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.mega-menu-promo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mega-menu-promo:hover img {
    transform: scale(1.04);
}

.mega-menu-promo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 14px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}

/* Backdrop overlay */
.mega-menu-backdrop {
    position: fixed;
    inset: 0;
    top: calc(var(--announcement-height) + var(--nav-height));
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.mega-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dark mode */
body.dark-mode .mega-menu { background: var(--bg-secondary); }
body.dark-mode .mega-menu-heading { color: var(--text-primary); }
body.dark-mode .mega-menu-link { color: var(--text-secondary); }
body.dark-mode .mega-menu-link:hover { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
body.dark-mode .mega-menu-count { background: rgba(255,255,255,0.08); }

/* ============================================
   MOBILE MENU — Category Accordion
   ============================================ */
.mobile-dropdown {}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-trigger span {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-dropdown-trigger span i:first-child { width: 20px; text-align: center; }

.mobile-dropdown-trigger:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.mobile-chevron {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.mobile-dropdown.open .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-card-hover);
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 500px;
}

.mobile-dropdown-content a {
    display: block;
    padding: 10px 24px 10px 58px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.mobile-dropdown-content a:hover {
    color: var(--text-primary);
}

.mobile-menu-home {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-purple);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
    text-decoration: none;
    transition: background var(--transition-fast);
}
.mobile-menu-home:hover,
.mobile-menu-home.active {
    background: rgba(139,92,246,0.06);
}
.mobile-menu-home i { width: 20px; text-align: center; }

.mobile-cat-count {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card-hover);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.mobile-dropdown-all {
    font-weight: 600 !important;
    color: var(--accent-purple) !important;
    border-bottom: 1px solid var(--border-light);
}

.mobile-sale-link {
    color: var(--danger) !important;
    font-weight: 600;
}

/* ============================================
   SKELETON LOADERS & PLACEHOLDERS
   ============================================ */
.skeleton {
    background: #e2e8f0;
    background: linear-gradient(
        90deg,
        rgba(226, 232, 240, 0.5) 25%,
        rgba(203, 213, 225, 0.6) 50%,
        rgba(226, 232, 240, 0.5) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

.dark-mode .skeleton {
    background: #1e1e2d;
    background: linear-gradient(
        90deg,
        rgba(30, 30, 45, 0.5) 25%,
        rgba(45, 45, 60, 0.6) 50%,
        rgba(30, 30, 45, 0.5) 75%
    );
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    color: var(--text-muted);
    font-size: 2rem;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 5000;
    opacity: 0;
    display: none;
    transition: opacity var(--transition-base);
}

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

.search-overlay-inner {
    max-width: 680px;
    margin: 80px auto;
    padding: 0 20px;
}

.search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: white;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.search-close:hover { opacity: 1; }

.search-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    margin-bottom: 24px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    margin-bottom: 32px;
    transition: border-color var(--transition-fast);
}

.search-input-wrap:focus-within {
    border-color: var(--accent-purple);
}

.search-input-wrap i { color: rgba(255,255,255,0.5); font-size: 18px; }

.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 18px;
}

.search-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }

.search-input-wrap kbd {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.search-section { margin-bottom: 28px; }

.search-section h4 {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.search-tag {
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 13px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.search-tag:hover { background: rgba(255,255,255,0.2); }

.search-results {
    margin-top: 24px;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding-right: 8px;
}

.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.search-results::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

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

.search-result-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.search-result-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.search-result-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #fff;
}

.search-result-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-cat {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.search-result-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-top: 4px;
}

.search-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: var(--gradient-primary);
    border: none;
}

.search-see-all h4 {
    color: #fff !important;
    font-weight: 700 !important;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.6);
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.2;
}

@media (max-width: 600px) {
    .search-results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .search-result-info h4 { font-size: 13px; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--announcement-height) + var(--nav-height) + 40px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1.05); /* Malo veće da se izbjegnu rubovi pri učitavanju */
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 40%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

.dark-mode .hero-video-overlay {
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 40%, rgba(15,23,42,0.2) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.dark-mode .hero-bg-pattern {
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.dark-mode .hero-badge {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.25);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-floating-card {
    position: absolute;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    will-change: transform;
}

.hero-floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-floating-card.card-1 {
    width: 220px;
    height: 300px;
    top: 20px;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
    z-index: 2;
}

.hero-floating-card.card-2 {
    width: 200px;
    height: 270px;
    top: 80px;
    right: 5%;
    animation: float2 7s ease-in-out infinite;
    z-index: 3;
}

.hero-floating-card.card-3 {
    width: 180px;
    height: 240px;
    bottom: 20px;
    left: 30%;
    animation: float3 8s ease-in-out infinite;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(-2deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.dark-mode .section-badge {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.25);
}

.sale-badge {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   CATEGORIES
   ============================================ */
/* Legacy (kept for compat) */
.categories-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.category-card { display: none; } /* replaced by cat-card */

/* ── New Category Grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.cat-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.cat-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.cat-card:hover .cat-card-image img {
    transform: scale(1.06);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
    transition: background 0.25s ease;
}

.cat-card:hover .cat-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%);
}

.cat-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.cat-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cat-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.cat-card-title:hover { color: var(--accent-purple); }

.cat-card-count {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-subcats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    flex: 1;
}

.cat-subcats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 6px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.cat-subcats li a:hover {
    background: rgba(139,92,246,0.07);
    color: var(--accent-purple);
}

.cat-subcat-count {
    font-size: 11px;
    color: var(--text-muted);
}

.cat-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    padding: 8px 0 0;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    transition: gap 0.2s ease;
}

.cat-card-cta:hover { gap: 10px; }
.cat-card-cta i { font-size: 11px; }

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-tab:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: stretch;
    justify-content: center; /* Centriranje artikala u zadnjem redu ako ih fali */
}

@media (min-width: 600px)  { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 900px)  { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1400px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.product-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow .25s, transform .25s, opacity .4s ease-out; /* Dodan opacity transition */
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%; /* Kartica zauzima punu visinu grida */
}

/* Osigurava da je donji dio (cijena) uvijek na dnu ako su naslovi različitih dužina */
.product-card .product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-price {
    margin-top: auto;
}


.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
}

.product-card.hidden { display: none; }

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new { background: var(--accent-purple); color: white; }
.badge-sale { background: var(--danger); color: white; }
.badge-hot { background: var(--warning); color: white; }

.pulse-badge { animation: pulseBadge 2s ease infinite; }

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

.shimmer-badge {
    position: relative;
    overflow: hidden;
}

.shimmer-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.wishlist-btn:hover { transform: scale(1.1); }

.wishlist-btn.active {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.wishlist-btn.active i { font-weight: 900; }

.product-image-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-primary);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-img.secondary-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
}

/* Fix white boxes on hover: Only hide primary if secondary is definitely loaded AND ensure selectors cover all cases */
.product-card.has-secondary:hover .secondary-loaded .primary-img,
.product-card.has-secondary:hover .product-image-wrap.secondary-loaded .primary-img,
.product-card.has-secondary:hover .product-img.secondary-loaded .primary-img {
    opacity: 0;
}

.product-card.has-secondary:hover .secondary-img {
    opacity: 1;
    transform: scale(1.05);
}

/* Ensure images fill container and cover properly */
.product-image-wrap img, .product-img img, .product-card .primary-img, .product-card .secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback: if secondary-img is missing or broken, don't show white box */
.product-card.has-secondary .secondary-img:not([src]),
.product-card.has-secondary .secondary-img[style*="display: none"] {
    display: none !important;
}

.product-quick-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    justify-content: center;
}

.product-card:hover .product-quick-actions { transform: translateY(0); }

.quick-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    background: var(--accent-purple);
    color: white;
}

.quick-action-btn.added {
    background: var(--success);
    color: white;
}

.card-cart-btn {
    position: absolute; bottom: 8px; right: 8px;
    width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--accent-purple);
    font-size: 14px; transition: all .2s; z-index: 2;
}
.card-cart-btn:hover { background: var(--accent-purple); color: #fff; transform: scale(1.12); }
.card-cart-btn.out { color: #ccc; pointer-events: none; }

.product-card .product-info {
    padding: 8px 10px 12px;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-name {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 0 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-section .product-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.stars { color: var(--warning); font-size: 12px; display: flex; gap: 2px; }
.rating-count { font-size: 12px; color: var(--text-muted); }

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
}

.current-price.sale { color: var(--danger); }

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-sizes {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ============================================
   FLASH SALE
   ============================================ */
.flash-sale-section {
    background: var(--bg-secondary);
}

.dark-mode .flash-sale-section {
    background: rgba(239, 68, 68, 0.02);
}

.flash-timer {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.flash-timer > span {
    color: var(--text-secondary);
    font-size: 14px;
}

.timer-blocks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer-block {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    text-align: center;
    min-width: 60px;
}

.timer-block span {
    font-size: 24px;
    font-weight: 800;
    display: block;
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-block small {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.timer-sep {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
}

.flash-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.flash-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.flash-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.flash-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.flash-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flash-card:hover .flash-image-wrap img {
    transform: scale(1.08);
}

.flash-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
}

.rotate-in {
    animation: rotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.flash-info {
    padding: 14px;
}

.flash-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.flash-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.flash-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.flash-new {
    font-size: 17px;
    font-weight: 700;
    color: var(--danger);
}

.flash-stock { margin-bottom: 12px; }

.stock-bar {
    width: 100%;
    height: 6px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.stock-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.flash-stock span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   BRANDS MARQUEE
   ============================================ */
.brands-marquee {
    overflow: hidden;
    padding: 20px 0;
}

.brands-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.4;
    white-space: nowrap;
    letter-spacing: 3px;
    transition: opacity var(--transition-fast);
    cursor: pointer;
}

.brand-logo:hover { opacity: 1; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   INSTAGRAM FEED
   ============================================ */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img { transform: scale(1.1); }

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.insta-item:hover .insta-overlay { opacity: 1; }

.insta-overlay span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.insta-cta {
    text-align: center;
    margin-top: 32px;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.review-stars {
    display: flex;
    gap: 4px;
    color: var(--warning);
    margin-bottom: 16px;
    font-size: 14px;
}

.interactive-stars { cursor: none; }

.review-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.review-author strong { font-size: 14px; display: block; }
.review-author span { font-size: 12px; color: var(--text-muted); }

.helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.helpful-btn:hover, .helpful-btn.active {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.newsletter-content { position: relative; z-index: 1; }

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: white;
    margin-bottom: 12px;
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 28px;
}

.newsletter-form { max-width: 480px; margin: 0 auto; }

.newsletter-input-wrap {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    padding: 6px;
}

.newsletter-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    padding: 12px 20px;
    font-size: 14px;
}

.newsletter-input-wrap input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-privacy {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

.newsletter-privacy i { margin-right: 4px; }

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: var(--accent-purple);
}

.dark-mode .trust-icon {
    background: rgba(124, 58, 237, 0.15);
}

.trust-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 13px; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 100px;
}

.dark-mode .footer { background: #080810; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--accent-purple); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

.payment-methods {
    display: flex;
    gap: 12px;
    font-size: 24px;
    color: var(--text-muted);
}

/* ── Powered by (brendirani badge) ─────────────────────────── */
.footer-powered {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}
.powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12.5px;
    line-height: 1;
    color: var(--text-muted);
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-light, rgba(0, 0, 0, .08));
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.powered-badge .pb-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-purple, #0ea5e9), var(--accent-teal, #14b8a6));
    box-shadow: 0 2px 6px rgba(14, 165, 233, .32);
    transition: transform .18s ease;
}
.powered-badge .pb-text {
    letter-spacing: .2px;
    opacity: .85;
}
.powered-badge .pb-brand {
    font-weight: 700;
    letter-spacing: .3px;
    background: linear-gradient(135deg, var(--accent-purple, #0ea5e9), var(--accent-teal, #14b8a6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.powered-badge .pb-arrow {
    font-size: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
    color: var(--accent-teal, #14b8a6);
}
.powered-badge:hover {
    transform: translateY(-2px);
    border-color: var(--accent-teal, #14b8a6);
    box-shadow: 0 6px 18px rgba(14, 165, 233, .18);
}
.powered-badge:hover .pb-mark { transform: rotate(-8deg) scale(1.06); }
.powered-badge:hover .pb-arrow { opacity: 1; transform: translateX(0); }
.powered-badge:focus-visible {
    outline: 2px solid var(--accent-teal, #14b8a6);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .powered-badge, .powered-badge * { transition: none; }
    .powered-badge:hover { transform: none; }
}

/* ============================================
   SEARCH PAGE & FILTERS
   ============================================ */
.search-results-page {
    padding-top: calc(var(--nav-height) + var(--announcement-height) + 20px);
}

@media (max-width: 768px) {
    .search-results-page {
        padding-top: calc(var(--nav-height) + 10px);
    }
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: start;
}

@media (max-width: 1024px) {
    .search-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* Sidebar Filters - Desktop Fix */
.filter-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.filter-sidebar form {
    display: flex;
    flex-direction: column;
}

.btn-apply {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    /* UKLONJEN position: sticky odavde */
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* Mobile Filters Fix */
@media (max-width: 1024px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 340px;
        height: 100vh;
        z-index: 9999; /* Povećan z-index da bi bio iznad svega */
        overflow-y: auto; /* Na mobilnom mora ostati scroll jer je ekran mali */
        transition: transform 0.4s ease;
        border-radius: 0;
        box-shadow: 20px 0 50px rgba(0,0,0,0.2);
        display: block !important; /* Osiguravamo da je vidljiv */
        visibility: visible;
    }

    .filter-sidebar.open {
        transform: translateX(100%);
    }

    /* Overlay fix for mobile */
    .filter-sidebar::before {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s;
    }
    .filter-sidebar.open::before {
        opacity: 1;
        pointer-events: auto;
    }
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s ease;
}

.filter-item:hover { color: var(--accent-purple); }

.filter-item input[type="radio"],
.filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    accent-color: var(--accent-purple);
}

.filter-item .cnt {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    width: 100%;
    padding: 10px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.price-inputs span { color: var(--text-muted); }

.btn-apply {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply:hover { transform: translateY(-2px); }

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.results-info { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .results-header > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .filter-toggle-btn {
        margin-right: 0;
        flex: 1;
        justify-content: center;
    }
    .results-info {
        font-size: 12px;
        flex: 1;
        text-align: right;
    }
    .sort-select {
        width: 100%;
        font-size: 13px;
    }
}

.filter-toggle-btn {
    display: none;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .filter-toggle-btn { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; }
}

.sort-select {
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

/* Active Filter Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--accent-purple);
    font-weight: 500;
}

.filter-chip a {
    font-size: 16px;
    line-height: 1;
    color: var(--accent-purple);
    opacity: 0.6;
    transition: opacity 0.15s;
}

.filter-chip a:hover { opacity: 1; }

.did-you-mean {
    padding: 12px 16px;
    background: #fff8e1;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
    color: #856404;
}

.did-you-mean a { font-weight: 700; text-decoration: underline; }

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results i { font-size: 64px; margin-bottom: 20px; opacity: 0.2; }
.no-results h3 { font-size: 24px; color: var(--text-primary); margin-bottom: 8px; }

/* Infinite Scroll Sentinel */
.scroll-sentinel { height: 20px; margin-top: 40px; }

.end-of-results {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.end-of-results i { color: var(--success); }

/* Load More Skeletons */
.load-more-skeletons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 1024px) { .load-more-skeletons { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .load-more-skeletons { grid-template-columns: repeat(2, 1fr); } }

.skeleton-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.sk-img { aspect-ratio: 2/3; background: var(--bg-primary); position: relative; overflow: hidden; }
.sk-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: sk-shimmer 1.5s infinite;
}

.sk-body { padding: 12px; }
.sk-line { height: 12px; background: var(--bg-primary); border-radius: 4px; margin-bottom: 8px; position: relative; overflow: hidden; }
.sk-line.w80 { width: 80%; }
.sk-line.w50 { width: 50%; }
.sk-line.w35 { width: 35%; }
.sk-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: sk-shimmer 1.5s infinite;
}

@keyframes sk-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.search-home {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-top: 40px;
}

.search-home h1 { font-family: var(--font-display); font-size: 42px; margin-bottom: 12px; }
.search-home p { color: var(--text-secondary); font-size: 18px; margin-bottom: 32px; }

.popular-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.popular-tag {
    padding: 8px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.popular-tag:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.stock-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.stock-toggle input {
    width: 36px;
    height: 20px;
    appearance: none;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.stock-toggle input:checked { background: var(--success); }

.stock-toggle input::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s;
}

.stock-toggle input:checked::after { left: 18px; }

/* ============================================
   UTILITIES
   ============================================ */
mark {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
    padding: 0 2px;
    font-weight: 600;
    border-radius: 2px;
}

.card { border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base); }
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}
.dark-mode .glass { background: var(--glass); border-color: var(--glass-border); }

/* ============================================
   PRODUCT PAGE  (Temu-inspired, clean, NO glass)
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Sticky Gallery for Desktop */
@media (min-width: 1025px) {
    .sticky-gallery {
        position: sticky;
        top: calc(var(--nav-height) + 40px);
        align-self: start;
    }
}

.gallery-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f5f5f5;
    line-height: 0;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 4px 0; /* Dodan gornji padding za odmak od velike slike */
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
    background: #f5f5f5;
}

.gallery-thumb.active { border-color: var(--accent-purple); }
.gallery-thumb:hover:not(.active) { border-color: #ccc; }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

/* Product detail page info panel */
.product-grid > .product-info {
    padding: 0;
}

/* ============================================
   PRODUCT SHARE
   ============================================ */
.product-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 4px;
    border-top: 1px solid var(--border-light, #eee);
    margin-top: 24px;
}

.product-share-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.product-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Base circle button */
.share-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.share-btn i {
    font-size: 16px;
    color: #fff;
    pointer-events: none;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Tooltip */
.share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.share-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Brand colours */
.share-facebook  { background: #1877f2; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #229ed9; }
.share-twitter   { background: #000; }
.share-native    { background: linear-gradient(135deg,var(--accent-purple),var(--accent-pink,#ec4899)); }

/* Copy link — outline style */
.share-copy {
    background: transparent;
    border: 2px solid var(--border-light, #e0e0e0);
}
.share-copy i { color: var(--text-secondary); }
.share-copy:hover { border-color: var(--accent-purple); background: transparent; }
.share-copy:hover i { color: var(--accent-purple); }
.share-copy.copied { background: var(--success,#22c55e); border-color: var(--success,#22c55e); }
.share-copy.copied i { color: #fff; }

.product-info .product-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #fff5f5;
    border-radius: 8px;
}

.price-current { font-size: 1.6rem; font-weight: 700; color: #f43f3f; letter-spacing: -0.5px; }
.price-old { font-size: 0.9rem; color: #aaa; text-decoration: line-through; }
.price-save {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: #f43f3f;
}

.product-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.breadcrumb {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #bbb;
}
.breadcrumb a { color: #888; transition: color 0.15s; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-purple); }
.breadcrumb i { font-size: 0.6rem; opacity: 0.4; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.related-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.related-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img img { transform: scale(1.1); }

.related-info {
    padding: 10px 12px;
    text-align: left;
}

.related-name {
    font-weight: 400;
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.related-price {
    font-weight: 600;
    color: #f43f3f;
    font-size: 0.88rem;
}

/* Product details container on product page */
.product-details-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.tab-nav {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--text-primary); }
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-purple);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.product-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-novo { background: var(--accent-purple); color: #fff; }
.badge-hot { background: var(--warning); color: #fff; }
.badge-limited { background: var(--accent-cyan); color: #fff; }
.badge-sale { background: var(--danger); color: #fff; }

.product-brand {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: #666;
    flex-wrap: wrap; /* Prevent overflow on tiny screens */
}

.product-rating .stars {
    font-size: 0.75rem;
    color: #f59e0b;
}

.product-rating .rating-avg {
    font-weight: 600;
    font-size: 0.82rem;
    color: #333;
}

.product-rating .rating-count {
    color: #aaa;
    font-size: 0.8rem;
}

.product-color-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

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

.color-swatch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 6px;
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.88rem;
    background: var(--bg-secondary);
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

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

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

.size-guide-trigger {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.size-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.size-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

.add-section {
    margin: 18px 0;
}

.qty-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
}

.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 10px;
    color: #666;
}

.stock-status.in-stock { color: #16a34a; }
.stock-status.out-of-stock { color: #dc2626; }

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 16px 0;
    padding: 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    border-radius: 0;
}

.product-features .feature-item {
    flex: 1 1 50%;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #666;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.product-features .feature-item i {
    color: #f43f3f;
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.share-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.share-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: #999;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detail-content {
    padding: 0;
    line-height: 1.7;
    font-size: 0.88rem;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 0;
}

.attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.attr-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.attr-table tr:last-child { border-bottom: none; }

.attr-table td:first-child {
    padding: 12px 20px;
    color: #888;
    font-weight: 500;
    width: 38%;
    white-space: nowrap;
    background: #fafafa;
}

.attr-table td:last-child {
    padding: 12px 20px;
    font-weight: 400;
    color: #333;
}

.review-author-name {
    font-weight: 700;
    color: var(--text-primary);
}

.review-header .stars {
    margin-left: 12px;
    font-size: 0.8rem;
    color: var(--warning);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-text {
    margin-top: 10px;
    line-height: 1.6;
}

.shipping-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Related Products Responsive Fix */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 8px !important;
    }
}

.shipping-info-item i {
    font-size: 1.1rem;
    color: #f43f3f;
    width: 24px;
    flex-shrink: 0;
}

.shipping-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.shipping-desc {
    font-size: 0.8rem;
    color: #888;
}

.product-info .wishlist-btn {
    position: static;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #666;
    flex-shrink: 0;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    height: 46px;
    background: #fff;
    overflow: hidden;
}

.qty-input button { width: 38px; height: 100%; font-size: 1.1rem; cursor: pointer; transition: background 0.15s; color: #333; }
.qty-input button:hover { background: #f5f5f5; }
.qty-input span { width: 40px; text-align: center; font-weight: 600; font-size: 0.95rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-gradient:hover {
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

.btn .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.btn.added {
    background: var(--success) !important;
}

/* Magnetic Button (JS controlled) */
.magnetic-btn { transition: transform 0.2s ease; }

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 6000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }
    .modal-overlay.active .modal-content {
        transform: translateY(0) !important;
    }
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 16px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: transparent;
}

.quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.quickview-gallery {
    padding: 24px;
}

.quickview-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-primary);
    margin-bottom: 12px;
}

.quickview-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview-thumbnails {
    display: flex;
    gap: 8px;
}

.quickview-thumbnails .thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    opacity: 0.6;
}

.quickview-thumbnails .thumb.active {
    border-color: var(--accent-purple);
    opacity: 1;
}

.quickview-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview-details {
    padding: 32px 32px 32px 8px;
}

.quickview-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-purple);
    font-weight: 600;
}

.quickview-details h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 8px 0 12px;
}

.quickview-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.quickview-price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

.quickview-price .old-price {
    font-size: 18px;
    font-weight: 400;
    margin-right: 8px;
}

.quickview-price .sale-price {
    color: var(--danger);
}

.quickview-option {
    margin-bottom: 20px;
}

.quickview-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-guide-link {
    color: var(--accent-purple);
    font-weight: 400;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

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

.size-btn {
    min-width: 44px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    background: var(--bg-card);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    padding: 0 12px;
}

.size-btn:hover { border-color: var(--accent-purple); }

.size-btn.active {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
    transform: scale(1.05);
}

.color-selector {
    display: flex;
    gap: 10px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
}

.color-btn:hover { transform: scale(1.15); }

.color-btn.active {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px var(--accent-purple);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    background: var(--bg-card);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.qty-btn:hover { background: var(--bg-card-hover); }

.qty-value {
    min-width: 48px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.quickview-add-btn {
    margin-bottom: 24px;
}

.quickview-tabs { margin-bottom: 24px; }

.qv-tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.qv-tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.qv-tab-btn:hover { color: var(--text-primary); }

.qv-tab-btn.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

.qv-tab-content {
    display: none;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.qv-tab-content.active { display: block; }

.quickview-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.quickview-share span {
    font-size: 13px;
    color: var(--text-muted);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

.quickview-related h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.related-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.related-card-info {
    padding: 8px 10px;
}

.related-card-info p {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.related-card-info span {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-purple);
}

/* ============================================
   CART DRAWER
   ============================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 7000;
    opacity: 0;
    display: none;
    transition: opacity var(--transition-base);
}

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

.cart-drawer, .wishlist-drawer, .profile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 7001;
    transform: translateX(100%);
    display: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}

.cart-drawer.active, .wishlist-drawer.active, .profile-drawer.active { display: flex; transform: translateX(0); }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-header h3 span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.drawer-close:hover { background: var(--danger); color: white; }

/* ── Profile Drawer ── */
.profile-drawer-body {
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
}

.profile-tabs {
    display: flex;
    border-radius: 12px;
    background: var(--bg-primary);
    padding: 4px;
    margin-bottom: 20px;
}
.profile-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}
.profile-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form .form-group { display: flex; flex-direction: column; gap: 4px; }
.profile-form .form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.profile-form .form-group input,
.profile-form .form-group select {
    padding: 12px 14px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s;
}
.profile-form .form-group input:focus,
.profile-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.profile-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-form .btn-block { margin-top: 6px; }

.form-errors {
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}
.form-errors:empty { display: none; }

.form-success {
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: 8px;
}

/* Logged in profile */
.profile-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gradient-primary);
    border-radius: 16px;
    color: white;
    margin-bottom: 20px;
}
.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.profile-user-info h4 { font-size: 18px; font-weight: 700; }
.profile-user-info span { font-size: 13px; opacity: 0.85; }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.profile-stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-primary);
    border-radius: 12px;
}
.profile-stat .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.profile-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: none;
    background: var(--bg-primary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
}
.profile-menu-item:hover {
    background: var(--border-light);
    transform: translateX(4px);
}
.profile-menu-item i:first-child {
    width: 20px;
    text-align: center;
    color: var(--primary);
}
.profile-menu-item span { flex: 1; text-align: left; }
.profile-menu-item i:last-child { color: var(--text-muted); font-size: 12px; }

.profile-logout {
    color: var(--danger);
    border-color: var(--danger);
}
.profile-logout:hover {
    background: var(--danger);
    color: white;
}

/* Profile sub-views */
.profile-subview h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.subview-back {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 12px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}
.subview-back:hover { opacity: 0.7; }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-primary);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-number { font-weight: 700; font-size: 14px; }
.order-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.order-status.pending { background: #ffeaa7; color: #d68910; }
.order-status.confirmed { background: #a3e4d7; color: #1e8449; }
.order-status.shipped { background: #aed6f1; color: #2471a3; }
.order-status.delivered { background: #abebc6; color: #1e8449; }
.order-status.cancelled { background: #fadbd8; color: #c0392b; }
.order-card-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.order-card-body strong { color: var(--text-primary); }
.orders-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.orders-empty i { font-size: 40px; margin-bottom: 12px; display: block; opacity: 0.3; }

.shipping-progress {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.shipping-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.shipping-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.shipping-progress p {
    font-size: 13px;
    color: var(--text-secondary);
}

.shipping-progress p strong {
    color: var(--accent-purple);
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    animation: slideInRight 0.3s ease;
}

.cart-item.removing {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(60px); height: 0; padding: 0; margin: 0; overflow: hidden; }
}

.cart-item-img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--bg-card);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.cart-qty-btn:hover { background: var(--bg-card-hover); }

.cart-qty-val {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    font-size: 14px;
}

.cart-item-remove {
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
    padding: 4px;
    cursor: pointer;
}

.cart-item-remove:hover { color: var(--danger); }

.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

.coupon-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.coupon-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.coupon-input-wrap input:focus { border-color: var(--accent-purple); }

.cart-totals { margin-bottom: 16px; }

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 4px;
}

.discount-amount { color: var(--success); }

.drawer-footer .btn-block + .btn-block { margin-top: 8px; }

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-cart-message i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

/* ============================================
   SIZE GUIDE MODAL
   ============================================ */
.sizeguide-content {
    max-width: 640px;
    padding: 40px;
}

.sizeguide-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
}

.size-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.size-tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.size-tab-btn.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

.size-table-wrap { overflow-x: auto; }

.size-table {
    width: 100%;
    border-collapse: collapse;
}

.size-table th, .size-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}

.size-table th {
    background: var(--bg-primary);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.size-table td { color: var(--text-secondary); }
.size-table tr:hover td { background: rgba(124, 58, 237, 0.03); }

/* ============================================
   FOMO TOAST
   ============================================ */
.fomo-toast {
    position: fixed;
    bottom: 100px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 320px;
    backdrop-filter: blur(20px);
}

.fomo-toast.show { transform: translateX(0); }
.fomo-toast.hide { transform: translateX(-120%); }

.fomo-close {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px;
    cursor: pointer;
}

.fomo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.fomo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fomo-title { font-size: 13px; font-weight: 600; }
.fomo-subtitle { font-size: 12px; color: var(--text-secondary); }
.fomo-time { font-size: 11px; color: var(--text-muted); }

/* ============================================
   POPUP / NEWSLETTER
   ============================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.popup-overlay.active { display: flex; opacity: 1; }

.popup-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 700px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay.active .popup-card { transform: scale(1); }

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.popup-close:hover { background: var(--danger); }

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 12px;
}

.popup-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.popup-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.popup-form input:focus { border-color: var(--accent-purple); }

.popup-dismiss {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.floating-shipping {
    position: fixed;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    z-index: 800;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
}

.floating-shipping.visible {
    right: 0;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { right: -200px; }
    60% { right: 10px; }
    100% { right: 0; }
}

/* Floating Cart FAB */
.wishlist-fab {
    position: fixed;
    bottom: 230px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 800;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}
.wishlist-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.wishlist-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.4);
}
.wishlist-fab .fab-badge,
.cart-fab .cart-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.wishlist-fab .fab-badge.visible,
.cart-fab .cart-fab-badge.visible {
    display: flex;
}
.wishlist-fab .fab-badge {
    background: var(--gradient-primary);
}

.cart-fab {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 800;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}
.cart-fab.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 800;
    transition: all var(--transition-fast);
    cursor: pointer;
    animation: fabPulse 2s ease infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 86px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: transparent;
}

/* ============================================
   RECENTLY VIEWED BAR
   ============================================ */
.recently-viewed-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transform: translateX(-120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}

.recently-viewed-bar.visible {
    transform: translateX(0);
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #22c55e;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.45, 0, 0.4, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.rv-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

#rv-close {
    cursor: pointer;
    background: var(--bg-muted);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    transition: all 0.2s;
    border: none;
    flex-shrink: 0;
    color: var(--text-main);
}

#rv-close:hover {
    background: var(--border-light);
    transform: scale(1.1);
}

.rv-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.rv-items {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}

.rv-item {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.rv-item:hover { transform: scale(1.1); }

.rv-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rv-close {
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px;
    cursor: pointer;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom));
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: none;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 900;
    padding-top: 12px;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(110%);
}

.mobile-bottom-nav.nav-visible {
    transform: translateY(0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i { font-size: 20px; }

.bottom-nav-item.active { color: var(--accent-purple); }

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    width: 24px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
}

.bottom-cart-badge,
.bottom-wishlist-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.bottom-cart-badge.visible,
.bottom-wishlist-badge.visible {
    display: flex;
}
.bottom-wishlist-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.products-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.products-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.products-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.products-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.products-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.products-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.products-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

.flash-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.flash-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.flash-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.flash-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

.instagram-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.instagram-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.instagram-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.instagram-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.instagram-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Rainbow mode (easter egg) */
.rainbow-mode {
    animation: rainbowBg 0.5s linear infinite;
}

@keyframes rainbowBg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Heart burst particles */
.heart-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    pointer-events: none;
    animation: heartBurst 0.6s ease forwards;
}

@keyframes heartBurst {
    0% { opacity: 1; transform: scale(1) translate(0, 0); }
    100% { opacity: 0; transform: scale(0) translate(var(--tx), var(--ty)); }
}

/* Fly to cart */
.fly-to-cart {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.fly-to-cart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual {
        display: flex;
        justify-content: center;
        height: 380px;
        order: -1;
        margin-bottom: 20px;
    }
    .hero-floating-card { width: 140px; height: 180px; position: absolute; }
    .card-1 { transform: rotate(-10deg) translate(-100px, 0); animation: float1_mob 6s ease-in-out infinite !important; z-index: 1; }
    .card-2 { transform: rotate(0deg) translate(0, -20px); animation: float2_mob 7s ease-in-out infinite !important; z-index: 3; width: 160px; height: 210px; }
    .card-3 { transform: rotate(10deg) translate(100px, 0); animation: float3_mob 8s ease-in-out infinite !important; z-index: 2; }

    @keyframes float1_mob {
        0%, 100% { transform: rotate(-10deg) translate(-100px, 0); }
        50% { transform: rotate(-12deg) translate(-105px, -15px); }
    }
    @keyframes float2_mob {
        0%, 100% { transform: rotate(0deg) translate(0, -20px); }
        50% { transform: rotate(2deg) translate(0, -35px); }
    }
    @keyframes float3_mob {
        0%, 100% { transform: rotate(10deg) translate(100px, 0); }
        50% { transform: rotate(12deg) translate(105px, -15px); }
    }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .flash-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { gap: 40px; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero { padding-top: 100px; padding-bottom: 40px; }
    .hero-title { font-size: 32px !important; }
    .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 12px; align-items: stretch; padding: 0 20px; }
    .hero-actions .btn { width: 100%; margin: 0; }
    .hero-stats { gap: 15px; flex-wrap: wrap; margin-bottom: 0; }
    .hero-stat { flex: 1; min-width: 70px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 10px; }
    .hero-visual { height: 280px; margin-top: 0; }
    .hero-floating-card { width: 100px; height: 140px; }
    .card-1 { transform: rotate(-8deg) translate(-80px, 0); animation: float1_sm 6s ease-in-out infinite !important; }
    .card-2 { width: 120px; height: 160px; transform: rotate(0deg) translate(0, -10px); animation: float2_sm 7s ease-in-out infinite !important; }
    .card-3 { transform: rotate(8deg) translate(80px, 0); animation: float3_sm 8s ease-in-out infinite !important; }

    @keyframes float1_sm {
        0%, 100% { transform: rotate(-8deg) translate(-80px, 0); }
        50% { transform: rotate(-10deg) translate(-85px, -10px); }
    }
    @keyframes float2_sm {
        0%, 100% { transform: rotate(0deg) translate(0, -10px); }
        50% { transform: rotate(2deg) translate(0, -25px); }
    }
    @keyframes float3_sm {
        0%, 100% { transform: rotate(8deg) translate(80px, 0); }
        50% { transform: rotate(10deg) translate(85px, -10px); }
    }

    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-inner { grid-template-columns: auto 1fr auto !important; }
    .logo { justify-self: center; order: 2; }
    .hamburger { order: 1; justify-self: start; }
    .nav-actions { order: 3; justify-self: end; }
    .cart-trigger { display: flex !important; }
    .mega-menu-backdrop { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .flash-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .instagram-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .mobile-bottom-nav { display: flex; }
    .footer { padding-bottom: 80px; }
    .cart-fab { display: none; } /* Hidden on mobile — bottom nav has cart */
    .wishlist-fab { display: none; }
    .whatsapp-fab { display: none !important; }
    .scroll-top-btn { display: none !important; }
    .fomo-toast { bottom: 80px; }
    .quickview-grid { grid-template-columns: 1fr; }
    .quickview-gallery { padding: 16px 16px 0; }
    .quickview-main-image { aspect-ratio: 4/3; max-height: 260px; }
    .quickview-details { padding: 16px; }
    .quickview-tabs { margin-bottom: 16px; }
    .quickview-related { display: none; }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .gallery-main { border-radius: 8px; width: 100%; }
    .product-info { padding: 0; width: 100%; box-sizing: border-box; overflow: visible; }
    .product-title { word-wrap: break-word; overflow-wrap: break-word; }
    .popup-card { grid-template-columns: 1fr; }
    .popup-image { display: none; }
    .newsletter-card { padding: 40px 24px; }
    .hero-title { font-size: 36px; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cat-card-image { height: 140px; }
    .recently-viewed-bar { display: none !important; }
    .floating-shipping { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .flash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .instagram-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .categories-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .product-card .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .current-price { font-size: 16px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .cart-drawer, .wishlist-drawer, .profile-drawer { width: 100vw; }
    .container { padding: 0 12px; }
    .product-grid {
        display: block;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    .gallery, .product-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .gallery-main { width: 100%; max-width: 100%; border-radius: 8px; margin: 0; }
    .gallery-main img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
    .gallery-thumbs { width: 100%; padding: 0 10px; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

/* Will-change performance hints */
.product-card, .flash-card, .category-card, .hero-floating-card {
    will-change: transform;
}

.custom-cursor, .cursor-dot {
    will-change: transform;
}

/* ============================================
   TOAST SYSTEM - Updated for new JS structure
   ============================================ */
.toast {
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    animation: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--accent-cyan); }
.toast-wishlist { border-left: 3px solid var(--accent-pink); }
.toast-cart { border-left: 3px solid var(--accent-purple); }
.toast-coupon { border-left: 3px solid var(--accent-purple); }

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--accent-cyan); }
.toast-wishlist .toast-icon { color: var(--accent-pink); }
.toast-cart .toast-icon { color: var(--accent-purple); }
.toast-coupon .toast-icon { color: var(--accent-purple); }

.toast-icon {
    width: auto;
    height: auto;
    background: none;
    font-size: 18px;
}

/* ============================================
   CART DRAWER - Missing pieces
   ============================================ */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 16px;
    margin-bottom: 16px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-mini {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-mini-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.qty-mini-btn:hover {
    background: var(--bg-card-hover);
}

.qty-mini span {
    min-width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.discount-amount {
    color: var(--success);
    font-weight: 600;
}

/* ============================================
   SEARCH RESULTS - Updated for new structure
   ============================================ */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

.search-result-card {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.search-result-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.search-result-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.search-result-info {
    padding: 10px;
}

.search-result-cat {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-pink);
}

.search-no-results {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.5);
}

.search-no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

/* ============================================
   NAV HIDDEN ON SCROLL  (rules live at line ~376 and ~392)
   ============================================ */

/* ============================================
   CURSOR HOVER STATE
   ============================================ */
.custom-cursor.cursor-hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
}

/* ============================================
   SHAKE ANIMATION (invalid coupon)
   ============================================ */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ============================================
   BOUNCE IN (floating shipping)
   ============================================ */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

@keyframes bounceIn {
    0% { transform: scale(0.3) translateY(20px); opacity: 0; }
    50% { transform: scale(1.1) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ============================================
   HEART BURST PARTICLES
   ============================================ */
@keyframes heartBurst {
    0% { transform: translate(-50%, -50%) translateX(0) translateY(0); opacity: 1; }
    100% {
        transform: translate(-50%, -50%)
            translateX(calc(cos(var(--angle)) * var(--distance)))
            translateY(calc(sin(var(--angle)) * var(--distance)));
        opacity: 0;
    }
}

/* Fallback for browsers without cos/sin */
.heart-particle:nth-child(1) { animation: heartBurst1 0.6s ease-out forwards; }
.heart-particle:nth-child(2) { animation: heartBurst2 0.6s ease-out forwards; }
.heart-particle:nth-child(3) { animation: heartBurst3 0.6s ease-out forwards; }
.heart-particle:nth-child(4) { animation: heartBurst4 0.6s ease-out forwards; }
.heart-particle:nth-child(5) { animation: heartBurst5 0.6s ease-out forwards; }
.heart-particle:nth-child(6) { animation: heartBurst6 0.6s ease-out forwards; }
.heart-particle:nth-child(7) { animation: heartBurst7 0.6s ease-out forwards; }
.heart-particle:nth-child(8) { animation: heartBurst8 0.6s ease-out forwards; }

@keyframes heartBurst1 { to { transform: translate(-50%,-50%) translate(20px, 0); opacity: 0; } }
@keyframes heartBurst2 { to { transform: translate(-50%,-50%) translate(14px, 14px); opacity: 0; } }
@keyframes heartBurst3 { to { transform: translate(-50%,-50%) translate(0, 20px); opacity: 0; } }
@keyframes heartBurst4 { to { transform: translate(-50%,-50%) translate(-14px, 14px); opacity: 0; } }
@keyframes heartBurst5 { to { transform: translate(-50%,-50%) translate(-20px, 0); opacity: 0; } }
@keyframes heartBurst6 { to { transform: translate(-50%,-50%) translate(-14px, -14px); opacity: 0; } }
@keyframes heartBurst7 { to { transform: translate(-50%,-50%) translate(0, -20px); opacity: 0; } }
@keyframes heartBurst8 { to { transform: translate(-50%,-50%) translate(14px, -14px); opacity: 0; } }

/* ============================================
   QUICK VIEW - Fixes
   ============================================ */
.qv-review {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.qv-review:last-child { border-bottom: none; }

.qv-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.qv-review-header strong {
    font-size: 14px;
}

.qv-review-header .stars {
    font-size: 12px;
    color: #f59e0b;
}

.qv-review p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.qv-review-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Related products in quickview */
.related-product-card {
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-fast);
}

.related-product-card:hover { transform: translateY(-4px); }

.related-product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.related-product-card p {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-product-card span {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-purple);
}

/* ============================================
   CONFETTI CANVAS
   ============================================ */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    display: none;
}

/* ============================================
   WISHLIST TO CART BUTTON
   ============================================ */
.wishlist-to-cart {
    margin-top: 8px;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown {
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* ============================================
   RV Items with images
   ============================================ */
.rv-item {
    cursor: pointer;
    overflow: hidden;
}

.rv-item img {
    transition: transform var(--transition-fast);
}

.rv-item:hover img {
    transform: scale(1.1);
}

/* Trust Elements */
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid #dcfce7;
}

.trust-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.trust-banner-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-banner-item i {
    color: #f43f3f;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.trust-banner-item span {
    line-height: 1.3;
}

@media (max-width: 400px) {
    .trust-banner { grid-template-columns: 1fr; }
}

/* ============================================
   VARIANT PICKER TABLE (product detail)
   ============================================ */
.variant-picker {
    margin: 20px 0;
}
.variant-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}
.variant-picker-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.variant-picker-hint {
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.variant-table-wrap {
    border-radius: 8px;
    overflow-x: auto; /* Changed for ultra-small screens */
    border: 1px solid #eee;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.variant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.variant-table th:nth-child(1) { width: 15%; }
.variant-table th:nth-child(2) { width: 35%; }
.variant-table th:nth-child(3) { width: 20%; }
.variant-table th:nth-child(4) { width: 30%; }

.variant-table thead th {
    background: #fafafa;
    color: #999;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 8px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.variant-table thead th:last-child { text-align: center; }
.variant-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background .15s;
}
.variant-table tbody tr:last-child { border-bottom: none; }
.variant-table tbody tr:hover:not(.variant-row-out) { background: var(--bg-hover); }
.variant-row-active { background: rgba(139,92,246,.05) !important; }
.variant-row-out { opacity: .5; }
.variant-table td { padding: 10px 8px; vertical-align: middle; }

.vt-size {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    min-width: 0;
}
.vt-stock { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.vt-stock-dot { font-size: 10px; }
.vt-ok   .vt-stock-dot { color: var(--success); }
.vt-low  .vt-stock-dot { color: #f59e0b; }
.vt-out  .vt-stock-dot { color: var(--danger); }
.vt-warn { font-size: 11px; font-weight: 700; color: #f59e0b; }
.vt-unavail { color: var(--text-muted); }

.vt-price { font-weight: 600; color: var(--text); }

.vt-qty-cell { text-align: center; }
.vt-qty {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color .15s;
}
.variant-row-active .vt-qty { border-color: var(--accent-purple); }
.vt-minus, .vt-plus {
    width: 32px; height: 32px;
    border: none; background: none;
    cursor: pointer; font-size: 16px; font-weight: 300;
    color: var(--text-muted);
    transition: background .12s, color .12s;
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.vt-minus:hover, .vt-plus:hover { background: var(--bg-hover); color: var(--accent-purple); }
.vt-qty-val {
    min-width: 32px; text-align: center;
    font-weight: 700; font-size: 14px;
    color: var(--text);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    line-height: 32px;
    display: inline-block;
}
.variant-row-active .vt-qty-val { color: var(--accent-purple); }
.vt-na { color: var(--text-muted); font-size: 18px; }

.variant-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f43f3f;
}

.variant-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-add-btn {
    background: #f43f3f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.15s ease;
    letter-spacing: 0.3px;
}
.product-add-btn:hover { background: #e03030 !important; }

@media (max-width: 768px) {
    /* Mobitel: svi stupci vidljivi, kompaktan layout */
    .variant-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 11px; }
    .variant-table-wrap { overflow: visible; }
    .variant-table th:nth-child(1) { width: 18%; }
    .variant-table th:nth-child(2) { width: 30%; }
    .variant-table th:nth-child(3) { width: 22%; }
    .variant-table th:nth-child(4) { width: 30%; }

    .variant-table thead th { padding: 6px 3px; font-size: 9px; text-transform: uppercase; }
    .variant-table td { padding: 10px 3px; }

    .vt-size { font-size: 12px; font-weight: 700; }
    .vt-stock { font-size: 10px; gap: 2px; flex-wrap: wrap; }
    .vt-stock-dot { display: none; }
    .vt-warn { font-size: 9px; display: block; width: 100%; }
    .vt-price { font-size: 11px; font-weight: 700; }

    .vt-qty {
        display: flex;
        width: 82px; /* Smanjena ukupna širina da stane */
        margin: 0 auto;
        border: 1px solid #ddd;
        border-radius: 6px;
        overflow: hidden;
    }
    .vt-minus, .vt-plus {
        width: 28px; /* Smanjena širina gumba */
        height: 34px;
        font-size: 18px;
        background: #f1f1f1;
        border: none;
        flex: none;
    }
    .vt-qty-val {
        flex: 1;
        font-size: 14px;
        min-width: 24px;
        line-height: 34px;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        background: #fff;
    }
}

/* ============================================
   REVIEWS SECTION (standalone, not in tab)
   ============================================ */
.reviews-section {
    max-width: 900px;
    margin: 40px auto;
    width: 100%;
}
.reviews-header { margin-bottom: 16px; }
.reviews-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #222;
}
.reviews-avg { color: #f59e0b; font-size: 0.82rem; }
.reviews-avg i { font-size: 11px; }
.reviews-count { color: #aaa; font-size: 0.82rem; font-weight: 400; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
@media (max-width: 600px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #f0f0f0;
    background: #fff;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.review-header .stars { color: #f59e0b; font-size: 0.82rem; }

/* ============================================
   ADVANCED PRODUCT COMPONENTS (Temu-inspired)
   ============================================ */

/* Review Summary Distribution */
.review-summary-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    align-items: center;
}

.rating-score-huge {
    text-align: center;
}

.score-num {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: #1a1a1a;
}

.score-stars {
    color: #f59e0b;
    margin: 8px 0;
    font-size: 1.1rem;
}

.score-total {
    font-size: 0.85rem;
    color: #888;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #555;
}

.bar-label {
    width: 60px;
    white-space: nowrap;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
}

.bar-count {
    width: 30px;
    text-align: right;
    color: #999;
}

/* Shipping & Policies Card */
.policy-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.policy-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f8f8;
}

.policy-item:last-child { border-bottom: none; }

.policy-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff5f5;
    color: #f43f3f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.policy-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.policy-text p {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.4;
}

/* Sticky Mobile Bar */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: none;
    z-index: 999;
    gap: 12px;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-mobile-bar.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sticky-mobile-bar { display: flex; }
    .review-summary-box { grid-template-columns: 1fr; gap: 24px; }
    .mobile-bottom-nav { display: flex !important; }
}

@media (max-width: 360px) {
    .sticky-mobile-bar { padding: 8px 10px; gap: 8px; }
    .sticky-img { width: 36px; height: 36px; }
    .sticky-name { font-size: 0.75rem; }
    .sticky-price { font-size: 0.85rem; }
    .sticky-mobile-bar .product-add-btn { padding: 8px 12px; font-size: 12px; }
    .review-summary-box { padding: 16px; }
    .score-num { font-size: 2.2rem; }
}

/* Specific override for product page to avoid bottom nav clash */
body.product-page .mobile-bottom-nav { display: flex; }
body.product-page { padding-bottom: 140px; } /* Space for both bars */

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sticky-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.sticky-meta {
    min-width: 0;
}

.sticky-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f43f3f;
}

/* Modern Related Products */
.related-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    padding-left: 15px;
}

.related-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.reviews-main-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .details-section-wrap, .reviews-section-wrap {
        padding: 20px 0 !important; /* Drastično smanjen padding sekcija na mobitelu */
    }
    .reviews-main-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        margin-top: 0;
    }
    .gallery-thumbs {
        padding-top: 15px; /* Još veći odmak malih slika od velike na mobitelu */
    }
    .breadcrumb-current {
        display: none;
    }
    .breadcrumb i:last-of-type {
        display: none;
    }
    .tab-nav {
        gap: 16px;
    }
    .tab-btn {
        font-size: 0.8rem;
    }
    .review-summary-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }
}


