/* ================================================
   CSS Variables & Reset
   ================================================ */
:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFF7ED;
    --secondary: #1BA1E2;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --success: #10B981;
    --gray-50: #F5F5F5;
    --gray-100: #EEEEEE;
    --gray-200: #E0E0E0;
    --gray-300: #BDBDBD;
    --gray-400: #9E9E9E;
    --gray-500: #757575;
    --gray-600: #616161;
    --gray-700: #424242;
    --gray-800: #212121;
    --gray-900: #111111;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--gray-300);
}

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

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

.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-dark {
    background-color: var(--gray-800);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--gray-900);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ================================================
   Top Bar
   ================================================ */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8e8e8;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(249,115,22,0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.top-bar a {
    color: #c4c4c4;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

.top-bar a:hover {
    color: var(--white);
    background: rgba(249,115,22,0.2);
}

.top-bar a i {
    color: var(--primary);
    font-size: 11px;
}

.top-bar .divider {
    color: rgba(255,255,255,0.2);
}

.top-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* ================================================
   Header
   ================================================ */
.header {
    background: linear-gradient(135deg, #F97316 0%, #ea6c0a 50%, #e65c00 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(249,115,22,0.3);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo a {
    display: block;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
    animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-2deg); }
    75% { transform: translateY(-2px) rotate(2deg); }
}

.logo-name {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    display: flex;
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: var(--gray-100);
    color: var(--gray-600);
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: var(--gray-200);
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.action-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.action-btn i {
    font-size: 18px;
}

.action-btn span {
    font-size: 11px;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 8px;
    background-color: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    color: var(--white);
    font-size: 24px;
    padding: 8px;
}

.category-nav {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    font-size: 13px;
}

.category-nav a {
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition);
}

.category-nav a:hover {
    opacity: 1;
}

.category-nav .flash-link {
    color: #FCD34D;
    font-weight: 600;
}

.category-nav .flash-link i {
    margin-right: 4px;
}

.category-nav .category-tab.active {
    opacity: 1;
    font-weight: 600;
    border-bottom: 2px solid var(--white);
    padding-bottom: 2px;
}

/* ================================================
   Mobile Menu
   ================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

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

.mobile-auth-buttons {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav {
    padding: 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-nav .flash-link {
    color: var(--primary);
    font-weight: 600;
}

/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    padding: 24px 0;
    background-color: var(--white);
}

.hero-container {
    display: flex;
    gap: 24px;
}

.hero-slider {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 350px;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    min-height: 350px;
    animation: fadeIn 0.5s ease;
}

.hero-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content {
    color: var(--white);
    max-width: 50%;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--gray-700);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
    width: 24px;
    border-radius: 5px;
}

.promo-cards {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--gray-50);
    border-radius: var(--radius);
    transition: var(--transition);
}

.promo-card:hover {
    background-color: var(--gray-100);
    transform: translateX(4px);
}

.promo-card i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 16px;
}

.promo-card div {
    display: flex;
    flex-direction: column;
}

.promo-card strong {
    font-size: 13px;
    color: var(--gray-800);
}

.promo-card span {
    font-size: 11px;
    color: var(--gray-500);
}

/* ================================================
   Section Styles
   ================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* ================================================
   Categories
   ================================================ */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background-color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

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

.category-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

.category-card span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--gray-700);
}

/* ================================================
   Flash Deals
   ================================================ */
.flash-deals-section {
    padding: 40px 0;
    background-color: var(--white);
}

.flash-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.flash-header-left h2 {
    color: var(--danger);
}

.flash-header-left h2 i {
    margin-right: 8px;
}

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

.countdown-label {
    font-size: 12px;
    color: var(--gray-500);
}

.countdown-timer {
    display: flex;
    gap: 4px;
}

.countdown-item {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.products-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.products-carousel::-webkit-scrollbar {
    height: 6px;
}

.products-carousel::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 3px;
}

.products-carousel::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

/* ================================================
   Products Grid
   ================================================ */
.products-section {
    padding: 40px 0;
}

.sort-options select {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background-color: var(--white);
    font-size: 13px;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    scroll-snap-align: start;
}

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

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

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

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

