/* ═══════════════════════════════════════════════════════════════════
   CSS RESET & VARIABLES
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --primary-color: 280 100% 70%;
    --accent-color: 320 100% 70%;
    --dark-color: 220 13% 18%;
    --background-color: 220 13% 15%;
    --text-color: 220 13% 91%;
    --muted-color: 220 9% 46%;
    --border-color: 220 13% 31%;
    --surface-color: 220 13% 24%;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-color));
    background: linear-gradient(135deg, hsl(var(--dark-color)), hsl(220 13% 12%));
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-center: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.p-3 { padding: 1.5rem; }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    outline: none !important;
    box-shadow: none !important;
}

/* Universal button reset to prevent white lines */
button, .btn, input[type="button"], input[type="submit"] {
    border: none !important;
    outline: none !important;
}

button:focus, .btn:focus, input[type="button"]:focus, input[type="submit"]:focus {
    border: none !important;
    outline: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:focus,
.btn-primary:active {
    border: none !important;
    outline: none !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

.navbar {
    background: rgba(34, 40, 49, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10001; /* Higher than all modals to keep navigation visible */
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: hsl(var(--text-color));
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: hsl(var(--accent-color));
    animation: heartPulseLogo 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartPulseLogo {
    0% {
        transform: scale(1);
        stroke: hsl(var(--accent-color));
        fill: hsl(var(--accent-color));
    }
    25% {
        transform: scale(1.1);
        stroke: hsl(var(--primary-color));
        fill: hsl(var(--primary-color));
    }
    50% {
        transform: scale(1.2);
        stroke: hsl(320 100% 80%);
        fill: hsl(320 100% 80%);
    }
    75% {
        transform: scale(1.1);
        stroke: hsl(var(--primary-color));
        fill: hsl(var(--primary-color));
    }
    100% {
        transform: scale(1);
        stroke: hsl(var(--accent-color));
        fill: hsl(var(--accent-color));
    }
}

.navbar-center {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: hsl(var(--muted-color));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--text-color));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border-radius: 1px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    color: hsl(var(--text-color));
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.nav-icon-btn:focus,
.nav-icon-btn:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.nav-icon-btn:hover {
    color: hsl(var(--text-color));
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: hsl(var(--accent-color));
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    transition: transform 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   PULSING HEART ANIMATION
   ═══════════════════════════════════════════════════════════════════ */

.nav-icon-btn .fa-heart {
    animation: heartPulse 2s ease-in-out infinite;
    transform-origin: center;
    color: hsl(var(--accent-color));
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    75% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced hover effect for pulsing heart */
.nav-icon-btn:hover .fa-heart {
    animation: heartPulseFast 0.8s ease-in-out infinite;
    color: hsl(var(--primary-color));
}

@keyframes heartPulseFast {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.1) 0%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    padding: 6rem 1rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.25rem;
    color: hsl(var(--muted-color));
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   MODERN FILTER SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

.modern-filter-system {
    background: linear-gradient(135deg, rgba(34, 40, 49, 0.98), rgba(44, 50, 59, 0.98));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    position: sticky;
    top: 80px;
    z-index: 900;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    color: hsl(var(--text-color));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-color));
    font-size: 1.1rem;
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(var(--muted-color));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: hsl(var(--text-color));
}

/* Filter Tabs */
.filter-tabs {
    margin-bottom: 1.5rem;
}

.filter-tabs-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 50px;
    max-width: fit-content;
    margin: 0 auto;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: hsl(var(--muted-color));
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.filter-tab:hover {
    background: rgba(168, 85, 247, 0.1);
    color: hsl(var(--text-color));
}

.filter-tab.active {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Filter Content */
.filter-content {
    position: relative;
    min-height: 120px;
}

.filter-panel {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.filter-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.subcategory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    color: hsl(var(--text-color));
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.category-chip:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.category-chip.active {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border-color: hsl(var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.category-chip.parent-category {
    font-weight: 600;
    font-size: 1.05rem;
}

.category-chip.subcategory {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.filter-label {
    display: block;
    color: hsl(var(--text-color));
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#inStockFilter:checked + .toggle-label .toggle-slider {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
}

#inStockFilter:checked + .toggle-label .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    color: hsl(var(--text-color));
    font-weight: 500;
}

/* Price Range */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    color: hsl(var(--text-color));
    text-align: center;
    font-weight: 500;
}

.price-input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    background: rgba(255, 255, 255, 0.08);
}

.price-separator {
    color: hsl(var(--muted-color));
    font-weight: 600;
}

.price-slider-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

/* Brand Chips */
.brand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    color: hsl(var(--text-color));
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-chip:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
}

.brand-chip.active {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border-color: hsl(var(--primary-color));
    color: white;
}

/* Color Filter Grid */
.color-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.75rem;
    max-width: 300px;
}

.color-filter-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.color-filter-dot:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.color-filter-dot.selected {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

.color-filter-dot.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

/* Sort Options */
.sort-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 15px;
    color: hsl(var(--text-color));
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.sort-option:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.sort-option.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: hsl(var(--primary-color));
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.2);
}

.sort-option i {
    font-size: 1.5rem;
    color: hsl(var(--primary-color));
}

.sort-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sort-desc {
    display: block;
    font-size: 0.9rem;
    color: hsl(var(--muted-color));
}

/* Filter Summary */
.filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: hsl(var(--text-color));
    font-weight: 500;
}

.clear-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid rgba(255, 71, 87, 0.3);
    border-radius: 20px;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-all-btn:hover {
    background: rgba(255, 71, 87, 0.3);
    border-color: #ff4757;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════
   SLEEK FILTER NAVBAR
   ═══════════════════════════════════════════════════════════════════ */

.professional-filter-navbar {
    background: linear-gradient(135deg, rgba(34, 40, 49, 0.95), rgba(44, 50, 59, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-navbar-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-bottom-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.clean-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    color: hsl(var(--text-color));
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clean-search-input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.clean-search-input::placeholder {
    color: hsl(var(--muted-color));
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-color));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(var(--muted-color));
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    color: #ef4444;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: hsl(var(--text-color));
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: rgba(34, 40, 49, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-with-submenu {
    position: relative;
}

.dropdown-item.parent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
}

.dropdown-item-with-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    position: absolute;
    left: calc(100% + 2.5rem);
    top: 0;
    background: hsl(var(--dark-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 400px;
    max-width: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item-with-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.subcategory-item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
}

.subcategory-item:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
    border-left-color: hsl(var(--primary-color));
    color: hsl(var(--text-color));
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

/* Custom scrollbar for submenu */
.submenu::-webkit-scrollbar {
    width: 6px;
}

.submenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb {
    background: hsl(var(--primary-color));
    border-radius: 3px;
}

/* Color Filter Dropdown Styles */
.color-filter-dropdown {
    position: relative;
}

.color-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: hsl(var(--dark-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-dropdown-toggle:hover {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.color-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: hsl(var(--dark-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1rem;
}

.color-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.color-grid-container {
    max-height: 200px;
    overflow-y: auto;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.color-filter-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.color-filter-dot:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-filter-dot.selected {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3);
}

.color-filter-dot.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

.submenu::-webkit-scrollbar {
    width: 4px;
}

.submenu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.submenu::-webkit-scrollbar-thumb {
    background: hsl(var(--primary-color));
    border-radius: 2px;
}

.submenu::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--accent-color));
}

.dropdown-section {
    padding: 1rem;
}

.dropdown-section h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--primary-color));
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0;
    color: hsl(var(--text-color));
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.dropdown-item:hover {
    color: hsl(var(--primary-color));
    padding-left: 0.5rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Toggle Filter Styles */
.filter-toggle-wrapper {
    display: flex;
    align-items: center;
}

.toggle-filter {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: hsl(var(--text-color));
}

.toggle-slider-filter {
    position: relative;
    width: 36px;
    height: 18px;
    background: #ccc;
    border-radius: 18px;
    transition: background 0.3s ease;
}

.toggle-slider-filter:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-filter input:checked + .toggle-slider-filter {
    background: hsl(var(--primary-color));
}

.toggle-filter input:checked + .toggle-slider-filter:before {
    transform: translateX(20px);
}

.toggle-filter input {
    display: none;
}

/* Color Filter Dropdown Styles */
.color-filter-dropdown {
    position: relative;
    display: inline-block;
}

/* Color tooltip styles */
.color-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-tooltip.show {
    opacity: 1;
}

.color-grid-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-grid-dot:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-grid-dot.selected,
.color-filter-dot.selected {
    border-color: hsl(var(--primary-color));
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3);
}
}

.color-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    background: hsl(var(--dark-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.color-dropdown-toggle:hover {
    border-color: hsl(var(--primary-color));
}

.color-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.color-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.color-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: hsl(var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    min-width: 200px;
}

.color-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.color-grid-container {
    padding: 1rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 160px;
}

.color-grid-dot {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-sizing: border-box;
}

.color-grid-dot:hover {
    transform: scale(1.1);
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px hsl(var(--primary-color) / 0.3);
}

.color-grid-dot.selected {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.3);
}

.color-grid-dot.all-colors {
    background: linear-gradient(45deg,
        #ff0000 0%, #ff7f00 16.66%, #ffff00 33.33%,
        #00ff00 50%, #0000ff 66.66%, #8b00ff 83.33%, #ff0000 100%);
    border: 2px solid var(--border-color);
}

/* Clear Filters Button */
.filter-clear-wrapper {
    margin-left: 0;
}

.btn-clear-filters {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 15px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #ef4444;
    color: white;
}

/* Individual filter clear buttons */
.filter-clear-btn {
    background: transparent;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.filter-clear-btn:hover {
    background: #ef4444;
    color: white;
    opacity: 1;
}

.filter-section-with-clear {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-section-with-clear .filter-clear-btn {
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Active category clear button */
.active-category-clear {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.active-category-clear:hover {
    background: #ef4444 !important;
    color: white !important;
}

.active-category-clear i {
    margin-right: 0.5rem;
}

.modern-select {
    appearance: none;
    background: hsl(var(--dark-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    padding: 0.6rem 2rem 0.6rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.modern-select:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.modern-select:hover {
    border-color: hsl(var(--primary-color));
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-color));
    font-size: 0.75rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.filter-dropdown-wrapper:hover .select-arrow {
    color: hsl(var(--primary-color));
}

.results-info {
    color: hsl(var(--muted-color));
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    white-space: nowrap;
}

/* Mobile Responsiveness for Filter */
@media (max-width: 768px) {
    .professional-filter-navbar {
        padding: 0.75rem 0;
    }
    
    .filter-navbar-content {
        gap: 0.5rem;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .filter-bottom-row {
        gap: 0.4rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    
    .dropdown-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .btn-clear-filters,
    .results-info {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT GRID & CARDS
   ═══════════════════════════════════════════════════════════════════ */

.products-section {
    padding: 2rem 0;
    min-height: 60vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    justify-content: start;
}

.product-card {
    width: 100%;
    max-width: 380px;
    justify-self: start;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.25rem;
    }

    .product-card {
        max-width: 350px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .product-card {
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }

    .product-card {
        max-width: 100%;
        justify-self: center;
    }
    
    .product-buttons {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .btn-add-cart {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-height: 40px;
        flex: 1;
    }
    
    .btn-wishlist {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .product-buttons {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }
}

.clean-product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clean-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary-color) / 0.3);
}

/* Product card out of stock styling */
.product-card[data-in-stock="false"] {
    opacity: 0.7;
    position: relative;
}

.product-card[data-in-stock="false"] .product-image {
    position: relative;
}

.product-card[data-in-stock="false"] .product-image:before {
    content: 'OUT OF STOCK';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.65rem;
    z-index: 10;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-card[data-in-stock="false"] .product-buttons .btn-add-cart {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.6), rgba(128, 128, 128, 0.8));
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    font-size: 0.85rem;
    opacity: 0.6;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card[data-in-stock="false"] .product-buttons .btn-add-cart:hover {
    transform: none;
    box-shadow: none;
}

.product-status-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    background: hsl(var(--primary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-badge.bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.wishlist-heart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.wishlist-heart:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    transform: scale(1.1);
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.wishlist-heart.in-wishlist {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.wishlist-heart.in-wishlist:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.wishlist-heart:active {
    transform: scale(0.95);
}

.wishlist-heart i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.wishlist-heart.in-wishlist i {
    transform: scale(1.1);
}

.clean-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.clean-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clean-product-card:hover .clean-product-image {
    transform: scale(1.05);
}

.clean-placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-color));
    font-size: 3rem;
}

.clean-product-info {
    padding: 1.5rem;
}

.clean-product-title {
    font-size: 20px !important;
    font-weight: 700;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.clean-product-title:hover {
    color: hsl(var(--primary-color));
}

.clean-product-subtitle {
    color: #64748b;
    font-size: 16px !important;
    font-weight: 400;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.clean-price-section {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.original-price {
    color: hsl(var(--muted-color));
    text-decoration: line-through;
    font-size: 0.875rem;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.current-price {
    color: #1e293b;
    font-size: 22px !important;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

.savings {
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}



.color-dot.split-color {
    /* Ensure the linear gradient fills the entire circle */
    width: 20px !important;
    height: 20px !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

.color-dot.diagonal-split {
    /* Diagonal split for two colors */
    width: 20px !important;
    height: 20px !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-clip: padding-box !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Clickable color dot styles for variants */
.clickable-color-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
    background: none;
    padding: 0;
    outline: none;
}

.clickable-color-dot:hover {
    transform: scale(1.1);
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px hsla(var(--primary-color), 0.3);
}

.clickable-color-dot.active {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px hsla(var(--primary-color), 0.5);
    transform: scale(1.05);
}

.clickable-color-dot:focus {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px hsla(var(--primary-color), 0.5);
}

.clickable-color-dot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.clickable-color-dot:disabled:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

/* Color tooltip styles */
.color-tooltip {
    position: fixed;
    background: hsl(var(--dark-color));
    color: hsl(var(--text-color));
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    min-width: 60px;
    text-align: center;
    font-weight: 500;
    transform: translateX(-10px);
}

.color-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.color-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -4px;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: hsl(var(--dark-color));
}

.no-colors-text {
    color: hsl(var(--muted-color));
    font-style: italic;
    font-size: 0.875rem;

}

.clean-add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clean-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════
   MIAMI DELIVERY SECTION
   ═══════════════════════════════════════════════════════════════════ */

.miami-service-section {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.05) 0%,
        rgba(236, 72, 153, 0.05) 50%,
        rgba(59, 130, 246, 0.05) 100%
    );
    padding: 6rem 1rem;
    position: relative;
    overflow: hidden;
}

.miami-service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(168,85,247,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.miami-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.miami-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.miami-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-color));
    line-height: 1.6;
    margin-bottom: 3rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.service-feature:hover {
    transform: translateX(10px);
    border-color: hsl(var(--primary-color) / 0.3);
}

.feature-icon {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
    line-height: 1.5;
}

.miami-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-coverage-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.btn-coverage-link:hover {
    border-bottom-color: hsl(var(--primary-color));
    transform: translateY(-2px);
}

.miami-visual {
    position: relative;
    width: 100%;
}

.miami-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* Debug: make container visible */
    min-height: 500px;
}

.folium-map {
    width: 100%;
    height: 100%;
    border: none;
    /* Remove border-radius from iframe to prevent conflicts */
    border-radius: 0;
    flex: 1;
    min-height: 400px;
}

.map-legend {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    z-index: 10;
    min-width: 200px;
}

.map-legend h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.interactive-miami-map {
    position: relative;
    width: 100%;
    height: 400px;
    flex: 1;
}

.miami-svg-map {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.delivery-area {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.delivery-area:hover {
    opacity: 1;
    filter: brightness(1.2);
    transform: scale(1.05);
    transform-origin: center;
}

.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px currentColor);
}

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

.area-tooltip {
    position: absolute;
    background: hsl(var(--dark-color));
    color: hsl(var(--text-color));
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    min-width: 180px;
}

.area-tooltip.show {
    opacity: 1;
}

.tooltip-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: hsl(var(--primary-color));
}

.tooltip-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-color));
}

.coverage-stats {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-md);
    padding: 1rem;
    z-index: 20;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--primary-color));
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-color));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* Responsive adjustments for Miami section */
@media (max-width: 768px) {
    .miami-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .miami-info h2 {
        font-size: 2rem;
    }

    .miami-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .service-feature:hover {
        transform: none;
    }

    .miami-map-container {
        height: 350px;
        min-height: 350px;
    }

    .coverage-stats {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1rem;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.9);
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .miami-map-container {
        height: 300px;
        min-height: 300px;
    }

    .coverage-stats {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .stat-item {
        padding: 0.25rem;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURED PRODUCTS (INDEX PAGE)
   ═══════════════════════════════════════════════════════════════════ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Ensure all grid items stretch to same height */
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px; /* Increased minimum height for better consistency */
}

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

.product-image {
    position: relative;
    height: 312px;
    overflow: hidden;
    padding: 3rem;
    background: white;
    flex-shrink: 0; /* Prevent image section from shrinking */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: calc(100% - 2rem);
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-color));
    border-radius: var(--radius-md);
}

.placeholder-image svg {
    width: 4rem;
    height: 4rem;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARD SLIDESHOW
   ═══════════════════════════════════════════════════════════════════ */

.product-card-slideshow {
    position: relative;
}

.product-card-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.product-card-slideshow:hover .product-card-nav-arrow {
    opacity: 1;
    visibility: visible;
}

.product-card-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.product-card-nav-arrow.prev {
    left: 10px;
}

.product-card-nav-arrow.next {
    right: 10px;
}

.product-card-image-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card-slideshow:hover .product-card-image-counter {
    opacity: 1;
    visibility: visible;
}

/* Hide the JSON script elements */
.product-images-data {
    display: none;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.btn-quick-view {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-view:hover {
    background: white;
    transform: scale(1.1);
}

.btn-quick-view svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  flex: 1;
  position: relative;
  min-height: 200px; /* Set minimum height for consistent layout */
}

.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: flex-start; /* Align content to top */
  gap: 0; /* Remove any default gaps */
}

.product-category {
    color: hsl(var(--primary-color));
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    flex-shrink: 0; /* Prevent category from shrinking */
}

.product-title {
    margin-bottom: 0.75rem;
    flex-shrink: 0; /* Prevent title from shrinking */
    min-height: 54px; /* Ensure consistent height for 2 lines of text */
    display: flex;
    align-items: flex-start;
}

.product-title a {
    color: hsl(var(--text-color));
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    transition: color 0.2s ease;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.product-title a:hover {
    color: hsl(var(--primary-color));
}

.product-colors {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0; /* Prevent colors from shrinking */
    min-height: 28px; /* Ensure consistent height whether colors exist or not */
}

.colour-unavailable {
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
    font-style: italic;
}

.product-colors-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-color));
    font-weight: 500;
}

.product-color-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.product-color-dot {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
    margin-right: 0.5rem;
}



.product-color-dot.split-color {
    /* Ensure the linear gradient fills the entire circle */
    width: 20px !important;
    height: 20px !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

.product-color-dot.diagonal-split {
    /* Diagonal split for two colors */
    width: 20px !important;
    height: 20px !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-clip: padding-box !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.product-price {
    color: hsl(var(--primary-color));
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0; /* Remove bottom margin to let buttons handle spacing */
    flex-shrink: 0; /* Prevent price from shrinking */
}

.product-description {
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.product-buttons {
    display: flex;
    gap: 0.75rem;
    color: white;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0; /* Prevent buttons from shrinking */
    width: 100%;
    position: relative;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    width: 270px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-add-cart.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-add-cart.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-add-cart svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-add-cart:hover svg {
    transform: scale(1.1);
}

.btn-wishlist {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: hsl(var(--muted-color));
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.btn-wishlist:hover {
    color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-wishlist.in-wishlist,
.btn-wishlist.liked {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-wishlist.in-wishlist:hover,
.btn-wishlist.liked:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-wishlist svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-wishlist.in-wishlist svg,
.btn-wishlist.liked svg {
    transform: scale(1.1);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.btn-wishlist:disabled,
.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile responsive improvements */
@media (max-width: 480px) {
    .product-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 48px;
        border-radius: var(--radius-md);
    }
    
    .btn-wishlist svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .product-buttons {
        gap: 0.75rem;
    }
    
    .btn-add-cart {
        font-size: 0.875rem;
        padding: 0.8rem 1rem;
    }
    
    .btn-wishlist {
        width: 48px;
        height: 48px;
    }
}

.btn-wishlist:active {
    transform: scale(0.95);
}

.btn-add-cart:focus,
.btn-wishlist:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

.btn-add-cart:focus:not(:focus-visible),
.btn-wishlist:focus:not(:focus-visible) {
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════════
   WISHLIST STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   WISHLIST MODAL STYLES
   ═══════════════════════════════════════════════════════════════════ */

.wishlist-modal {
    width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    margin-top: 4rem;
    margin-right: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: hsl(var(--surface-color));
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10001;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-modal.show {
    transform: translateX(0);
}

.wishlist-modal .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.wishlist-modal .modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-modal .modal-header h2 i {
    font-size: 1.1rem;
    color: #ef4444;
}

.wishlist-modal .modal-header p {
    color: hsl(var(--muted-color));
    margin: 0;
    font-size: 0.875rem;
}

.wishlist-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: hsl(var(--muted-color));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    z-index: 10000;

}

.wishlist-modal .modal-close:hover {
    background: hsl(var(--muted-color) / 0.1);
    color: hsl(var(--text-color));
}

.wishlist-modal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

.wishlist-loading {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--muted-color));
}

.wishlist-loading i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary-color));
}

.wishlist-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: hsl(var(--primary-color));
}

.wishlist-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.wishlist-item-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-color));
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wishlist-item-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.wishlist-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
    margin-bottom: 0.5rem;
}

.wishlist-item-stock {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.wishlist-item-stock.in-stock {
    color: #10b981;
}

.wishlist-item-stock.out-of-stock {
    color: #ef4444;
}

.wishlist-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-modal-add-cart {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-modal-add-cart:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-modal-add-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-modal-remove {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-modal-remove:hover {
    background: #ef4444;
    color: white;
}

.empty-wishlist-modal {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-wishlist-modal .empty-state {
    max-width: 280px;
    margin: 0 auto;
}

.empty-wishlist-modal i {
    font-size: 2.5rem;
    color: hsl(var(--muted-color) / 0.6);
    margin-bottom: 1rem;
    display: block;
}

.empty-wishlist-modal h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
}

.empty-wishlist-modal p {
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.875rem;
}

.empty-wishlist-modal .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

.empty-wishlist-modal .btn i {
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

/* Quick View Modal Styles */
.quick-view-modal {
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 0;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.quick-view-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-view-images .main-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

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

.quick-view-images .image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.quick-view-images .thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.quick-view-images .thumbnail.active {
    border-color: var(--primary-color);
}

.quick-view-images .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-view-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.quick-view-info .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.quick-view-info .color-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-view-info .color-options {
    display: flex;
    gap: 0.5rem;
}

.quick-view-info .color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-view-info .color-option.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quick-view-info .quantity-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-view-info .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-view-info .quantity-controls button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-info .quantity-controls input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quick-view-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.quick-view-actions .btn-primary,
.quick-view-actions .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s;
}

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

.quick-view-actions .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

@media (max-width: 768px) {
    .quick-view-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .quick-view-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .quick-view-actions {
        flex-direction: column;
    }
}

/* Responsive modal design */
@media (max-width: 768px) {
    /* Center modals on mobile */
    #authOverlay.auth-overlay,
    #quickViewModal.modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    #authOverlay .auth-modal {
        width: 95%;
        max-width: 400px;
        position: relative;
        top: auto;
        right: auto;
        transform: scale(0.9) translateY(20px);
    }

    #authOverlay:not([hidden]) .auth-modal {
        transform: scale(1) translateY(0);
    }

    /* Right-side modals become full-width on mobile */
    #wishlistModal.modal-overlay,
    #accountModal.modal-overlay,
    #cartModal.modal-overlay,
    #loggedModal.modal-overlay {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    #wishlistModal .modal,
    #accountModal .modal,
    #cartModal .modal {
        position: relative;
        top: auto;
        right: auto;
        width: 95%;
        max-width: 400px;
        transform: scale(0.9) translateY(20px);
    }



    .wishlist-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wishlist-item-image {
        width: 100%;
        height: 120px;
    }

    .wishlist-item-actions {
        justify-content: space-between;
    }

    .btn-modal-add-cart,
    .btn-modal-remove {
        flex: 1;
        justify-content: center;
    }
}

.wishlist-section {
    padding: 2rem 0 4rem;
    min-height: 80px;
}

.wishlist-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wishlist-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.wishlist-header h1 i {
    color: #ef4444;
}

.wishlist-header p {
    color: hsl(var(--muted-color));
    font-size: 1.1rem;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.wishlist-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.wishlist-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    color: hsl(var(--muted-color));
    font-size: 3rem;
}

.wishlist-info {
    padding: 1.5rem;
}

.wishlist-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wishlist-info h3 a {
    color: hsl(var(--text-color));
    text-decoration: none;
    transition: color 0.2s ease;
}

.wishlist-info h3 a:hover {
    color: hsl(var(--primary-color));
}

.wishlist-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--accent-color));
    margin-bottom: 0.75rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.wishlist-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: hsl(var(--muted-color));
}

.btn-remove-wishlist {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: var(--radius-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-wishlist:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.empty-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.empty-state {
    text-align: center;
    max-width: 400px;
}

.empty-state i {
    font-size: 4rem;
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 1rem;
}

.empty-state p {
    color: hsl(var(--muted-color));
    margin-bottom: 2rem;
    line-height: 1.6;
}

.nav-icon-btn.active {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white !important;
}

.nav-icon-btn.active .icon-badge {
    background: hsl(var(--accent-color)) !important;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL STYLES
   ═══════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    pointer-events: auto;
}

/* Center modals (auth, quick view, change password) */
#authOverlay.auth-overlay,
#quickViewModal.modal-overlay,
#changePasswordModal.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Right-side modals (wishlist, account, shopping cart) - Desktop */
@media (min-width: 769px) {
    #wishlistModal.modal-overlay,
    #accountModal.modal-overlay,
    #cartModal.modal-overlay,
    #loggedModal.modal-overlay {
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(2px);
        align-items: flex-start !important;
        justify-content: flex-end !important;
        z-index: 9999; /* Lower than navigation to keep shopping cart icon visible */
    }
}

.modal {
    background: hsl(var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    margin: 0;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

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

/* Right-side modal positioning - Desktop */
@media (min-width: 769px) {
    #wishlistModal .modal,
    #accountModal .modal,
    #cartModal .modal
    {
        position: fixed !important;
        top: 80px !important; /* Below header */
        right: 20px !important;
        margin: 0 !important;
        max-width: 400px !important;
        width: 400px !important;
        max-height: calc(100vh - 100px);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #wishlistModal.active .modal,
    #accountModal.active .modal,
    #cartModal.active .modal {
        transform: translateX(0) !important;
    }

    /* Logged-in user account modal - slides in from right */
    #loggedModal .logged-modal {
        position: fixed;
        top: 80px;                    /* below navbar */
        right: 20px;
        width: 400px;
        max-height: calc(100vh - 100px);
        transform: translateX(100%);  /* hidden */
        transition: transform .3s cubic-bezier(.4,0,.2,1);
    }

    /* when either the overlay OR the panel has .active, bring the panel into view */
    #loggedModal.active .logged-modal,
    #loggedModal .logged-modal.active {
        transform: translateX(0);
    }
}

/* Center modal positioning (auth, quick view) */
#authOverlay .auth-modal {
    position: relative;
    margin: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#authOverlay:not([hidden]) .auth-modal {
    transform: scale(1) translateY(0);
}

.logged-modal {
    background: hsl(var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;

    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.logged-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.quick-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.action-btn:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border-color: transparent;
}

.action-btn.secondary {
    background: var(--glass-bg);
}

.action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.action-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: hsl(var(--accent-color));
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: hsl(var(--muted-color));
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--glass-bg);
    color: hsl(var(--text-color));
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-title i {
    color: hsl(var(--primary-color));
    font-size: 1.2rem;
}

.modal-subtitle {
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
}

.modal-body {
    padding: 0 2rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin: 0 2rem;
    color: hsl(var(--muted-color));
}

.modal-switch {
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.modal-switch:hover {
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    color: hsl(var(--text-color));
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
    margin-top: 0.75rem; /* Account for label height */
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    margin-top: 0.75rem; /* Account for label height */
    background: none;
    border: none;
    color: hsl(var(--muted-color));
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
    font-size: 0.875rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: hsl(var(--text-color));
}

.password-toggle:focus {
    outline: none;
}

.rememberDiv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
}

.auth-submit {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.forgot-password {
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-size: 0.875rem;
    text-align: center;
    display: block;
    margin-top: 1rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.social-login {
    margin-top: 1.5rem;
    text-align: center;
}

.social-login h4 {
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: hsl(var(--text-color));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.error-message, .success-message {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
     z-index:20000;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
     z-index:20000;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    z-index:20000;
}

/* Password Modal Specific Styles */
#changePasswordModal .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    margin: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#changePasswordModal.active .modal {
    transform: translate(-50%, -50%) scale(1);
}

#changePasswordModal.active {
    display: flex !important;
    pointer-events: auto !important;
}

#changePasswordModal .modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

#changePasswordModal .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-color));
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

#changePasswordModal .modal-title i {
    color: hsl(var(--primary-color));
    font-size: 1.25rem;
}

#changePasswordModal .modal-subtitle {
    color: hsl(var(--text-muted));
    font-size: 0.875rem;
    margin: 0;
}

#changePasswordModal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

#changePasswordModal .modal-close:hover {
    background: rgba(107, 114, 128, 0.1);
    color: hsl(var(--text-color));
}

#changePasswordModal .modal-body {
    padding: 2rem;
}

