:root {
    /* Brand Colors */
    --primary: #FF5E00;
    --primary-light: #FF8533;
    --primary-soft: #FFF0E6;
    --secondary: #1F2937;
    --accent: #10B981;

    /* Text */
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    /* Backgrounds */
    --bg-body: #F9FAFB;
    --bg-white: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(255, 94, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
body.dark-mode {
    --text-main: #F3F4F6;
    --text-muted: #D1D5DB;
    --text-light: #9CA3AF;
    --bg-body: #111827;
    --bg-white: #1F2937;
    --bg-glass: rgba(31, 41, 55, 0.8);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-bar {
    background: #374151;
    border-color: #4B5563;
}

body.dark-mode .search-suggestions {
    background: #1F2937;
    border-color: #4B5563;
}

body.dark-mode .search-suggestion-item {
    border-bottom-color: #374151;
    color: #F3F4F6;
}

body.dark-mode .search-suggestion-item:hover {
    background: rgba(255, 94, 0, 0.2);
}

body.dark-mode .category-tabs {
    background: #374151;
}

body.dark-mode .tab {
    color: #D1D5DB;
}

body.dark-mode .tab.active {
    background: #1F2937;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .advanced-filters {
    background: #1F2937;
    box-shadow: var(--shadow-card);
}

body.dark-mode .filter-group label {
    color: #F3F4F6;
}

body.dark-mode .filter-toggle-btn {
    background: #1F2937;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .filter-toggle-btn:hover {
    border-color: var(--primary);
}

body.dark-mode .filter-toggle-btn.active {
    background: rgba(255, 94, 0, 0.15);
    border-color: var(--primary);
}

body.dark-mode .rating-btn {
    background: #374151;
    color: #F3F4F6;
    border-color: #4B5563;
}

body.dark-mode .rating-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 94, 0, 0.1);
}

body.dark-mode .rating-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

body.dark-mode #sort-select {
    background: #1F2937;
    color: #F3F4F6;
    border-color: #4B5563;
}

body.dark-mode .product-card {
    background: #1F2937;
    box-shadow: var(--shadow-card);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

body.dark-mode .product-image {
    background: #111827;
}

body.dark-mode .product-rating {
    background: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

body.dark-mode .product-desc {
    color: #D1D5DB;
}

body.dark-mode .add-btn {
    background: #374151;
    color: #F3F4F6;
}

body.dark-mode .add-btn:hover {
    background: var(--primary);
    color: white;
}

body.dark-mode .product-rating-section {
    border-top-color: #374151;
}

body.dark-mode .rating-star {
    color: #6B7280;
}

body.dark-mode .rating-star:hover {
    color: var(--primary);
}

body.dark-mode .rating-star.active {
    color: var(--primary);
}

body.dark-mode .rating-text {
    color: #9CA3AF;
}

body.dark-mode .modal {
    background: #1F2937;
    color: #F3F4F6;
}

body.dark-mode .modal-header {
    border-bottom-color: #374151;
}

body.dark-mode .modal-footer {
    background: #111827;
    border-top-color: #374151;
}

body.dark-mode .cart-item {
    background: #374151;
    border-color: #4B5563;
}

body.dark-mode .input-field {
    background: #374151;
    color: #F3F4F6;
    border-color: #4B5563;
}

body.dark-mode .input-field:focus {
    border-color: var(--primary);
    background: #1F2937;
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.2);
}

body.dark-mode .payment-card {
    background: #374151;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .payment-card:hover {
    border-color: var(--primary);
}

body.dark-mode .payment-card.selected,
body.dark-mode .payment-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(255, 94, 0, 0.1);
}

body.dark-mode .mobile-menu {
    background: #1F2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .mobile-menu-header {
    border-bottom-color: #374151;
}

body.dark-mode .mobile-menu-item {
    background: rgba(255, 94, 0, 0.1);
    color: #F3F4F6;
}

body.dark-mode .mobile-menu-item:hover {
    background: rgba(255, 94, 0, 0.15);
    color: var(--primary);
}

body.dark-mode .mobile-menu-item:hover {
    background: rgba(255, 94, 0, 0.15);
    color: var(--primary);
}

