@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary: #d4a373;
    --primary-dark: #b8864e;
    --primary-light: #f0dcc4;
    --accent: #e84393;
    --accent-light: #fd79a8;
    --black: #1a1a2e;
    --dark: #2d2d44;
    --gray-900: #333;
    --gray-700: #555;
    --gray-500: #888;
    --gray-300: #ccc;
    --gray-200: #e8e8e8;
    --gray-100: #f5f5f5;
    --white: #fff;
    --bg-main: #fff;
    --bg-card: #fff;
    --bg-section-alt: #f5f5f5;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --gold: #d4a373;
    --rose: #e84393;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font-main: 'Cairo', sans-serif;
    --font-sub: 'Tajawal', sans-serif;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #888;
    --border-color: #e8e8e8;
    --header-bg: #fff;
    --filter-bg: #fff;
    --modal-bg: #fff;
    --input-bg: #fff;
    --cart-bg: #fff;
    --font-scale: 1;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --black: #0d0d1a;
    --dark: #1a1a2e;
    --gray-900: #e8e8e8;
    --gray-700: #ccc;
    --gray-500: #999;
    --gray-300: #444;
    --gray-200: #2a2a3e;
    --gray-100: #1e1e32;
    --white: #12121f;
    --bg-main: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-section-alt: #14142a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, .6);
    --text-primary: #e8e8e8;
    --text-secondary: #ccc;
    --text-muted: #999;
    --border-color: #2a2a3e;
    --header-bg: rgba(15, 15, 26, .92);
    --filter-bg: #1a1a2e;
    --modal-bg: #1a1a2e;
    --input-bg: #14142a;
    --cart-bg: #1a1a2e;
}

[data-theme="dark"] body {
    background: var(--bg-main);
    color: var(--text-primary);
}

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

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 15, 26, .88);
    backdrop-filter: blur(16px);
}

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

[data-theme="dark"] .product-card:hover {
    border-color: rgba(232, 67, 147, .25);
    box-shadow: 0 12px 40px rgba(232, 67, 147, .15);
}

[data-theme="dark"] .filter-panel,
[data-theme="dark"] .cart-panel {
    background: var(--filter-bg);
}

[data-theme="dark"] .filter-header,
[data-theme="dark"] .filter-footer,
[data-theme="dark"] .cart-header {
    border-color: var(--border-color);
}

[data-theme="dark"] .filter-chip {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .filter-price-input input {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .product-modal-overlay .product-modal,
[data-theme="dark"] .info-modal-overlay .info-modal,
[data-theme="dark"] .auth-modal {
    background: var(--modal-bg);
}

[data-theme="dark"] .search-box {
    background: var(--modal-bg);
}

[data-theme="dark"] .search-input-wrap {
    border-color: var(--border-color);
}

[data-theme="dark"] .search-input-wrap input {
    color: var(--text-primary);
}

[data-theme="dark"] .search-tag {
    background: var(--input-bg);
    color: var(--text-secondary);
}

[data-theme="dark"] .dropdown {
    background: var(--bg-card);
}

[data-theme="dark"] .dropdown a {
    color: var(--text-secondary);
}

[data-theme="dark"] .dropdown a:hover {
    background: var(--input-bg);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a0f1e, #14142a, #0f1a24) !important;
}

[data-theme="dark"] .features-bar {
    background: var(--bg-card);
    border-color: var(--border-color);
}

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

[data-theme="dark"] .footer {
    background: #0a0a14;
}

[data-theme="dark"] .bottom-nav {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .mobile-sidebar {
    background: var(--bg-card);
}

[data-theme="dark"] .cart-item {
    border-color: var(--border-color);
}

[data-theme="dark"] .auth-input {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .section-divider {
    background: linear-gradient(90deg, transparent, var(--border-color), rgba(232, 67, 147, .3), var(--border-color), transparent);
}

/* Dark mode toggle button */
/* ===== SETTINGS PANEL ===== */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

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

.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 88vw;
    height: 100vh;
    background: linear-gradient(180deg, #faf7f4 0%, #fff 40%, #faf7f4 100%);
    box-shadow: 8px 0 40px rgba(0, 0, 0, .2);
    transform: translateX(-105%);
    transition: transform .5s cubic-bezier(.32, .72, 0, 1);
    display: flex;
    flex-direction: column;
    z-index: 2001;
    border-radius: 0 24px 24px 0;
}

[data-theme="dark"] .settings-panel {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #1a1a2e 100%);
}

.settings-overlay.active .settings-panel {
    transform: translateX(0);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #e8a87c 100%);
    color: #fff;
    border-radius: 0 24px 0 0;
    position: relative;
    overflow: hidden;
}

.settings-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.settings-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -20%;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.settings-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.settings-header h3 i {
    font-size: 1.1rem;
    animation: settingsGearSpin 6s linear infinite;
}

@keyframes settingsGearSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.settings-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}

.settings-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: rotate(90deg) scale(1.1);
}

.settings-body {
    flex: 1;
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-body::-webkit-scrollbar {
    width: 4px;
}

.settings-body::-webkit-scrollbar-track {
    background: transparent;
}

.settings-body::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 20px;
}

.settings-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 16px;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, .04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: all .3s ease;
}

[data-theme="dark"] .settings-group {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
}

.settings-group:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.settings-label>i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 163, 115, .15), rgba(212, 163, 115, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .95rem;
    flex-shrink: 0;
    transition: all .3s ease;
}

