/*
 Theme Name:   Đặc Sản Ba Miền - Child Theme
 Theme URI:    https://dacsanbamien.vn
 Description:  Child theme cho website bán đặc sản vùng miền Việt Nam
 Author:       MiChu
 Author URI:   https://dacsanbamien.vn
 Template:     astra
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  dacsanbamien
*/

/* ============================================
   🌾 ĐẶC SẢN BA MIỀN - DESIGN SYSTEM
   ============================================ */

:root {
    /* Primary Colors — Xanh lá cây #9acd66 */
    --ns-primary: #9acd66;
    --ns-primary-light: #c5e4a3;
    --ns-primary-dark: #6b9e3a;
    
    /* Secondary Colors */
    --ns-secondary: #7bb83e;
    --ns-secondary-light: #a8d97a;
    --ns-secondary-dark: #5a8a2d;
    
    /* Accent Colors — Cam đất ấm */
    --ns-accent: #D4763C;
    --ns-accent-light: #F0A868;
    --ns-accent-dark: #BF5B1A;
    
    /* Neutral Colors */
    --ns-bg: #F5FBF0;
    --ns-bg-light: #FFFFFF;
    --ns-bg-card: #FFFFFF;
    --ns-text: #2D3B2E;
    --ns-text-light: #5A6E5C;
    --ns-text-muted: #8A9B8C;
    --ns-border: #D4E8C8;
    
    /* Functional Colors */
    --ns-success: #9acd66;
    --ns-warning: #F9A825;
    --ns-danger: #E53935;
    --ns-info: #1E88E5;
    
    /* Typography */
    --ns-font-primary: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    --ns-font-heading: 'Playfair Display', 'Georgia', serif;
    
    /* Spacing */
    --ns-space-xs: 0.25rem;
    --ns-space-sm: 0.5rem;
    --ns-space-md: 1rem;
    --ns-space-lg: 1.5rem;
    --ns-space-xl: 2rem;
    --ns-space-2xl: 3rem;
    --ns-space-3xl: 4rem;
    
    /* Border Radius */
    --ns-radius-sm: 6px;
    --ns-radius-md: 10px;
    --ns-radius-lg: 16px;
    --ns-radius-xl: 24px;
    --ns-radius-full: 9999px;
    
    /* Shadows */
    --ns-shadow-sm: 0 1px 3px rgba(44, 62, 45, 0.06);
    --ns-shadow-md: 0 4px 12px rgba(44, 62, 45, 0.08);
    --ns-shadow-lg: 0 8px 30px rgba(44, 62, 45, 0.10);
    --ns-shadow-xl: 0 16px 50px rgba(44, 62, 45, 0.12);
    
    /* Transitions */
    --ns-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ns-transition-fast: all 0.15s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

body {
    font-family: var(--ns-font-primary);
    color: var(--ns-text);
    background-color: var(--ns-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ns-font-heading);
    color: var(--ns-primary-dark);
    line-height: 1.3;
}

a {
    color: var(--ns-primary);
    transition: var(--ns-transition-fast);
}

a:hover {
    color: var(--ns-secondary);
}

/* ============================================
   TOP BAR
   ============================================ */

.ns-top-bar {
    background: linear-gradient(135deg, var(--ns-primary-dark), var(--ns-primary));
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ns-top-bar a {
    color: var(--ns-secondary-light);
    text-decoration: none;
}

.ns-top-bar a:hover {
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */

.ns-header {
    background: var(--ns-bg-card);
    box-shadow: var(--ns-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.ns-header .logo img {
    max-height: 60px;
    transition: var(--ns-transition);
}

.ns-header .logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
.ns-nav a {
    font-weight: 600;
    color: var(--ns-text);
    padding: 10px 16px;
    position: relative;
    transition: var(--ns-transition-fast);
}

.ns-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--ns-secondary);
    border-radius: var(--ns-radius-full);
    transform: translateX(-50%);
    transition: var(--ns-transition);
}

.ns-nav a:hover::after,
.ns-nav a.active::after {
    width: 60%;
}

.ns-nav a:hover {
    color: var(--ns-primary);
}

/* ============================================
   HERO BANNER
   ============================================ */

.ns-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(74, 130, 40, 0.88), 
        rgba(107, 158, 58, 0.75));
    overflow: hidden;
}

.ns-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-farm.jpg') center/cover;
    z-index: -1;
}