#changePasswordModal .form-group {
    margin-bottom: 1.5rem;
}

#changePasswordModal .form-label {
    display: block;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

#changePasswordModal .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

#changePasswordModal .input-group i:first-child {
    position: absolute;
    left: 1rem;
    color: hsl(var(--text-muted));
    z-index: 2;
    pointer-events: none;
}

#changePasswordModal .form-control {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: hsl(var(--surface-color));
    color: hsl(var(--text-color));
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

#changePasswordModal .form-control:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

#changePasswordModal .password-toggle {
    position: absolute;
    right: 1rem;
    color: hsl(var(--text-muted));
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
    pointer-events: auto;
}

#changePasswordModal .password-toggle:hover {
    color: hsl(var(--text-color));
}

.password-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-direction: column;
}

@media (min-width: 480px) {
    .password-modal-actions {
        flex-direction: row;
    }
}

.password-modal-actions .auth-submit {
    flex: 1;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.password-modal-actions .auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.password-modal-actions .auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.password-modal-actions .btn-cancel {
    flex: 1;
    background: rgba(107, 114, 128, 0.1);
    color: hsl(var(--text-muted));
    border: 1px solid rgba(107, 114, 128, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.password-modal-actions .btn-cancel:hover {
    background: rgba(107, 114, 128, 0.2);
    color: hsl(var(--text-color));
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */

.toast-stack {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    min-width: 300px;
    position: relative;
    animation: slideInRight 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    z-index: 99999;
}

.toast-success {
    background: #10b981;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 99999;
}

.toast-danger {
    background: #ef4444;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 99999;
}

.toast-error {
    background: #ef4444;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 99999;
}

.toast-warning {
    background: #ef4444;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 99999;
}

.flash_message_close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
    font-size: 1rem;
}

.flash_message_close:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   EDITABLE PROFILE FIELDS
   ═══════════════════════════════════════════════════════════════════ */

.profile-snapshot .form-control[readonly] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-snapshot .form-control[readonly]:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.profile-snapshot .form-control:not([readonly]) {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   PROFESSIONAL FILTER NAVBAR RESPONSIVENESS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .filter-top-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-section {
        min-width: auto;
    }

    .price-range-section {
        min-width: auto;
    }

    .filter-bottom-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .filter-navbar-content {
        padding: 0.5rem;
    }

    .filter-top-row {
        gap: 0.75rem;
    }

    .filter-bottom-row {
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .filter-bottom-row > * {
        flex: 0 0 auto;
        min-width: auto;
    }

    .results-info {
        margin-left: auto;
        margin-top: 0;
        order: 999;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   USER PROFILE STYLES
   ═══════════════════════════════════════════════════════════════════ */

.profile-header {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.1) 0%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(59, 130, 246, 0.1) 100%
    );
    padding: 3rem 0 2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    position: relative;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(var(--accent-color));
    border: 3px solid hsl(var(--dark-color));
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: hsl(var(--primary-color));
}

.profile-info h1{
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.profile-member-since {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-section {
    background: rgba(34, 40, 49, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.profile-section:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.profile-section.danger-zone {
    border-color: rgba(239, 68, 68, 0.35);
}

.profile-section.danger-zone:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
}

.section-header h2 i {
    color: hsl(var(--accent-color));
    font-size: 1.2rem;
}

.section-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-snapshot {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-color));
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-md);
    background: rgba(34, 40, 49, 0.5);
    color: hsl(var(--text-color));
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-control[readonly] {
    background: rgba(34, 40, 49, 0.3);
    border-color: rgba(168, 85, 247, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.shipping-addresses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.address-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin: 0;
}

.address-list.hidden {
    display: none;
}

.address-card {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.address-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.address-badge.default {
    background: linear-gradient(135deg, #10b981, #059669);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row.triple {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.form-row .form-group {
    margin-bottom: 1rem;
    flex: 1;
}

.form-group.flex-2 {
    flex: 2;
}

.form-group.flex-1 {
    flex: 1;
}

.form-group.default-check {
    margin-bottom: 0;
}

.form-group.default-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--text-color));
    cursor: pointer;
}

.form-group.default-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.address-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.security-options,
.preferences-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item,
.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(34, 40, 49, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.security-info h3,
.preference-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.25rem;
}

.security-info p,
.preference-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    left: 2px;
    bottom: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: hsl(var(--accent-color));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input {
    display: none;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(34, 40, 49, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.25rem;
}

.danger-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.danger-buttons {
    display: flex;
    gap: 1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--text-color));
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: hsl(var(--primary-color));
    color: white;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED ADDRESS SECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* Address Container */
.saved-addresses-container {
    margin-top: 2rem;
}

.saved-addresses-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.saved-addresses-title i {
    color: hsl(var(--primary-color));
    font-size: 1.1rem;
}

/* Address List */
.saved-addresses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual Address Item */
.saved-address-item {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.saved-address-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.saved-address-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.saved-address-item:hover::before {
    opacity: 1;
}

/* Address Content Layout */
.address-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.address-label {
    font-weight: 600;
    color: hsl(var(--text-color));
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-label::before {
    content: '🏠';
    font-size: 1.1rem;
}

/* Address Badge */
.address-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.address-badge.default {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.3);
}

/* Address Details */
.address-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-line {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.address-line:first-child {
    font-weight: 500;
    color: hsl(var(--text-color));
}

/* Address Actions */
.address-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.btn-address-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    min-width: 80px;
}

.btn-address-action.edit {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-address-action.edit:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.btn-address-action.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-address-action.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.btn-address-action.save {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    color: white;
    border: 1px solid transparent;
}

.btn-address-action.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-address-action.cancel {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.btn-address-action.cancel:hover {
    background: rgba(107, 114, 128, 0.2);
    transform: translateY(-1px);
}

/* Edit Mode Styling */
.saved-address-item .form-group {
    margin-bottom: 1rem;
}

.saved-address-item .form-group:last-child {
    margin-bottom: 0;
}

.saved-address-item .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-color));
    font-size: 0.875rem;
}

.saved-address-item .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.saved-address-item .form-row .form-group {
    margin-bottom: 0;
}

/* No Addresses Placeholder */
.no-addresses-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(34, 40, 49, 0.3);
    border: 2px dashed rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-lg);
    margin: 1rem 0;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-content i {
    font-size: 3rem;
    color: rgba(168, 85, 247, 0.4);
}

.placeholder-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: hsl(var(--text-color));
    margin: 0;
}

.placeholder-content small {
    font-size: 0.875rem;
    color: hsl(var(--muted-color));
}

/* Legacy Address Styles (keeping for compatibility) */
.saved-addresses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saved-address-card {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.saved-address-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-address-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-snapshot {
        grid-template-columns: 1fr;
    }

    .form-row.triple {
        grid-template-columns: 1fr;
    }

    .address-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Address Mobile Styles */
    .saved-address-item {
        padding: 1rem;
    }

    .saved-addresses-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .address-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .address-item-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-address-action {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        justify-content: center;
    }

    .saved-address-item .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .no-addresses-placeholder {
        padding: 2rem 1rem;
    }

    .placeholder-content i {
        font-size: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT & SUPPORT PAGE STYLES
   ═══════════════════════════════════════════════════════════════════ */

.hero-minimal {
    background: linear-gradient(135deg, hsl(var(--dark-color)), rgba(34, 40, 49, 0.9));
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-minimal h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-minimal .lead {
    font-size: 1.25rem;
    color: hsl(var(--muted-color));
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-section {
    padding: 4rem 0;
}

.about-content-block {
    margin-bottom: 4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content-block.reverse .content-grid {
    direction: rtl;
}

.about-content-block.reverse .content-text {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-color));
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
}

.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: hsl(var(--text-color));
}

.mission-list li i {
    color: hsl(var(--primary-color));
}

.about-image-placeholder {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Video container for Miami section */
.about-video-container {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.miami-video {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: none; /* Initially hidden, shown when video loads */
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 40, 49, 0.6);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

/* Ensure video container maintains aspect ratio on smaller screens */
@media (max-width: 768px) {
    .about-video-container {
        min-height: 250px;
    }
    
    .miami-video {
        min-height: 250px;
    }
}

.values-section {
    margin: 4rem 0;
}

.values-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.value-icon {
    font-size: 3rem;
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-color));
}

.value-card p {
    color: hsl(var(--muted-color));
    line-height: 1.6;
}

.miami-focus-section {
    margin: 4rem 0;
    background: rgba(34, 40, 49, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.service-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.highlight-item strong {
    color: hsl(var(--text-color));
    font-size: 1.1rem;
}

.highlight-item span {
    color: hsl(var(--muted-color));
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Support Page Styles */
.support-section {
    padding: 4rem 0;
}

.quick-help-section {
    margin-bottom: 4rem;
}

.help-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-option-card {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.help-icon {
    font-size: 3rem;
    color: hsl(var(--accent-color));
    margin-bottom: 1rem;
}

.help-option-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-color));
}

.help-option-card p {
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-section {
    margin: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: hsl(var(--text-color));
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-category h3 i {
    color: hsl(var(--primary-color));
}

.faq-item {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsl(var(--primary-color));
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(168, 85, 247, 0.1);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 600;
    color: hsl(var(--text-color));
}

.faq-question i {
    color: hsl(var(--primary-color));
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: hsl(var(--muted-color));
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.contact-section {
    margin: 4rem 0;
    text-align: center;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(34, 40, 49, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.contact-icon {
    font-size: 3rem;
    color: hsl(var(--accent-color));
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: hsl(var(--text-color));
}

.contact-card p {
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
}

.contact-card small {
    display: block;
    margin-top: 0.5rem;
    color: hsl(var(--muted-color));
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content-block.reverse .content-grid {
        direction: ltr;
    }

    .hero-minimal h1 {
        font-size: 2.5rem;
    }

    .content-text h2 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .help-options-grid {
        grid-template-columns: 1fr;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

    }

    .security-item,
    .preference-item,
    .danger-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .filter-navbar-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .category-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .dropdown-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .filter-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .modern-select {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }

    .clean-product-card {
        margin: 0;
    }

    .product-card {
        margin: 0;
    }

    .toast-stack {
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
    }

    .container {
        padding: 0 0.75rem;
    }

    .products-section {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .filter-navbar-content {
        padding: 0.25rem;
    }

    .category-navigation {
        gap: 0.25rem;
    }

    .filter-controls {
        gap: 0.25rem;
    }

    .professional-filter-navbar {
        padding: 0.5rem 0;
    }
}

/* ─── Colour-dot hard-reset ─────────────────────────────────────── */
.color-dot,
.product-color-dot,
.color-dot.split-color,
.product-color-dot.split-color,
.color-dot.diagonal-split,
.product-color-dot.diagonal-split {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transform: none !important;
    position: relative;
    cursor: pointer;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-clip: padding-box !important;
    overflow: hidden !important;
}

/* Optional: subtle focus/hover highlight that DOESN'T grow the dot */
.color-dot:hover,
.product-color-dot:hover,
.color-dot.active,
.product-color-dot.active {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px hsl(var(--primary-color) / 0.35);
}


.dropdown-item-with-submenu .submenu {
    left: calc(100% + 2.5rem);   /* previously 1.5rem */
    top: 0;                      /* line-up vertically (was -0.5rem) */
}



/* ────────────────────────────────────────────────────────────────
   #ADDRESSMODAL LOOK & FEEL
   (drop-in, safe overrides – put this after styles.css)
   ──────────────────────────────────────────────────────────────── */

#addressModal{
    /* full-screen dim + blur */
    position:fixed; inset:0;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(6px);
    display:none;           /* toggled by JS */
    align-items:center;
    justify-content:center;
    z-index:1100;
}

/* fade / scale pop-in */
#addressModal.active .modal{
    transform:scale(1); opacity:1;
}

#addressModal .modal{
    background:hsl(var(--surface-color));
    border:1px solid var(--border-color);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lg);
    width:100%; max-width:420px;
    padding:2rem 2rem 2.5rem;
    position:relative;
    transform:scale(.9);    /* start small, grow on open */
    opacity:0;              /* simple fade-in */
    transition:transform .25s ease,opacity .25s ease;
}

/* title row */
#addressModal .modal-title{
    margin:0 0 1.5rem;
    font-size:1.25rem; font-weight:700;
    text-align:center;
    color:hsl(var(--text-color));
    display:flex; align-items:center; justify-content:center; gap:.5rem;
}
#addressModal .modal-title i{ color:hsl(var(--primary-color)); }

/* X button */
#addressModal .modal-close{
    position:absolute; top:1rem; right:1rem;
    background:none; border:none; cursor:pointer;
    font-size:1.25rem; color:hsl(var(--muted-color));
    transition:color .2s ease;
}
#addressModal .modal-close:hover{ color:hsl(var(--text-color)); }

/* form layout */
#addressModal .form-group{ margin-bottom:1rem; }
#addressModal .form-row{ display:flex; gap:1rem; }
#addressModal .form-row .form-group{ flex:1; }

#addressModal .form-control,
#addressModal select{
    width:100%; padding:.65rem .9rem;
    background:hsl(var(--dark-color));
    border:1px solid var(--border-color);
    border-radius:var(--radius-md);
    color:hsl(var(--text-color));
    font-size:.875rem;
    transition:border .2s ease,box-shadow .2s ease;
}
#addressModal .form-control:focus,
#addressModal select:focus{
    outline:none;
    border-color:hsl(var(--primary-color));
    box-shadow:0 0 0 3px hsl(var(--primary-color)/.15);
}

/* checkbox row */
#addressModal .default-check{
    display:flex; align-items:center; gap:.5rem;
    font-size:.875rem; margin-top:.25rem;
}
#addressModal .default-check input{ width:auto; }

/* buttons */
#addressModal .btn{ font-size:.85rem; }
#addressModal .btn-primary{ flex:1; }
#addressModal .btn-outline{
    border:1px solid var(--border-color);
    background:transparent; color:hsl(var(--text-color));
}
#addressModal .btn-outline:hover{
    background:var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════
   EMAIL PREFERENCES STYLES
   ═══════════════════════════════════════════════════════════════════ */

.email-preferences-section {
    margin-bottom: 1.5rem;
}

.email-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.email-toggle-label {
    font-weight: 600;
    color: hsl(var(--text-color));
}

.email-description {
    font-size: 0.9rem;
    color: hsl(var(--text-color-muted));
    line-height: 1.5;
    margin-left: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CART MODAL STYLES
   ═══════════════════════════════════════════════════════════════════ */

.cart-item-modal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item-modal:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

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

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

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

.cart-item-details-modal h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.cart-item-price-modal {
    font-size: 0.75rem;
    color: hsl(var(--muted-color));
    margin-bottom: 0.5rem;
}

.cart-item-quantity-modal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn-modal {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    color: hsl(var(--text-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn-modal:hover {
    background: hsl(var(--primary-color));
    color: white;
    border-color: hsl(var(--primary-color));
}

.quantity-display-modal {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    min-width: 20px;
    text-align: center;
}

.cart-item-remove-modal {
    background: none;
    border: none;
    color: hsl(var(--muted-color));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cart-item-remove-modal:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.cart-loading {
    text-align: center;
    padding: 2rem;
    color: hsl(var(--muted-color));
}

.cart-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary-color));
}

.empty-cart-modal {
    text-align: center;
    padding: 2rem;
}

.empty-cart-modal .empty-state i {
    font-size: 3rem;
    color: hsl(var(--muted-color));
    margin-bottom: 1rem;
}

.empty-cart-modal .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--text-color));
    margin-bottom: 0.5rem;
}

.empty-cart-modal .empty-state p {
    color: hsl(var(--muted-color));
    margin-bottom: 1.5rem;
}

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-total {
    text-align: center;
    margin-bottom: 1rem;
}

.cart-total h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--text-color));
    margin: 0;
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-actions .btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: hsl(var(--text-color));
}