.settings-group:hover .settings-label>i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: scale(1.05);
}

.settings-label div {
    min-width: 0;
}

.settings-label span {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    color: var(--gray-800);
    line-height: 1.4;
}

.settings-label small {
    display: block;
    font-size: .7rem;
    color: var(--gray-500);
    margin-top: 1px;
    line-height: 1.3;
}

/* iOS-style toggle switch */
.switch-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider-toggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: 28px;
    cursor: pointer;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.slider-toggle::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    right: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.switch-toggle input:checked+.slider-toggle {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 2px 12px rgba(212, 163, 115, .4);
}

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

/* Font size controls */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.font-size-controls button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .font-size-controls button {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: var(--gray-300);
}

.font-size-controls button:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(212, 163, 115, .3);
}

.font-size-controls span {
    font-size: .72rem;
    color: var(--gray-600);
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

/* Settings select */
.settings-select {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-800);
    font-size: .82rem;
    font-family: var(--font-sub);
    cursor: pointer;
    outline: none;
    transition: all .3s ease;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    padding-left: 28px;
}

[data-theme="dark"] .settings-select {
    background-color: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: var(--gray-300);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.settings-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, .15);
}

/* Clear data button */
.settings-danger {
    border-color: rgba(231, 76, 60, .12) !important;
    background: linear-gradient(135deg, rgba(231, 76, 60, .03), rgba(231, 76, 60, .01)) !important;
}

[data-theme="dark"] .settings-danger {
    background: rgba(231, 76, 60, .08) !important;
    border-color: rgba(231, 76, 60, .15) !important;
}

.settings-danger .settings-label>i {
    background: linear-gradient(135deg, #ffe0e0, #fff0f0);
    color: #e74c3c;
}

.settings-group.settings-danger:hover .settings-label>i {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.settings-clear-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
}

.settings-clear-btn:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 76, 60, .3);
    transform: scale(1.03);
}

.settings-footer {
    padding: 14px 24px;
    text-align: center;
    font-size: .72rem;
    color: var(--gray-400);
    border-top: 1px solid rgba(0, 0, 0, .05);
    border-radius: 0 0 24px 0;
    background: rgba(0, 0, 0, .01);
}

[data-theme="dark"] .settings-footer {
    border-top-color: rgba(255, 255, 255, .06);
    background: rgba(0, 0, 0, .1);
}

/* Settings panel gear icon spin in header */
#settingsBtn i {
    transition: transform .4s ease;
}

#settingsBtn:hover i {
    transform: rotate(90deg);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--gray-900);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    padding: 2px 0;
    font-size: .65rem;
    font-family: var(--font-sub);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: .3px;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 163, 115, .15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(50%);
    }
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-item i {
    color: var(--primary);
    font-size: .6rem;
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.logo span {
    font-weight: 300;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav>li {
    position: relative;
}

.main-nav>li>a {
    padding: 10px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-900);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav>li>a:hover,
.main-nav>li>a.active {
    color: var(--accent);
    background: rgba(232, 67, 147, .06);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown a {
    display: block;
    padding: 8px 20px;
    font-size: .85rem;
    color: var(--gray-700);
}

.dropdown a:hover {
    background: var(--gray-100);
    color: var(--accent);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-700);
    position: relative;
}

.header-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08);
}

