/* ==========================================================================
   CAPHEMOC.VN - MODERN HIGH-CONVERSION DESIGN SYSTEM & CRO STYLES
   Author: caphemoc.vn team
   ========================================================================== */

:root {
    --c-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --c-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --c-coffee-dark: #1A0E08;
    --c-coffee-espresso: #2B170E;
    --c-coffee-roast: #452414;
    --c-coffee-amber: #9D4E1D;
    --c-coffee-amber-hover: #7D3B12;
    --c-coffee-gold: #DDA15E;
    --c-coffee-crema: #EED7C5;
    --c-coffee-cream: #FAF6F0;
    --c-coffee-surface: #FFFFFF;
    --c-coffee-border: #EADBCE;
    --c-text-main: #221814;
    --c-text-muted: #6B5E57;
    --c-text-light: #6B5D54;
    --c-accent-green: #2E7D32;
    --c-shadow-sm: 0 2px 8px rgba(33, 16, 10, 0.06);
    --c-shadow-md: 0 8px 24px rgba(33, 16, 10, 0.1);
    --c-shadow-lg: 0 16px 40px rgba(33, 16, 10, 0.15);
    --c-radius-sm: 8px;
    --c-radius-md: 14px;
    --c-radius-lg: 22px;
    --c-radius-pill: 999px;
    --c-transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Base resets & Full-Bleed Layout Overrides (Fixes Hello Elementor .site-main right whitespace bug) */
html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background-color: var(--c-coffee-cream);
    color: var(--c-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body .site-main,
body:not([class*="elementor-page-"]) .site-main,
#content,
#content.site-main,
.site-main,
.page-content,
.entry-content,
.caphemoc-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--c-text-main);
    background-color: var(--c-coffee-cream);
    line-height: 1.6;
}

.caphemoc-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

button,
[type="button"],
[type="submit"],
input,
select,
textarea {
    transition: none;
}

/* Container */
.c-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Buttons & Badges (High specificity to override hello-elementor [type=button] reset) */
.c-btn,
a.c-btn,
button.c-btn,
[type="button"].c-btn,
[type="submit"].c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    padding: 13px 28px;
    border-radius: var(--c-radius-pill);
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--c-transition);
    border: none;
    text-align: center;
    white-space: nowrap;
}

/* Ensure full-width, calculator & card buttons wrap properly without overflowing */
.c-btn-block,
.c-calc-results .c-btn,
.c-calc-results a.c-btn,
.c-b2b-card .c-btn,
.c-b2b-card a.c-btn,
.c-b2b-section .c-btn,
.c-b2b-section a.c-btn,
.c-modal-card .c-btn,
.c-modal-card a.c-btn,
.c-modal-card button.c-btn {
    white-space: normal !important;
    word-break: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.c-btn-primary,
a.c-btn-primary,
button.c-btn-primary,
[type="button"].c-btn-primary,
[type="submit"].c-btn-primary {
    background: linear-gradient(135deg, var(--c-coffee-amber) 0%, #854016 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(157, 78, 29, 0.35);
}

.c-btn-primary:hover,
a.c-btn-primary:hover,
button.c-btn-primary:hover,
[type="button"].c-btn-primary:hover,
[type="submit"].c-btn-primary:hover {
    background: linear-gradient(135deg, #854016 0%, #6D320E 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(157, 78, 29, 0.45);
}

.c-btn-secondary,
a.c-btn-secondary,
button.c-btn-secondary,
[type="button"].c-btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.c-btn-secondary:hover,
a.c-btn-secondary:hover,
button.c-btn-secondary:hover,
[type="button"].c-btn-secondary:hover {
    background: #ffffff !important;
    color: var(--c-coffee-dark) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}

.c-btn-outline,
a.c-btn-outline,
button.c-btn-outline,
[type="button"].c-btn-outline {
    background: transparent !important;
    color: var(--c-coffee-roast) !important;
    border: 2px solid var(--c-coffee-amber) !important;
}

.c-btn-outline:hover,
a.c-btn-outline:hover,
button.c-btn-outline:hover,
[type="button"].c-btn-outline:hover {
    background: var(--c-coffee-amber) !important;
    color: #ffffff !important;
}

.c-btn-sm,
a.c-btn-sm,
button.c-btn-sm,
[type="button"].c-btn-sm {
    padding: 10px 18px;
    font-size: 13.5px;
    border-radius: var(--c-radius-pill);
}

/* Badge */
.c-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--c-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
}

.c-badge-gold {
    background-color: #FAF0E2;
    color: #7E3F12;
    border: 1px solid rgba(157, 78, 29, 0.28);
}

.c-hero .c-badge-gold,
.c-hero-spotlight .c-badge-gold,
.c-b2b-section .c-badge-gold,
.c-calculator-section .c-badge-gold,
.c-calc-results .c-badge-gold,
.c-archive-hero .c-badge-gold,
.c-dark-panel .c-badge-gold,
#caphemoc-exit-modal .c-badge-gold {
    background-color: rgba(221, 161, 94, 0.22);
    color: #F5CBA0;
    border: 1px solid rgba(221, 161, 94, 0.45);
}

.c-badge-green {
    background-color: #E8F5E9;
    color: var(--c-accent-green);
}

/* Section Header */
.c-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.c-section-tag {
    color: var(--c-coffee-amber);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 8px;
}

.c-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--c-coffee-espresso);
    line-height: 1.25;
    margin: 0 0 12px;
}