.ns-hero h1 {
    font-family: var(--ns-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: var(--ns-space-md);
}

.ns-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.8;
}

.ns-hero .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--ns-secondary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--ns-radius-full);
    cursor: pointer;
    transition: var(--ns-transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(154, 205, 102, 0.4);
}

.ns-hero .btn-hero:hover {
    background: var(--ns-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(154, 205, 102, 0.5);
}

/* ============================================
   CATEGORY SECTION
   ============================================ */

.ns-categories {
    padding: var(--ns-space-3xl) 0;
    background: var(--ns-bg-light);
}

.ns-section-title {
    text-align: center;
    margin-bottom: var(--ns-space-2xl);
}

.ns-section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ns-primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.ns-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--ns-secondary), var(--ns-accent));
    border-radius: var(--ns-radius-full);
}

.ns-section-title p {
    color: var(--ns-text-light);
    margin-top: var(--ns-space-sm);
    font-size: 1.05rem;
}

.ns-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--ns-space-lg);
}

.ns-category-card {
    background: var(--ns-bg-card);
    border-radius: var(--ns-radius-lg);
    padding: var(--ns-space-xl) var(--ns-space-md);
    text-align: center;
    cursor: pointer;
    transition: var(--ns-transition);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--ns-text);
}

.ns-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ns-shadow-lg);
    border-color: var(--ns-secondary-light);
}

.ns-category-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--ns-space-sm);
    display: block;
}

.ns-category-card .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ns-primary-dark);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.ns-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--ns-space-xl);
}

.ns-product-card {
    background: var(--ns-bg-card);
    border-radius: var(--ns-radius-lg);
    overflow: hidden;
    transition: var(--ns-transition);
    border: 1px solid var(--ns-border);
    position: relative;
}

.ns-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ns-shadow-lg);
}

.ns-product-card .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.ns-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.ns-product-card .badge-origin {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(74, 130, 40, 0.88);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--ns-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ns-product-card .badge-cert {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(123, 184, 62, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--ns-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ns-product-card .product-info {
    padding: var(--ns-space-md) var(--ns-space-lg) var(--ns-space-lg);
}

.ns-product-card .product-name {
    font-weight: 600;
    color: var(--ns-text);
    font-size: 1rem;
    margin-bottom: var(--ns-space-xs);
    line-height: 1.4;
}

.ns-product-card .product-meta {
    font-size: 0.82rem;
    color: var(--ns-text-muted);
    margin-bottom: var(--ns-space-sm);
}

.ns-product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ns-product-card .price-current {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ns-danger);
}

.ns-product-card .price-old {
    font-size: 0.85rem;
    color: var(--ns-text-muted);
    text-decoration: line-through;
}

.ns-product-card .product-actions {
    display: flex;
    gap: 8px;
    margin-top: var(--ns-space-md);
}

.ns-product-card .btn-add-cart {
    flex: 1;
    padding: 10px;
    background: var(--ns-primary);
    color: #fff;
    border: none;
    border-radius: var(--ns-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--ns-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ns-product-card .btn-add-cart:hover {
    background: var(--ns-primary-light);
    transform: translateY(-1px);
}

.ns-product-card .btn-quick-view {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ns-border);
    background: transparent;
    border-radius: var(--ns-radius-md);
    cursor: pointer;
    transition: var(--ns-transition);
    color: var(--ns-text-light);
}

.ns-product-card .btn-quick-view:hover {
    border-color: var(--ns-primary);
    color: var(--ns-primary);
}

/* ============================================
   TRUST / CERTIFICATIONS
   ============================================ */

.ns-trust {
    background: linear-gradient(135deg, var(--ns-primary-dark), var(--ns-primary));
    padding: var(--ns-space-3xl) 0;
    color: #fff;
}

.ns-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ns-space-xl);
    text-align: center;
}

.ns-trust-item {
    padding: var(--ns-space-lg);
}

.ns-trust-item .icon {
    font-size: 3rem;
    margin-bottom: var(--ns-space-md);
    display: block;
}

.ns-trust-item h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: var(--ns-space-xs);
}

.ns-trust-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   BRAND STORY
   ============================================ */

.ns-story {
    padding: var(--ns-space-3xl) 0;
    background: var(--ns-bg);
}