.cart-actions .btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.cart-actions .btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border: none;
    color: white;
}

.cart-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════
   PROFESSIONAL FILTER NAVBAR ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Enhanced search input */
.clean-search-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

/* Color grid styling */
.color-grid-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    margin: 2px;
}

.color-grid-dot:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.color-grid-dot.selected {
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3);
    transform: scale(1.05);
}

.color-grid-dot.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    font-size: 12px;
}

/* Enhanced toggle switch */
.toggle-slider-filter {
    position: relative;
    width: 40px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.toggle-slider-filter::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#inStockFilter:checked + .toggle-filter .toggle-slider-filter {
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
}

#inStockFilter:checked + .toggle-filter .toggle-slider-filter::before {
    transform: translateX(20px);
}

/* Modern select styling */
.modern-select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: hsl(var(--text-color));
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-select:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
}

.modern-select option {
    background: hsl(var(--dark-color));
    color: hsl(var(--text-color));
}

/* Results counter enhancement */
#resultCount {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Clear filters button enhancement */
.btn-clear-filters {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 71, 87, 0.1) !important;
    border: 1px solid rgba(255, 71, 87, 0.3) !important;
    border-radius: var(--radius-md);
    color: #ff4757 !important;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background: rgba(255, 71, 87, 0.2) !important;
    border-color: #ff4757 !important;
    transform: translateY(-1px);
}

