/* Design System & Premium CSS variables for Mua Day! v2 */
/* Brand Color System — đồng bộ với Android app */
:root {
    /* Primary — Xanh lá: Thành công & Xác nhận */
    --primary-color: #15803D;
    --primary-dark: #166534;
    --primary-light: #DCFCE7;
    --primary-border: #BBF7D0;

    /* Accent — Cam: Hành động thúc đẩy doanh thu */
    --accent-color: #F97316;
    --accent-light: #FFF7ED;
    --accent-border: #FED7AA;

    /* Mint — Breathing space: Nền hỗ trợ thân thiện */
    --mint: #F0FDF4;
    --mint-border: #D1FAE5;
    --mint-text: #166534;

    /* Background & Surface */
    --bg-app: #F8FAFC;
    --surface: #FFFFFF;

    /* Text — Đúng thang xám, không dùng đen tuyền */
    --text-main: #1E293B;
    --text-sub: #64748B;
    --text-muted: #94A3B8;

    /* Border */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-green: 0 10px 25px rgba(21, 128, 61, 0.25);
}

body.sv2-body {
    background-color: var(--bg-app);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Lucide SVG Icons global rules */
svg.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 2.2px;
    vertical-align: middle;
}

/* Mobile-first container — max 500px centered, shadow on desktop */
.sv2-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--surface);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-xl);
    padding-bottom: 96px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Desktop: show side padding/margin so card floats on bg */
@media (min-width: 768px) {
    body.sv2-body {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 32px 16px 120px;
        min-height: 100vh;
    }

    .sv2-container {
        max-width: 800px;
        border-radius: 20px;
        min-height: calc(100vh - 64px);
    }

    .sv2-drawer {
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
        width: 800px;
        max-width: 800px;
    }

    .sv2-drawer.active {
        transform: translate(-50%, 0);
    }
}

/* Header styling */
.sv2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.sv2-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.sv2-header-logo img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.sv2-header-cart {
    position: relative;
    background-color: #f0fdf4;
    /* Nền Mint siêu nhẹ */
    border: 1px solid rgba(16, 185, 129, 0.12);
    /* Viền mint cực mỏng */
    padding: 0;
    color: var(--primary-color);
    /* Icon xanh lá thương hiệu */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    font-size: 1.25rem;
}

.sv2-header-cart:hover {
    color: var(--primary-dark);
    background-color: #dcfce7;
    /* Mint đậm hơn khi hover */
    transform: scale(1.05);
    /* Phóng to nhẹ */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

.sv2-header-cart:active {
    transform: scale(0.95);
}

.sv2-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    /* Cam — Badge thông báo */
    background-color: var(--accent-color);
    color: white;
    font-size: 9px;
    font-weight: 800;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    border: 2px solid white;
    /* Viền trắng tinh tế */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sv2-cart-badge.active {
    transform: scale(1);
}

/* Banner gradient */
.sv2-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 24px 24px 36px 24px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.sv2-banner-avatar {
    width: 64px;
    height: 64px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    overflow: hidden;
}

.sv2-banner-avatar img {
    width: 100%;
    height: 100%;
    object-cover: cover;
}

.sv2-banner-name {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sv2-banner-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 4px;
}

.sv2-banner-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    opacity: 0.9;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search floating wrapper */
.sv2-search-wrapper {
    padding: 0 16px;
    margin-top: -20px;
    position: relative;
    z-index: 20;
    box-sizing: border-box;
}

.sv2-search-box {
    background-color: white;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sv2-search-icon {
    color: #9ca3af;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.sv2-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-dark);
    padding: 6px 0;
}

.sv2-search-input:focus {
    outline: none;
}

/* Categories Scroll */
.sv2-categories-container {
    margin-top: 16px;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
}

.sv2-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    width: 100%;
}

/* Hide scrollbar trick */
.sv2-categories-scroll::-webkit-scrollbar {
    display: none;
}

.sv2-categories-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation buttons styling */
.sv2-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ecfdf5;
    /* Mint green background */
    border: 1.5px solid #a7f3d0;
    /* Crisp mint border */
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.12);
    /* Subtle green shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #047857;
    /* Rich dark green for clarity */
    font-size: 1.125rem;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
}

.sv2-nav-btn:hover,
.sv2-nav-btn:active {
    background-color: var(--primary-color);
    /* Primary green on hover/touch */
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.sv2-nav-btn.prev {
    left: 8px;
}

.sv2-nav-btn.next {
    right: 8px;
}

.sv2-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

.sv2-cat-btn {
    white-space: nowrap;
    padding: 6px 16px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.sv2-cat-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: rgba(16, 185, 129, 0.2);
}

.sv2-cat-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.25);
}