body.dark-mode .header {
    background: rgba(31, 41, 55, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .chat-window {
    background: #1F2937;
}

body.dark-mode .chat-messages {
    background: #111827;
}

body.dark-mode .chat-bubble-msg {
    background: #374151;
    color: #F3F4F6;
}

body.dark-mode .chat-message.user .chat-bubble-msg {
    background: var(--primary);
}

body.dark-mode .chat-quick-replies {
    background: #111827;
    border-top-color: #374151;
}

body.dark-mode .quick-reply {
    background: #374151;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .quick-reply:hover {
    background: rgba(255, 94, 0, 0.2);
    border-color: var(--primary);
}

body.dark-mode .chat-input-area {
    background: #1F2937;
    border-top-color: #374151;
}

body.dark-mode .chat-input-area input {
    background: #374151;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .testimonial-card {
    background: #1F2937;
    color: #F3F4F6;
}

body.dark-mode .testimonial-text {
    color: #D1D5DB;
}

body.dark-mode .achievement-toast {
    background: #1F2937;
    color: #F3F4F6;
    border-left-color: #F59E0B;
}

body.dark-mode .welcome-modal {
    background: #1F2937;
    color: #F3F4F6;
}

body.dark-mode .email-subscribe input {
    background: #374151;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .testimonial-nav {
    background: #1F2937;
    border-color: #4B5563;
    color: #F3F4F6;
}

body.dark-mode .testimonial-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.dark-mode .footer {
    background: #0F172A;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 40px;
    /* Height of announcement banner */
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
}

/* .header.hide removed to keep header fixed */

body {
    padding-top: 110px;
    /* 40px banner + 70px header */
}

body.dark-mode {
    padding-top: 110px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    margin-right: auto;
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    width: 90%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    padding: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: none;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.mobile-menu-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-item {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 100%);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.mobile-menu-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(8px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 997;
}

.mobile-menu-overlay.active {
    display: block;
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
    position: relative;
    font-size: 28px;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    opacity: 0.3;
    border-radius: 2px;
}

/* Header Search */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    align-items: center;
    overflow: hidden;
}

.search-bar:focus-within {
    border-color: var(--primary);
    background: var(--bg-white);
}

.search-bar input {
    flex: 1;
    padding: 0 16px;
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 14px;
    color: var(--text-main);
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-bar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.search-bar button:hover {
    background: var(--primary-light);
    transform: scale(1.08);
}

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

.action-btn {
    position: relative;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    min-width: 45px;
    justify-content: center;
}

.action-btn i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.action-btn span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.action-btn:active {
    transform: translateY(0);
}

#wishlist-btn.active {
    color: #EF4444;
}

#wishlist-btn.active i {
    animation: heartBeat 0.5s ease;
}

#lang-toggle {
    font-size: 12px;
    padding: 8px 12px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

#lang-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes heartBeat {

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

    10% {
        transform: scale(0.9);
    }

    20%,
    40%,
    60%,
    80% {
        transform: scale(1.1);
    }

    30%,
    50%,
    70% {
        transform: scale(1);
    }
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.15);
    }
}

/* === Hero Section === */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.08) 0%, rgba(255, 94, 0, 0.02) 50%, transparent 100%),
        linear-gradient(to right, #f9fafb 0%, transparent 50%);
    overflow: hidden;
    margin-top: 0;
}

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

.hero-tag {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 94, 0, 0.05));
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 94, 0, 0.2);
    animation: slideInDown 0.6s ease;
}

.hero h2 {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 800;
    animation: slideInUp 0.6s ease 0.1s both;
}

.hero h2 .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
    animation: slideInRight 0.6s ease 0.2s both;
}

.hero h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -4px;
    width: calc(100% + 8px);
    height: 14px;
    background: rgba(255, 94, 0, 0.15);
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
    line-height: 1.7;
    animation: slideInUp 0.6s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: slideInUp 0.6s ease 0.3s both;
}

.cta-btn {
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 12px 30px rgba(255, 94, 0, 0.25);
}

.primary-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 94, 0, 0.35);
}