/* Active category highlighting */
.dropdown-toggle.active-category {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3)) !important;
    border-color: hsl(var(--primary-color)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3) !important;
}

/* Active filter indicator */
.dropdown-toggle.has-active-filter::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: hsl(var(--primary-color));
    border-radius: 50%;
    border: 2px solid rgba(34, 40, 49, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.site-footer {
    background: linear-gradient(135deg, 
        rgba(34, 40, 49, 0.95) 0%, 
        rgba(57, 62, 70, 0.95) 50%, 
        rgba(34, 40, 49, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(var(--text-color));
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-brand .logo-icon {
    color: hsl(var(--primary-color));
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-feature i {
    color: hsl(var(--accent-color));
    width: 16px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a:hover {
    color: hsl(var(--primary-color));
    transform: translateX(5px);
}

.footer-links li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: hsl(var(--primary-color));
    transition: width 0.3s ease;
}

.footer-links li a:hover::before {
    width: 10px;
}

.age-verification-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-top: 1rem;
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 500;
}

.age-verification-notice i {
    color: #ffc107;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: hsl(var(--primary-color));
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-features {
        gap: 0.5rem;
    }
    
    .footer-feature {
        font-size: 0.8rem;
    }
    
    .payment-icons {
        gap: 0.5rem;
    }
    
    .payment-icons i {
        font-size: 1.25rem;
    }
}

.quantity-controls {
  display: flex;
  flex-direction: column; /* Change from row to column */
  /* You might need to adjust alignment and spacing as well */
  align-items: flex-start; /* Example: Align items to the start of the column */
  gap: 10px; /* Example: Add space between the children */
}




.ButtonsInProductDetails{
    display:flex;
    flex-direction: row;
    gap: 30px;
    padding-bottom: 25px;
}



/* ═══════════════════════════════════════════════════════════════════
   AUTH OVERLAY MODAL STYLES (New Implementation)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Colors picked to echo screenshot vibe */
  --auth-bg-overlay: rgba(0,0,0,0.55);
  --auth-panel-bg: rgba(25,25,35,0.75); /* glass layer */
  --auth-panel-bg-right: rgba(25,25,35,0.82);
  --auth-panel-border: rgba(255,255,255,0.08);
  --auth-text-main: #ffffff;
  --auth-text-muted: rgba(255,255,255,0.75);
  --auth-accent: #55ffd2; /* mint/teal btn color */
  --auth-accent-hover: #6fffe1;
  --auth-error: #ff5c5c;
  --auth-success: #55ff8f;
  --auth-input-border: rgba(255,255,255,0.25);
  --auth-input-border-focus: var(--auth-accent);
  --auth-radius-lg: 10px;
  --auth-radius-sm: 4px;
  --auth-transition: 0.18s ease;
  --auth-max-width: 760px; /* approx screenshot scale */
}

/* No scroll class for body when modal is open */
.no-scroll { overflow: hidden; }

/* ================= Overlay ================= */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--auth-bg-overlay);
  display: grid;
  place-content: center;
  padding: 1rem;
  z-index: 1000;
}

.auth-overlay[hidden] {
  display: none !important;
}

/* ================= Modal Shell ================= */
.auth-modal {
  position: relative;
  width: min(100%, var(--auth-max-width));
  display: block;
  background: transparent; /* panels handle their own backgrounds */
  border-radius: var(--auth-radius-lg);
  overflow: hidden; /* clip panel edges */
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: transform var(--auth-transition);
  z-index: 10;
}

.auth-close:hover { transform: scale(1.1); }

/* ================= Panels Layout ================= */
.auth-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 420px; /* adjust as needed */
}