.ns-story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ns-space-3xl);
    align-items: center;
}

.ns-story-image {
    border-radius: var(--ns-radius-xl);
    overflow: hidden;
    box-shadow: var(--ns-shadow-xl);
}

.ns-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.ns-story-text h2 {
    font-size: 2rem;
    margin-bottom: var(--ns-space-lg);
    color: var(--ns-primary-dark);
}

.ns-story-text p {
    color: var(--ns-text-light);
    line-height: 1.8;
    margin-bottom: var(--ns-space-md);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.ns-testimonials {
    padding: var(--ns-space-3xl) 0;
    background: var(--ns-bg-light);
}

.ns-testimonial-card {
    background: var(--ns-bg-card);
    border-radius: var(--ns-radius-lg);
    padding: var(--ns-space-xl);
    box-shadow: var(--ns-shadow-sm);
    border-left: 4px solid var(--ns-secondary);
    transition: var(--ns-transition);
}

.ns-testimonial-card:hover {
    box-shadow: var(--ns-shadow-md);
}

.ns-testimonial-card .quote {
    font-style: italic;
    color: var(--ns-text-light);
    line-height: 1.8;
    margin-bottom: var(--ns-space-md);
}

.ns-testimonial-card .author {
    display: flex;
    align-items: center;
    gap: var(--ns-space-sm);
}

.ns-testimonial-card .author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.ns-testimonial-card .author-name {
    font-weight: 600;
    color: var(--ns-primary-dark);
}

.ns-testimonial-card .author-title {
    font-size: 0.82rem;
    color: var(--ns-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.ns-footer {
    background: var(--ns-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--ns-space-3xl) 0 var(--ns-space-lg);
}

.ns-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--ns-space-2xl);
    margin-bottom: var(--ns-space-2xl);
}

.ns-footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: var(--ns-space-lg);
    position: relative;
    padding-bottom: 10px;
}

.ns-footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ns-secondary);
    border-radius: var(--ns-radius-full);
}

.ns-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--ns-transition-fast);
}

.ns-footer a:hover {
    color: var(--ns-secondary-light);
    padding-left: 4px;
}

.ns-footer ul {
    list-style: none;
    padding: 0;
}

.ns-footer ul li {
    margin-bottom: 10px;
}

.ns-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--ns-space-lg);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   BUTTONS - GLOBAL
   ============================================ */

.ns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--ns-font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--ns-radius-md);
    cursor: pointer;
    transition: var(--ns-transition);
    text-decoration: none;
    line-height: 1;
}

.ns-btn-primary {
    background: var(--ns-primary);
    color: #fff;
}

.ns-btn-primary:hover {
    background: var(--ns-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 158, 58, 0.3);
}

.ns-btn-secondary {
    background: var(--ns-secondary);
    color: #fff;
}

.ns-btn-secondary:hover {
    background: var(--ns-secondary-dark);
}

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

.ns-btn-outline:hover {
    background: var(--ns-primary);
    color: #fff;
}

/* ============================================
   SALE BADGE / FLASH SALE
   ============================================ */

.ns-flash-sale {
    background: linear-gradient(135deg, var(--ns-danger), #FF6B4A);
    padding: var(--ns-space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.ns-flash-sale::before {
    content: '🔥';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
    top: -20px;
    right: 20px;
}

.ns-flash-sale .section-title {
    color: #fff;
}

.ns-flash-sale .countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: var(--ns-space-xl);
}

.ns-flash-sale .countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: var(--ns-radius-md);
    text-align: center;
    min-width: 65px;
}

.ns-flash-sale .countdown-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.ns-flash-sale .countdown-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */

/* Price styling */
.woocommerce .price,
.woocommerce .amount {
    color: var(--ns-danger) !important;
    font-weight: 700;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--ns-danger);
    border-radius: var(--ns-radius-full);
    padding: 6px 14px;
    min-height: unset;
    min-width: unset;
    line-height: 1.5;
    font-weight: 700;
}

/* Add to cart button */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--ns-primary) !important;
    color: #fff !important;
    border-radius: var(--ns-radius-md) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: var(--ns-transition) !important;
    border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--ns-primary-light) !important;
    transform: translateY(-2px);
}

/* Checkout */
.woocommerce-checkout #payment {
    background: var(--ns-bg) !important;
    border-radius: var(--ns-radius-lg) !important;
}

