:root {
    --nn-primary: #84cc5b;
    --nn-primary-hover: #68af41;
    --nn-dark: #0f172a;
    --nn-cream: #f4fbf1;
    --nn-light: #fdfbf7;
    --nn-glass-bg: rgba(244, 251, 241, 0.75);
    --nn-glass-dark: rgba(15, 23, 42, 0.85);
    --nn-border: rgba(132, 204, 91, 0.2);
}

/* Global Aesthetics */
body.nn-luxury-active {
    background-color: var(--nn-light);
    color: var(--nn-dark);
    font-family: 'Inter', 'Outfit', sans-serif !important;
}

/* 1. SỬA LỖI TRÀN VIỀN (Full-width bug) */
body.nn-luxury-active .site-main,
body.nn-luxury-active .elementor-section-stretched,
body.nn-luxury-active .woocommerce ul.products {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.nn-luxury-active .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px; /* Thêm whitespace thở */
}
body.nn-luxury-active .woocommerce ul.products::before,
body.nn-luxury-active .woocommerce ul.products::after {
    display: none; /* Xóa float thừa của WC */
}
body.nn-luxury-active .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

/* Typography Hierarchy Enhancements */
body.nn-luxury-active h1, 
body.nn-luxury-active h2, 
body.nn-luxury-active h3, 
body.nn-luxury-active .elementor-heading-title {
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Glassmorphism & Bento Utilities */
.nn-glass, .nn-bento {
    background: var(--nn-glass-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--nn-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nn-glass:hover, .nn-bento:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(132, 204, 91, 0.15) !important;
    border-color: var(--nn-primary) !important;
}

/* WooCommerce Product Cards Upgrade */
body.nn-luxury-active .woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
body.nn-luxury-active .woocommerce ul.products li.product:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(132, 204, 91, 0.2);
}
body.nn-luxury-active .woocommerce ul.products li.product img {
    border-radius: 20px 20px 0 0;
    transition: transform 0.8s ease;
}
body.nn-luxury-active .woocommerce ul.products li.product:hover img {
    transform: scale(1.08);
}
body.nn-luxury-active .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.1rem;
    padding: 15px 15px 5px;
    margin: 0;
}
body.nn-luxury-active .woocommerce ul.products li.product .price {
    color: var(--nn-primary);
    font-weight: 700;
    padding: 0 15px 15px;
}

/* 2. HIỆU ỨNG BUTTON (Glow, Sheen, Spring) */
body.nn-luxury-active .elementor-button, 
body.nn-luxury-active .woocommerce a.button,
.nn-btn-primary {
    background: linear-gradient(135deg, var(--nn-primary), var(--nn-primary-hover)) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    padding: 12px 30px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(132, 204, 91, 0.3), inset 0 1px 0 rgba(255,255,255,0.4) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Spring effect */
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
}
/* Sheen effect */
body.nn-luxury-active .elementor-button::after,
body.nn-luxury-active .woocommerce a.button::after,
.nn-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}
body.nn-luxury-active .elementor-button:hover::after,
body.nn-luxury-active .woocommerce a.button:hover::after,
.nn-btn-primary:hover::after {
    left: 150%;
}
body.nn-luxury-active .elementor-button:hover, 
body.nn-luxury-active .woocommerce a.button:hover,
.nn-btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 25px rgba(132, 204, 91, 0.5), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

/* Smooth Image Reveal */
.nn-reveal-img {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
}

/* 3. KHỐI CHỌN ĐÓNG GÓI (Gift Builder) */
.nn-gift-builder {
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
}
.nn-gb-header {
    text-align: center;
    margin-bottom: 40px;
}
.nn-gb-header h2 {
    font-size: 2.5rem;
    color: var(--nn-primary);
    margin-bottom: 10px;
}
.nn-gb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.nn-gb-step {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}
.nn-step-badge {
    position: absolute;
    top: -15px; left: 30px;
    width: 35px; height: 35px;
    background: var(--nn-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nn-gb-step h3 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--nn-cream);
    padding-bottom: 10px;
}
.nn-box-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.nn-box-card {
    border: 2px solid var(--nn-cream);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nn-box-card:hover {
    border-color: var(--nn-primary);
    background: var(--nn-cream);
    transform: translateX(5px);
}
.nn-box-card.active {
    border-color: var(--nn-primary);
    background: var(--nn-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(132, 204, 91, 0.3);
}
.nn-box-icon {
    font-size: 2rem;
}
.nn-box-card h4 { margin: 0; font-size: 1.1rem; }
.nn-box-card p { margin: 0; opacity: 0.8; font-size: 0.9rem; }

.nn-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nn-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: var(--nn-light);
    border: 1px solid var(--nn-cream);
}
.nn-qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 20px;
    padding: 2px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.nn-qty-btn {
    border: none;
    background: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--nn-primary);
    width: 25px; height: 25px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}
.nn-qty-btn:hover { background: var(--nn-cream); }
.nn-qty { font-weight: bold; width: 20px; text-align: center; }

.nn-gb-summary {
    background: var(--nn-dark);
    color: #fff;
}
.nn-gb-summary h3 { border-color: rgba(255,255,255,0.1); }
.nn-summary-content { min-height: 150px; margin-bottom: 20px; }
#nn-summary-box {
    font-weight: bold;
    color: var(--nn-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.nn-summary-item {
    display: flex; justify-content: space-between;
    margin-bottom: 8px; font-size: 0.95rem; opacity: 0.9;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 5px;
}
.nn-total {
    display: flex; justify-content: space-between;
    font-size: 1.3rem; margin-bottom: 20px;
    padding-top: 15px; border-top: 2px solid rgba(255,255,255,0.1);
}
#nn-total-price { color: var(--nn-primary); }
.nn-btn-primary { width: 100%; display: block; }

@media (max-width: 900px) {
    .nn-gb-grid { grid-template-columns: 1fr; }
}
