/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff9a9e;
    --primary-dark: #ff6b81;
    --secondary-color: #2c3e50;
    --accent-color: #fecfef;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #fff5f7;
    --white: #ffffff;
    --border-color: #ffd6e0;
    --shadow-sm: 0 2px 8px rgba(255,154,158,0.08);
    --shadow-md: 0 4px 16px rgba(255,154,158,0.12);
    --shadow-lg: 0 8px 32px rgba(255,154,158,0.16);
    --transition: all 0.3s ease;
    
    /* Z-Index System - Centralized layer management */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-modal-nested: 1060;
    --z-popover: 1070;
    --z-tooltip: 1080;
    --z-notification: 1090;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

/* Ensure nav is visible on desktop (lg breakpoint and above) */
@media (min-width: 1024px) {
    nav.hidden {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Ensure nav links are visible and have proper color on desktop */
    nav a {
        color: #374151 !important; /* gray-700 */
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0.5rem 0.75rem !important;
        display: inline-block !important;
    }
    
    nav a:hover {
        color: #f4a261 !important; /* primary */
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem;
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 100%;
    display: none;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-block {
    width: 100%;
}

/* Flash Sale Banner - Redesigned */
.flash-sale-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    position: relative;
    overflow: hidden;
}

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

.flash-sale-container {
    position: relative;
    z-index: 1;
}

.flash-sale-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    flex-direction: column;
    gap: 1.5rem;
}

.flash-sale-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flash-sale-title i {
    font-size: 2rem;
    color: #fff;
    animation: flash 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}

.flash-sale-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
}

.flash-sale-timer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.timer-item {
    background: rgba(255,255,255,0.95);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timer-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #ff6b6b;
}

.timer-label {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.timer-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.8;
}

.flash-sale-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.flash-sale-products .flash-sale-card {
    flex: none;
    min-width: 0;
}

/* Carousel Wrapper - Removed carousel functionality */
.flash-sale-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.flash-sale-carousel {
    overflow: visible;
    position: relative;
}

/* Carousel Buttons - Hide them */
.carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

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

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* Flash Sale Product Card - Handmade Style */
.flash-sale-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    border: 2px solid transparent;
}

.flash-sale-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.15);
    border-color: rgba(244, 162, 97, 0.2);
}

.flash-sale-card:active {
    transform: translateY(-3px);
}

.flash-sale-card .product-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
}

.flash-sale-card .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(231, 111, 81, 0.4);
    z-index: 2;
}

.flash-sale-card .product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.flash-sale-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Price Section - Handmade Style */
.flash-sale-price-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.flash-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e76f51;
    letter-spacing: -0.5px;
}

.save-badge {
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(231, 111, 81, 0.3);
}

.original-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

/* Stock Section - Handmade Style */
.flash-stock-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.stock-sold {
    color: #e76f51;
}

.stock-remaining {
    color: #27ae60;
}

.stock-bar {
    height: 6px;
    background: rgba(244, 162, 97, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stock-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4a261, #e76f51);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.stock-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Buy Button - Handmade Style (Red for urgency) */
.flash-buy-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.35);
    margin-top: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.flash-buy-btn:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.45);
}

.flash-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.3);
}

.flash-buy-btn i {
    font-size: 0.95rem;
}

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

/* Categories */
.categories {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
}

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

.category-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: var(--transition);
}

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

.category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    z-index: 1;
}

.category-info {
    padding: 1rem;
    text-align: center;
    background: var(--white);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.category-count i {
    font-size: 0.75rem;
}

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

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #f4a261;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.1);
    position: relative;
}

.category-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);
}

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

.category-chip-icon {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-chip-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.category-chip-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: #92400e;
    background: #fde68a;
    border: 1px solid #f59e0b;
    pointer-events: none;
}

/* Mobile adjustments for category chips */
@media (max-width: 768px) {
    .categories-chips-grid {
        gap: 0.5rem;
        justify-content: flex-start;
    }
    
    .category-chip {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        gap: 0.4rem;
    }
    
    .category-chip-icon {
        font-size: 0.8rem;
    }
    
    .category-chip-name {
        font-size: 0.875rem;
    }

    .category-chip-badge {
        font-size: 0.62rem;
        top: -7px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Preference Chips - Chọn theo sở thích của mẹ */
.preference-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: white;
    border: 2px solid rgba(244, 162, 97, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(244, 162, 97, 0.08);
}

.preference-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.2);
}

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

.preference-chip svg {
    flex-shrink: 0;
}

/* Mobile adjustments for preference chips */
@media (max-width: 768px) {
    .preference-chip {
        padding: 0.55rem 0.95rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
}

/* Products Section */
.products {
    padding: 4rem 0;
}

.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.95rem;
}

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

/* Product Card - Handmade Style */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.15);
    border-color: rgba(244, 162, 97, 0.2);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
}

.product-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    line-height: 1.2;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.product-badge.sale {
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(231, 111, 81, 0.4);
}

.product-badge.new {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.product-badge.handmade {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    box-shadow: 0 3px 10px rgba(244, 162, 97, 0.4);
    font-weight: 700;
}

.product-badge.chemical-free {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    top: auto;
    bottom: 12px;
    left: auto;
    right: 12px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    font-weight: 700;
}

.product-badge.silver-guarantee {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    top: auto;
    bottom: 12px;
    left: auto;
    right: 12px;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    font-weight: 700;
}

.product-badge.out-of-stock {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    box-shadow: 0 3px 10px rgba(107, 114, 128, 0.35);
    font-weight: 800;
}

.product-card.out-of-stock .product-image {
    filter: grayscale(0.15);
    opacity: 0.85;
}

.product-favorites-section {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 1;
    transition: var(--transition);
}

.product-favorites-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(244, 162, 97, 0.3);
    cursor: pointer;
    padding: 0.3rem 0.55rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 700;
    height: 26px;
    line-height: 1.2;
}

