/* ============================================ */
/* HOME.CSS - Tất cả CSS cho trang chủ */
/* Gộp từ index.html để tối ưu performance */
/* ============================================ */

/* ============================================ */
/* 1. BASE STYLES & ANIMATIONS */
/* ============================================ */

/* Handmade style overrides */
body {
    font-family: 'Quicksand', sans-serif;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

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

/* Hero image blur effect - much softer and smoother */
.hero-image-blur {
    mask-image: 
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 10%, black 25%, black 75%, rgba(0,0,0,0.3) 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 10%, black 25%, black 75%, rgba(0,0,0,0.3) 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 10%, black 25%, black 75%, rgba(0,0,0,0.3) 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 10%, black 25%, black 75%, rgba(0,0,0,0.3) 90%, transparent 100%);
    -webkit-mask-composite: source-in;
}

/* Force button layout */
.product-card .product-info .product-button-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
}

.product-card .product-info .product-button-actions .btn-primary-action {
    flex: 1 !important;
    display: flex !important;
}

.product-card .product-info .product-button-actions .btn-add-to-cart {
    flex: 0 0 44px !important;
    display: flex !important;
}

/* Handmade decorative elements */
.handmade-divider {
    background: linear-gradient(90deg, transparent, #f4a261, transparent);
    height: 2px;
    margin: 2rem auto;
    max-width: 200px;
}

.trust-badge {
    background: linear-gradient(135deg, #fff5f0, #ffe8d6);
    border: 2px dashed #f4a261;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.15);
}

/* ============================================ */
/* 2. SEARCH COMPONENT - Expandable & Smooth */
/* ============================================ */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn:hover {
    background: rgba(244, 162, 97, 0.1);
}

/* Desktop: Expandable from right - INSTANT (no animation) */
.search-input-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: none;
    pointer-events: none;
    z-index: 100;
}

.search-input-wrapper.active {
    width: 320px;
    opacity: 1;
    pointer-events: auto;
}

.search-input-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.625rem 5.5rem 0.625rem 1rem;
    border: 2px solid #f4a261;
    border-radius: 50px;
    background: white;
    font-size: 0.875rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.15);
}

.search-input:focus {
    border-color: #e76f51;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
}