.auth-panel {
  padding: 2.5rem 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--auth-text-main);
  border: 1px solid var(--auth-panel-border);
}

.register-panel {
  background: var(--auth-panel-bg);
  border-right: none; /* seam with other panel */
}

.login-panel {
  background: var(--auth-panel-bg-right);
  border-left: none;
}

/* Titles / Descriptions */
.auth-title {
  margin: 0 0 .75rem 0;
  font-size: 1.65rem;
  font-weight: 600;
}

.auth-desc {
  margin: 0 0 2rem 0;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--auth-text-muted);
  max-width: 34ch;
}

/* Forms */
.auth-form {
  width: 100%;
  display: grid;
  gap: 1.25rem;
}

.auth-field-group.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.auth-field {
  position: relative;
  display: grid;
  gap: .35rem;
}

.auth-field > label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--auth-text-muted);
}

.auth-field > input {
  appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--auth-input-border);
  background: transparent;
  color: var(--auth-text-main);
  font-size: 1rem;
  line-height: 1.4;
  padding: .4rem 0 .35rem 0;
  transition: border-color var(--auth-transition);
}

.auth-field > input::placeholder {
  color: rgba(255,255,255,0.35);
}

.auth-field > input:focus {
  outline: none;
  border-bottom-color:  linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
}

