﻿/* ==========================================================================
   NÔNG SẢN VIỆT - MODERN NEST E-COMMERCE THEME (BOOTSTRAP RESPONSIVE)
   Inspired by AliThemes Nest (index-2) with High-Contrast Prominent Product Cards
   ========================================================================== */

:root {
    --nest-primary: #3BB77E;
    --nest-primary-dark: #29A56C;
    --nest-primary-deeper: #1E8555;
    --nest-primary-light: #DEF9EC;
    --nest-primary-border: #68CEA0;
    --nest-heading: #253D4E;
    --nest-text: #4A5568;
    --nest-muted: #7E7E7E;
    --nest-accent: #FDC040;
    --nest-price: #D9263C;
    --nest-price-bg: #FFF5F5;
    --nest-bg-soft: #F4F8F5;
    --nest-white: #FFFFFF;
    --nest-border-subtle: #E2E8F0;
    --nest-shadow-sm: 0 4px 12px rgba(37, 61, 78, 0.06);
    --nest-shadow-card: 0 6px 18px rgba(37, 61, 78, 0.11);
    --nest-shadow-hover: 0 14px 30px rgba(59, 183, 126, 0.26);
}

/* Base Reset & Typography */
html {
    overflow-y: auto !important;
    height: auto !important;
}

body {
    font-family: 'Be Vietnam Pro', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    background-color: var(--nest-bg-soft) !important;
    color: var(--nest-text) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    overflow-y: visible !important;
    height: auto !important;
    padding-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    color: var(--nest-heading) !important;
    font-weight: 700 !important;
}

a {
    color: var(--nest-heading);
    transition: all 0.25s ease;
}

a:hover, a:focus {
    color: var(--nest-primary);
    text-decoration: none !important;
}

/* ==========================================================================
   1. TOP UTILITY BAR (COMPACT NEST STYLE)
   ========================================================================== */
.nsv-topbar {
    background: linear-gradient(90deg, #1E8555 0%, #29A56C 50%, #3BB77E 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nsv-topbar a {
    color: #ffffff;
    font-weight: 700;
}

.nsv-topbar a:hover {
    color: var(--nest-accent);
}

.nsv-topbar-left i,
.nsv-topbar-right i {
    color: var(--nest-accent);
    margin-right: 4px;
}

.nsv-topbar-right span + span {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   2. MAIN STICKY HEADER & NAVIGATION (HEIGHT 80PX, SINGLE ROW)
   ========================================================================== */
header.nsv-header-wrap,
.nsv-header-wrap {
    background: #ffffff;
    box-shadow: 0 3px 14px rgba(37, 61, 78, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 2px solid var(--nest-primary-light);
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.nsv-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 !important;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Brand Logo */
.nsv-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.nsv-brand img {
    height: 54px !important;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1.5px solid var(--nest-primary-light);
    padding: 2px 4px;
    background: #fff;
}

.nsv-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nsv-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--nest-primary-deeper);
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.nsv-brand-sub {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--nest-muted);
    margin-top: 2px;
}

/* Main Navigation Links */
@media (min-width: 992px) {
    .nsv-nav-collapse.collapse {
        display: flex !important;
        align-items: center;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
        width: auto;
    }
}

.nsv-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nsv-nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nest-heading) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nsv-nav-menu > li > a i {
    color: var(--nest-primary);
    font-size: 14px;
}

.nsv-nav-menu > li > a:hover,
.nsv-nav-menu > li.active > a {
    background-color: var(--nest-primary-light);
    color: var(--nest-primary-deeper) !important;
}

/* Header Right Actions (Single Cart Button) */
.nsv-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Prominent Header Cart CTA - Compact */
.nsv-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #3BB77E 0%, #1E8555 100%);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    box-shadow: 0 4px 10px rgba(59, 183, 126, 0.28);
    border: 1.5px solid #29A56C;
    position: relative;
    transition: all 0.25s ease;
}