.c-section-desc {
    color: var(--c-text-muted);
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto;
}

/* ==========================================================================
/* ==========================================================================
   HERO BANNER (2-COLUMN LAYOUT WITH HERO PRODUCT SPOTLIGHT)
   ========================================================================== */
.c-hero {
    position: relative;
    background: radial-gradient(circle at 80% 30%, #3B1F13 0%, var(--c-coffee-dark) 100%);
    color: #ffffff;
    padding: 72px 0 84px;
    overflow: hidden;
}

.c-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/phin-cafe.webp') no-repeat right 5% center / 480px;
    opacity: 0.1;
    pointer-events: none;
}

.c-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .c-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.c-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.c-hero-h1 {
    font-size: clamp(32px, 4.8vw, 52px);
    font-weight: 800;
    line-height: 1.18;
    margin: 16px 0 18px;
    color: #ffffff;
}

.c-hero-h1 span {
    color: var(--c-coffee-gold);
    font-style: italic;
    font-weight: 700;
}

.c-hero-p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 28px;
    line-height: 1.65;
}

.c-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

.c-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.c-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--c-coffee-gold);
    line-height: 1.1;
}

.c-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
}

/* Hero Product Spotlight Card */
.c-hero-spotlight {
    background: linear-gradient(155deg, rgba(43, 23, 14, 0.94) 0%, rgba(26, 14, 8, 0.96) 100%);
    border: 1.5px solid rgba(221, 161, 94, 0.55);
    border-radius: var(--c-radius-lg);
    padding: 26px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    position: relative;
}

.c-spotlight-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.c-spotlight-discount {
    background: #C62828;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--c-radius-pill);
    letter-spacing: 0.03em;
}

.c-spotlight-product {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--c-radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

@media (max-width: 520px) {
    .c-spotlight-product {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }
}

.c-spotlight-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #F4ECE1;
    border: 1px solid rgba(221, 161, 94, 0.4);
}

.c-spotlight-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

.c-spotlight-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-coffee-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.c-spotlight-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 8px;
}

.c-spotlight-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.c-spotlight-price {
    font-size: 26px;
    font-weight: 800;
    color: #F5C27C;
    line-height: 1.1;
}

.c-spotlight-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: line-through;
    font-weight: 600;
}

.c-spotlight-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.c-spotlight-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.c-spotlight-trust li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.c-spotlight-trust li span {
    color: #4ADE80;
    font-weight: 900;
    flex-shrink: 0;
}

.c-spotlight-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-spotlight-btn-main,
button.c-spotlight-btn-main {
    width: 100%;
    padding: 14px 20px !important;
    font-size: 15px !important;
    white-space: normal !important;
}