.search-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Search Submit Button (inside input, right side) */
.search-submit-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    border: none;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(244, 162, 97, 0.3);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #e76f51, #d35400);
    box-shadow: 0 3px 8px rgba(244, 162, 97, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.search-submit-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Clear Button (shows when typing, left of submit button) */
.search-clear-btn {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: none;
}

.search-clear-btn:hover {
    color: #e76f51;
    background: rgba(231, 111, 81, 0.1);
}

.search-clear-btn.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search active state - hide icon when input is open - INSTANT */
.search-container.search-active .search-icon-btn {
    opacity: 0;
    pointer-events: none;
    transition: none;
}

/* Mobile: Full-screen overlay with backdrop */
@media (max-width: 768px) {
    .search-input-wrapper {
        transition: all 0.3s ease;
    }
    
    .search-container.search-active .search-icon-btn {
        display: none;
    }
    
    .search-input-wrapper.active {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        transform: none;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: flex-start;
        padding: 1rem;
        animation: fadeIn 0.3s ease;
    }
    
    .search-input-wrapper.active .search-input {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    @keyframes fadeIn {
        from { 
            opacity: 0;
            background: rgba(0, 0, 0, 0);
        }
        to { 
            opacity: 1;
            background: rgba(0, 0, 0, 0.5);
        }
    }
}

/* Tablet: Medium width */
@media (min-width: 641px) and (max-width: 768px) {
    .search-input-wrapper.active {
        width: 280px;
    }
}

/* Small mobile: Adjust padding */
@media (max-width: 375px) {
    .search-input-wrapper.active {
        padding: 0.75rem;
    }
}

/* ============================================ */
/* 3. SEARCH RESULTS BANNER - Handmade Style */
/* ============================================ */

.search-results-banner {
    background: linear-gradient(135deg, #fff5f0, #ffe8d6);
    border: 2px dashed #f4a261;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.15);
    animation: slideDown 0.3s ease-out;
}

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

.search-results-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-results-icon {
    flex-shrink: 0;
    color: #f4a261;
    display: flex;
    align-items: center;
}

.search-results-text {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 0.9375rem;
}

.search-results-text span {
    display: inline-block;
}

.search-results-clear {
    flex-shrink: 0;
    padding: 0.5rem;
    background: white;
    border: 1px solid #f4a261;
    border-radius: 50%;
    cursor: pointer;
    color: #f4a261;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results-clear:hover {
    background: #f4a261;
    color: white;
    transform: scale(1.05);
}

.search-results-clear:active {
    transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .search-results-banner {
        padding: 0.875rem 1rem;
        border-radius: 0.75rem;
    }
    
    .search-results-content {
        gap: 0.5rem;
    }
    
    .search-results-text {
        font-size: 0.875rem;
    }
    
    .search-results-clear {
        padding: 0.375rem;
    }
}

/* ============================================ */
/* 4. SEARCH EMPTY STATE - Handmade Style */
/* ============================================ */

.search-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fff9f5, #ffe8d6);
    border: 3px dashed #f4a261;
    border-radius: 2rem;
    margin-bottom: 2rem;
    animation: fadeInScale 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.search-empty-state::before {
    content: '💭';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatSimple 3s ease-in-out infinite;
}

.search-empty-state::after {
    content: '🔍';
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatSimple 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatSimple {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 50%;
    color: #f4a261;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.2);
    border: 3px solid #ffe8d6;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    font-family: 'Quicksand', sans-serif;
}

.empty-state-text {
    font-size: 1.0625rem;
    color: #666;
    margin-bottom: 0.75rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-state-text span {
    font-weight: 700;
    color: #f4a261;
    font-style: italic;
}

.empty-state-subtitle {
    font-size: 1rem;
    color: #e76f51;
    margin-bottom: 2rem;
    font-weight: 600;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-suggestions {
    background: white;
    border: 2px dashed #f4a261;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 24rem;
    text-align: left;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.1);
}

.suggestions-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
    font-size: 0.9375rem;
    line-height: 2;
}

.suggestions-list li {
    padding-left: 0.5rem;
}

.empty-state-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
    margin-top: 1rem;
}

.empty-state-button:hover {
    background: linear-gradient(135deg, #e76f51, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.4);
}

.empty-state-button:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .search-empty-state {
        padding: 2rem 1.25rem;
        border-radius: 1.5rem;
    }
    
    .search-empty-state::before,
    .search-empty-state::after {
        font-size: 1.5rem;
    }
    
    .empty-state-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
    }
    
    .empty-state-icon svg {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .empty-state-title {
        font-size: 1.375rem;
    }
    
    .empty-state-text {
        font-size: 0.9375rem;
    }
    
    .empty-state-subtitle {
        font-size: 0.9375rem;
    }
    
    .empty-state-suggestions {
        padding: 1.25rem;
    }
    
    .suggestions-title {
        font-size: 0.9375rem;
    }
    
    .suggestions-list {
        font-size: 0.875rem;
    }
    
    .empty-state-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ============================================ */
/* 5. BENEFITS SECTION - Handmade Styles */
/* ============================================ */

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px dashed #f4a261;
    position: relative;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.1);
}

/* CTA Gift Box Responsive Padding */
@media (max-width: 767px) {
    .cta-gift-box {
        padding: 1.5rem 0.5rem !important;
    }
}

/* Alternating rotation for handmade feel */
.benefit-rotate-left {
    transform: rotate(-1deg);
}

.benefit-rotate-right {
    transform: rotate(1deg);
}

/* Numbered badge */
.benefit-number {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(244, 162, 97, 0.3);
    border: 3px solid white;
}

/* Icon circle with dashed border */
.benefit-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px dashed currentColor;
}

.benefit-icon-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #ec4899;
}

.benefit-icon-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

.benefit-icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.benefit-icon-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #f59e0b;
}