.sv2-instruction-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Product list area */
.sv2-products-list {
    padding: 0 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sv2-products-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 20px;
    }
}

.sv2-product-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.sv2-product-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    /* Nền xám nhẹ, không phải trắng tuyền */
    background-color: var(--bg-app);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.sv2-product-img.placeholder {
    object-fit: contain;
    padding: 14px;
    /* Mint — Nền thở cho empty state ảnh */
    background-color: var(--mint);
    border-color: var(--mint-border);
    opacity: 1;
}

.sv2-product-info {
    margin-left: 12px;
    flex: 1;
    min-width: 0;
}

.sv2-product-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    /* Dùng xám đậm thay đen tuyền */
    color: var(--text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.sv2-product-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 3px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sv2-product-prices {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.sv2-product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    margin: 4px 0 0 0;
}

.sv2-product-old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.75rem;
    margin: 0;
}

.sv2-product-discount {
    /* Cam — giảm giá là hành động thúc đẩy doanh thu */
    color: var(--accent-color);
    font-size: 0.7rem;
    font-weight: 600;
}

.sv2-product-add-btn {
    margin-left: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Màu mint nhạt y hệt nút điều hướng, tinh tế hơn */
    background-color: #ecfdf5;
    color: var(--primary-color);
    border: 1.5px solid #a7f3d0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sv2-product-add-btn i {
    font-size: 1.25rem;
    font-weight: 700;
}

.sv2-product-add-btn:hover {
    /* Hover → filled Primary = xác nhận hành động */
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.2);
}

.sv2-product-add-btn:active {
    transform: scale(0.9);
}

/* Pagination area */
.sv2-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
    border-top: 1px solid #f3f4f6;
    margin-top: 16px;
    box-sizing: border-box;
}

.sv2-page-list {
    display: flex;
    gap: 4px;
}

.sv2-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sv2-page-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.sv2-page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.sv2-page-btn.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