.c-spotlight-btn-sub,
button.c-spotlight-btn-sub {
    width: 100%;
    padding: 11px 16px !important;
    font-size: 13.5px !important;
    border: 1px dashed var(--c-coffee-gold) !important;
    color: #F5C27C !important;
    background: rgba(221, 161, 94, 0.12) !important;
    white-space: normal !important;
}

.c-spotlight-btn-sub:hover,
button.c-spotlight-btn-sub:hover {
    background: var(--c-coffee-gold) !important;
    color: var(--c-coffee-dark) !important;
}

.c-spotlight-ship-note {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.06);
    padding: 7px 10px;
    border-radius: var(--c-radius-sm);
}

/* ==========================================================================
   TRUST BAR / CAM KẾT VÀNG
   ========================================================================== */
.c-trust-strip {
    background-color: #ffffff;
    border-bottom: 1px solid var(--c-coffee-border);
    padding: 24px 0;
    box-shadow: var(--c-shadow-sm);
}

.c-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.c-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.c-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--c-coffee-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--c-coffee-amber);
    flex-shrink: 0;
}

.c-trust-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-coffee-espresso);
    margin: 0 0 2px;
}

.c-trust-sub {
    font-size: 12px;
    color: var(--c-text-muted);
    margin: 0;
}

/* ==========================================================================
   TASTE QUIZ (BỘ TRẮC NGHIỆM TÌM GU CÀ PHÊ 30 GIÂY)
   ========================================================================== */
.c-quiz-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--c-coffee-cream) 0%, #FFFFFF 100%);
}

.c-quiz-card {
    background: #ffffff;
    border-radius: var(--c-radius-lg);
    box-shadow: var(--c-shadow-md);
    border: 1px solid var(--c-coffee-border);
    padding: 40px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.c-quiz-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.c-quiz-step-bar {
    height: 6px;
    flex: 1;
    background-color: var(--c-coffee-border);
    border-radius: 4px;
    transition: var(--c-transition);
}

.c-quiz-step-bar.active {
    background-color: var(--c-coffee-amber);
}

.c-quiz-q-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-coffee-espresso);
    margin-bottom: 20px;
    text-align: center;
}

.c-quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.c-quiz-opt {
    border: 2px solid var(--c-coffee-border);
    border-radius: var(--c-radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: var(--c-coffee-cream);
    transition: var(--c-transition);
}

.c-quiz-opt:hover {
    border-color: var(--c-coffee-amber);
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--c-shadow-sm);
}

.c-quiz-opt.selected {
    border-color: var(--c-coffee-amber);
    background: rgba(198, 124, 78, 0.08);
}

.c-quiz-opt-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.c-quiz-opt-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-coffee-espresso);
    margin-bottom: 4px;
}

.c-quiz-opt-desc {
    font-size: 13px;
    color: var(--c-text-muted);
}

/* Quiz Result Box */
.c-quiz-result {
    display: none;
    background: var(--c-coffee-cream);
    border-radius: var(--c-radius-md);
    padding: 30px;
    border: 1px dashed var(--c-coffee-amber);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   PRODUCT CARDS & SENSORY BAR (6-SKU B2C VALUE LADDER: 3x2 DESKTOP, 2x3 TABLET, 1x6 MOBILE)
   ========================================================================== */
.c-products-section {
    padding: 80px 0;
}

.c-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
    width: 100%;
}

.c-product-grid.c-product-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .c-product-grid,
    .c-product-grid.c-product-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .c-product-grid,
    .c-product-grid.c-product-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.c-product-card {
    background: #ffffff;
    border-radius: var(--c-radius-lg);
    border: 1px solid var(--c-coffee-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--c-transition);
    position: relative;
    box-shadow: var(--c-shadow-sm);
}

.c-product-card-highlight {
    border: 2px solid var(--c-coffee-amber);
    box-shadow: 0 10px 28px rgba(198, 124, 78, 0.16);
}

.c-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--c-shadow-md);
    border-color: var(--c-coffee-amber);
}

.c-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(26, 14, 8, 0.22);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.c-product-badge.c-badge-gold {
    background-color: rgba(26, 14, 8, 0.88);
    color: #F5C27C;
    border: 1px solid rgba(221, 161, 94, 0.55);
}