.badge-count {
    position: absolute;
    top: -2px;
    left: -2px;
    background: var(--accent);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.4rem;
    color: var(--gray-900);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-20px);
    transition: var(--transition);
}

.search-overlay.active .search-box {
    transform: translateY(0);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    transition: var(--transition);
}

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

.search-input-wrap input {
    flex: 1;
    font-size: 1rem;
    background: transparent;
    color: var(--gray-900);
}

.search-input-wrap input::placeholder {
    color: var(--gray-500);
}

.search-suggestions {
    margin-top: 16px;
}

.search-suggestions h4 {
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.search-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: .82rem;
    margin: 3px;
    color: var(--gray-700);
}

.search-tag:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.92rem;
    transition: var(--transition);
    cursor: pointer;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 67, 147, 0.3);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

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

[data-theme="dark"] .btn-outline {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-light);
    color: var(--black);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #fef9f3, #f0f4ff);
    padding: 20px 0 60px;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e, #0d0d1a);
}

.hero-slider {
    position: relative;
    margin-top: 20px;
}

.hero-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.32, 0.72, 0, 1);
    height: 100%;
}

.hero-slide {
    flex: 0 0 100%;
    padding: 10px 15px;
    opacity: 0.5;
    transform: scale(0.92);
    transition: all 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide-card {
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    gap: 40px;
}

[data-theme="dark"] .hero-slide-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-slide-content {
    flex: 1;
    z-index: 2;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(212, 163, 115, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.2s;
}

.hero-slide.active .hero-badge {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--gray-900);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.hero-title span {
    color: var(--accent);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 35px;
    max-width: 450px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.hero-slide.active .hero-desc {
    transform: translateY(0);
    opacity: 1;
}

.hero-btns {
    display: flex;
    gap: 15px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.5s;
}

.hero-slide.active .hero-btns {
    transform: translateY(0);
    opacity: 1;
}

.hero-image-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: scale(0.85);
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.2s;
}

.hero-slide.active .hero-image {
    transform: scale(1.05);
    opacity: 1;
}

/* Dots */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -10px;
    position: relative;
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--primary);
    width: 35px;
    border-radius: 12px;
}

/* Arrows */
.hero-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    position: relative;
    z-index: 5;
}

.hero-arrow {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: all;
}

.hero-arrow:hover {
    background: var(--accent);
    color: var(--white);
}

/* ===== SECTION COMMON ===== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
}

.section-title span {
    color: var(--accent);
}

.section-subtitle {
    font-size: .92rem;
    color: var(--gray-500);
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 12px auto 0;
    border-radius: 3px;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.category-name {
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
}

.category-count {
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-img-wrap {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.product-badge {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: .78rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.product-badge.sale {
    background: rgba(232, 67, 147, 0.9);
    /* var(--accent) with opacity */
}

.product-badge.new {
    background: rgba(46, 204, 113, 0.9);
    /* success green with opacity */
}

.product-actions-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--gray-700);
}

.product-action-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.product-action-btn.wishlisted {
    color: var(--accent);
}

.product-info {
    padding: 16px;
}