.sv2-pagination-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact Store info */
.sv2-contact-section {
    padding: 0 16px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.sv2-contact-card {
    /* Mint — Card hỗ trợ / thân thiện đúng vai trò */
    background-color: var(--mint);
    border: 1px solid var(--mint-border);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.sv2-contact-title {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    font-weight: 600;
    /* Dùng mint-text thay xám chung chung */
    color: var(--mint-text);
}

.sv2-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sv2-contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.sv2-contact-btn.phone {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.sv2-contact-btn.phone:hover {
    background-color: var(--primary-light);
}

.sv2-contact-btn.zalo {
    background-color: #0068FF;
    color: white;
    border: 1px solid #0068FF;
    box-shadow: var(--shadow-sm);
}

.sv2-contact-btn.zalo:hover {
    background-color: #0056d6;
}

/* 🚀 Footer & Strategic SEO links */
.sv2-footer {
    background-color: var(--bg-app);
    border-top: 1px solid var(--border-color);
    padding: 20px 16px;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto;
}

.sv2-footer-text {
    font-size: 13px;
    color: #555555;
    margin: 0;
    line-height: 1.5;
}

.sv2-footer-text a {
    color: #0056b3;
    font-weight: bold;
    text-decoration: none;
    transition: underline 0.2s;
}

.sv2-footer-text a:hover {
    text-decoration: underline;
}

.sv2-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 11px;
}

.sv2-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.sv2-footer-links a:hover {
    color: var(--text-dark);
}

.sv2-footer-separator {
    color: #e5e7eb;
}

/* Sticky Bottom Cart (Slide-up panel trigger) */
.sv2-sticky-cart-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

.sv2-sticky-cart-container {
    max-width: 448px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .sv2-sticky-cart-wrapper {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 800px;
    }

    .sv2-sticky-cart-container {
        max-width: 100%;
        padding: 16px 24px;
    }
}

.sv2-sticky-cart {
    background-color: var(--primary-color);
    border-radius: 16px;
    box-shadow: var(--shadow-green);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    transform: translateY(120px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv2-sticky-cart.active {
    transform: translateY(0);
}

.sv2-sticky-cart-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv2-sticky-cart-icon-box {
    position: relative;
    display: flex;
    align-items: center;
}

.sv2-sticky-cart-icon-box svg,
.sv2-sticky-cart-icon-box i {
    width: 28px;
    height: 28px;
    font-size: 1.75rem;
}

.sv2-sticky-cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    /* Cam — Badge thông báo đúng vai trò Accent */
    background-color: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.sv2-sticky-cart-summary-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.2;
}

.sv2-sticky-cart-total {
    font-size: 1.125rem;
    font-weight: 800;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.sv2-sticky-cart-btn {
    /* Trắng tinh trên nền xanh lá — nổi bật & sang trọng */
    background-color: white;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    /* Shadow trắng nhẹ để nổi bật trên nền primary */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.sv2-sticky-cart-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.sv2-sticky-cart-btn:active {
    transform: scale(0.95);
}

/* Micro-animations */
@keyframes sv2-bump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

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

.sv2-animate-bump {
    animation: sv2-bump 0.3s ease-out;
}

/* Slide-up Cart Panel (Overlay & Drawer) */
.sv2-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

.sv2-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1001;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 448px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sv2-drawer {
        max-width: 800px;
    }
}

.sv2-drawer.active {
    transform: translateY(0);
}

.sv2-drawer-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sv2-drawer-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sv2-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.sv2-drawer-content {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

/* Drawer Cart items List */
.sv2-drawer-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sv2-drawer-empty i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.sv2-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.sv2-cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-dark);
}

.sv2-cart-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.sv2-cart-item-oldprice {
    text-decoration: line-through;
    color: #9ca3af;
    margin-left: 4px;
}

.sv2-cart-item-price-sum {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 16px;
    white-space: nowrap;
}

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

.sv2-qtty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.sv2-qtty-btn:hover {
    background-color: #e5e7eb;
}

.sv2-qtty-btn.plus {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.sv2-qtty-btn.plus:hover {
    background-color: var(--primary-color);
    color: white;
}

.sv2-item-qtty {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.sv2-cart-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 2px dashed #e5e7eb;
}

.sv2-cart-total-price {
    color: var(--primary-color);
}

/* Customer details form */
.sv2-customer-form {
    margin-top: 16px;
}

.sv2-customer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px 0;
}

.sv2-form-group {
    margin-bottom: 12px;
}

.sv2-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.sv2-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    padding: 0 12px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.sv2-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
    background-color: white;
}

.sv2-input-group svg,
.sv2-input-group i {
    color: #9ca3af;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv2-form-control {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    font-size: 0.9rem;
    color: var(--text-main);
    box-shadow: none !important;
}

.sv2-form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.sv2-form-control-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.sv2-form-control-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
    background-color: white;
}

.sv2-form-error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.sv2-form-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    margin-top: 16px;
    transition: all 0.2s;
}

.sv2-form-submit-btn:hover {
    background-color: var(--primary-hover);
}

.sv2-form-submit-btn:active {
    transform: scale(0.98);
}

.sv2-form-submit-btn.disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.sv2-form-submit-btn.disabled:active {
    transform: none;
}

.sv2-form-processing {
    text-align: center;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
}

.sv2-form-terms {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.sv2-form-terms a {
    color: var(--text-dark);
    text-decoration: none;
}

.sv2-form-terms a:hover {
    text-decoration: underline;
}

/* Spinner */
.sv2-spinner {
    border: 3px solid rgba(21, 128, 61, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 24px;
    height: 24px;
    animation: sv2-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes sv2-spin {
    0% {
        transform: rotate(0deg);
    }

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

.sv2-no-result {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- EMPTY & ERROR STATES --- */
.sv2-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    flex-grow: 1;
    box-sizing: border-box;
}

.sv2-error-card {
    background-color: #f0fdf4;
    /* Nền Mint siêu nhẹ */
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 40px 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sv2-error-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(239, 68, 68, 0.1);
    /* Nền đỏ nhạt cho cảnh báo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ef4444;
}

.sv2-error-icon-wrapper.warning {
    background-color: rgba(249, 115, 22, 0.1);
    /* Nền cam nhạt cho cảnh báo nhẹ */
    color: #f97316;
}

.sv2-error-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.sv2-error-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.sv2-error-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 28px 0;
    line-height: 1.6;
    max-width: 280px;
}

.sv2-error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.sv2-error-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    background-color: #059669;
}

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

.sv2-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    flex-grow: 1;
}

.sv2-empty-icon-wrapper {
    width: 96px;
    height: 96px;
    background-color: #f0fdf4;
    /* Nền Mint dịu nhẹ */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.08);
}

.sv2-empty-icon-wrapper svg {
    width: 44px;
    height: 44px;
}

.sv2-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.sv2-empty-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}