.c-product-badge.c-badge-green {
    background-color: rgba(30, 102, 45, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.c-product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding-top: 100%;
    background-color: #F4ECE1;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid var(--c-coffee-border);
}

@supports (aspect-ratio: 1 / 1) {
    .c-product-media {
        padding-top: 0;
    }
}

.c-product-media > a {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.c-product-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    margin: 0 !important;
    transition: transform 0.5s ease;
}

.c-product-card:hover .c-product-media img {
    transform: scale(1.06);
}

.c-product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.c-product-origin {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-coffee-amber);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-product-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--c-coffee-espresso);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.c-product-name a {
    color: var(--c-coffee-espresso) !important;
    text-decoration: none !important;
}

.c-product-name a:hover {
    color: var(--c-coffee-amber) !important;
}

.c-product-notes {
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-muted);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 61px;
}

/* Sensory Flavor Rating Bar */
.c-sensory-bars {
    background: var(--c-coffee-cream);
    padding: 12px 14px;
    border-radius: var(--c-radius-sm);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.c-sensory-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--c-text-muted);
    gap: 8px;
}

.c-sensory-meter {
    width: 90px;
    height: 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.c-sensory-fill {
    height: 100%;
    background: var(--c-coffee-amber);
    border-radius: 3px;
}

/* Price & Buy Action Footer (Aligned at bottom of every card) */
.c-product-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--c-coffee-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.c-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #9D4E1D;
    line-height: 1.15;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.c-product-price span.old {
    font-size: 12px;
    color: var(--c-text-light);
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 0;
    margin-top: 3px;
    line-height: 1.1;
}

.c-product-footer .c-btn {
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: var(--c-radius-pill) !important;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-width: 108px;
}

/* ==========================================================================
   1-CLICK QUICK BUY MODAL (CHỐT ĐƠN 1-CHẠM + ORDER BUMP + FREESHIP BAR)
   ========================================================================== */
.c-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 10, 6, 0.72);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.c-modal-overlay.active {
    display: flex;
}

.c-modal-card {
    background: #ffffff;
    border-radius: var(--c-radius-lg);
    width: 100%;
    max-width: 540px;
    padding: 26px 28px;
    position: relative;
    box-shadow: var(--c-shadow-lg);
    max-height: 92vh;
    overflow-y: auto;
    animation: zoomIn 0.3s ease;
}

.c-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-coffee-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border: none;
}

.c-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--c-coffee-espresso);
    margin-bottom: 4px;
    padding-right: 28px;
}

.c-modal-desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-bottom: 16px;
}

/* Dynamic Freeship Progress Bar */
.c-freeship-box {
    background: #FFF8EE;
    border: 1px solid #F0D4B2;
    border-radius: var(--c-radius-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
    transition: var(--c-transition);
}

.c-freeship-box.is-freeship {
    background: #ECFDF5;
    border-color: #86EFAC;
}

.c-freeship-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--c-coffee-espresso);
    margin-bottom: 7px;
}

.c-freeship-box.is-freeship .c-freeship-text {
    color: #166534;
}

.c-freeship-track {
    width: 100%;
    height: 7px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.c-freeship-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-coffee-amber) 0%, #DDA15E 100%);
    border-radius: 99px;
    transition: width 0.35s ease, background 0.35s ease;
}

.c-freeship-box.is-freeship .c-freeship-fill {
    background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%);
}

/* 1-Click Order Bump Box */
.c-order-bump-box {
    background: linear-gradient(135deg, #FFFDF8 0%, #FFF5E5 100%);
    border: 2px dashed #C67C4E;
    border-radius: var(--c-radius-md);
    padding: 12px 14px;
    margin: 14px 0;
    transition: var(--c-transition);
}

.c-order-bump-box.checked {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #16A34A;
    border-style: solid;
}

.c-order-bump-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: var(--c-coffee-espresso);
}

.c-order-bump-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #C67C4E;
    cursor: pointer;
    flex-shrink: 0;
}

.c-order-bump-tip {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(198, 124, 78, 0.35);
    font-size: 12px;
    line-height: 1.45;
    color: #5C4332;
}