.product-category-label {
    font-size: .72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-name {
    font-size: .92rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

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

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.product-old-price {
    font-size: .85rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-discount-pct {
    font-size: .75rem;
    color: var(--success);
    font-weight: 600;
}

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

.product-rating i {
    color: var(--warning);
    font-size: .8rem;
}

.product-rating span {
    font-size: .75rem;
    color: var(--gray-500);
}

/* ===== FILTER PANEL ===== */
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 92vw;
    background: var(--filter-bg);
    z-index: 3001;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e84393, #d63384, #a855f7);
    color: #fff;
}

.filter-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.filter-close {
    font-size: 1.3rem;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-close:hover {
    background: rgba(255, 255, 255, .35);
}

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-section {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

/* Color-coded filter sections */
.filter-section:nth-child(1) {
    background: linear-gradient(135deg, rgba(232, 67, 147, .06), rgba(253, 121, 168, .06));
    border-right: 3px solid #e84393;
}

.filter-section:nth-child(2) {
    background: linear-gradient(135deg, rgba(108, 92, 231, .06), rgba(162, 155, 254, .06));
    border-right: 3px solid #6c5ce7;
}

.filter-section:nth-child(3) {
    background: linear-gradient(135deg, rgba(0, 184, 148, .06), rgba(85, 239, 196, .06));
    border-right: 3px solid #00b894;
}

.filter-section:nth-child(4) {
    background: linear-gradient(135deg, rgba(253, 203, 110, .06), rgba(255, 234, 167, .06));
    border-right: 3px solid #fdcb6e;
}

.filter-section:nth-child(5) {
    background: linear-gradient(135deg, rgba(0, 206, 209, .06), rgba(116, 185, 255, .06));
    border-right: 3px solid #00cec9;
}

.filter-section:nth-child(6) {
    background: linear-gradient(135deg, rgba(225, 112, 85, .06), rgba(255, 159, 67, .06));
    border-right: 3px solid #e17055;
}

.filter-section:nth-child(7) {
    background: linear-gradient(135deg, rgba(162, 155, 254, .06), rgba(129, 236, 236, .06));
    border-right: 3px solid #a29bfe;
}

.filter-section-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-section:nth-child(1) .filter-section-title::before {
    content: '👗';
}

.filter-section:nth-child(2) .filter-section-title::before {
    content: '🎨';
}

.filter-section:nth-child(3) .filter-section-title::before {
    content: '📐';
}

.filter-section:nth-child(4) .filter-section-title::before {
    content: '✂️';
}

.filter-section:nth-child(5) .filter-section-title::before {
    content: '🧵';
}

.filter-section:nth-child(6) .filter-section-title::before {
    content: '💎';
}

.filter-section:nth-child(7) .filter-section-title::before {
    content: '🏷️';
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: .8rem;
    color: var(--gray-700);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-chip:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, .08);
    color: #a855f7;
    transform: translateY(-1px);
}

.filter-chip.selected {
    border-color: #e84393;
    background: linear-gradient(135deg, rgba(232, 67, 147, .12), rgba(168, 85, 247, .08));
    color: #e84393;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 67, 147, .15);
}

.filter-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-color-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-color-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-color-chip.selected {
    border-color: #e84393;
    box-shadow: 0 2px 10px rgba(232, 67, 147, .2);
}

.filter-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.filter-price-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-price-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-price-input label {
    font-size: .75rem;
    color: var(--gray-500);
    font-weight: 600;
}

.filter-price-input input {
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    text-align: center;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

.filter-price-input input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .1);
}

.filter-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(225, 112, 85, .06), rgba(253, 203, 110, .06));
    border-radius: var(--radius-sm);
    border-right: 3px solid #e17055;
}

.filter-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e17055;
    cursor: pointer;
}

.filter-checkbox-row label {
    font-size: .88rem;
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 500;
}

.filter-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background: var(--filter-bg);
}

.filter-apply-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #e84393, #a855f7);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: .92rem;
    box-shadow: 0 4px 15px rgba(232, 67, 147, .3);
    transition: var(--transition);
}

.filter-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 67, 147, .4);
}

.filter-clear-btn {
    padding: 14px 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: .85rem;
    transition: var(--transition);
}

.filter-clear-btn:hover {
    background: var(--gray-200);
}

/* Fashion dress silhouette decoration */
.filter-panel::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 10px;
    width: 60px;
    height: 100px;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 100' fill='%23e84393'%3E%3Cpath d='M32 0C28 0 26 4 24 8L18 24C14 32 10 38 10 42V44C10 46 12 48 16 48H20L16 96C16 98 18 100 20 100H44C46 100 48 98 48 96L44 48H48C52 48 54 46 54 44V42C54 38 50 32 46 24L40 8C38 4 36 0 32 0Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 4000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.product-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(.92);
    transition: var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-700);
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    background: var(--gray-100);
    border-left: 1px solid var(--gray-200);
}

.modal-main-wrap {
    height: 500px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.modal-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    justify-content: center;
    border-top: 1px solid var(--gray-100);
}

.modal-thumb-wrap {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    padding: 2px;
}

.modal-thumb-wrap.active {
    border-color: var(--accent);
}

.modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-thumb.active,
.modal-thumb:hover {
    border-color: var(--accent);
}

.modal-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-info-top {
    padding: 30px 30px 15px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-scroll-area {
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-option {
    margin-bottom: 24px;
}

.modal-category {
    font-size: .78rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--black);
}

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

.modal-rating i {
    color: var(--warning);
    font-size: .9rem;
}

.modal-rating span {
    font-size: .85rem;
    color: var(--gray-500);
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
}

.modal-old-price {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.modal-desc {
    font-size: .88rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-option-title {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-sizes {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-size {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-size:hover,
.modal-size.selected {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 67, 147, .06);
}

.modal-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.modal-color.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, .2);
}

.modal-actions-wrap {
    position: sticky;
    bottom: -30px;
    background: var(--white);
    padding: 20px 0;
    margin-top: 10px;
    border-top: 1px solid var(--gray-100);
}

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

.modal-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.modal-qty button {
    width: 40px;
    height: 40px;
    background: none;
    font-size: 1.1rem;
    color: var(--gray-700);
}

.modal-qty button:hover {
    color: var(--accent);
}

.modal-qty span {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: .95rem;
}

.modal-add-btn {
    flex: 1;
    padding: 14px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-add-btn:hover {
    background: var(--accent);
}

.modal-wishlist-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-300);
    background: none;
    font-size: 1.1rem;
    color: var(--gray-700);
}

.modal-wishlist-btn:hover,
.modal-wishlist-btn.wishlisted {
    color: var(--accent);
    border-color: var(--accent);
}

/* Modal Related Products */
.modal-related {
    margin-top: 30px;
}

.modal-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.modal-related-card {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.modal-related-card:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.related-img-wrap {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-name {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-price {
    font-size: .85rem;
    color: var(--accent);
    font-weight: 700;
}

/* ===== CART PANEL ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--white);
    z-index: 3001;
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    transform: translateX(0);
}

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

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-header h3 span {
    color: var(--gray-500);
    font-weight: 400;
    font-size: .88rem;
}

.cart-close {
    font-size: 1.3rem;
    color: var(--gray-700);
    background: none;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.cart-empty p {
    color: var(--gray-500);
    font-size: .92rem;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: .75rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

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

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
    font-size: .9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    background: none;
    font-size: .85rem;
    color: var(--gray-700);
}

.cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    color: var(--gray-500);
    font-size: .85rem;
    margin-top: 4px;
}

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

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: .88rem;
}

.cart-total-row.grand {
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 10px;
    margin-top: 6px;
}

.cart-total-row.grand .cart-total-val {
    color: var(--accent);
}

.cart-coupon-row {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.cart-coupon-row input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}

.cart-coupon-row button {
    padding: 10px 16px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
    margin-top: 8px;
}

.cart-checkout-btn:hover {
    background: var(--accent);
}

/* ===== COUNTDOWN BANNER ===== */
.countdown-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #6c5ce7 100%);
    padding: 40px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.countdown-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.countdown-subtitle {
    font-size: .95rem;
    opacity: .9;
    margin-bottom: 24px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.countdown-unit {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 80px;
}

.countdown-num {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.countdown-label {
    font-size: .72rem;
    opacity: .8;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--gray-100);
}

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

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.testimonial-stars i {
    color: var(--warning);
    font-size: .88rem;
}

.testimonial-text {
    font-size: .88rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .85rem;
}

.testimonial-name {
    font-size: .85rem;
    font-weight: 600;
}

.testimonial-date {
    font-size: .72rem;
    color: var(--gray-500);
}

/* ===== FEATURES BAR ===== */
.features-bar {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(232, 67, 147, .1), rgba(212, 163, 115, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}

.feature-text h4 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--gray-900);
}

.feature-text p {
    font-size: .75rem;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, .7);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .logo {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: .85rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: .85rem;
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: .8rem;
}

/* ===== INFO PAGES (MODAL) ===== */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.info-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
}

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

.info-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
}

.info-modal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--gray-900);
}

.info-modal p {
    font-size: .88rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 12px;
}

.info-modal ul {
    padding-right: 20px;
    margin-bottom: 12px;
}

.info-modal ul li {
    font-size: .88rem;
    color: var(--gray-700);
    margin-bottom: 6px;
    list-style: disc;
}

.info-modal-close {
    position: sticky;
    top: 0;
    float: left;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-700);
}

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.auth-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 420px;
    width: 100%;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transform: scale(.92);
    transition: var(--transition);
}

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

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: .92rem;
    color: var(--gray-500);
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input {
    padding: 14px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.auth-input:focus {
    border-color: var(--accent);
}

.auth-submit {
    padding: 14px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .95rem;
}

.auth-submit:hover {
    background: var(--accent);
}

/* ===== RECENTLY VIEWED ===== */
.recently-viewed-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.recently-viewed-list::-webkit-scrollbar {
    height: 4px;
}

.recently-viewed-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.rv-card {
    width: 160px;
    flex-shrink: 0;
}

.rv-card img {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.rv-card .rv-name {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rv-card .rv-price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: .88rem;
    min-width: 280px;
    animation: slideInToast .4s ease;
}

.toast.success {
    border-right: 4px solid var(--success);
}

.toast.error {
    border-right: 4px solid var(--danger);
}

.toast i {
    font-size: 1.1rem;
}

@keyframes slideInToast {
    from {
        transform: translateX(-100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

/* ===== BOTTOM MOBILE NAV ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 999;
    padding: 6px 0 env(safe-area-inset-bottom);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    color: var(--gray-500);
    font-size: .65rem;
    padding: 6px 0;
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

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

/* ===== MOBILE SIDEBAR ===== */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--white);
    z-index: 2501;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}

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

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

.mobile-sidebar-close {
    font-size: 1.3rem;
    background: none;
    color: var(--gray-700);
}

.mobile-nav-list {
    padding: 10px 0;
}

.mobile-nav-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--gray-900);
}

.mobile-nav-item>a:hover {
    color: var(--accent);
    background: var(--gray-100);
}

.mobile-sub-nav {
    display: none;
    padding: 0 20px 10px;
}

.mobile-sub-nav.open {
    display: block;
}

.mobile-sub-nav a {
    display: block;
    padding: 8px 16px;
    font-size: .85rem;
    color: var(--gray-700);
    border-right: 2px solid var(--gray-200);
}

.mobile-sub-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-slide-content {
        padding-right: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        width: 40%;
    }

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

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-main-img {
        height: 350px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .top-bar-content {
        font-size: .72rem;
        gap: 12px;
    }

    .hero-slider {
        height: auto;
    }

    .hero-slide {
        position: relative;
        flex-direction: column;
        padding: 30px 0;
    }

    .hero-slide-content {
        padding: 0 20px;
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        width: 100%;
        left: auto;
        top: auto;
        transform: none;
        margin-top: 20px;
        max-height: 300px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card {
        height: 160px;
    }

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

    .product-img-wrap {
        height: 220px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 8px;
    }

    .countdown-unit {
        padding: 10px 14px;
        min-width: 60px;
    }

    .countdown-num {
        font-size: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
}

@media(max-width:480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-img-wrap {
        height: 180px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: .8rem;
        min-height: auto;
    }

    .product-price {
        font-size: .92rem;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: .85rem;
    }

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

/* ===== UTILITY ===== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}

/* ===== PAGE VIEW ===== */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    from {
        background-position: 200% 0
    }

    to {
        background-position: 0 0
    }
}

/* ===== UI/UX ENHANCEMENTS ===== */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}

/* Staggered children reveal */
.stagger-children .product-card,
.stagger-children .category-card,
.stagger-children .testimonial-card {
    opacity: 0;
    transform: translateY(30px) scale(.96);
    transition: opacity .5s ease, transform .5s ease;
}

.stagger-children.revealed .product-card,
.stagger-children.revealed .category-card,
.stagger-children.revealed .testimonial-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stagger-children.revealed .product-card:nth-child(1),
.stagger-children.revealed .category-card:nth-child(1),
.stagger-children.revealed .testimonial-card:nth-child(1) {
    transition-delay: .05s;
}

.stagger-children.revealed .product-card:nth-child(2),
.stagger-children.revealed .category-card:nth-child(2),
.stagger-children.revealed .testimonial-card:nth-child(2) {
    transition-delay: .1s;
}

.stagger-children.revealed .product-card:nth-child(3),
.stagger-children.revealed .category-card:nth-child(3),
.stagger-children.revealed .testimonial-card:nth-child(3) {
    transition-delay: .15s;
}

.stagger-children.revealed .product-card:nth-child(4),
.stagger-children.revealed .category-card:nth-child(4),
.stagger-children.revealed .testimonial-card:nth-child(4) {
    transition-delay: .2s;
}

.stagger-children.revealed .product-card:nth-child(5),
.stagger-children.revealed .category-card:nth-child(5) {
    transition-delay: .25s;
}

.stagger-children.revealed .product-card:nth-child(6),
.stagger-children.revealed .category-card:nth-child(6) {
    transition-delay: .3s;
}

.stagger-children.revealed .product-card:nth-child(7),
.stagger-children.revealed .category-card:nth-child(7) {
    transition-delay: .35s;
}

.stagger-children.revealed .product-card:nth-child(8),
.stagger-children.revealed .category-card:nth-child(8) {
    transition-delay: .4s;
}

/* Marquee Top Bar */
.top-bar-marquee {
    display: flex;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
    gap: 60px;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.top-bar {
    overflow: hidden;
}

/* Glassmorphism Header on Scroll */
.header.scrolled {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .08);
}

/* Page Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-light));
    z-index: 9999;
    transition: width .15s ease;
    border-radius: 0 0 0 2px;
}

/* Hero Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
    animation: floatParticle 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    width: 120px;
    height: 120px;
    background: var(--accent);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.hero-particle:nth-child(2) {
    width: 80px;
    height: 80px;
    background: var(--primary);
    top: 60%;
    right: 70%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.hero-particle:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    top: 30%;
    right: 80%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.hero-particle:nth-child(4) {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    top: 70%;
    right: 25%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.hero-particle:nth-child(5) {
    width: 40px;
    height: 40px;
    background: var(--accent);
    top: 50%;
    right: 50%;
    animation-delay: 3s;
    animation-duration: 8s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-10px, -50px) scale(.9);
    }

    75% {
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* Hero Gradient Animation */
.hero {
    background-size: 300% 300%;
    animation: heroGradient 8s ease infinite;
}

@keyframes heroGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Product Card */
.product-card {
    border: 1px solid rgba(0, 0, 0, .04);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(232, 67, 147, .03), rgba(212, 163, 115, .03));
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 0;
}

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

.product-card:hover {
    border-color: rgba(232, 67, 147, .12);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(232, 67, 147, .12);
}

.product-actions-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .4) 0%, transparent 100%);
    padding: 16px 12px;
}

