/* CSS Variables Design System */
:root {
    /* Brand Colors */
    --primary-color: #10B981;
    /* Xanh ngọc - Emerald 500 */
    --primary-dark: #059669;
    /* Xanh đậm - Emerald 600 */
    --primary-light: #D1FAE5;
    /* Xanh nhạt - Emerald 100 */
    --accent-color: #FB923C;
    /* Cam nhạt - Orange 400 */
    --accent-hover: #F97316;
    /* Cam cam - Orange 500 */

    /* Neutral Colors */
    --bg-color: #FFFFFF;
    /* Trắng thuần */
    --bg-light: #F9FAFB;
    /* Xám trắng tinh tế */
    --text-main: #1F2937;
    /* Chữ đen xám */
    --text-muted: #6B7280;
    /* Chữ xám nhạt */
    --border-color: #E5E7EB;
    /* Viền */

    /* UI Parameters */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-accent: 0 10px 15px -3px rgba(251, 146, 60, 0.3);

    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-4 {
    margin-top: 1.5rem;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

.btn-rounded {
    border-radius: var(--border-radius-pill);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

.shadow-accent {
    box-shadow: var(--shadow-accent);
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--primary-color);
}

.cart-btn .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.badge-accent {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-combos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.promo-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius-pill);
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.promo-tag strong {
    margin-right: 6px;
    color: var(--primary-dark);
}

.promo-tag.best {
    background: var(--primary-light);
    border-color: rgba(16, 185, 129, 0.4);
}

.promo-tag.premium {
    background: #FFF7ED;
    border-color: #FFEDD5;
}

.promo-tag.premium strong {
    color: var(--accent-hover);
}

.gift-text {
    margin-left: 10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--border-radius-pill);
}

.promo-tag.premium .gift-text {
    background: var(--accent-hover);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
}

.avatars img:first-child {
    margin-left: 0;
}

.hero-image {
    position: relative;
}

.hero-img-rounded {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    display: block;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 4s ease-in-out infinite;
}

.floating-card.top-right {
    top: 30px;
    right: -30px;
    animation-delay: 1s;
}

.floating-card.bottom-left {
    bottom: 40px;
    left: -40px;
}

.floating-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.floating-card .info {
    display: flex;
    flex-direction: column;
}

.floating-card .value {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.floating-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Combo Section */
.combo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-light) 100%);
    border-top: 1px solid var(--border-color);
}

.combo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.combo-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.combo-package-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.combo-package-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.combo-package-card.highlight {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.combo-package-card.premium {
    background: #FFF7ED;
    border-color: #FFEDD5;
}

.price-badge {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    min-width: 90px;
}

.combo-package-card.premium .price-badge {
    color: var(--accent-hover);
}

.pkg-info {
    flex: 1;
}

.pkg-info h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pkg-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.badge-gift {
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--border-radius-pill);
}

.badge-gift.premium {
    background: var(--accent-hover);
}

.combo-illustration img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    transform: rotate(2deg);
    transition: var(--transition);
}

.combo-illustration img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-card,
.result-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row.triplets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-card .content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-muted);
}

.radio-card input:checked~.content {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.radio-group.targets {
    flex-direction: column;
}

.radio-group.targets .content {
    justify-content: flex-start;
    padding-left: 20px;
}

.input-with-suffix {
    position: relative;
}

.input-with-suffix input,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
    background-color: white;
}

.input-with-suffix input:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-with-suffix .suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Results Card Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state img {
    width: 120px;
    opacity: 0.5;
    filter: grayscale(1);
    margin-bottom: 20px;
    transition: var(--transition);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.results-data {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 25px;
}

.result-header h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.big-calories {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0;
    letter-spacing: -1px;
}

.tdee-info {
    font-size: 0.95rem;
    background: var(--bg-light);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
}

.macro-breakdown h4 {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.macro-item {
    margin-bottom: 15px;
}

.macro-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.macro-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.protein {
    background-color: #3B82F6;
}

/* Blue */
.dot.carb {
    background-color: #F59E0B;
}

/* Yellow/Amber */
.dot.fat {
    background-color: #EF4444;
}

/* Red */

.progress-bg {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.progress-fill.protein {
    background-color: #3B82F6;
}

.progress-fill.carb {
    background-color: #F59E0B;
}

.progress-fill.fat {
    background-color: #EF4444;
}

.suggestion-box {
    margin-top: 30px;
    background-color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 20px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 15px;
}

.suggestion-box i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.suggestion-box h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.suggestion-box p {
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin: 0;
}

/* Menu Page Styles */
.page-header {
    background: white;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.tab-btn {
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.tab-btn:not(.active) {
    background-color: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.menu-view {
    padding: 40px 0;
    animation: fadeIn 0.4s ease;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.subscription-card {
    max-width: 800px;
    margin: 0 auto;
}

.sub-step {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    background: var(--bg-light);
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.product-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    align-items: flex-start;
}

.product-badge {
    position: relative;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 52px;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-meta i {
    color: var(--primary-color);
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    padding-top: 15px;
}

.product-action .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .hide-mobile {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .form-row.triplets {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Status Badges & Animations */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid transparent;
}

.badge-status.today {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

.badge-status.tomorrow {
    background: #FFF7ED;
    border-color: #F59E0B;
    color: #92400E;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pulse-dot.emerald {
    background: #10B981;
    animation: pulse-emerald 1.5s infinite;
}

.pulse-dot.orange {
    background: #F59E0B;
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-emerald {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}