/* =========================================================================
   BIG 5 NGHUQA - 1:1 EXACT SIMPLYBLU DESIGN SYSTEM
   ========================================================================= */

:root {
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --primary-btn: #dc2626;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--white);
    color: var(--slate-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.sb-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================================
   1. HEADER / NAVBAR
   ========================================================================= */
.sb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sb-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--slate-200);
}

.sb-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.sb-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sb-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: color 0.2s ease;
    padding: 6px 0;
}

.sb-nav-link:hover,
.sb-nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.sb-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sb-cart-btn,
.sb-user-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sb-cart-btn:hover,
.sb-user-btn:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

.sb-icon {
    width: 24px;
    height: 24px;
}

.sb-cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--slate-900);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================================
   2. HERO FULL-WIDTH BANNER
   ========================================================================= */
.sb-hero-banner-wrap {
    width: 100%;
    overflow: hidden;
    background: #000;
}

.sb-hero-banner-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* =========================================================================
   3. MAKE EVERY DISH DELICIOUS CALLOUT
   ========================================================================= */
.sb-callout-section {
    text-align: center;
    padding: 40px 20px 30px;
    background: var(--white);
}

.sb-callout-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.sb-shop-now-btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 54px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.sb-shop-now-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* =========================================================================
   4. CATEGORIES ASYMMETRIC GRID (EXACT SIMPLYBLU)
   ========================================================================= */
.sb-categories-section {
    padding: 30px 0 50px;
}

.sb-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sb-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sb-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.sb-cat-card-large {
    height: 440px;
}

.sb-cat-right-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sb-cat-card-small {
    height: 208px;
}

.sb-cat-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sb-cat-card:hover .sb-cat-bg-img {
    transform: scale(1.04);
}

.sb-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.sb-cat-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--white);
    z-index: 2;
}

.sb-cat-pill {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sb-cat-card-large .sb-cat-pill {
    font-size: 2rem;
}

.sb-cat-sub {
    font-size: 0.95rem;
    color: #FCD34D;
    font-weight: 600;
}

.sb-cat-action {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-top: 4px;
}

/* =========================================================================
   5. PRODUCT SECTIONS & CARDS
   ========================================================================= */
.sb-section {
    padding: 40px 0 60px;
}

.sb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sb-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-900);
}

.sb-more-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-600);
    transition: color 0.2s ease;
}

.sb-more-link:hover {
    color: var(--primary);
}

.sb-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sb-tab-btn {
    background: var(--slate-100);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sb-tab-btn:hover,
.sb-tab-btn.active {
    background: var(--slate-900);
    color: var(--white);
}

.sb-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: var(--slate-300);
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-400);
    z-index: 5;
    transition: color 0.2s ease, transform 0.2s ease;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: var(--primary);
    transform: scale(1.1);
}

.heart-icon {
    width: 16px;
    height: 16px;
}

.wishlist-btn.active .heart-icon {
    fill: var(--primary);
}

.product-image-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.product-card-img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-card-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.3;
    margin-bottom: 8px;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
}

.product-card-weight {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.btn-add-to-cart {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-add-to-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* =========================================================================
   6. ABOUT SECTION (EXACT SIMPLYBLU LAYOUT)
   ========================================================================= */
.sb-about-section {
    padding: 70px 0;
    background: var(--slate-50);
}

.sb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.sb-about-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 24px;
}

.sb-about-para {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slate-600);
}

.sb-about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================================================
   7. CONTACT US SECTION
   ========================================================================= */
.sb-contact-section {
    padding: 70px 0;
    background: var(--white);
}

.sb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.sb-contact-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.sb-contact-lead {
    color: var(--slate-600);
    margin-bottom: 28px;
}

.sb-contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sb-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sb-contact-icon {
    font-size: 1.4rem;
}

.sb-contact-form {
    background: var(--slate-50);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
}

.sb-form-group {
    margin-bottom: 18px;
}

.sb-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.sb-form-group input,
.sb-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    font-family: inherit;
    font-size: 0.95rem;
}

.sb-submit-btn {
    background: var(--slate-900);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sb-submit-btn:hover {
    background: var(--primary);
}

/* =========================================================================
   8. FOOTER
   ========================================================================= */
.sb-footer {
    background: var(--slate-900);
    color: var(--white);
    padding: 40px 0;
}

.sb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.sb-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sb-footer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.sb-footer-copy {
    color: var(--slate-400);
    font-size: 0.85rem;
    margin-left: 12px;
}

.sb-footer-links {
    display: flex;
    gap: 24px;
}

.sb-footer-links a {
    color: var(--slate-300);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.sb-footer-links a:hover {
    color: var(--white);
}

/* =========================================================================
   9. CART DRAWER & MODAL STYLES (STANDALONE ENGINE)
   ========================================================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--slate-400);
}

.free-shipping-banner {
    padding: 14px 20px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
}

.progress-bar-wrap {
    height: 6px;
    background: var(--slate-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.progress-bar-fill.qualified {
    background: #10B981;
}

.progress-text {
    font-size: 0.82rem;
    color: var(--slate-600);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item-row {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
    align-items: center;
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin: 2px 0 6px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
}

.qty-btn {
    background: none;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    font-weight: 700;
}

.qty-val {
    padding: 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
}

.cart-item-subtotal {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.total-line {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 12px 0 16px;
    padding-top: 10px;
    border-top: 1px solid var(--slate-200);
}

.btn-checkout-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
}

.btn-continue-shopping {
    width: 100%;
    background: none;
    border: 1px solid var(--slate-200);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--slate-600);
}

/* =========================================================================
   10. CHECKOUT MODAL
   ========================================================================= */
.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.active {
    display: flex;
}

.checkout-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.checkout-modal .modal-dialog {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-options {
    margin: 14px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-opt {
    display: flex;
    gap: 10px;
    border: 1px solid var(--slate-200);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.opt-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.opt-desc {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.btn-submit-order {
    width: 100%;
    background: #16A34A;
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkout-summary-col {
    background: var(--slate-50);
    padding: 20px;
    border-radius: 12px;
}

.checkout-items-list {
    margin: 12px 0;
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 12px;
}

.checkout-item-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.checkout-totals .line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.checkout-totals .line.total {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--slate-200);
}

.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--slate-900);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cart-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1024px) {
    .sb-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sb-about-grid,
    .sb-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sb-nav {
        display: none;
    }
    .sb-categories-grid {
        grid-template-columns: 1fr;
    }
    .sb-cat-card-large {
        height: 280px;
    }
    .sb-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