.product-action-btn {
    transform: translateY(10px);
    opacity: 0;
    transition: all .3s ease;
}

.product-card:hover .product-action-btn {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover .product-action-btn:nth-child(1) {
    transition-delay: .05s;
}

.product-card:hover .product-action-btn:nth-child(2) {
    transition-delay: .1s;
}

.product-card:hover .product-action-btn:nth-child(3) {
    transition-delay: .15s;
}

/* Ripple Effect for Buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .3) 10%, transparent 10.01%);
    transform: scale(10);
    opacity: 0;
    transition: transform .5s, opacity .8s;
}

.btn-ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Scroll To Top */
.scroll-top {
    position: fixed;
    bottom: 80px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(232, 67, 147, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
    cursor: pointer;
}

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

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(232, 67, 147, .4);
}

/* Enhanced Category Card */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 67, 147, .2), rgba(212, 163, 115, .2));
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-overlay {
    z-index: 2;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .2) 60%);
}

.category-name {
    transition: var(--transition);
}

.category-card:hover .category-name {
    transform: translateY(-4px);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), var(--accent-light), var(--gray-200), transparent);
    margin: 0;
    border: none;
}

/* Enhanced Countdown */
.countdown-banner {
    background: linear-gradient(135deg, #e84393 0%, #6c5ce7 30%, #a29bfe 60%, #fd79a8 100%);
    background-size: 300% 300%;
    animation: countdownGradient 6s ease infinite;
}

@keyframes countdownGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.countdown-unit {
    transition: transform .3s ease;
}

.countdown-unit:hover {
    transform: scale(1.08);
}

/* Enhanced Testimonials */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -10px;
    right: 10px;
    color: rgba(232, 67, 147, .08);
    line-height: 1;
    pointer-events: none;
}