.primary-cta:active {
    transform: translateY(-2px);
}

.secondary-cta {
    background: white;
    color: var(--text-main);
    border: 2px solid #E5E7EB;
}

.secondary-cta:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.hero-stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
    animation: slideInUp 0.6s ease 0.4s both;
}

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

.stat-item strong {
    font-size: 28px;
    color: var(--primary);
    font-weight: 800;
}

.stat-item span {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    animation: slideInRight 0.6s ease;
}

.hero-img {
    width: 85%;
    filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.12));
    z-index: 1;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
    animation: float 5s ease-in-out infinite reverse;
}

.floating-card i {
    font-size: 18px;
}

.text-danger {
    color: #EF4444;
}

.text-success {
    color: #10B981;
}

.text-warning {
    color: #F59E0B;
}

.c1 {
    top: 20%;
    left: 0;
}

.c2 {
    bottom: 20%;
    right: 0;
}

/* === Countdown Banner === */
.countdown-banner {
    background: linear-gradient(135deg, var(--primary), #FF7A2B);
    color: white;
    padding: 24px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.2);
    animation: slideInDown 0.6s ease 0.5s both;
}

.countdown-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

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

    100% {
        left: 100%;
    }
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-text {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-detail {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

.countdown-timer {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 24px;
    border-radius: 8px;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    text-align: center;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
    }
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
}

.countdown-deals {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.countdown-deals::-webkit-scrollbar {
    height: 6px;
}

.countdown-deals::-webkit-scrollbar-track {
    background: transparent;
}

.countdown-deals::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.countdown-deal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-width: 240px;
    flex-shrink: 0;
}

.countdown-deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.deal-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.deal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.countdown-deal-card:hover .deal-image-wrapper img {
    transform: scale(1.1);
}

.deal-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF5E00, #FF7A2B);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.4);
}

.deal-info {
    padding: 16px;
}

.deal-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.deal-sale-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.deal-add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deal-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

/* === Filters === */
.filters {
    margin-bottom: 40px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    padding: 4px;
    background: #F3F4F6;
    border-radius: var(--radius-full);
    display: inline-flex;
}

.filter-toggle-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    color: var(--text-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-toggle-btn.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab:hover:not(.active) {
    color: var(--text-main);
}

/* Advanced Filters */
.advanced-filters {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
    animation: slideDown 0.3s ease;
}

.advanced-filters.active {
    display: grid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-range input {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.price-range input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
}

.price-range input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.3);
}

.price-display {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: 8px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
}

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

.rating-btn {
    padding: 10px 12px;
    background: #F3F4F6;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    text-align: left;
}

.rating-btn:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

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

.sort-options {
    display: none;
}

#sort-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
    background: white;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 14px;
}

#sort-select:hover {
    border-color: var(--primary);
}

.reset-filters-btn {
    padding: 10px 16px;
    background: #F3F4F6;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    width: 100%;
}

.reset-filters-btn:hover {
    background: #E5E7EB;
    color: var(--primary);
}

.sort-options select:hover {
    border-color: var(--primary);
}

/* === Product Grid === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 60px 0;
}

.product-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fcfcfc 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.02) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

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

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 94, 0, 0.08);
    border-color: rgba(255, 94, 0, 0.2);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
    animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-badge.hot {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.product-badge.selling {
    background: linear-gradient(135deg, #10B981, #059669);
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.wishlist-btn-card {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 11;
}

.wishlist-btn-card:hover {
    background: #FEE2E2;
    color: #D946EF;
    transform: scale(1.15) rotate(15deg);
}

.wishlist-btn-card.active {
    background: #FEE2E2;
    color: #EF4444;
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    padding: 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    transition: all 0.4s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    z-index: 1;
}

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

.product-info {
    padding: 24px;
    background: white;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: var(--primary);
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    height: 39px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 94, 0, 0.15));
}

.product-rating {
    font-size: 12px;
    color: white;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-rating i {
    font-size: 11px;
}

.add-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary), #374151);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.add-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 94, 0, 0.2);
}

.add-btn:active {
    transform: translateY(0);
}

/* Product Rating Section */
.product-rating-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.rating-star {
    font-size: 20px;
    cursor: pointer;
    color: #d3d3d3;
    transition: all 0.2s ease;
    transform: scale(1);
}