.product-favorites-btn.pulse {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.product-favorites-btn.favorited {
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    color: white;
    border-color: #e76f51;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 1rem;
    color: var(--text-dark);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
}

.rating-star {
    width: 1rem;
    height: 1rem;
    color: #f4a261;
    flex-shrink: 0;
}

.rating-score {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.silver-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #4a4a4a;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(192, 192, 192, 0.3);
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e76f51;
    letter-spacing: -0.5px;
}

.original-price {
    font-size: 0.95rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.price-save-info {
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(39, 174, 96, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    width: fit-content;
}

.price-save-info i {
    font-size: 0.7rem;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadMoreBtn {
    margin: 0 auto;
}

/* Features */
.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

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

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Benefits — tone ấm, tin cậy (mẹ bỉm sữa): bo góc mềm, viền chấm nhẹ */
.benefits-section-mom .benefit-card-new {
    background: linear-gradient(165deg, #ffffff 0%, #fffdfb 48%, #fff8f3 100%);
    border: 2px dashed rgba(244, 162, 97, 0.22);
    border-radius: 1.5rem 2rem 1.35rem 2.15rem;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    box-shadow: 0 6px 24px rgba(200, 140, 100, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

.benefits-section-mom .benefit-card-new:nth-child(3n + 1) {
    border-radius: 1.65rem 1.45rem 2rem 1.55rem;
}

.benefits-section-mom .benefit-card-new:nth-child(3n + 2) {
    border-radius: 1.45rem 1.85rem 1.5rem 2.1rem;
}

.benefits-section-mom .benefit-card-new:nth-child(3n) {
    border-radius: 1.55rem 2.05rem 1.6rem 1.75rem;
}

.benefits-section-mom .benefit-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.9) 0%, rgba(255, 245, 238, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.benefits-section-mom .benefit-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(200, 140, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(244, 162, 97, 0.38);
}

.benefits-section-mom .benefit-card-new:hover::before {
    opacity: 1;
}

.benefit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.benefit-title-new {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    margin: 0;
    letter-spacing: -0.01em;
}

.benefit-desc-new {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* Ảnh trái — chữ phải; ảnh vuông 1:1 */
.benefit-card-new.benefit-card-with-image {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
}

.benefit-card-image-wrap {
    flex: 0 0 38%;
    width: 38%;
    min-width: 120px;
    max-width: 196px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #faf4ef 0%, #fff9f5 100%);
    border-radius: 1.25rem 0.65rem 0.65rem 1.35rem;
}

.benefit-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.benefit-card-new.benefit-card-with-image:hover .benefit-card-img {
    transform: scale(1.03);
}

.benefit-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 1rem 1.15rem 1.15rem 0.85rem;
}

/* Khối CTA cuối section — bo mềm, bóng nhẹ (thay góc vuông cứng) */
.benefits-section-mom .mom-soft-cta {
    border-radius: 1.75rem 2.25rem 1.5rem 2rem;
    box-shadow: 0 10px 36px rgba(200, 140, 100, 0.08), 0 4px 0 rgba(244, 162, 97, 0.12);
}

/* Mobile: 1 cột lưới + thẻ xếp dọc (ảnh trên, chữ dưới — dễ đọc, cân đối) */
@media (max-width: 767px) {
    .benefits-section-mom .benefit-card-new {
        border-radius: 1.5rem 1.85rem 1.4rem 1.95rem;
    }

    .benefit-card-new.benefit-card-with-image {
        flex-direction: column;
        align-items: stretch;
    }

    .benefit-card-new.benefit-card-with-image .benefit-card-image-wrap {
        width: 100%;
        max-width: none;
        flex: none;
        min-width: 0;
        align-self: stretch;
        aspect-ratio: 1 / 1;
        border-radius: 1.35rem 1.35rem 1rem 1rem;
    }

    .benefit-card-body {
        padding: 1.125rem 1.25rem 1.35rem;
    }

    .benefit-title-new {
        font-size: 1rem;
    }

    .benefit-desc-new {
        font-size: 0.9rem;
        line-height: 1.62;
    }
}

@media (max-width: 380px) {
    .benefit-card-body {
        padding: 1rem 1rem 1.2rem;
    }

    .benefit-title-new {
        font-size: 0.9375rem;
    }

    .benefit-desc-new {
        font-size: 0.875rem;
    }
}

/* ============================================
   Artisan Story Section - Câu chuyện người làm vòng
   ============================================ */

.artisan-story-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef9f5 100%);
    position: relative;
    overflow: hidden;
}

.artisan-story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Title */
.artisan-story-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.title-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Story Content Container */
.artisan-story-content {
    background: white;
    border: 2px dashed rgba(244, 162, 97, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.15);
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.artisan-story-content:hover {
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.2);
    transform: translateY(-2px);
}

/* Image */
.artisan-image-wrapper {
    flex-shrink: 0;
    position: relative;
}

.artisan-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.2);
    transition: all 0.3s ease;
}

.artisan-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.3);
}

/* Text Content */
.artisan-text-content {
    flex: 1;
    min-width: 0;
}

.artisan-greeting {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
}

.artisan-story {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.artisan-story p {
    margin-bottom: 1rem;
}

.artisan-story p:last-child {
    margin-bottom: 0;
}

/* Highlights */
.artisan-highlights {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(248, 237, 235, 0.8), rgba(233, 196, 106, 0.1));
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.2);
    border-color: rgba(244, 162, 97, 0.3);
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.highlight-content {
    flex: 1;
}

.highlight-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.highlight-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .artisan-story-title {
        font-size: 1.5rem;
    }

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

    .artisan-story-content {
        flex-direction: column;
        padding: 1.5rem 10px;
        gap: 1.5rem;
        text-align: center;
    }

    .artisan-image-wrapper {
        margin: 0 auto;
    }

    .artisan-image {
        width: 150px;
        height: 150px;
    }

    .artisan-greeting {
        font-size: 1.25rem;
    }

    .artisan-story {
        font-size: 0.975rem;
        line-height: 1.7;
    }

    .artisan-highlights {
        flex-direction: column;
        gap: 0.75rem;
    }

    .highlight-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .highlight-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .artisan-story-content {
        gap: 2rem;
        padding: 2rem;
    }

    .artisan-image {
        width: 180px;
        height: 180px;
    }

    .artisan-highlights {
        flex-wrap: wrap;
    }

    .highlight-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 200px;
    }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    font-size: 1.5rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-amount {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Flash Sale Mobile Optimization */
    .flash-sale-banner {
        padding: 2.5rem 0;
    }
    
    .flash-sale-header {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .flash-sale-title-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .flash-sale-title h2 {
        font-size: 1.5rem;
    }
    
    .flash-sale-title i {
        font-size: 1.5rem;
    }
    
    .flash-sale-timer {
        gap: 0.35rem;
        width: 100%;
        justify-content: center;
    }
    
    .timer-item {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }
    
    .timer-value {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.65rem;
    }
    
    .timer-separator {
        font-size: 1.5rem;
    }
    
    /* Flash Sale Products Grid - Mobile */
    .flash-sale-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .flash-sale-products .flash-sale-card {
        flex: none;
    }
    
    /* Carousel Wrapper - Mobile */
    .flash-sale-carousel-wrapper {
        padding: 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-dots {
        margin-top: 1.5rem;
        gap: 0.4rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
    
    /* Flash Sale Card - Mobile Optimized */
    .flash-sale-card {
        border-radius: 16px;
    }
    
    .flash-sale-badge {
        top: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
        border-radius: 20px;
    }
    
    .flash-sale-card .product-info {
        padding: 0.75rem;
        gap: 0.55rem;
    }
    
    .flash-sale-card .product-name {
        font-size: 0.85rem;
        min-height: 2.3rem;
        line-height: 1.3;
    }
    
    /* Price Section - Mobile */
    .flash-sale-price-section {
        gap: 0.3rem;
    }
    
    .flash-price {
        font-size: 1.1rem;
    }
    
    .save-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        border-radius: 12px;
    }
    
    .original-price {
        font-size: 0.8rem;
    }
    
    /* Stock Section - Mobile */
    .flash-stock-section {
        gap: 0.35rem;
    }
    
    .stock-info-row {
        font-size: 0.7rem;
    }
    
    .stock-bar {
        height: 5px;
    }
    
    /* Buy Button - Mobile */
    .flash-buy-btn {
        padding: 0.7rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .flash-buy-btn i {
        font-size: 0.85rem;
    }
    
    /* Regular Products Grid - Mobile */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    /* Product Card - Mobile */
    .product-card {
        border-radius: 16px;
    }
    
    /* Product Info - Mobile */
    .product-info {
        padding: 6px;
        gap: 0.625rem;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.3;
    }
    
    .product-rating {
        gap: 0.4rem;
    }
    
    .silver-mini-badge {
        font-size: 0.6rem;
        padding: 0.125rem 0.4rem;
    }
    
    .stars {
        font-size: 0.75rem;
        gap: 1px;
    }
    
    .rating-count {
        font-size: 0.75rem;
    }
    
    .product-price-wrapper {
        gap: 0.3rem;
        margin-bottom: 0.4rem;
    }
    
    .product-price {
        gap: 0.5rem;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .original-price {
        font-size: 0.85rem;
    }
    
    .price-save-info {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    /* Product Badges - Mobile */
    .product-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        border-radius: 15px;
        height: 24px;
        top: 10px;
        left: 10px;
    }
    
    .product-badge.handmade,
    .product-badge.chemical-free,
    .product-badge.silver-guarantee {
        bottom: 10px;
        left: 10px;
        right: auto;
    }
    
    .product-badge.chemical-free,
    .product-badge.silver-guarantee {
        left: auto;
        right: 10px;
    }
    
    /* Favorites Button - Mobile */
    .product-favorites-section {
        top: 10px;
        right: 10px;
    }
    
    .product-favorites-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        height: 24px;
        gap: 0.25rem;
    }
    
    .product-badge.handmade {
        bottom: auto;
        top: 6px;
        left: auto;
        right: 6px;
    }
    
    .product-badge.chemical-free,
    .product-badge.silver-guarantee {
        bottom: 6px;
        left: 6px;
        right: auto;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Favorites Section - Mobile */
    .product-favorites-section {
        top: auto !important;
        bottom: 8px !important;
        right: 8px !important;
    }
    
    .product-favorites-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
        border-radius: 12px;
        gap: 0.15rem;
    }
    
    .product-favorites-btn i {
        font-size: 0.7rem;
    }
    
    .favorites-count {
        font-size: 0.65rem;
    }
}


/* Extra Small Mobile (< 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .flash-sale-banner {
        padding: 2rem 0;
    }
    
    .flash-sale-title h2 {
        font-size: 1.3rem;
    }
    
    .timer-item {
        padding: 0.4rem 0.6rem;
        min-width: 55px;
    }
    
    .favorites-count {
        font-size: 0.7rem;
    }
    
    /* Favorites Section - Extra Small Mobile */
    .product-favorites-section {
        bottom: 6px !important;
        right: 6px !important;
    }
    
    .product-favorites-btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
        border-radius: 10px;
        gap: 0.1rem;
    }
    
    .product-favorites-btn i {
        font-size: 0.65rem;
    }
    
    .favorites-count {
        font-size: 0.6rem;
    
        border-radius: 12px;
        gap: 0.15rem;
    }


    
    .timer-value {
        font-size: 1.3rem;
    }
    
    .flash-sale-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Carousel - Extra Small Mobile */
    .flash-sale-carousel-wrapper {
        padding: 0;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .carousel-dots {
        margin-top: 1rem;
    }
    
    .flash-sale-card .product-info {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .flash-sale-card .product-name {
        font-size: 0.85rem;
        min-height: 2.3rem;
    }
    
    .flash-price {
        font-size: 1rem;
    }
    
    .save-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .original-price {
        font-size: 0.75rem;
    }
    
    .stock-info-row {
        font-size: 0.7rem;
    }
    
    .stock-bar {
        height: 4px;
    }
    
    .flash-buy-btn {
        padding: 0.6rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }
    
    .flash-buy-btn i {
        font-size: 0.85rem;
    }
}


/* ============================================ */
/* DUAL BUTTON SYSTEM - BUY NOW & ADD TO CART */
/* Handmade Style - Soft & Rounded */
/* ============================================ */

/* Product Button Actions - Full Width Design */
.product-button-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: stretch !important;
    justify-content: stretch;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Flash Sale Actions - Handmade Style */
.flash-actions {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.flash-add-cart {
    width: 50px;
    height: 50px;
    border: 2px solid #e76f51;
    background: white;
    color: #e76f51;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 111, 81, 0.15);
}

.flash-add-cart:hover {
    background: linear-gradient(135deg, #e76f51, #e74c3c);
    color: white;
    border-color: #e76f51;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.3);
}

/* Flash buy button in actions layout */
.flash-actions .flash-buy-btn {
    flex: 1;
    height: 50px;
    min-height: 50px;
}

/* Quick Checkout Modal */
.quick-checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: fadeIn 0.15s ease;
    backdrop-filter: blur(4px);
}

.quick-checkout-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 48px);
    margin: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.quick-checkout-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.quick-checkout-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-checkout-header h3 i {
    color: #e74c3c;
}

.demo-data-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.demo-data-btn:hover {
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

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

.demo-data-btn i {
    font-size: 1rem;
}

.quick-checkout-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.2s ease;
}

.quick-checkout-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.quick-checkout-body {
    padding: 1.5rem;
    padding-bottom: 100px;
    overflow-y: auto;
    flex: 1;
}

.quick-checkout-footer {
    padding: 1.25rem 1.5rem;
    background: white;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
    border-radius: 0 0 16px 16px;
}

.quick-checkout-footer .checkout-summary {
    margin-top: 0;
}

.quick-checkout-footer .checkout-submit-btn {
    margin-top: 1rem;
}

/* Checkout Submit Section - Fixed Footer (outside body) */
.checkout-submit-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    margin: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 180px;
    align-items: center;
    gap: 1rem;
    border-radius: 0 0 16px 16px !important;
}

.checkout-guarantee-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #81c784;
    border-radius: 12px;
    justify-content: center;
    box-sizing: border-box;
}

.guarantee-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.3;
}