/* Enhanced Filter Chips */
.filter-chip {
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 67, 147, .08), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.filter-chip:hover::before,
.filter-chip.selected::before {
    opacity: 1;
}

.filter-chip.selected {
    font-weight: 600;
    border-width: 2px;
}

/* Better Focus Styles */
input:focus,
select:focus,
textarea:focus,
button:focus-visible {
    outline: 2px solid rgba(232, 67, 147, .4);
    outline-offset: 2px;
}

/* Enhanced Modal Animations */
.product-modal {
    animation: modalIn .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes modalIn {
    from {
        transform: scale(.8) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Image Lazy Load Fade */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity .5s ease;
}

img.loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* View All Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .88rem;
    background: transparent;
    margin-top: 30px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 67, 147, .25);
}

.view-all-btn i {
    transition: transform .3s ease;
}

.view-all-btn:hover i {
    transform: translateX(-4px);
}

/* Whatsapp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    z-index: 998;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .5);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .6), 0 0 0 10px rgba(37, 211, 102, .1);
    }
}

@media(max-width:768px) {
    .whatsapp-float {
        bottom: 72px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .scroll-top {
        bottom: 72px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

}

/* ===== FASHION THEMED DECORATIONS ===== */
/* Dress silhouette watermark on categories section */
.section:nth-of-type(2)::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    width: 80px;
    height: 140px;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 140' fill='%23e84393'%3E%3Cpath d='M40 0C35 0 32 5 30 10L22 30C17 42 12 50 12 55V58C12 61 15 63 20 63H26L20 130C20 135 23 140 28 140H52C57 140 60 135 60 130L54 63H60C65 63 68 61 68 58V55C68 50 63 42 58 30L50 10C48 5 45 0 40 0Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Coat silhouette on best sellers section */