.rating-star:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.rating-star.active {
    color: var(--primary);
}

.rating-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* === Modals === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Gallery Modal */
.gallery-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: zoomIn 0.3s ease-out;
}

.gallery-image {
    flex: 1;
    object-fit: contain;
    background: #f0f0f0;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.gallery-image.zoomed {
    cursor: zoom-out;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-top: 1px solid #e5e7eb;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.zoom-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

#zoom-level {
    font-weight: 700;
    color: var(--text-main);
    min-width: 50px;
    text-align: center;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 550px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Indicator */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(255, 94, 0, 0.05) 100%);
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    margin: 0 0 24px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E5E7EB;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.progress-step.active .progress-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

.progress-step span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    max-width: 60px;
}

.progress-step.active span {
    color: var(--primary);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #E5E7EB;
    margin: 0 12px;
    position: relative;
    top: -30px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-modal {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: center;
    background: #F9FAFB;
    padding: 12px;
    border-radius: var(--radius-md);
}

.cart-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: white;
}

.cart-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.cart-details p {
    color: var(--primary);
    font-weight: 700;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid #E5E7EB;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: white;
    cursor: pointer;
    font-weight: 700;
}

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

.modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #FAFAFA;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.total-section {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--secondary);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.3);
}

.checkout-btn:active {
    transform: translateY(0);
}

.checkout-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Footer */
.footer {
    background: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header {
        padding: 12px 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .logo h1 {
        font-size: 24px;
    }

    .search-bar {
        display: none;
        max-width: none;
        margin: 0;
        width: 100%;
        order: 3;
    }

    .user-actions {
        gap: 12px;
    }

    .action-btn {
        font-size: 14px;
        padding: 6px 8px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero h2 {
        font-size: 36px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 40px;
    }

    .countdown-banner {
        padding: 16px 0;
        margin-bottom: 32px;
    }

    .countdown-content {
        flex-direction: column;
        gap: 12px;
    }

    .countdown-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .countdown-timer {
        font-size: 28px;
        padding: 10px 20px;
        min-width: 140px;
    }

    .countdown-text {
        font-size: 14px;
    }

    .countdown-deals {
        gap: 12px;
    }


    .deal-image-wrapper {
        height: 180px;
    }

    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .category-tabs {
        flex-wrap: wrap;
    }

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

    .product-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .product-image {
        height: 200px;
        padding: 0;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 18px;
    }

    .add-btn {
        padding: 12px;
        font-size: 13px;
    }

    .testimonial-nav.prev {
        left: -40px;
    }

    .testimonial-nav.next {
        right: -40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fb-page-wrapper {
        margin: 16px auto 0;
        max-width: 100%;
    }

    .fb-page-wrapper iframe {
        width: 100% !important;
        max-width: 100%;
    }

    .social-share {
        justify-content: center;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header .container {
        gap: 12px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .user-actions {
        gap: 8px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 24px;
    }

    .countdown-banner {
        padding: 12px 0;
        margin-bottom: 24px;
    }

    .countdown-content {
        flex-direction: column;
        gap: 10px;
    }

    .countdown-header {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .countdown-timer {
        font-size: 24px;
        padding: 8px 16px;
        min-width: 120px;
    }

    .countdown-label {
        font-size: 13px;
    }

    .countdown-detail {
        font-size: 12px;
    }

    .countdown-deals {
        gap: 10px;
    }


    .deal-image-wrapper {
        height: 160px;
    }

    .deal-name {
        font-size: 13px;
        min-height: 36px;
    }

    .deal-sale-price {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .product-image {
        height: 180px;
    }

    .product-badge {
        font-size: 10px;
        padding: 6px 10px;
    }

    .chat-window {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-width: 100%;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--secondary);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 300px;
    border-left: 4px solid var(--primary);
}

.toast.success i {
    color: #10B981;
}

.toast.error i {
    color: #EF4444;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-msg {
    font-size: 13px;
    opacity: 0.9;
}

/* === Animations & Interactions === */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

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

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

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

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

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

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

.skeleton-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    margin-bottom: 16px;
    animation: loading 1.5s ease-in-out infinite;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: loading 1.5s ease-in-out infinite;
}

.skeleton-text.short {
    width: 70%;
}

/* Button Animations */
.add-btn {
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Floating Action Button */
.floating-action {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    animation: bounce 2s ease-in-out infinite;
    transition: var(--transition);
}

.floating-action:hover {
    transform: scale(1.2);
}

.floating-action.show {
    display: flex;
}

/* Recently Viewed Items */
#recently-viewed-items {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

#recently-viewed-items::-webkit-scrollbar {
    height: 4px;
}

#recently-viewed-items::-webkit-scrollbar-track {
    background: transparent;
}

#recently-viewed-items::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.recently-viewed-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 2px solid transparent;
}

.recently-viewed-item:hover {
    opacity: 1;
    border-color: var(--primary);
}

.recently-viewed-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: #f0f0f0;
}

/* === Enhanced Form Styles === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 18px;
    pointer-events: none;
    transition: var(--transition);
}

.textarea-icon {
    top: 16px;
}

.input-field {
    width: 100%;
    padding: 12px 16px 12px 48px;
    /* Left padding for icon */
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    background: #FAFAFA;
}

.input-field:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1);
}