.benefit-icon-purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #a855f7;
}

.benefit-icon-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #14b8a6;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

.benefit-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
    text-align: center;
}

/* Remove rotation on mobile for better readability */
@media (max-width: 768px) {
    .benefit-rotate-left,
    .benefit-rotate-right {
        transform: rotate(0deg);
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-number {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: -10px;
        left: -10px;
    }

    .benefit-icon-circle {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }

    .benefit-icon-circle svg {
        width: 28px;
        height: 28px;
    }

    .benefit-title {
        font-size: 1.1rem;
    }

    .benefit-desc {
        font-size: 0.9rem;
    }
}

/* ============================================ */
/* 6. FLASH SALE SECTION - Handmade Warm Styles */
/* ============================================ */

.flash-sale-enhanced {
    background: linear-gradient(180deg, #fff 0%, #fff5f0 100%);
}

.flash-sale-box {
    background: linear-gradient(135deg, 
        rgba(248, 237, 235, 0.95) 0%, 
        rgba(255, 251, 247, 1) 25%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 251, 247, 1) 75%,
        rgba(254, 200, 154, 0.2) 100%
    );
    border-radius: 24px;
    padding: 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(244, 162, 97, 0.15);
    border: 2px dashed rgba(244, 162, 97, 0.4);
    position: relative;
    overflow: visible;
}

/* Handmade Badge - Soft & Warm */
.flash-sale-badge-enhanced {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.3);
    z-index: 10;
    border: 3px solid #fff;
}