.section:nth-of-type(4)::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 70px;
    height: 130px;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 130' fill='%23a855f7'%3E%3Cpath d='M35 0C30 0 25 3 22 8L8 35C4 42 2 48 2 52V125C2 128 5 130 8 130H28V75H42V130H62C65 130 68 128 68 125V52C68 48 66 42 62 35L48 8C45 3 40 0 35 0ZM35 10C37 10 39 12 40 15L45 28H25L30 15C31 12 33 10 35 10Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* High heel shoe decoration on features bar */
.features-bar::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 40px;
    width: 50px;
    height: 50px;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='%23d4a373'%3E%3Cpath d='M5 42H45C47 42 48 40 48 38C48 35 46 32 42 30L38 28C35 26 33 22 33 18V8C33 6 31 5 29 5H27C25 5 24 6 24 8V20L8 35C5 37 4 39 5 42Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Handbag decoration on testimonials */
.testimonials::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 40px;
    width: 60px;
    height: 70px;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70' fill='%23e84393'%3E%3Cpath d='M20 20C20 12 25 5 30 5C35 5 40 12 40 20'/%3E%3Crect x='8' y='22' width='44' height='44' rx='6' fill='%23e84393'/%3E%3Crect x='22' y='5' width='2' height='20' fill='%23e84393'/%3E%3Crect x='36' y='5' width='2' height='20' fill='%23e84393'/%3E%3Cellipse cx='30' cy='44' rx='8' ry='6' fill='%23fff' opacity='.3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Make section position relative for decoration positioning */
.section,
.features-bar {
    position: relative;
}

/* ===== ADVANCED ANIMATIONS ===== */

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Delay Utilities */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal:nth-child(5) {
    transition-delay: 0.5s;
}

/* Background Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

[data-theme="dark"] .particle {
    background: rgba(232, 163, 115, 0.15);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Drift & Scale */
.hero-bg-animate {
    animation: heroDrift 20s ease-in-out infinite alternate;
}

@keyframes heroDrift {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.1) translate(1%, 2%);
    }
}

/* Floating Elements */
.float-anim {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Premium Hover Glass */
.hover-glass {
    position: relative;
    overflow: hidden;
}

.hover-glass::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.hover-glass:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Bounce Indicator */
.bounce-anim {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* Icon Rotation */
.rotate-hover:hover i,
.rotate-hover:hover .fas,
.rotate-hover:hover .fab {
    transform: rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}