.input-field:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.input-field.error {
    border-color: #EF4444;
    background: #FEE2E2;
}

.input-field.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-field.success {
    border-color: #10B981;
    background: #F0FDF4;
}

.input-field.success:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-error {
    color: #EF4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.form-helper {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 4px;
}

textarea.input-field {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* === Payment Methods === */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-card {
    position: relative;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FAFAFA;
}

.payment-card:hover {
    border-color: var(--primary-light);
    background: white;
}

.payment-card.selected,
.payment-card:has(input:checked) {
    /* Modern browser support */
    border-color: var(--primary);
    background: var(--primary-soft);
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.payment-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.check-mark {
    opacity: 0;
    color: var(--primary);
    font-size: 18px;
    transform: scale(0.5);
    transition: var(--transition);
}

.payment-card.selected .check-mark,
.payment-card:has(input:checked) .check-mark {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* === Accessibility === */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* === Announcement Banner === */
.announcement-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease;
}

.announcement-content {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

body:has(.announcement-banner) .header {
    top: 44px;
}

/* === Chat Widget === */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 998;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: var(--transition);
    animation: bounce 2s ease-in-out infinite;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-minimize {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F0F2F5;
}

.chat-message {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-message.bot {
    flex-direction: row;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-bubble-msg {
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.user .chat-bubble-msg {
    background: var(--primary);
    color: white;
}

.chat-bubble-msg p {
    margin: 0;
    font-size: 14px;
}

.chat-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.chat-message.user .chat-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-quick-replies {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #F0F2F5;
    border-top: 1px solid #E5E7EB;
}

.quick-reply {
    padding: 8px 12px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.chat-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

#chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chat-send:hover {
    background: var(--primary-light);
}

/* === Welcome Modal === */
.welcome-modal {
    max-width: 500px;
}

.welcome-content {
    text-align: center;
    padding: 20px;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease-in-out infinite;
}

.welcome-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.welcome-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.promo-code-box {
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 94, 0, 0.1));
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px dashed var(--primary);
}

.promo-code-box code {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.copy-code-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.copy-code-btn:hover {
    background: var(--primary-light);
}

.email-subscribe {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.email-subscribe input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 14px;
}

.email-subscribe input:focus {
    border-color: var(--primary);
}

.subscribe-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background: #059669;
}

.browse-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

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

/* === Spin Wheel === */
.spin-modal {
    max-width: 450px;
}

.spin-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
}

#spin-canvas {
    display: block;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: 4px solid white;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(255, 94, 0, 0.4);
    transition: var(--transition);
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.spin-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.spin-result {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 16px;
}

.spin-next {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.spin-wheel-btn {
    position: fixed;
    bottom: 100px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    animation: pulse 2s ease-in-out infinite;
    transition: var(--transition);
}

.spin-wheel-btn:hover {
    transform: scale(1.2);
}

/* === Achievement Toast === */
.achievement-toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 300px;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #F59E0B;
}

.achievement-toast.show {
    right: 24px;
}

.achievement-icon {
    font-size: 32px;
    animation: bounce 1s ease-in-out infinite;
}

.achievement-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.achievement-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* === Testimonials Section === */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.05) 0%, transparent 100%);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-main);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 24px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
}

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

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.testimonial-nav.prev {
    left: -60px;
}