.nsv-cart-btn:hover,
.nsv-cart-btn:focus {
    background: linear-gradient(135deg, #29A56C 0%, #146c43 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 183, 126, 0.4);
}

.nsv-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nsv-cart-badge {
    background: #FF3B30;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

/* Mobile Menu Toggle Button */
.nsv-mobile-toggle {
    display: none;
    background: var(--nest-primary-light);
    color: var(--nest-primary-deeper);
    border: 1.5px solid var(--nest-primary);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nsv-mobile-toggle:hover,
.nsv-mobile-toggle:focus {
    background: var(--nest-primary);
    color: #ffffff;
    outline: none;
}

/* ==========================================================================
   3. HERO SLIDER & TRUST FEATURES STRIP
   ========================================================================== */
.nsv-hero-section {
    padding: 18px 0 10px;
}

.nsv-hero-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 61, 78, 0.12);
    border: 2px solid #ffffff;
    background: #ffffff;
    position: relative;
}

.nsv-hero-card .carousel-inner > .item > img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.nsv-hero-card .carousel-control {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--nest-heading) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    text-shadow: none;
    transition: all 0.25s ease;
}

.nsv-hero-card .carousel-control.left {
    left: 16px;
}

.nsv-hero-card .carousel-control.right {
    right: 16px;
}

.nsv-hero-card .carousel-control:hover {
    background: var(--nest-primary) !important;
    color: #ffffff !important;
    opacity: 1;
}

/* Service Highlights (4 Boxes Nest Style) */
.nsv-features-strip {
    padding: 16px 0 10px;
}

.nsv-feature-box {
    background: #ffffff;
    border: 1.5px solid #D5EFE2;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    box-shadow: var(--nest-shadow-sm);
    transition: all 0.25s ease;
}

.nsv-feature-box:hover {
    transform: translateY(-3px);
    border-color: var(--nest-primary);
    box-shadow: 0 8px 20px rgba(59, 183, 126, 0.15);
}

.nsv-feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--nest-primary-light);
    color: var(--nest-primary-deeper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.nsv-feature-content h5 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    margin: 0 0 3px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.nsv-feature-content p {
    font-size: 12.5px;
    color: var(--nest-muted);
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   4. SECTION HEADINGS & PROMO BANNER
   ========================================================================== */
.nsv-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E2EFE8;
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
}

.nsv-section-header::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 110px;
    height: 4px;
    background: var(--nest-primary);
    border-radius: 4px;
}

.nsv-section-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nsv-section-title i {
    color: var(--nest-primary);
}

.nsv-section-subtitle {
    font-size: 14px;
    color: var(--nest-muted);
    font-weight: 600;
    margin: 4px 0 0 0;
}

.nsv-dacsan-banner {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 2px solid var(--nest-primary-border);
    box-shadow: var(--nest-shadow-sm);
    background: #fff;
}

.nsv-dacsan-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   5. HIGH-CONTRAST, PROMINENT PRODUCT BOXES (NEST + BOLD ENHANCEMENT)
   ========================================================================== */
#products {
    padding: 10px 0 50px !important;
    margin-top: 0 !important;
}

.nsv-product-col {
    margin-bottom: 24px;
}