.guarantee-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: #43a047;
    line-height: 1.2;
}

.checkout-total-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 1rem;
    border-right: 2px solid #f0f0f0;
}

.total-label-main {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.total-amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1.2;
}

.checkout-total-box.paid .total-label-main {
    color: #27ae60;
}

.checkout-total-box.paid .total-amount {
    color: #27ae60;
}

.total-label {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 600;
    white-space: nowrap;
}

.checkout-submit-btn {
    width: 100%;
    min-height: 45px;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.checkout-submit-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

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

.checkout-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Loading state - show spinner, hide text */
.checkout-submit-btn.loading {
    color: transparent;
    pointer-events: none;
}

.checkout-submit-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -0.6rem;
    margin-top: -0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success animation for submit button */
.checkout-submit-btn .fa-check-circle {
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Spinner animation for loading state */
.fa-spinner.fa-spin,
.checkout-submit-btn .fa-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Order Details Section */
.order-details-section {
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.order-details-toggle {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-bottom: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Gray divider line below title */
.order-details-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.order-details-toggle:hover {
    background: rgba(244, 162, 97, 0.05);
}

.order-details-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.order-details-title svg {
    color: var(--primary);
}

.toggle-icon {
    color: #666;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.order-details-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.order-details-content {
    padding: 0 1rem 1rem 1rem;
    padding-top: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.order-details-content.show {
    max-height: 500px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
}

/* Only show border when there are multiple items */
.order-item + .order-item {
    border-top: 1px dashed #e0e0e0;
    padding-top: 0.75rem;
}

.order-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.order-item-qty {
    font-size: 0.85rem;
    color: #666;
    background: #e8f4f8;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

/* Order item chips in quick checkout summary */
.order-items-row .order-items-values {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    text-align: right;
}

.order-item-chip {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 650;
    color: #111827;
    max-width: 100%;
}

.order-item-chip .order-item-qty {
    background: transparent;
    padding: 0;
    margin-left: 0.35rem;
    border-radius: 0;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.8rem;
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.order-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0;
}

.order-item-remove:hover {
    background: #fee;
    color: #e74c3c;
    transform: scale(1.1);
}

.order-item-remove:active {
    transform: scale(0.95);
}

.order-discount-info {
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.order-discount-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #155724;
}

.order-discount-badge i {
    color: #28a745;
}

/* Order Summary Section */
.order-summary-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #e0e0e0;
}

.order-products-list {
    margin-bottom: 0.5rem;
}

/* Summary rows - matching cart style */
.order-summary-section .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
}

.order-summary-section .summary-row .amount {
    color: #333;
    font-weight: 600;
}

.order-summary-section .summary-row.discount-row {
    color: #27ae60;
}

.order-summary-section .summary-row.discount-row .amount {
    color: #27ae60;
    font-weight: 700;
}

.order-summary-section .summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
    margin: 0.75rem 0;
}

.order-summary-section .summary-row.total-row {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 0 0.5rem;
    color: #1a1a1a;
}

.order-summary-section .summary-row.total-row .amount {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.2rem;
}

.order-summary-section .summary-row.payment-row {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.order-summary-section .summary-row.payment-row.paid {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #27ae60;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
}

.order-summary-section .summary-row.payment-note-simple {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #27ae60;
    padding: 12px 10px;
    border-radius: 8px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.order-summary-section .summary-row.payment-note-simple .payment-label {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    flex-wrap: nowrap;
    gap: 6px;
}

.order-summary-section .summary-row.payment-note-simple .amount {
    display: none;
}

.order-summary-section .summary-row.payment-row.payment-note {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 3px solid #66bb6a;
    padding: 0.75rem 1rem;
}

.order-summary-section .summary-row.payment-row.payment-note .payment-label {
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.order-summary-section .summary-row.payment-row.payment-note .amount {
    display: none;
}

.order-summary-section .summary-row.payment-row .payment-label {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-summary-section .summary-row.payment-row .payment-label i {
    color: #f39c12;
}

.order-summary-section .summary-row.payment-row .amount {
    color: #f39c12;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Legacy styles for backward compatibility */
.order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.order-summary-row.total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid #e0e0e0;
}

.order-summary-label {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.order-summary-row.total .order-summary-label {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
}

.order-summary-value {
    color: #333;
    font-weight: 600;
}

.order-summary-value.discount {
    color: #27ae60;
    font-weight: 700;
}

.order-summary-row.total .order-summary-value {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

.order-summary-row.payment-row {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.order-summary-row.payment-row.paid {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 3px solid #4caf50;
}

.order-summary-row.payment-row.payment-note {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 3px solid #66bb6a;
    padding: 0.75rem 1rem;
}

.order-summary-row.payment-row.payment-note .payment-label {
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.order-summary-row.payment-row.payment-note .payment-value {
    display: none;
}

.payment-label {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
}

.payment-label i {
    color: #f39c12;
}

.order-summary-row.payment-row.paid .payment-label i {
    color: #28a745;
}

.payment-value {
    color: #f39c12;
    font-weight: 700;
    font-size: 1.05rem;
}

.order-summary-row.payment-row.paid .payment-value {
    color: #28a745;
}

/* Compact Summary */
.checkout-summary-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.summary-compact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-compact-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.summary-compact-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
}

.summary-expand-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-expand-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.summary-expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Detailed Summary */
.checkout-summary-detail {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    animation: slideDown 0.2s ease;
}

.checkout-summary-detail.hidden {
    display: none;
}

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

.checkout-product {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.checkout-product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.checkout-product-prices {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.checkout-product-original-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.checkout-form-group {
    margin-bottom: 1.25rem;
}

.checkout-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.checkout-form-label svg {
    flex-shrink: 0;
    color: #e74c3c;
}

.checkout-form-label .required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

.weight-surcharge-notice {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-left: 3px solid #f39c12;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #856404;
}

.weight-surcharge-notice i {
    color: #f39c12;
    font-size: 1rem;
}

.weight-surcharge-notice strong {
    color: #f39c12;
    font-weight: 700;
}

/* Weight Preset Buttons */
.weight-preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.weight-preset-btn {
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-height: 60px;
    justify-content: center;
}

.weight-preset-btn:hover {
    border-color: #e74c3c;
    background: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.15);
}

.weight-preset-btn.selected {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.weight-preset-btn i {
    font-size: 1.1rem;
    color: #e74c3c;
}

.weight-preset-btn.selected i {
    color: #e74c3c;
}

.weight-preset-btn .weight-range {
    font-size: 0.95rem;
    font-weight: 700;
}

.weight-preset-btn.weight-custom-btn {
    border-style: dashed;
    color: #666;
}

.weight-preset-btn.weight-custom-btn:hover {
    border-color: #e74c3c;
    border-style: solid;
    color: #e74c3c;
}

.weight-preset-btn.weight-custom-btn.selected {
    border-style: solid;
}

.weight-preset-btn.weight-custom-btn i {
    color: #666;
}

.weight-preset-btn.weight-custom-btn:hover i,
.weight-preset-btn.weight-custom-btn.selected i {
    color: #e74c3c;
}

/* Custom Weight Input Wrapper */
.custom-weight-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.custom-weight-input-wrapper .checkout-form-input {
    flex: 1;
    margin-bottom: 0;
}

.custom-weight-confirm-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.custom-weight-confirm-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.custom-weight-confirm-btn:active {
    transform: translateY(0);
}

.custom-weight-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.custom-weight-change-btn {
    padding: 0.35rem 0.75rem;
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.custom-weight-change-btn:hover {
    background: #e74c3c;
    color: white;
}

.checkout-form-input,
.checkout-form-select,
.checkout-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.checkout-form-input:focus,
.checkout-form-select:focus,
.checkout-form-textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Error state - same styling as focus */
.checkout-form-input.error,
.checkout-form-select.error,
.checkout-form-textarea.error {
    border-color: #e74c3c;
}

.checkout-form-input.error:focus,
.checkout-form-select.error:focus,
.checkout-form-textarea.error:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.checkout-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.payment-method-item:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.payment-method-item.active {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.payment-method-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.payment-method-radio:hover {
    border-color: #e74c3c;
    transform: scale(1.1);
}

.payment-method-radio:checked {
    border-color: #e74c3c;
    background: white;
    animation: radioSelect 0.3s ease;
}

.payment-method-radio:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    animation: radioDot 0.3s ease;
}

@keyframes radioSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes radioDot {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.payment-method-desc {
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 480px) {
    .payment-method-item {
        padding: 0.85rem;
    }
    
    .payment-method-icon {
        font-size: 1.75rem;
    }
    
    .payment-method-name {
        font-size: 0.9rem;
    }
    
    .payment-method-desc {
        font-size: 0.8rem;
    }
}

/* Bank Transfer Info */
/* Bank Transfer Info - Handmade Style */
.bank-transfer-info {
    margin-top: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--warm), rgba(233, 196, 106, 0.08));
    border: 2px dashed var(--primary)/30;
    border-radius: 16px;
    animation: slideDown 0.3s ease;
}

.bank-transfer-info.hidden {
    display: none;
}

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

.bank-info-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 0.875rem;
    border-bottom: 1px solid transparent;
    background: linear-gradient(90deg, transparent, var(--primary), transparent) bottom/100% 1px no-repeat;
}

.bank-info-header i {
    font-size: 1.2rem;
    color: var(--primary);
}

.bank-info-content {
    display: flex;
    flex-direction: column;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.925rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 10px;
    border: 1px solid var(--primary)/10;
}

.bank-info-label {
    color: var(--text-light);
    font-weight: 600;
}

.bank-info-value {
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bank-info-value.highlight {
    font-size: 1.15rem;
    color: var(--primary);
}

.bank-name {
    color: var(--secondary);
    font-weight: 700;
}

.copy-btn {
    background: var(--white);
    border: 2px solid var(--primary)/30;
    border-radius: 8px;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.copy-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.bank-info-note {
    margin-top: 0.875rem;
    padding: 0.875rem;
    background: var(--white);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    border-left: 3px solid var(--primary);
    line-height: 1.5;
}

.bank-info-note i {
    color: var(--warning);
    font-size: 1rem;
    flex-shrink: 0;
}

.bank-confirm-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    margin-top: 1rem;
}

.bank-confirm-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

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

.bank-confirm-btn i {
    font-size: 1.2rem;
}

.bank-confirm-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    animation: fadeInShake 0.5s ease;
}

.bank-confirm-error.hidden {
    display: none;
}

.bank-confirm-error i {
    font-size: 1rem;
}

@keyframes fadeInShake {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        transform: translateX(-3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Bank Transfer Confirmed State */
.bank-transfer-info.confirmed {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(46, 204, 113, 0.05));
    border: 2px solid #27ae60;
    border-style: solid;
}

.bank-payment-confirmed-notice {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    animation: slideDown 0.4s ease;
}

.bank-payment-confirmed-notice svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.bank-payment-confirmed-notice .notice-content {
    flex: 1;
    line-height: 1.4;
}

.bank-payment-confirmed-notice .notice-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.bank-payment-confirmed-notice .notice-subtitle {
    font-size: 0.825rem;
    opacity: 0.92;
    font-weight: 500;
}

.bank-info-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.bank-info-content.collapsed.show {
    max-height: 500px;
    opacity: 1;
}

.bank-info-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #27ae60;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.bank-info-toggle:hover {
    background: rgba(39, 174, 96, 0.08);
}

.bank-info-toggle svg {
    transition: transform 0.3s ease;
}

.bank-info-toggle.expanded svg {
    transform: rotate(180deg);
}

.bank-confirm-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.order-payment-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.05));
    border-radius: 10px;
    border: 1px solid #27ae60;
    margin-top: 0.5rem;
}

.order-payment-status .status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-weight: 700;
    font-size: 0.925rem;
}

.order-payment-status .status-value {
    color: #27ae60;
    font-weight: 700;
    font-size: 1rem;
}

@keyframes shakeAndPulse {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Checkout button highlight */
.checkout-btn {
    transition: all 0.3s ease;
}

.checkout-btn.highlight {
    animation: pulse 2s infinite;
    box-shadow: 0 6px 20px rgba(233, 196, 106, 0.5) !important;
}

/* Checkout total box paid state */
.checkout-total-box.paid {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.05));
    border-color: #27ae60;
}

.checkout-total-box.paid .checkout-total-label {
    color: #27ae60;
}

.checkout-total-box.paid .checkout-total-amount {
    color: #27ae60;
}

/* Order summary paid state - when bank transfer is confirmed */
.order-details-section .summary-total #orderTotalLabelText {
    transition: color 0.3s ease;
}

.order-details-section .summary-total .total-amount {
    transition: color 0.3s ease;
}

/* Apply green color when payment is confirmed */
.order-details-section.paid .summary-total #orderTotalLabelText {
    color: #27ae60 !important;
}

.order-details-section.paid .summary-total .total-amount {
    color: #27ae60 !important;
    font-weight: 700;
}

/* Order payment row styles */
.order-detail-row.payment-note {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.05));
    border: 1px solid #27ae60;
    border-radius: 8px;
    padding: 0.75rem;
    grid-template-columns: 1fr;
}

.order-detail-row.payment-note .order-detail-label {
    color: #27ae60;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-detail-row.payment-note .order-detail-label::before {
    content: '✓';
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 1.25rem;
    font-weight: bold;
}

/* Simple payment note - clean and professional design */
.order-detail-row.payment-note-simple {
    background: transparent;
    border: none;
    border-top: 2px dashed #e0e0e0;
    border-radius: 0;
    padding: 12px 0 0 0;
    margin-top: 12px;
    grid-template-columns: 1fr;
    text-align: center;
}

.order-detail-row.payment-note-simple .order-detail-label {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    margin: 0 auto;
    width: fit-content;
    position: relative;
}

.order-detail-row.payment-note-simple .order-detail-label::before {
    content: '';
    display: none;
}

@media (max-width: 480px) {
    .bank-transfer-info{
        padding: 1rem;
    }
    
    .bank-info-value.highlight {
        font-size: 1.2rem;
    }
}

.checkout-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkout-qty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0.25rem;
}

.checkout-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
}