/* ============================================
   CART PAGE — PREMIUM REDESIGN
   ============================================ */

/* Cart page wrapper */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Cart Table ---- */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    background: #fff;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce table.shop_table thead th {
    background: linear-gradient(135deg, #4d8228, #6b9e3a) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 16px 20px !important;
    border: none !important;
}

.woocommerce table.shop_table tbody td {
    padding: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    font-size: 14px;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

.woocommerce table.shop_table tbody tr:hover td {
    background: #f2f9ec !important;
}

/* Product name in cart */
.woocommerce table.cart td.product-name a {
    color: #3d6b1e !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.woocommerce table.cart td.product-name a:hover {
    color: #9acd66 !important;
}

/* Product thumbnail */
.woocommerce table.cart td.product-thumbnail img {
    border-radius: 12px !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border: 2px solid #e5e7eb !important;
    transition: transform 0.3s, border-color 0.3s;
}

.woocommerce table.cart td.product-thumbnail img:hover {
    transform: scale(1.05);
    border-color: #9acd66 !important;
}

/* ---- Quantity Input — FIX VISIBILITY ---- */
.woocommerce table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: border-color 0.3s;
}

.woocommerce table.cart td.product-quantity .quantity:hover,
.woocommerce table.cart td.product-quantity .quantity:focus-within {
    border-color: #9acd66 !important;
}