/* Product Box - Crisp border, elevated shadow, unmistakable visibility */
.sc-product-item.nsv-product-card {
    background: #ffffff;
    border: 2px solid #3BB77E !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 7px 20px rgba(37, 61, 78, 0.12) !important;
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.sc-product-item.nsv-product-card:hover {
    border-color: #167A4B !important;
    box-shadow: 0 14px 32px rgba(22, 122, 75, 0.28) !important;
    transform: translateY(-6px);
}

/* Top Ribbon Badge on Product Box */
.nsv-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: linear-gradient(135deg, #FF6B00 0%, #E53935 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
}

/* Product Image Wrapper */
.nsv-product-img-wrap {
    position: relative;
    width: 100%;
    height: 225px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1.5px solid #DDF3E8;
    padding: 8px;
}

.nsv-product-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 210px !important;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.sc-product-item.nsv-product-card:hover .nsv-product-img-wrap img {
    transform: scale(1.06);
}

/* Product Body Content */
.nsv-product-body {
    padding: 14px 14px 10px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nsv-product-cat {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--nest-primary-deeper);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nsv-product-title-link {
    display: block;
    text-decoration: none !important;
}

.nsv-product-card h6[data-name="product_name"] {
    font-size: 15.5px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    text-align: left !important;
    line-height: 1.38 !important;
    height: 43px !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none !important;
}

.nsv-product-card h6[data-name="product_name"]:hover {
    color: var(--nest-primary-deeper) !important;
}

/* Star Rating & Origin Tag */
.nsv-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.nsv-stars {
    color: #FDC040;
    font-size: 12px;
    letter-spacing: 1px;
}

.nsv-stock-tag {
    background: var(--nest-primary-light);
    color: var(--nest-primary-deeper);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
}

/* Prominent Price Box */
.nsv-price-box {
    background: var(--nest-price-bg);
    border: 1px dashed #F8B4B4;
    border-radius: 10px;
    padding: 7px 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nsv-price-box .price {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--nest-price) !important;
    margin: 0 !important;
    line-height: 1.2;
}

/* Prominent Add-to-Cart Button inside Product Box */
.nsv-product-footer {
    padding: 0 14px 14px;
    background: #ffffff;
    border-top: none !important;
}

.nsv-btn-buy {
    width: 100% !important;
    display: block !important;
    background: linear-gradient(135deg, #3BB77E 0%, #1E8555 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 14px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.35);
    transition: all 0.25s ease !important;
}

.nsv-btn-buy:hover,
.nsv-btn-buy:focus,
.nsv-btn-buy:active {
    background: linear-gradient(135deg, #FF6B00 0%, #E53935 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4) !important;
    transform: translateY(-1px);
    outline: none;
}

/* ==========================================================================
   6. ADD-TO-CART TOAST / MODAL POPUP
   ========================================================================== */
.nsv-toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 61, 78, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

.nsv-toast-modal {
    background: #ffffff;
    border: 3px solid var(--nest-primary);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 26px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: nsvPopIn 0.25s ease-out;
}

@keyframes nsvPopIn {
    0% {
        opacity: 0;
        transform: scale(0.88);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.nsv-toast-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--nest-primary-light);
    color: var(--nest-primary-deeper);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 2px solid var(--nest-primary);
}

.nsv-toast-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--nest-heading);
    margin-bottom: 8px;
}

.nsv-toast-msg {
    font-size: 15px;
    color: var(--nest-text);
    font-weight: 600;
    margin-bottom: 20px;
}

.nsv-toast-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.nsv-toast-btn-continue {
    flex: 1;
    min-width: 140px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 2px solid #CBD5E1;
    background: #F8FAFC;
    color: var(--nest-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.nsv-toast-btn-continue:hover {
    background: #E2E8F0;
}

.nsv-toast-btn-checkout {
    flex: 1.2;
    min-width: 165px;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #FF6B00 0%, #E53935 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nsv-toast-btn-checkout:hover {
    opacity: 0.95;
    color: #ffffff !important;
}

/* ==========================================================================
   7. FLOATING CART WIDGET (DESKTOP) & STICKY BOTTOM BAR (MOBILE)
   ========================================================================== */
.nsv-floating-widgets {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.nsv-float-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B00 0%, #D9263C 100%);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(217, 38, 60, 0.42);
    border: 2px solid #ffffff;
    transition: all 0.25s ease;
}

.nsv-float-cart:hover {
    transform: scale(1.05) translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(217, 38, 60, 0.55);
}

.nsv-float-cart-count {
    background: #ffffff;
    color: #D9263C;
    font-weight: 900;
    font-size: 13px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nsv-float-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nest-primary-deeper);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(30, 133, 85, 0.35);
    border: 2px solid #ffffff;
}

.nsv-float-phone:hover {
    background: var(--nest-primary);
    color: #ffffff !important;
}

/* Mobile Sticky Bottom Bar */
.nsv-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--nest-primary-light);
    z-index: 1050;
    padding: 6px 8px;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
}

.nsv-mbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nest-heading) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    text-decoration: none !important;
    flex: 1;
}

.nsv-mbar-item i {
    font-size: 18px;
    color: var(--nest-primary-deeper);
    margin-bottom: 2px;
}