/* Valid / error state classes you can toggle in JS */
.auth-field.is-valid > input {
  border-bottom-color: var(--auth-success);
}

.auth-field.is-error > input {
  border-bottom-color: var(--auth-error);
}

/* little indicator dot/check at right (login panel screenshot) */
.auth-field.with-indicator {
  padding-right: 22px; /* space for indicator */
}

/* Password eye icon - positioned to the top right of password inputs */
.password-eye-icon {
  position: absolute;
  right: 10px;
  top: 35px; /* Position at input level */
  color: white;
  cursor: pointer;
  font-size: 16px;
  z-index: 10;
  transition: color 0.2s ease;
}

.login-panel .password-eye-icon{
  right: 20px !important;        /* or whatever looks perfect */
}

.password-eye-icon:hover {
  color: #cccccc;
}

.auth-field.with-indicator .field-indicator {
  position: absolute;
  top: 32px; /* line up with input baseline; adjust if needed */
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  pointer-events: none;
  transition: all var(--auth-transition);
}

/* success */
.auth-field.with-indicator.is-valid .field-indicator {
  border-color: var(--auth-success);
  background: var(--auth-success);
}

/* error */
.auth-field.with-indicator.is-error .field-indicator {
  border-color: var(--auth-error);
  background: var(--auth-error);
}