.product-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: var(--danger);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--primary);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.product-badge.sold-out {
    top: 8px;
    right: 8px;
    background-color: #6c757d;
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock .product-image img {
    filter: grayscale(50%);
}

.product-wishlist {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
}

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

.product-wishlist:hover,
.product-wishlist.active {
    color: var(--danger);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 36px;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 8px;
}

.product-original {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

.product-rating i {
    color: #FFC107;
}

.product-rating span {
    color: var(--secondary);
}

.load-more {
    text-align: center;
    margin-top: 32px;
}

/* ================================================
   Brands
   ================================================ */
.brands-section {
    padding: 40px 0;
    background-color: var(--white);
}

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

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--gray-50);
    border-radius: var(--radius);
    transition: var(--transition);
}

.brand-card:hover {
    background-color: var(--gray-100);
    transform: scale(1.02);
}

.brand-card img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background-color: var(--gray-800);
    color: var(--gray-300);
    padding: 48px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-info i {
    width: 16px;
    color: var(--primary);
}

.app-download {
    margin-top: 16px;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-700);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.footer-bottom {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--gray-700);
    text-align: center;
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.payment-badge {
    background-color: var(--white);
    color: var(--gray-800);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray-500);
}

/* ================================================
   Cart Sidebar
   ================================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--primary);
    color: var(--white);
}

.cart-sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.cart-item-count {
    font-size: 12px;
    opacity: 0.8;
}

.cart-sidebar-header button {
    margin-left: auto;
    color: var(--white);
    font-size: 18px;
}

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

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--gray-500);
}

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

.cart-empty h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

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

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

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

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    transition: var(--transition);
}

.quantity-btn:hover {
    border-color: var(--primary);
}

.quantity-value {
    width: 32px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    color: var(--gray-400);
    margin-left: auto;
    transition: var(--transition);
}

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

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

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
}

.shipping-note {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.cart-sidebar-footer .btn {
    margin-bottom: 8px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* ================================================
   Wishlist Modal
   ================================================ */
.wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.wishlist-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 500px;
    max-width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

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

.wishlist-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.wishlist-header button {
    color: var(--gray-500);
    font-size: 20px;
}

.wishlist-header button:hover {
    color: var(--gray-800);
}

.wishlist-items {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.wishlist-empty {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

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

/* ================================================
   Product Modal
   ================================================ */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.product-modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    width: 900px;
    max-width: 95%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-600);
    z-index: 10;
    transition: var(--transition);
}

.product-modal-close:hover {
    background-color: var(--gray-100);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal-image {
    padding: 24px;
    background-color: var(--gray-50);
}

.product-modal-image img {
    width: 100%;
    border-radius: var(--radius);
}

.product-modal-details {
    padding: 24px;
}

.product-modal-details h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 8px;
}

.product-modal-original {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 12px;
}

.product-modal-discount {
    display: inline-block;
    background-color: var(--danger);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 12px;
}

.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.product-modal-rating i {
    color: #FFC107;
}

.product-modal-rating span {
    color: var(--secondary);
}

.product-modal-description {
    margin-bottom: 24px;
}

.product-modal-description h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-modal-description p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

.product-modal-actions {
    display: flex;
    gap: 12px;
}

.product-modal-actions .btn {
    flex: 1;
}

/* ================================================
   Toast Notification
   ================================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--gray-800);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1004;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: var(--success);
}

/* ================================================
   Responsive Styles
   ================================================ */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-slider {
        max-height: 300px;
    }
    
    .promo-cards {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .promo-card {
        flex: 1;
        min-width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .category-nav {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-image {
        display: none;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 12px;
    }
    
    .category-card img {
        width: 48px;
        height: 48px;
    }
    
    .category-card span {
        font-size: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-slide {
        padding: 24px;
        min-height: 200px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .flash-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
}

/* ================================================
   Utility Classes
   ================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ================================================
   Toast Notifications
   ================================================ */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
}
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-notification i {
    margin-right: 8px;
    color: #f97316;
}

/* ================================================
   Login Modal
   ================================================ */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.login-modal.show {
    display: flex;
}
.login-modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.login-modal-body input.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}
.login-modal-body input.form-control:focus {
    outline: none;
    border-color: #f97316;
}
.btn-primary {
    background: linear-gradient(135deg, #f97316, #dc2626) !important;
    border: none !important;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-outline-danger {
    background: white;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.w-100 { width: 100%; }
.text-success { color: #16a34a; }
.mb-3 { margin-bottom: 16px; }

.btn-add-card {
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
}
.btn-add-card:hover { opacity: 0.9; }