.nsv-mbar-cart-cta {
    flex: 1.8;
    background: linear-gradient(135deg, #FF6B00 0%, #D9263C 100%);
    color: #ffffff !important;
    border-radius: 12px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(217, 38, 60, 0.35);
}

.nsv-mbar-cart-cta i {
    font-size: 17px;
    color: #ffffff;
}

.nsv-mbar-badge {
    background: #ffffff;
    color: #D9263C;
    font-weight: 900;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 999px;
}

/* ==========================================================================
   8. PAGE BANNERS, CHECKOUT, NEWS, DETAIL, ABOUT, CONTACT
   ========================================================================== */
.nsv-page-hero {
    background: linear-gradient(135deg, #DEF9EC 0%, #BCE3C9 100%);
    padding: 32px 0;
    margin-bottom: 32px;
    border-bottom: 2px solid #A3D9B8;
    position: relative;
    overflow: hidden;
}

.nsv-page-hero h1,
.nsv-page-hero h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    margin: 0 0 6px 0 !important;
}

.nsv-breadcrumb {
    font-size: 14px;
    font-weight: 600;
    color: var(--nest-primary-deeper);
    margin: 0;
}

.nsv-breadcrumb a {
    color: var(--nest-heading);
    font-weight: 700;
}

/* Card Container for Inner Pages */
.nsv-card-box {
    background: #ffffff;
    border: 1.5px solid #D5EFE2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--nest-shadow-card);
    margin-bottom: 28px;
}

.nsv-card-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--nest-primary-light);
}

.nsv-card-box-header h3,
.nsv-card-box-header h4 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    margin: 0 !important;
}

.nsv-card-box-header i {
    color: var(--nest-primary);
    font-size: 22px;
}

/* Checkout Table & Form */
.nsv-cart-table {
    width: 100%;
    margin-bottom: 0;
}

.nsv-cart-table thead th {
    background: var(--nest-primary-light);
    color: var(--nest-heading);
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    padding: 12px 10px !important;
    border-bottom: 2px solid var(--nest-primary-border) !important;
}

.nsv-cart-table tbody td {
    vertical-align: middle !important;
    padding: 14px 10px !important;
    font-weight: 600;
    color: var(--nest-heading);
    border-bottom: 1px solid #EDF2F7;
}

.nsv-cart-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--nest-primary-border);
    background: #fff;
}

.nsv-qty-pill {
    display: inline-block;
    background: var(--nest-primary-light);
    color: var(--nest-primary-deeper);
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--nest-primary-border);
}

.nsv-btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FEE2E2;
    color: #DC2626 !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nsv-btn-delete:hover {
    background: #DC2626;
    color: #ffffff !important;
}

.nsv-cart-summary-bar {
    background: #FFFDF9;
    border: 2px solid var(--nest-accent);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.nsv-cart-total-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--nest-heading);
}

.nsv-cart-total-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--nest-price);
}

.nsv-form-group label {
    font-weight: 700;
    color: var(--nest-heading);
    margin-bottom: 6px;
    font-size: 14px;
}