.testimonial-nav.next {
    right: -60px;
}

/* === Social Share Buttons === */
.social-share {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.telegram {
    background: #0088CC;
}

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

/* === Footer Enhancement === */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
    text-align: left;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.fb-page-wrapper {
    margin-top: 16px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.fb-page-wrapper iframe {
    border-radius: 8px;
    display: block;
}

/* === Animated Counters === */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.stat-item strong {
    animation: countUp 1s ease;
}

/* === Order Confirmation Screen === */
.order-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-confirmation h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.order-confirmation-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 12px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.order-confirmation p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 15px;
}

.order-confirmation-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 12px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-confirmation-item span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.order-confirmation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.order-confirmation-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.order-confirmation-buttons .btn-primary:hover {
    background: var(--primary-light);
}

.order-confirmation-buttons .btn-secondary {
    background: #E5E7EB;
    color: var(--text-main);
}

.order-confirmation-buttons .btn-secondary:hover {
    background: #D1D5DB;
}

.order-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.order-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E5E7EB;
}

.order-id {
    font-weight: 700;
    color: var(--text-main);
}

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

.order-body {
    margin-bottom: 12px;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-weight: 700;
    color: var(--secondary);
    font-size: 16px;
}

.order-status {
    font-size: 12px;
}

/* === Coupon Input Styles === */
.apply-promo-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
}

.apply-promo-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.apply-promo-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* === Rating Modal Styles === */
.rating-modal {
    max-width: 450px;
}

.rating-input-group {
    margin-bottom: 24px;
}

.rating-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 14px;
}

.star-rating {
    display: flex;
    gap: 12px;
    font-size: 32px;
    margin-bottom: 8px;
    cursor: pointer;
}

.star-rating i {
    color: #D1D5DB;
    transition: var(--transition);
    cursor: pointer;
}

.star-rating i:hover,
.star-rating i.active {
    color: #F59E0B;
    transform: scale(1.2);
}

#rating-product {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

#rating-product:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1);
}

#rating-comment {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

#rating-comment:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1);
}

#rating-display {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
}

.submit-rating-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.submit-rating-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* === Statistics Modal Styles === */
.stats-modal {
    max-width: 600px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-soft), rgba(255, 94, 0, 0.05));
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(255, 94, 0, 0.15);
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

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

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

#top-items-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 100;
}

.search-bar:focus-within .search-suggestions {
    max-height: 360px;
}

.search-suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-suggestion-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 24px;
}

.search-suggestion-item i {
    color: var(--text-light);
    font-size: 13px;
    min-width: 14px;
}

/* Advanced Filters */
.advanced-filters {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #F3F4F6;
    margin-bottom: 40px;
    animation: slideDown 0.3s ease;
}

.advanced-filters.active {
    display: grid;
}

.filter-group label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.top-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.top-item:hover {
    border-color: var(--primary);
    background: white;
}

.top-item-name {
    font-weight: 600;
    color: var(--text-main);
}

.top-item-count {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

/* === Language Toggle === */
#lang-toggle {
    font-size: 14px;
    padding: 8px 12px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    color: var(--primary);
    border: 2px solid var(--primary);
}

#lang-toggle:hover {
    background: var(--primary);
    color: white;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #FEF3C7;
    color: #D97706;
}

.status-completed {
    background: #D1FAE5;
    color: #059669;
}

.status-cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.checkout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* === FIXED MOBILE RESPONSIVENESS === */

/* Base container adjustment for small screens */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}