.checkout-qty-btn svg {
    width: 0.9rem;
    height: 0.9rem;
    pointer-events: none;
}

.checkout-qty-btn:hover:not(:disabled) {
    background: #e74c3c;
    color: white;
}

.checkout-qty-btn:hover:not(:disabled) svg {
    color: white;
}

.checkout-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.checkout-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-summary {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.25rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.checkout-summary-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.checkout-summary-amount {
    font-weight: 600;
}

.checkout-summary-amount.total {
    font-size: 1.5rem;
    color: #e74c3c;
}

.checkout-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.checkout-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.checkout-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Dual Button */
/* Responsive Design - Full Width */
@media (max-width: 768px) {
    .product-button-actions {
        gap: 0.4rem !important;
        margin-top: 0.75rem !important;
    }
    
    /* Order Details Mobile */
    .order-details-toggle {
        padding: 0.75rem 0.875rem;
    }
    
    .order-details-title {
        font-size: 0.975rem;
    }
    
    .order-details-content {
        padding: 0 0.875rem 0.875rem 0.875rem;
    }
    
    .order-item {
        padding: 0.5rem 0;
    }
    
    .order-item-name {
        font-size: 0.85rem;
    }
    
    .order-item-qty {
        font-size: 0.8rem;
        padding: 0.1rem 0.4rem;
    }
    
    .order-item-price {
        font-size: 0.85rem;
    }
    
    .order-discount-info {
        padding: 0.5rem 0.75rem;
    }
    
    .order-discount-badge {
        font-size: 0.8rem;
    }
    
    .flash-actions {
        grid-template-columns: 45px 1fr;
        gap: 0.4rem;
    }
    
    .flash-add-cart {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .quick-checkout-modal {
        padding: 12px;
        align-items: flex-start;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    
    .quick-checkout-content {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
        margin: 0;
        overflow: hidden;
    }
    
    .quick-checkout-header {
        padding: 0.75rem 1rem;
        border-radius: 16px 16px 0 0;
    }
    
    .quick-checkout-header h3 {
        font-size: 1rem;
    }
    
    .quick-checkout-body {
        padding: 0.5rem;
        padding-bottom: 90px;
    }
    
    .quick-checkout-footer {
        padding: 0.75rem 1rem;
        border-radius: 0 0 16px 16px;
    }
    
    .order-details-section {
        margin-bottom: 0.5rem;
    }
    
    .order-details-toggle {
        padding: 1.5rem 0.85rem;
    }
    
    .order-details-title {
        font-size: 0.85rem;
    }
    
    .order-details-content {
        padding: 0 0.85rem 0.75rem 0.85rem;
    }
    
    .order-item {
        padding: 0.5rem 0;
    }
    
    .order-item-name {
        font-size: 0.85rem;
    }
    
    .order-item-qty {
        font-size: 0.8rem;
        padding: 0.1rem 0.4rem;
    }
    
    .order-item-price {
        font-size: 0.85rem;
    }
    
    .checkout-summary-compact {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .summary-compact-label {
        font-size: 0.8rem;
    }
    
    .summary-compact-total {
        font-size: 1.05rem;
    }
    
    .summary-expand-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .checkout-submit-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .checkout-submit-section {
        padding: 0.5rem;
        gap: 0.2rem;
        border-radius: 0;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    
    .checkout-guarantee-box {
        padding: 0.3rem 0.75rem;
        gap: 0.25rem;
        border-width: 1.5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .guarantee-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .guarantee-subtitle {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .checkout-total-box {
        display: none !important;
    }
    
    .checkout-submit-btn {
        width: auto !important;
        
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 1.2;
    }
    
    .checkout-product-image {
        width: 80px;
        height: 80px;
    }
    
    .checkout-product-name {
        font-size: 0.95rem;
    }
    
    .checkout-product-price {
        font-size: 1.1rem;
    }
    
    .checkout-product-original-price {
        font-size: 0.85rem;
    }
    
    .cross-sell-item {
        padding: 0.75rem;
    }
    
    .cross-sell-image {
        width: 50px;
        height: 50px;
    }
    
    .cross-sell-name {
        font-size: 0.85rem;
    }
    
    .cross-sell-price {
        font-size: 0.9rem;
    }
}

/* Cross-sell Products */
.cross-sell-container {
    margin-bottom: 1.5rem;
}

/* Cross-sell container with legend border */
.cross-sell-container {
    position: relative;
    border: 2px solid #e74c3c;
    border-radius: 12px;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #fff9f5 0%, #fff5f0 100%);
}

.cross-sell-header-legend {
    position: absolute;
    top: -22px;
    left: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    z-index: 1;
    height: 44px;
}

.cross-sell-header-legend i,
.cross-sell-header-legend svg {
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cross-sell-header-legend strong {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700;
}

.cross-sell-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cross-sell-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: white;
    border: 1.5px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cross-sell-item:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

.cross-sell-item.selected {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

.cross-sell-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cross-sell-info {
    flex: 1;
    min-width: 0;
}

.cross-sell-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.cross-sell-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
}

/* Actions container (quantity + button) */
.cross-sell-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Compact quantity selector */
.cross-sell-qty-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
}

.cross-sell-qty-btn-compact {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cross-sell-qty-btn-compact:hover:not(:disabled) {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.cross-sell-qty-btn-compact:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cross-sell-qty-value-compact {
    min-width: 24px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Add button (compact) */
.cross-sell-add-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cross-sell-add-btn-compact:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

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

/* Remove button (compact) - shows "Đã thêm" */
.cross-sell-remove-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cross-sell-remove-btn-compact:hover {
    background: #e74c3c;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .cross-sell-item {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .cross-sell-image {
        width: 50px;
        height: 50px;
    }
    
    .cross-sell-name {
        font-size: 0.85rem;
    }
    
    .cross-sell-price {
        font-size: 0.9rem;
    }
    
    .cross-sell-qty-btn-compact {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .cross-sell-qty-value-compact {
        min-width: 20px;
        font-size: 1rem;
    }
    
    .cross-sell-add-btn-compact,
    .cross-sell-remove-btn-compact {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

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

/* Quantity update feedback */
.qty-updated {
    animation: qtyPulse 0.6s ease;
}

@keyframes qtyPulse {
    0%, 100% {
        transform: scale(1);
        color: #333;
    }
    50% {
        transform: scale(1.3);
        color: #e74c3c;
        font-weight: 700;
    }
}

.price-updated {
    animation: priceHighlight 0.6s ease;
}

@keyframes priceHighlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: #fff3cd;
        transform: scale(1.05);
    }
}

/* Mini feedback toast */
.qty-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    z-index: 10001;
}

.qty-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

.qty-feedback i {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .qty-feedback {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Address Selector */
.address-selector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.address-selector-item:nth-child(4) {
    grid-column: 1 / -1;
}

.address-display {
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.address-display-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.address-display-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Discount Modal */
.discount-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

.discount-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.discount-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    flex-shrink: 0;
}

.discount-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-modal-header h3 i {
    color: #e74c3c;
}

.discount-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.2s ease;
}

.discount-modal-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.discount-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.discount-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.discount-item:hover:not(.disabled) {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    transform: translateY(-2px);
}

.discount-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.discount-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discount-icon i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.discount-info {
    flex: 1;
}

.discount-code {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.discount-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.discount-condition {
    font-size: 0.8rem;
    color: #999;
}

.discount-expiry {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.discount-apply-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.discount-apply-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.discount-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.discount-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.discount-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.discount-empty p {
    font-size: 1rem;
}

/* Discount Input Group - Matching Cart Style */
.discount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.discount-input-wrapper .checkout-form-input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 110px;
    border: 3px dashed rgba(102, 187, 106, 0.7) !important;
    border-radius: 28px !important;
    font-size: 0.95rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.4) 0%, 
        rgba(200, 230, 201, 0.3) 100%
    ) !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(144, 202, 149, 0.15);
}

.discount-input-wrapper .checkout-form-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: rgba(127, 140, 141, 0.5);
    font-style: normal;
}

.discount-input-wrapper .checkout-form-input:focus {
    outline: none;
    border-color: rgba(102, 187, 106, 0.7) !important;
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.6) 0%, 
        rgba(200, 230, 201, 0.5) 100%
    ) !important;
    box-shadow: 0 3px 12px rgba(102, 187, 106, 0.25);
}

.discount-input-wrapper .checkout-form-input:hover {
    border-color: rgba(102, 187, 106, 0.7) !important;
}

.discount-input-wrapper .checkout-form-input.has-discount {
    color: #1b5e20;
    font-weight: 700;
    background: linear-gradient(135deg, 
        rgba(232, 245, 233, 0.7) 0%, 
        rgba(200, 230, 201, 0.6) 100%
    ) !important;
    border: 3px dashed rgba(102, 187, 106, 0.6) !important;
}

.discount-action-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.625rem 1rem;
    background: #ffc0cb;
    color: #c2185b;
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 95px;
    box-shadow: 0 2px 6px rgba(193, 24, 91, 0.15);
    margin: 0;
}

.discount-action-btn:hover {
    background: #ffb3c1;
    transform: translateY(-50%) scale(1.02);
}

.discount-action-btn:active {
    background: #ffa0b0;
    transform: translateY(-50%) scale(0.98);
}

/* Available codes section - Compact design like cart page */
.available-codes-quick {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(244, 162, 97, 0.15);
}

.codes-title-quick {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-list-quick {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.discount-tip {
    margin-top: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 3px solid #f4a261;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #5a4a3a;
    line-height: 1.5;
}

.discount-tip strong {
    color: #d97706;
    font-weight: 600;
}

.code-item-quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #ffffff, #fff9f5);
    border-radius: 12px;
    font-size: 0.9rem;
    border: 2px solid rgba(244, 162, 97, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.code-item-quick:hover {
    border-color: rgba(244, 162, 97, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.15);
}

.code-item-quick.disabled {
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    border: 2px dashed #e0e0e0;
    opacity: 0.75;
}

.code-item-quick.disabled:hover {
    transform: none;
    border-color: #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.code-item-quick.disabled .code-name-quick {
    color: #999;
}

.code-item-quick.applied {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0.05));
    border: 2px solid #27ae60;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.code-item-quick.applied:hover {
    transform: none;
    border-color: #27ae60;
}

.code-item-quick.applied .code-name-quick {
    color: #27ae60;
}

.code-item-info {
    flex: 1;
    min-width: 0;
}

.code-name-quick {
    font-weight: 700;
    color: #f4a261;
    font-size: 1rem;
}

.code-desc-quick {
    color: #666;
    font-size: 0.9rem;
}

.code-savings-quick {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
    color: #27ae60;
}

.code-item-quick.disabled .code-savings-quick {
    color: #f39c12;
}

.code-apply-btn-quick {
    background: linear-gradient(135deg, #f4a261, #e67e22);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(244, 162, 97, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-apply-btn-quick:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.4);
}

.code-apply-btn-quick:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(244, 162, 97, 0.3);
}

.code-apply-btn-quick:disabled {
    background: #f5f5f5;
    border: 1px dashed #d0d0d0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.code-apply-btn-quick.applied {
    background: linear-gradient(135deg, #27ae60, #229954);
    border: none;
    color: white;
    cursor: default;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* View all codes button */
.btn-view-codes {
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: #f4a261;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-view-codes:hover {
    color: #e67e22;
    transform: translateY(-1px);
}

/* Discount result */
.discount-result-quick {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

.discount-result-quick .discount-success {
    color: #1b5e20;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.8), rgba(200, 230, 201, 0.6));
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid rgba(102, 187, 106, 0.4);
}

.discount-result-quick .discount-error {
    color: #c62828;
    background: linear-gradient(135deg, rgba(255, 235, 238, 0.8), rgba(255, 205, 210, 0.6));
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 2px solid rgba(239, 83, 80, 0.4);
}

.discount-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border: 2px solid #e74c3c;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.discount-applied.hidden {
    display: none;
}

.discount-applied-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e74c3c;
}

.discount-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #e74c3c;
    transition: all 0.2s ease;
}

.discount-remove-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .address-selector-grid {
        grid-template-columns: 1fr;
    }
    
    .address-selector-item:nth-child(4) {
        grid-column: 1;
    }
    
    .discount-modal-content {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }
    
    .discount-item {
        flex-direction: column;
        text-align: center;
    }
    
    .discount-apply-btn {
        width: 100%;
    }
    
    .discount-input-wrapper {
        border-radius: 10px;
        gap: 4px !important;
        padding: 0;
    }
    
    .discount-input-wrapper .checkout-form-input {
        font-size: 0.875rem;
        padding: 0.875rem 1rem !important;
        padding-right: 100px !important;
        border-radius: 24px !important;
    }
    
    .discount-action-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
        border-radius: 18px !important;
        margin: 0;
        gap: 0.375rem;
        min-width: 85px;
    }
    
    .available-codes-quick {
        margin-top: 0.875rem;
        padding-top: 0.875rem;
    }
    
    .codes-title-quick {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .code-list-quick {
        gap: 0.5rem;
    }
    
    .code-item-quick {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .code-item-quick:hover {
        transform: translateX(2px);
    }
    
    .code-name-quick {
        font-size: 0.9rem;
    }
    
    .code-desc-quick {
        font-size: 0.85rem;
    }
    
    .code-apply-btn-quick {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        box-shadow: 0 2px 6px rgba(244, 162, 97, 0.25);
    }
    
    .code-apply-btn-quick:hover:not(:disabled) {
        box-shadow: 0 3px 10px rgba(244, 162, 97, 0.35);
    }
    
    .btn-view-codes {
        font-size: 0.9rem;
    }
    .discount-result-quick {
        font-size: 0.8rem;
    }
}

/* ============================================ */
/* SKELETON LOADING STYLES */
/* ============================================ */

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

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

.skeleton-loading {
    pointer-events: none;
    user-select: none;
}

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

/* Skeleton Product Card */
.skeleton-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-product-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-product-info {
    padding: 1.25rem;
}

.skeleton-product-title {
    height: 20px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

/* Dòng placeholder (rating / meta) — khớp layout thẻ SP thật */
.skeleton-product-meta {
    height: 14px;
    width: 48%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-product-price {
    height: 24px;
    width: 60%;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-product-button {
    height: 42px;
    border-radius: 8px;
}

/* Skeleton Flash Sale Card */
.skeleton-flash-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 0;
}

.skeleton-flash-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-flash-info {
    padding: 1rem;
}

.skeleton-flash-title {
    height: 18px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-flash-price {
    height: 22px;
    width: 50%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-flash-bar {
    height: 6px;
    margin-bottom: 0.75rem;
    border-radius: 10px;
}

.skeleton-flash-button {
    height: 40px;
    border-radius: 10px;
}

/* Skeleton Category Card */
.skeleton-category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-category-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-category-info {
    padding: 1rem;
    text-align: center;
}

.skeleton-category-name {
    height: 16px;
    margin: 0 auto 0.5rem;
    width: 80%;
    border-radius: 4px;
}

.skeleton-category-count {
    height: 14px;
    margin: 0 auto;
    width: 50%;
    border-radius: 4px;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Mobile Skeleton Adjustments */
@media (max-width: 768px) {
    .skeleton-flash-card {
        flex: 0 0 calc(50% - 0.375rem);
    }
    
    .skeleton-flash-info {
        padding: 0.75rem;
    }
    
    .skeleton-flash-title {
        height: 16px;
    }
    
    .skeleton-flash-price {
        height: 18px;
    }
    
    .skeleton-flash-bar {
        height: 5px;
    }
    
    .skeleton-flash-button {
        height: 36px;
    }
}

/* Baby Name Input - Smooth appearance animation */
#babyNameGroup {
    animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Baby name input highlight */
#checkoutBabyName {
    border-color: #ffa726;
}

#checkoutBabyName:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

#checkoutBabyName::placeholder {
    color: #bbb;
    font-style: italic;
}


/* ============================================
   BABY WEIGHT SELECTION MODAL
   ============================================ */

/* Baby Weight Selection Modal */
.baby-weight-modal {
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.baby-weight-header {
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex-shrink: 0;
}

.baby-weight-header i {
    font-size: 1.5rem;
}

.baby-weight-header h3 {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.baby-weight-header .modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.baby-weight-header .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.baby-weight-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
}

.baby-weight-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8edeb, rgba(233, 196, 106, 0.1));
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(244, 162, 97, 0.2);
}

.baby-weight-product-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(244, 162, 97, 0.3);
}

.baby-weight-product-info {
    flex: 1;
}

.baby-weight-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

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

.baby-weight-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px solid #ff9800;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: #e65100;
    font-size: 0.9rem;
    font-weight: 600;
}

.baby-weight-warning i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.baby-weight-quick {
    margin-bottom: 1.25rem;
}

.quick-title,
.custom-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.quick-title i,
.custom-title i {
    color: #f4a261;
}

.baby-weight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.weight-btn {
    padding: 0.875rem;
    background: white;
    border: 2px solid rgba(244, 162, 97, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Quicksand', sans-serif;
}

.weight-btn:hover {
    border-color: #f4a261;
    background: #f8edeb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.2);
}

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

/* Nút "Chưa sinh" với icon trái tim */
.weight-btn-icon {
    background: linear-gradient(135deg, #ffeef0, #ffe0e5);
    border-color: rgba(255, 105, 135, 0.3);
}

.weight-btn-icon:hover {
    background: linear-gradient(135deg, #ffe0e5, #ffd0d8);
    border-color: #ff6987;
}

.weight-btn-icon.selected {
    background: linear-gradient(135deg, #ff6987, #ff4d7a);
    border-color: transparent;
}

/* Nút "Nhập khác" */
.weight-btn-custom {
    background: linear-gradient(135deg, #f0f4f8, #e8eef5);
    border: 2px dashed rgba(100, 150, 200, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #4a6fa5;
}

/* ============================================
   Baby Weight - Surcharge Confirm Modal
   (đẹp, gọn cho mẹ bỉm)
   ============================================ */
.baby-surcharge-confirm-modal {
    border-radius: 18px;
    overflow: hidden;
}

.baby-surcharge-confirm-header {
    padding: 1.1rem 1.15rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, rgba(255,247,237,0.95), rgba(254,240,255,0.55));
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.baby-surcharge-confirm-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.baby-surcharge-confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 156, 18, 0.12);
    color: #f59e0b;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.baby-surcharge-confirm-title {
    font-weight: 900;
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.2;
}

.baby-surcharge-confirm-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.baby-surcharge-confirm-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: rgba(0,0,0,0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #111827;
}

.baby-surcharge-confirm-close-btn:hover {
    background: rgba(0,0,0,0.09);
}

.baby-surcharge-confirm-body {
    padding: 1rem 1.15rem 1.1rem;
}

.baby-surcharge-confirm-price-card {
    background: linear-gradient(135deg, rgba(255,247,237,1), rgba(255,255,255,1));
    border: 1px solid rgba(243, 156, 18, 0.18);
    border-radius: 14px;
    padding: 0.95rem;
    margin-bottom: 0.9rem;
}

.baby-surcharge-confirm-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.baby-surcharge-confirm-row:last-child {
    margin-bottom: 0;
}

.baby-surcharge-confirm-row-warning {
    color: #f59e0b;
}

.baby-surcharge-confirm-row-total {
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(0,0,0,0.15);
    margin-top: 0.55rem;
}

.baby-surcharge-confirm-label {
    color: #6b7280;
    font-size: 0.95rem;
}

.baby-surcharge-confirm-value {
    color: #111827;
    font-weight: 900;
}

.baby-surcharge-confirm-fee {
    color: #dc2626;
}

.baby-surcharge-confirm-total {
    color: #dc2626;
    font-size: 1.15rem;
}

.baby-surcharge-confirm-question {
    color: #6b7280;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.baby-surcharge-confirm-note {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.6;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
}

.baby-surcharge-confirm-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
}

.baby-surcharge-confirm-btn {
    padding: 0.7rem 1.05rem;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.baby-surcharge-confirm-btn:active {
    transform: translateY(1px);
}

.baby-surcharge-confirm-btn-secondary {
    background: #fff;
    color: #374151;
    border-color: rgba(0,0,0,0.08);
}

.baby-surcharge-confirm-btn-secondary:hover {
    background: rgba(0,0,0,0.03);
}

.baby-surcharge-confirm-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    border: none;
    color: #fff;
    box-shadow: 0 10px 25px rgba(251, 113, 133, 0.2);
}

.baby-surcharge-confirm-btn-primary:hover {
    box-shadow: 0 12px 30px rgba(251, 113, 133, 0.25);
}

.weight-btn-custom:hover {
    background: linear-gradient(135deg, #e8eef5, #dce6f0);
    border-color: #4a6fa5;
    transform: translateY(-2px);
}

.weight-btn-custom svg {
    flex-shrink: 0;
}

.baby-weight-custom {
    padding: 1rem;
    background: #f8edeb;
    border-radius: 12px;
    border: 2px dashed rgba(244, 162, 97, 0.3);
}

.custom-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-weight-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(244, 162, 97, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.2s ease;
}

.custom-weight-input:focus {
    outline: none;
    border-color: #f4a261;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.custom-weight-unit {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Price Surcharge Info */
.baby-weight-surcharge {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    border: 2px solid #ffb74d;
    display: flex;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

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

.surcharge-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.surcharge-content {
    flex: 1;
}

.surcharge-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 0.5rem;
}

.surcharge-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.surcharge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #5d4037;
}

.surcharge-row span:first-child {
    font-weight: 600;
}

.surcharge-row span:last-child {
    font-weight: 700;
}

.surcharge-fee {
    color: #f57c00;
}

.surcharge-fee span:last-child {
    color: #e65100;
}

.surcharge-total {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 2px dashed rgba(230, 81, 0, 0.3);
    font-size: 1rem;
    color: #bf360c;
}

.surcharge-total span:last-child {
    font-size: 1.1rem;
    color: #bf360c;
}

.baby-weight-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 2px dashed #ffd6e0;
    flex-shrink: 0;
    background: white;
}

.btn-cancel-weight {
    flex: 1;
    padding: 0.875rem;
    background: #f8edeb;
    border: 2px solid rgba(244, 162, 97, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-weight:hover {
    background: rgba(233, 196, 106, 0.2);
    transform: translateY(-2px);
}

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

.btn-confirm-weight:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 162, 97, 0.4);
}

.btn-confirm-weight:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .baby-weight-modal {
        max-width: 95%;
        max-height: 85vh;
        margin: 1rem;
    }
    
    .baby-weight-body {
        padding: 1rem;
        max-height: calc(85vh - 180px);
    }
    
    .baby-weight-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .weight-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .baby-weight-header {
        padding: 1rem;
    }
    
    .baby-weight-footer {
        padding: 1rem;
    }
}


/* ============================================
   MODAL OVERLAY (SHARED)
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-nested);
    padding: 1rem;
    animation: fadeIn 0.2s ease;
    /* Performance optimization */
    will-change: opacity;
}

/* Baby Weight Modal - Must be above image preview modal */
#babyWeightModal {
    z-index: var(--z-modal-nested);
}

.modal-overlay.hidden {
    display: none;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.modal-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}


/* ============================================ */
/* SUCCESS MODAL - REUSABLE COMPONENT */
/* ============================================ */

.success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.success-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-modal.show .success-modal-content {
    transform: scale(1) translateY(0);
}

.success-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.2s backwards;
}

.success-modal-icon-inline {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: successIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-modal-icon-inline i {
    font-size: 1.5rem;
    color: white;
}

.success-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.success-modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.4s backwards;
    text-align: left;
}

.success-message-main {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1rem;
}

.success-message-main strong {
    color: #27ae60;
}

.success-message-sub {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
    font-size: 0.875rem;
}

.success-message-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fff5f0, #ffe8d6);
    border-left: 3px solid #f4a261;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.success-message-note i {
    color: #e74c3c;
    font-size: 0.875rem;
}

.success-message-note em {
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.success-modal-order-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease 0.5s backwards;
}

.success-order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.success-order-detail:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.success-order-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.success-order-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.success-modal-actions {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.5s ease 0.6s backwards;
}

.success-modal-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.success-modal-btn-primary {
    flex: 0 0 auto;
    min-width: 100px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.success-modal-btn-primary:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.success-modal-btn-secondary {
    flex: 1;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.success-modal-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    color: #27ae60;
    transform: translateY(-2px);
}

@keyframes successIconPop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 2rem 1.5rem;
    }

   
    .success-modal-header {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .success-modal-icon-inline {
        width: 40px;
        height: 40px;
    }
    
    .success-modal-icon-inline i {
        font-size: 1.25rem;
    }
    
    .success-modal-title {
        font-size: 1.375rem;
    }
    
    .success-modal-message {
        font-size: 0.875rem;
    }
    
    .success-message-main {
        font-size: 0.875rem;
    }
    
    .success-message-sub {
        font-size: 0.875rem;
    }
    
    .success-message-note {
        font-size: 0.875rem;
        padding: 0.65rem 0.85rem;
    }
    
    .success-modal-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}


/* ============================================
   GIFT ICON ANIMATION (Same style as Flash Bolt)
   ============================================ */

/* Gift icon animation - same as flash bolt */
.gift-icon-animated {
    display: inline-block !important;
    width: 1.4rem !important;
    height: 1.4rem !important;
    color: white !important;
    animation: giftBolt 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

@keyframes giftBolt {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    }
    25% {
        opacity: 0.7;
        transform: scale(1.15) rotate(-5deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(255, 223, 0, 0.8));
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(5deg);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 16px rgba(255, 223, 0, 1));
    }
    75% {
        opacity: 0.7;
        transform: scale(1.15) rotate(-5deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(255, 223, 0, 0.8));
    }
}

/* Hover effect - faster animation */
.cross-sell-header-legend:hover .gift-icon-animated {
    animation: giftBolt 0.8s ease-in-out infinite;
}