.nsv-form-control {
    height: 46px !important;
    border-radius: 10px !important;
    border: 1.5px solid #CBD5E1 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--nest-heading) !important;
    padding: 10px 14px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.nsv-form-control:focus {
    border-color: var(--nest-primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.2) !important;
}

.nsv-btn-submit-order {
    background: linear-gradient(135deg, #3BB77E 0%, #1E8555 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(59, 183, 126, 0.35);
    transition: all 0.25s ease;
    width: 100%;
}

.nsv-btn-submit-order:hover {
    background: linear-gradient(135deg, #FF6B00 0%, #E53935 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(229, 57, 53, 0.4);
}

/* News Cards */
.nsv-news-card {
    background: #ffffff;
    border: 1.5px solid #BEEAD5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nest-shadow-card);
    transition: all 0.25s ease;
    height: 100%;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.nsv-news-card:hover {
    transform: translateY(-5px);
    border-color: var(--nest-primary);
    box-shadow: var(--nest-shadow-hover);
}

.nsv-news-img-wrap {
    height: 210px;
    overflow: hidden;
    border-bottom: 1px solid #E2F5EC;
}

.nsv-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nsv-news-card:hover .nsv-news-img-wrap img {
    transform: scale(1.06);
}

.nsv-news-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nsv-news-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--nest-heading) !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nsv-news-excerpt {
    font-size: 14px;
    color: var(--nest-text);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nsv-news-readmore {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--nest-primary-deeper);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   9. MODERN NEST FOOTER
   ========================================================================== */
.nsv-footer-banner {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--nest-shadow-sm);
    border: 2px solid #D5EFE2;
}

.nsv-footer-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.nsv-footer {
    background: #1B2E3C !important;
    color: #D1D5DB !important;
    padding: 50px 0 0 !important;
    border-top: 4px solid var(--nest-primary) !important;
    margin-top: 40px;
}

.nsv-footer h4 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-bottom: 10px;
    border-bottom: none !important;
}

.nsv-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: var(--nest-primary);
    border-radius: 2px;
}

.nsv-footer p,
.nsv-footer a {
    color: #E2E8F0 !important;
    font-size: 14px;
    line-height: 1.7;
}

.nsv-footer a:hover {
    color: var(--nest-primary) !important;
}

.nsv-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nsv-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.nsv-footer-contact-list li i {
    color: var(--nest-primary);
    font-size: 16px;
    margin-top: 4px;
    width: 18px;
    text-align: center;
}

.nsv-social-links {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.nsv-social-links li a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s ease;
}

.nsv-social-links li a:hover {
    background: var(--nest-primary);
    color: #ffffff !important;
    transform: translateY(-3px);
}

.nsv-footer-bottom {
    background: #13222D !important;
    padding: 18px 0 !important;
    margin-top: 35px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 13.5px;
}

/* ==========================================================================
   10. MOBILE & TABLET RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
    .nsv-header-inner {
        height: auto;
        min-height: 68px;
        padding: 8px 0 !important;
        flex-wrap: wrap;
    }

    .nsv-mobile-toggle {
        display: inline-flex;
    }

    .nsv-nav-collapse {
        display: none;
        width: 100%;
        order: 4;
        background: #ffffff;
        border-top: 1.5px solid var(--nest-primary-light);
        padding: 10px 0;
        margin-top: 8px;
    }

    .nsv-nav-collapse.in,
    .nsv-nav-collapse.show {
        display: block;
    }

    .nsv-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nsv-nav-menu > li > a {
        padding: 11px 14px;
        border-radius: 8px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: 68px !important; /* Space for mobile sticky bottom bar */
    }

    .nsv-topbar {
        font-size: 11.5px;
        padding: 6px 0;
        text-align: center;
    }

    .nsv-topbar-right {
        display: none;
    }

    .nsv-brand img {
        height: 42px;
    }

    .nsv-brand-title {
        font-size: 16px;
    }

    .nsv-brand-sub {
        font-size: 10.5px;
    }

    .nsv-cart-btn {
        padding: 7px 12px;
        font-size: 13px;
        border-radius: 10px;
        gap: 6px;
    }

    .nsv-cart-btn-label {
        display: none;
    }

    /* Product Grid on Mobile: 2 Crisp Columns */
    .nsv-product-row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .nsv-product-col {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 12px !important;
    }

    .sc-product-item.nsv-product-card {
        border-width: 1.5px !important;
        border-radius: 12px !important;
    }

    .nsv-product-img-wrap {
        height: 155px;
        padding: 5px;
    }

    .nsv-product-img-wrap img {
        max-height: 145px !important;
    }

    .nsv-product-badge {
        top: 8px;
        left: 8px;
        font-size: 9.5px;
        padding: 3px 8px;
    }

    .nsv-product-body {
        padding: 10px 10px 6px;
    }

    .nsv-product-cat {
        font-size: 10px;
    }

    .nsv-product-card h6[data-name="product_name"] {
        font-size: 13.5px !important;
        height: 38px !important;
        margin-bottom: 6px !important;
    }

    .nsv-product-meta {
        margin-bottom: 6px;
    }

    .nsv-stock-tag {
        display: none;
    }

    .nsv-price-box {
        padding: 5px 8px;
        margin-bottom: 8px;
    }

    .nsv-price-box .price {
        font-size: 14.5px !important;
    }

    .nsv-product-footer {
        padding: 0 10px 10px;
    }

    .nsv-btn-buy {
        font-size: 12.5px !important;
        padding: 9px 8px !important;
        border-radius: 8px !important;
    }

    .nsv-section-title {
        font-size: 20px !important;
    }

    /* Hide desktop floating widgets, show Mobile Sticky Bottom Bar */
    .nsv-floating-widgets {
        display: none !important;
    }

    .nsv-mobile-bottom-bar {
        display: flex !important;
    }

    .nsv-card-box {
        padding: 16px 12px;
    }
}