.woocommerce table.cart td.product-quantity .quantity input.qty {
    width: 56px !important;
    height: 42px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #3d6b1e !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce table.cart td.product-quantity .quantity input.qty::-webkit-outer-spin-button,
.woocommerce table.cart td.product-quantity .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Quantity +/- buttons if present */
.woocommerce table.cart td.product-quantity .quantity .qty-btn,
.woocommerce table.cart td.product-quantity .quantity button {
    width: 36px !important;
    height: 42px !important;
    background: #f0f0f0 !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #3d6b1e !important;
    transition: background 0.2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce table.cart td.product-quantity .quantity .qty-btn:hover,
.woocommerce table.cart td.product-quantity .quantity button:hover {
    background: #e2f5cd !important;
}

/* Price styling */
.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #e53935 !important;
}

.woocommerce table.cart td.product-subtotal {
    color: #3d6b1e !important;
    font-size: 16px !important;
}

/* Remove button */
.woocommerce table.cart td.product-remove a.remove {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.woocommerce table.cart td.product-remove a.remove:hover {
    background: #dc2626 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* ---- Coupon & Actions Row ---- */
.woocommerce table.cart td.actions {
    padding: 20px !important;
    background: #fafbfc !important;
    border-top: 2px solid #f0f0f0 !important;
}

.woocommerce table.cart td.actions .coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.woocommerce table.cart td.actions .coupon label {
    display: none;
}

.woocommerce table.cart td.actions .coupon input.input-text {
    padding: 10px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    min-width: 200px !important;
    transition: border-color 0.3s;
    outline: none !important;
    height: auto !important;
}

.woocommerce table.cart td.actions .coupon input.input-text:focus {
    border-color: #9acd66 !important;
    box-shadow: 0 0 0 3px rgba(154, 205, 102, 0.15) !important;
}

.woocommerce table.cart td.actions .coupon button,
.woocommerce table.cart td.actions .coupon input[type="submit"] {
    background: linear-gradient(135deg, #5a8a2d, #7bb83e) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.woocommerce table.cart td.actions .coupon button:hover,
.woocommerce table.cart td.actions .coupon input[type="submit"]:hover {
    background: linear-gradient(135deg, #4d8228, #5a8a2d) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 158, 58, 0.3) !important;
}

/* Update Cart button */
.woocommerce table.cart td.actions button[name="update_cart"],
.woocommerce table.cart td.actions input[name="update_cart"] {
    background: #fff !important;
    color: #3d6b1e !important;
    border: 2px solid #6b9e3a !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    float: right;
}

.woocommerce table.cart td.actions button[name="update_cart"]:hover,
.woocommerce table.cart td.actions input[name="update_cart"]:hover {
    background: #6b9e3a !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 158, 58, 0.3) !important;
}

.woocommerce table.cart td.actions button[name="update_cart"]:disabled,
.woocommerce table.cart td.actions input[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ---- Cart Totals Section ---- */
.woocommerce .cart-collaterals {
    margin-top: 32px;
}

.woocommerce .cart_totals {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    padding: 28px !important;
    border: 1px solid #e5e7eb !important;
}

.woocommerce .cart_totals h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #3d6b1e !important;
    margin: 0 0 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 2px solid #edf7e4 !important;
}

.woocommerce .cart_totals table.shop_table {
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.woocommerce .cart_totals table.shop_table th {
    background: transparent !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 14px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce .cart_totals table.shop_table td {
    padding: 14px 0 !important;
    text-align: right !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #3d6b1e !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce .cart_totals table.shop_table tr.order-total td {
    font-size: 20px !important;
    color: #e53935 !important;
    font-weight: 800 !important;
    border-bottom: none !important;
    padding-top: 18px !important;
}

.woocommerce .cart_totals table.shop_table tr.order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #3d6b1e !important;
    border-bottom: none !important;
    padding-top: 18px !important;
}

/* Checkout button */
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button,
.woocommerce .cart_totals .wc-proceed-to-checkout .button {
    background: linear-gradient(135deg, #5a8a2d, #7bb83e) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(107, 158, 58, 0.3) !important;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .cart_totals .wc-proceed-to-checkout .button:hover {
    background: linear-gradient(135deg, #4d8228, #5a8a2d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(107, 158, 58, 0.4) !important;
}

/* ---- Free Shipping Progress Bar ---- */
.woocommerce-cart .free-shipping-notice,
.woocommerce-cart .woocommerce-info {
    background: #f2f9ec !important;
    border: 1px solid #c5e4a3 !important;
    border-left: 4px solid #6b9e3a !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    color: #3d6b1e !important;
    font-weight: 600 !important;
    margin-bottom: 24px !important;
}

/* ---- Empty Cart State ---- */
.woocommerce-cart .cart-empty,
.woocommerce-cart .woocommerce-info {
    text-align: center !important;
    padding: 48px 20px !important;
    background: #f8fafb !important;
    border-radius: 16px !important;
    border: 2px dashed #d1d5db !important;
    color: #6b7280 !important;
    font-size: 16px !important;
}

.woocommerce-cart .return-to-shop .button,
.woocommerce-cart .wc-backward {
    background: linear-gradient(135deg, #5a8a2d, #7bb83e) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    transition: all 0.3s !important;
    margin-top: 16px !important;
    display: inline-block !important;
}

.woocommerce-cart .return-to-shop .button:hover,
.woocommerce-cart .wc-backward:hover {
    background: linear-gradient(135deg, #4d8228, #5a8a2d) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 158, 58, 0.3) !important;
}

/* ---- Responsive Cart ---- */
@media (max-width: 768px) {
    .woocommerce table.shop_table thead {
        display: none;
    }

    .woocommerce table.shop_table tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #f5f5f5 !important;
    }

    .woocommerce table.shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #374151;
        font-size: 12px;
        text-transform: uppercase;
    }

    .woocommerce table.cart td.product-thumbnail img {
        width: 60px !important;
        height: 60px !important;
    }

    .woocommerce .cart_totals {
        padding: 20px !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ns-story-content {
        grid-template-columns: 1fr;
    }
    
    .ns-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ns-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ns-space-md);
    }
    
    .ns-hero {
        min-height: 350px;
    }
    
    .ns-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .ns-product-grid {
        grid-template-columns: 1fr;
    }
    
    .ns-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--ns-space-sm);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.ns-product-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger effect for product grid */
.ns-product-grid .ns-product-card:nth-child(1) { animation-delay: 0.05s; }
.ns-product-grid .ns-product-card:nth-child(2) { animation-delay: 0.1s; }
.ns-product-grid .ns-product-card:nth-child(3) { animation-delay: 0.15s; }
.ns-product-grid .ns-product-card:nth-child(4) { animation-delay: 0.2s; }
.ns-product-grid .ns-product-card:nth-child(5) { animation-delay: 0.25s; }
.ns-product-grid .ns-product-card:nth-child(6) { animation-delay: 0.3s; }
.ns-product-grid .ns-product-card:nth-child(7) { animation-delay: 0.35s; }
.ns-product-grid .ns-product-card:nth-child(8) { animation-delay: 0.4s; }