/* Order Summary Box */
.c-order-summary-box {
    background: var(--c-coffee-cream);
    border: 1px solid var(--c-coffee-border);
    border-radius: var(--c-radius-sm);
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.c-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--c-text-muted);
    gap: 8px;
}

.c-summary-row.c-summary-total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--c-coffee-border);
    font-size: 14px;
    font-weight: 800;
    color: var(--c-coffee-dark);
}

.c-summary-row.c-summary-total strong {
    font-size: 18px;
    color: #9D4E1D;
}

.c-form-group {
    margin-bottom: 12px;
}

.c-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-coffee-espresso);
    margin-bottom: 5px;
}

.c-form-input, .c-form-select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--c-coffee-border);
    border-radius: var(--c-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #FAFAFA;
    color: var(--c-text-main, #2B170E);
    transition: var(--c-transition);
    box-sizing: border-box;
}
.c-form-select option {
    color: #2B170E;
    background: #ffffff;
}

.c-form-input:focus, .c-form-select:focus {
    outline: none;
    border-color: var(--c-coffee-amber);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(198, 124, 78, 0.15);
}

.c-grind-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.c-grind-opt {
    border: 1px solid var(--c-coffee-border);
    border-radius: var(--c-radius-sm);
    min-height: 44px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--c-coffee-cream);
    transition: var(--c-transition);
}

.c-grind-opt.selected {
    border-color: var(--c-coffee-amber);
    background: var(--c-coffee-amber);
    color: #ffffff;
}

/* ==========================================================================
   B2B SECTION (DÀNH CHO CHỦ QUÁN & MUA SỈ)
   ========================================================================== */
.c-b2b-section {
    padding: 90px 0;
    background: radial-gradient(circle at 10% 20%, #30190F 0%, #150904 100%);
    color: #ffffff;
    position: relative;
}

.c-b2b-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.c-b2b-grid > * {
    min-width: 0;
}

.c-b2b-h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 20px;
}

.c-b2b-h2 span {
    color: var(--c-coffee-gold);
}

.c-b2b-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0;
}

.c-b2b-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.c-b2b-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-coffee-gold);
    color: var(--c-coffee-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 14px;
}

.c-b2b-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--c-radius-lg);
    padding: 36px;
}

/* ==========================================================================
   MOBILE STICKY BUY BAR
   ========================================================================== */
.c-btn,
button,
.c-grind-opt,
.c-cat-filter-btn,
.detail-opt-pill,
.pack-size-btn,
.qb-pack-btn,
.b2b-brew-pill {
    touch-action: manipulation;
}

.c-pack-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.qb-pack-btn {
    min-height: 46px;
    padding: 6px 4px;
    border: 1.5px solid var(--c-coffee-border);
    border-radius: var(--c-radius-sm);
    background: var(--c-coffee-cream);
    color: var(--c-coffee-espresso);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1.25;
    transition: transform 0.15s ease;
}

.qb-pack-btn strong {
    font-weight: 800;
    font-size: 12px;
}

.qb-pack-btn span {
    font-size: 11px;
    color: var(--c-coffee-amber);
    font-weight: 700;
}

.qb-pack-btn.active {
    border-color: var(--c-coffee-amber);
    background: #FFF4E6;
    box-shadow: 0 2px 8px rgba(198, 124, 78, 0.18);
}

.c-b2b-brew-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.b2b-brew-pill {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: var(--c-radius-sm);
    border: 1.5px solid rgba(221, 161, 94, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.15s ease;
}

.b2b-brew-pill.active {
    background: var(--c-coffee-amber);
    border-color: var(--c-coffee-gold);
    color: #ffffff;
}

@media (max-width: 480px) {
    .c-pack-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .c-b2b-brew-grid {
        grid-template-columns: 1fr;
    }
}

.c-sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--c-coffee-border);
    padding: 10px 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: space-between;
    transform: translateY(105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
}