/* Buttons */
.auth-btn {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  padding: .75rem 2.25rem;
  border-radius: 999px; /* pill */
  border: 2px solid transparent;
  transition: background var(--auth-transition), border-color var(--auth-transition), transform var(--auth-transition);
  font-weight: 600;
}

.auth-btn.primary {
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  color: white;
  border-color: transparent;
}

.auth-btn.primary:hover {
  background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--accent-color)));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}




/* Error and Success Messages */
.error-message,
.success-message {
  padding: 0.75rem 1rem;
  border-radius: var(--auth-radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.error-message {
  background: rgba(255, 92, 92, 0.15);
  border: 1px solid var(--auth-error);
  color: var(--auth-error);
}

.success-message {
  background: rgba(85, 255, 143, 0.15);
  border: 1px solid var(--auth-success);
  color: var(--auth-success);
}

/* Responsive: stack panels on narrow viewports */
@media (max-width: 600px) {
  .auth-panels {
    grid-template-columns: 1fr;
  }
  .register-panel {
    border-right: 1px solid var(--auth-panel-border);
    border-bottom: none;
  }
  .login-panel {
    border-left: 1px solid var(--auth-panel-border);
    border-top: none;
  }
  .auth-field-group.two-col {
    grid-template-columns: 1fr; /* stack names */
  }
}


.auth-field input[type="password"]{
  padding-right:3rem;           /* make room for the icon */
}


.auth-field input[type = "email"]{
    padding-right:3rem;
}


/* ── overlay fade (optional) ─────────────────*/
.modal-overlay          { opacity: 0; pointer-events:none; transition:opacity .3s }
.modal-overlay.active   { opacity: 1; pointer-events:auto; }


#clearFilterButton.dropdown-toggle {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

#clearFilterButton.dropdown-toggle:hover {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    transform: translateY(-1px);
}

.dropdown-toggle:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: hsl(var(--primary-color));
    transform: translateY(-1px);
}