/* IMPROVED MOBILE HEADER */
@media screen and (max-width: 768px) {
    .header .container {
        padding: 10px 16px;
        gap: 12px;
        flex-wrap: nowrap;
        /* Prevent wrapping to keep one row */
    }

    /* Adjust Logo */
    .logo h1 {
        font-size: 22px;
    }

    .logo span {
        font-size: 22px;
    }

    /* Hide Search Bar on Mobile to save space */
    .search-bar {
        display: none !important;
    }

    /* Compact User Actions */
    .user-actions {
        gap: 8px;
    }

    .action-btn {
        min-width: auto;
        padding: 8px;
        background: transparent;
    }

    .action-btn span {
        display: none !important;
        /* Hide labels like "Đơn hàng" */
    }

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

    /* Only show essential icons */
    #stats-btn,
    #lang-toggle {
        display: none;
    }
}

/* IMPROVED HERO SECTION FOR MOBILE */
@media screen and (max-width: 768px) {
    .hero {
        padding: 20px 0 40px;
        margin-top: -20px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-left {
        order: 2;
        /* Image on top? No, keep text on top for SEO/Conversion, but maybe image first looks better visually? Let's keep standard order */
    }

    .hero h2 {
        font-size: 32px;
        /* Smaller font */
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .hero-btns {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        /* Full width buttons */
        justify-content: center;
    }

    .hero-stats {
        justify-content: space-around;
        gap: 10px;
        margin-top: 32px;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
}

/* IMPROVED PRODUCT GRID (2 COLUMNS) */
@media screen and (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-card {
        padding: 10px;
    }

    .product-image {
        height: 140px;
        /* Reduced height */
    }

    .product-name {
        font-size: 14px;
        height: 40px;
        /* Limit height */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-desc {
        display: none;
        /* Hide description on mobile to save space */
    }

    .product-price {
        font-size: 16px;
    }

    .product-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .add-btn {
        width: 100%;
        justify-content: center;
        padding: 8px;
    }
}

/* FIX FLOATING BUTTONS OVERLAP */
@media screen and (max-width: 768px) {

    /* Chat Button - Bottom Right */
    .chat-widget {
        bottom: 80px;
        /* Move up to avoid bottom bar navigation if any, or just spacing */
        right: 16px;
        z-index: 1000;
    }

    .chat-bubble {
        width: 50px;
        height: 50px;
    }

    /* Dark Mode Toggle - Bottom Left */
    .dark-mode-toggle {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Spin Wheel - Above Dark Mode Toggle */
    .spin-wheel-btn {
        bottom: 70px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Announcement Banner */
    .announcement-banner {
        padding: 8px;
    }

    .announcement-content span {
        font-size: 12px;
    }
}

/* === FIX MODALS ON MOBILE === */
@media screen and (max-width: 768px) {
    .modal {
        width: 95% !important;
        margin: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .gallery-modal-content {
        width: 100%;
        height: 100%;
    }

    .gallery-image {
        max-width: 100%;
        max-height: 80vh;
    }
}

/* === CRITICAL MOBILE OVERRIDES (FORCE APPLIED) === */
@media screen and (max-width: 768px) {

    /* 1. Fix Horizontal Scroll / Excess Width */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 16px !important;
        width: 100%;
        max-width: 100%;
    }

    /* 2. Fix Header Spacing */
    .header {
        padding: 8px 0 !important;
    }

    .header .container {
        padding: 0 12px !important;
        gap: 8px !important;
    }

    .logo h1 {
        font-size: 20px !important;
    }

    /* 3. Fix Category Tabs (Scrollable instead of stacking) */
    .filters-wrapper {
        display: block !important;
        /* Stack filters and filter btn */
    }

    .category-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        margin-bottom: 12px;
        width: 100%;
    }

    .category-tabs::-webkit-scrollbar {
        height: 4px;
        /* Thin scrollbar */
    }

    .tab {
        white-space: nowrap !important;
        flex-shrink: 0;
        padding: 8px 16px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    /* 4. Fix Hero Section Spacing */
    .hero {
        padding: 20px 0 30px !important;
        margin-top: 0 !important;
    }

    .hero-container {
        gap: 24px !important;
    }

    .hero h2 {
        font-size: 28px !important;
        /* Smaller size */
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }

    .hero-image-wrapper {
        width: 240px !important;
        height: 240px !important;
    }

    /* 5. Fix Flash Sale / Banner padding */
    .countdown-banner {
        padding: 20px 0 !important;
    }

    .countdown-timer {
        font-size: 20px !important;
        padding: 6px 12px !important;
        min-width: auto !important;
    }

    /* 6. Fix Product Grid Spacing */
    .grid {
        padding: 20px 0 !important;
        /* Reduced from 60px */
        gap: 12px !important;
    }

    /* 7. Fix Product Card & Button Sizing */
    .product-card {
        padding-bottom: 15px !important;
        /* Reduced padding */
        height: auto !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .add-btn {
        padding: 8px !important;
        font-size: 13px !important;
        margin-top: 8px !important;
    }

    .product-price {
        font-size: 15px !important;
    }

    .rating-stars span {
        font-size: 16px !important;
        /* Smaller stars for mobile */
    }

    /* 8. Fix Flash Sale Layout (Horizontal Scroll) */
    .countdown-deals {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 12px !important;
        padding-bottom: 10px !important;
        width: 100%;
        scroll-snap-type: x mandatory;
    }

    .countdown-deal-card {
        min-width: 240px !important;
        max-width: 240px !important;
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        margin-right: 0 !important;
    }

    /* 9. Fix Badge Visibility (Force Show) */
    .user-actions {
        gap: 15px !important;
        overflow: visible !important;
    }

    .action-btn {
        overflow: visible !important;
        position: relative !important;
        padding: 5px !important;
        opacity: 1 !important;
    }

    .badge {
        display: flex !important;
        /* Force show */
        position: absolute !important;
        top: -4px !important;
        right: -6px !important;
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        align-items: center;
        justify-content: center;
        z-index: 9999 !important;
        border: 2px solid white !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #FF5E00 !important;
        /* Ensure background color */
        color: white !important;
    }

    /* 10. Fix Header Buttons (Hamburger/Close) Styling */
    .hamburger-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        border: none !important;
        padding: 0 !important;
        margin-right: 0 !important;
    }

    /* 11. Fix Broken Chat Window Layout */
    .chat-window {
        width: 90vw !important;
        /* Use 90% of viewport width */
        max-width: 350px !important;
        bottom: 80px !important;
        right: 5vw !important;
        /* Center horizontally relative to right */
        height: 450px !important;
        max-height: 60vh !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .chat-header {
        width: 100% !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .chat-messages {
        flex: 1 !important;
        width: 100% !important;
    }

    .chat-quick-replies {
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .chat-input-area {
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    /* 12. Redesign Checkout Modal for Mobile */
    .checkout-modal .modal-body {
        padding: 16px !important;
    }

    .checkout-progress {
        padding: 12px !important;
        margin-bottom: 20px !important;
    }

    .progress-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    .progress-step span {
        font-size: 10px !important;
        max-width: none !important;
    }

    .form-group {
        margin-bottom: 24px !important;
    }

    .form-group label {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    .input-field {
        width: 100% !important;
        padding: 14px 14px 14px 45px !important;
        /* Add left padding for icon */
        font-size: 16px !important;
        height: auto !important;
        border-radius: 12px !important;
        background: #F9FAFB !important;
        border: 1px solid #E5E7EB !important;
    }

    .input-field:focus {
        border-color: var(--primary) !important;
        background: white !important;
        box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1) !important;
    }

    .input-icon {
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 16px !important;
        font-size: 18px !important;
        color: var(--text-muted) !important;
    }

    /* Payment cards responsive */
    .payment-methods {
        grid-template-columns: 1fr !important;
        /* Stack vertically */
        gap: 12px !important;
    }

    .payment-card {
        padding: 16px !important;
        border-width: 2px !important;
    }

    /* Hide Back Button in Modal Footer */
    .modal-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Target both class and ID to be sure */
    .modal-footer .secondary-btn,
    #prev-step-btn {
        display: none !important;
    }

    .modal-footer .checkout-btn {
        width: 100% !important;
        margin: 0 !important;
    }
}