@media (max-width: 768px) {
    .c-sticky-mobile-bar {
        display: flex;
    }
    .c-sticky-mobile-bar.visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    footer,
    .site-footer {
        padding-bottom: 84px !important;
    }
    .c-hero-spotlight,
    .c-product-badge,
    .c-b2b-card,
    .c-calc-card,
    .c-btn-secondary {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .c-b2b-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (ZALO / HOTLINE)
   ========================================================================== */
.c-floating-contacts {
    position: fixed;
    bottom: 84px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: var(--c-transition);
    position: relative;
}

.c-float-btn:hover {
    transform: scale(1.1);
}

.c-float-zalo {
    background: #0068FF;
}

.c-float-phone {
    background: #25D366;
}

.c-float-phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    z-index: -1;
    pointer-events: none;
    animation: phonePulse 2s ease-out infinite;
}

/* ==========================================================================
   LIVE RECENT ORDER TOAST (SOCIAL PROOF)
   ========================================================================== */
.c-order-toast {
    position: fixed;
    bottom: 24px;
    left: 20px;
    background: #ffffff;
    border-radius: var(--c-radius-md);
    box-shadow: var(--c-shadow-lg);
    border: 1px solid var(--c-coffee-border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 997;
    max-width: 340px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

@media (max-width: 768px) {
    .c-floating-contacts {
        bottom: 86px;
        right: 14px;
        gap: 10px;
    }
    .c-order-toast {
        bottom: 82px;
        left: 12px;
        right: 76px;
        max-width: calc(100vw - 88px);
    }
}

.c-order-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.c-toast-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--c-radius-sm);
    object-fit: cover;
    background: var(--c-coffee-cream);
}

.c-toast-info {
    font-size: 13px;
    line-height: 1.35;
}

.c-toast-name {
    font-weight: 700;
    color: var(--c-coffee-espresso);
}

.c-toast-time {
    font-size: 11px;
    color: var(--c-text-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes phonePulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* ==========================================================================
   INTERACTIVE TOOLS: B2B CALCULATOR & ROAST BATCH & PRODUCT DETAIL
   ========================================================================== */
.calc-bean-radio {
    transition: transform 0.2s ease;
}
.calc-bean-radio:hover, .calc-bean-radio.active {
    border-color: #DDA15E !important;
    background: rgba(221, 161, 94, 0.12) !important;
}

.batch-quick-pill {
    transition: transform 0.2s ease;
}
.batch-quick-pill:hover {
    background: var(--c-coffee-cream) !important;
    border-color: var(--c-coffee-amber) !important;
    color: var(--c-coffee-amber) !important;
}

.detail-opt-pill {
    transition: transform 0.2s ease;
}
.detail-opt-pill:hover {
    border-color: var(--c-coffee-amber) !important;
}

.pack-size-btn {
    transition: transform 0.2s ease;
}
.pack-size-btn:hover {
    border-color: var(--c-coffee-amber) !important;
}

/* ==========================================================================
   PHASE 2: BLOG E-E-A-T, TL;DR, IN-ARTICLE PRODUCT BOX & B2C CALCULATOR
   ========================================================================== */
@media (max-width: 991px) {
    .c-blog-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .c-blog-sidebar {
        position: static !important;
    }
}

@media (max-width: 600px) {
    .c-pack-selector-grid {
        grid-template-columns: 1fr !important;
    }
}

.c-blog-entry-content h2 {
    font-family: var(--c-font-serif);
    font-size: 24px;
    color: var(--c-coffee-espresso);
    margin: 32px 0 14px;
    line-height: 1.35;
    scroll-margin-top: 100px;
}

.c-blog-entry-content h3 {
    font-family: var(--c-font-serif);
    font-size: 20px;
    color: var(--c-coffee-dark);
    margin: 26px 0 12px;
    line-height: 1.4;
    scroll-margin-top: 100px;
}

.c-blog-entry-content p {
    margin-bottom: 18px;
}

.c-blog-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.c-blog-entry-content a {
    color: #9D4E1D;
    font-weight: 700;
    text-decoration: underline;
}

.c-blog-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.c-blog-pagination .page-numbers a,
.c-blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #EADBCE;
    background: #ffffff;
    color: #2B170E;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.c-blog-pagination .page-numbers .current {
    background: #9D4E1D;
    border-color: #9D4E1D;
    color: #ffffff;
}

.c-blog-toc-list a:hover {
    color: var(--c-coffee-amber) !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .c-blog-archive-grid {
        grid-template-columns: 1fr !important;
    }
}