.flash-badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.flash-bolt-icon-enhanced {
    width: 1.5rem;
    height: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flash-badge-text {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.flash-fire-icon {
    font-size: 1.25rem;
}

.flash-badge-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding-left: 0.75rem;
}

/* Header - Handmade Style */
.flash-sale-header-enhanced {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.flash-sale-title-enhanced h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.flash-sale-title-enhanced p {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Products Grid */
.flash-sale-products-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Product Card - Handmade Warm */
.flash-product-card-enhanced {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    border: 2px solid rgba(244, 162, 97, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.1);
}

.flash-product-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.2);
    border-color: rgba(244, 162, 97, 0.4);
}

.flash-product-image-enhanced {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.flash-product-image-enhanced img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-discount-badge-enhanced {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e76f51, #d35400);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
    z-index: 2;
}

.flash-hot-badge-enhanced {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f4a261, #e9c46a);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
    z-index: 2;
}

.flash-product-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash-product-name-enhanced {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.flash-product-prices-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flash-sale-price-enhanced {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flash-original-price-enhanced {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
}

/* Progress Bar Enhanced */
.flash-progress-section-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.flash-progress-info-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.flash-sold-enhanced {
    color: #e76f51;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.flash-remaining-enhanced {
    color: #27ae60;
}

.flash-progress-bar-enhanced {
    height: 8px;
    background: linear-gradient(90deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flash-progress-fill-enhanced {
    height: 100%;
    background: linear-gradient(90deg, #f4a261 0%, #e76f51 50%, #e9c46a 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(244, 162, 97, 0.3);
}

.flash-progress-fill-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2s infinite;
}

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

.flash-buy-btn-enhanced {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

.flash-buy-btn-enhanced:hover {
    background: linear-gradient(135deg, #e76f51, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

/* Footer - Handmade Style */
.flash-sale-footer-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px dashed rgba(244, 162, 97, 0.3);
}

.flash-stats-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}

.live-indicator-enhanced {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(233, 196, 106, 0.1));
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.live-dot-enhanced {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.live-text {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #27ae60;
}

.viewers-count {
    color: #7f8c8d;
}

.flash-timer-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.1), rgba(233, 196, 106, 0.1));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(244, 162, 97, 0.2);
}

.flash-timer-enhanced svg {
    color: #f4a261;
}

.flash-timer-enhanced strong {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #e76f51;
}

/* Skeleton Loading */
.flash-product-skeleton {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 16px;
}

.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-title {
    width: 80%;
    height: 20px;
}

.skeleton-price {
    width: 50%;
    height: 24px;
}

.skeleton-progress {
    width: 100%;
    height: 8px;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-sale-box {
        padding: 1rem;
        border-radius: 20px;
    }

    .flash-sale-badge-enhanced {
        padding: 0.625rem 1.25rem;
        gap: 0.5rem;
    }

    .flash-badge-text {
        font-size: 0.875rem;
    }

    .flash-badge-timer {
        font-size: 0.875rem;
    }

    .flash-sale-title-enhanced h3 {
        font-size: 1.25rem;
    }

    .flash-sale-products-enhanced {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .flash-product-card-enhanced {
        padding: 0.75rem;
    }

    .flash-sale-footer-enhanced {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* ============================================ */
/* 7. CATEGORIES SECTION */
/* ============================================ */

/* Hide scrollbar but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Skeleton category chip */
.skeleton-category-chip {
    min-width: 120px;
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 22px;
}

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

/* ============================================ */
/* 8. PRODUCTS SECTION - Filter Chips */
/* ============================================ */

/* Filter Chips - Handmade Style */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #f4a261;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.1);
}

.filter-chip:hover {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    border-color: #f4a261;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.25);
}

.filter-chip.active {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    border-color: #f4a261;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

.filter-chip i {
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .filter-chip {
        padding: 0.5rem 0.5rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .filter-chip i {
        font-size: 0.85rem;
    }
}

/* ============================================ */
/* 9. FAQ SECTION - Accordion Styles */
/* ============================================ */

/* FAQ Accordion Styles - Handmade Design */
.faq-accordion-item {
    background: linear-gradient(135deg, #ffffff 0%, #fff9f5 100%);
    border: 2px solid rgba(244, 162, 97, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    border-color: rgba(244, 162, 97, 0.4);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.1);
}

.faq-accordion-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-accordion-question:hover {
    background: rgba(244, 162, 97, 0.05);
}

.faq-accordion-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    border-radius: 50%;
    color: white;
}

.faq-accordion-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

.faq-accordion-arrow {
    flex-shrink: 0;
    color: #f4a261;
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-arrow {
    transform: rotate(180deg);
}

.faq-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-accordion-item.active .faq-accordion-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 5rem;
}

.faq-accordion-answer p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-accordion-question {
        padding: 1rem;
        gap: 0.75rem;
    }

    .faq-accordion-icon {
        width: 2rem;
        height: 2rem;
    }

    .faq-accordion-icon svg {
        width: 1rem;
        height: 1rem;
    }

    .faq-accordion-text {
        font-size: 0.9rem;
    }

    .faq-accordion-item.active .faq-accordion-answer {
        padding: 0 1rem 1rem 3.5rem;
    }
}

/* ============================================ */
/* SHOP — Skeleton grids (nổi bật + yêu thích nhất) */
/* Shimmer stagger, viền nhẹ, reduced motion */
/* ============================================ */

.shop-skeleton-grid .skeleton-product-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

.shop-skeleton-grid .skeleton-product-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* Stagger shimmer — tối đa 8 ô (2 hàng × 4 cột) */
.shop-skeleton-grid .skeleton-product-card:nth-child(1) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(1) .skeleton {
    animation-delay: 0s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(2) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(2) .skeleton {
    animation-delay: 0.07s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(3) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(3) .skeleton {
    animation-delay: 0.14s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(4) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(4) .skeleton {
    animation-delay: 0.21s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(5) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(5) .skeleton {
    animation-delay: 0.28s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(6) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(6) .skeleton {
    animation-delay: 0.35s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(7) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(7) .skeleton {
    animation-delay: 0.42s;
}
.shop-skeleton-grid .skeleton-product-card:nth-child(8) .skeleton-product-image,
.shop-skeleton-grid .skeleton-product-card:nth-child(8) .skeleton {
    animation-delay: 0.49s;
}

@media (prefers-reduced-motion: reduce) {
    .shop-skeleton-grid .skeleton-product-image,
    .shop-skeleton-grid .skeleton {
        animation: none !important;
        opacity: 0.88;
    }
}
