/* ==========================================================================
   GICACO LUXURY TEA THEME - CORE DESIGN SYSTEM & BASE STYLES
   ========================================================================== */

:root {
    /* Color Palette: Guava Leaf Green, Cream & Warm Gold */
    --gc-green-deep: #163824;
    --gc-green-primary: #255234;
    --gc-green-medium: #38704A;
    --gc-green-light: #528F66;
    --gc-green-mint: #7BB38B;
    --gc-green-pale: #EDF5F0;

    --gc-cream-bg: #FAF7F2;
    --gc-cream-surface: #FFFFFF;
    --gc-cream-card: #F4EFE6;
    --gc-cream-border: #E5DEC3;

    --gc-gold-primary: #C99A4E;
    --gc-gold-hover: #B5853B;
    --gc-gold-light: #F2E4C9;

    --gc-text-headline: #18231C;
    --gc-text-body: #3E4D43;
    --gc-text-muted: #6B7C71;
    --gc-text-light: #FAF7F2;

    --gc-border-light: rgba(37, 82, 52, 0.12);
    --gc-border-cream: rgba(201, 154, 78, 0.25);

    /* Shadows */
    --gc-shadow-sm: 0 2px 8px rgba(22, 56, 36, 0.04);
    --gc-shadow-md: 0 8px 24px rgba(22, 56, 36, 0.08);
    --gc-shadow-lg: 0 16px 40px rgba(22, 56, 36, 0.12);
    --gc-shadow-card: 0 10px 30px -5px rgba(22, 56, 36, 0.06), 0 0 0 1px rgba(22, 56, 36, 0.05);

    /* Transitions & Curves */
    --gc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --gc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --gc-transition: all 0.3s var(--gc-ease-out);

    /* Typography */
    --gc-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --gc-font-serif: 'Playfair Display', Georgia, serif;

    /* Container Max Width */
    --gc-container-max: 1240px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--gc-font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gc-text-body);
    background-color: var(--gc-cream-bg);
    overflow-x: hidden;
    position: relative;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gc-green-primary);
    text-decoration: none;
    transition: var(--gc-transition);
}

a:hover {
    color: var(--gc-gold-primary);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Typography Scales */
h1, h2, h3, h4, h5, h6 {
    color: var(--gc-text-headline);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Container */
.container {
    width: 100%;
    max-width: var(--gc-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.text-center { text-align: center; }
.text-white { color: #FFFFFF !important; }
.text-cream { color: var(--gc-cream-card) !important; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* Top Promo Bar */
.top-promo-bar {
    background-color: var(--gc-green-deep);
    color: var(--gc-text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.promo-text {
    font-weight: 500;
    text-align: center;
    padding-right: 24px;
}

.promo-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gc-text-light);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.promo-close-btn:hover {
    opacity: 1;
}

/* Main Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, transform 0.35s ease;
    padding: 20px 0;
}

/* Has top promo bar offset */
body:not(.promo-closed) .site-header {
    top: 38px;
}

.site-header-transparent {
    background-color: rgba(250, 247, 242, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(37, 82, 52, 0.06);
}

.site-header.is-sticky {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(22, 56, 36, 0.08);
    padding: 12px 0;
    border-bottom: 1px solid rgba(37, 82, 52, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Branding Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.custom-logo-link:hover img {
    transform: scale(1.02);
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu li a {
    color: var(--gc-text-headline);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: color 0.25s;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gc-gold-primary);
    transition: width 0.3s var(--gc-ease-out);
    border-radius: 2px;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--gc-green-primary);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 100%;
}

/* Header Utilities */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.util-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 82, 52, 0.05);
    border: 1px solid rgba(37, 82, 52, 0.08);
    color: var(--gc-green-deep);
    cursor: pointer;
    position: relative;
    transition: var(--gc-transition);
}

.util-btn:hover {
    background-color: var(--gc-green-pale);
    color: var(--gc-green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(22, 56, 36, 0.08);
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--gc-gold-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(201, 154, 78, 0.4);
}

.header-hotline-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--gc-green-pale);
    border: 1px solid var(--gc-green-light);
    color: var(--gc-green-deep);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    transition: var(--gc-transition);
}

.header-hotline-pill:hover {
    background-color: var(--gc-green-primary);
    color: #FFFFFF;
    border-color: var(--gc-green-primary);
    transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gc-green-deep);
    border-radius: 2px;
    transition: var(--gc-transition);
}

/* ==========================================================================
   OFF-CANVAS DRAWERS (MOBILE NAV & MINI-CART)
   ========================================================================== */

.site-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(22, 56, 36, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background-color: #FFFFFF;
    z-index: 1100;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.35s var(--gc-ease-out);
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gc-border-light);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--gc-text-muted);
    cursor: pointer;
    padding: 4px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-nav-list li {
    margin-bottom: 16px;
}

.mobile-nav-list li a {
    color: var(--gc-text-headline);
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 6px 0;
    border-bottom: 1px dashed var(--gc-border-light);
}

.drawer-footer-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gc-border-light);
    font-size: 0.9rem;
}

.drawer-footer-contact p {
    margin-bottom: 8px;
}

.mobile-cta-btn {
    margin-top: 16px;
}

/* Mini-Cart Drawer (Slide from Right) */
.mini-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background-color: #FFFFFF;
    z-index: 1100;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s var(--gc-ease-out);
    display: flex;
    flex-direction: column;
}

.mini-cart-drawer.is-open {
    transform: translateX(0);
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: var(--gc-cream-bg);
    border-bottom: 1px solid var(--gc-border-light);
}

.mini-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-cart-title h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(22, 56, 36, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 620px;
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s var(--gc-ease-out);
}

.search-modal.is-open .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gc-text-muted);
}

.search-modal-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.search-form-lux {
    display: flex;
    gap: 10px;
}

.search-field-lux {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gc-border-light);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s;
}

.search-field-lux:focus {
    border-color: var(--gc-green-primary);
}

.search-submit-lux {
    padding: 14px 28px;
    background-color: var(--gc-green-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s;
}

.search-submit-lux:hover {
    background-color: var(--gc-gold-primary);
}

.search-suggestions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gc-text-muted);
}

.search-suggestions a {
    background-color: var(--gc-cream-bg);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--gc-green-deep);
}

.search-suggestions a:hover {
    background-color: var(--gc-green-pale);
    color: var(--gc-green-primary);
}

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

.site-footer {
    background-color: #13271A;
    color: #CFD9D2;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Top Guarantee Band */
.footer-guarantee-band {
    background-color: #173221;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 0;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(201, 154, 78, 0.3);
}

.guarantee-text h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 0.85rem;
    color: #A3B5AA;
    line-height: 1.4;
}

/* Main Footer Columns */
.footer-main {
    padding: 60px 0 40px;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.3fr;
    gap: 40px;
}

.footer-logo img {
    height: 44px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #B4C4B9;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--gc-transition);
}

.footer-socials a:hover {
    background-color: var(--gc-gold-primary);
    transform: translateY(-3px);
}

.zalo-icon-badge {
    font-size: 0.8rem;
    font-weight: 800;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--gc-gold-primary);
}

.footer-menu-list li {
    margin-bottom: 12px;
}

.footer-menu-list li a {
    color: #A8BDB0;
    font-size: 0.9rem;
    transition: var(--gc-transition);
    display: inline-block;
}

.footer-menu-list li a:hover {
    color: var(--gc-gold-primary);
    transform: translateX(4px);
}

.newsletter-sub {
    font-size: 0.85rem;
    color: #A8BDB0;
    margin-bottom: 16px;
    line-height: 1.5;
}

.newsletter-input-group {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px 0 0 25px;
    color: #FFFFFF;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--gc-gold-primary);
}

.newsletter-submit-btn {
    background-color: var(--gc-gold-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.25s;
}

.newsletter-submit-btn:hover {
    background-color: var(--gc-gold-hover);
}

.footer-direct-contact {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #B4C4B9;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.footer-direct-contact a {
    color: var(--gc-gold-primary);
    font-weight: 700;
}

/* Legal & Medical Disclaimer Bar */
.footer-disclaimer-bar {
    background-color: #0E1D13;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: #7D8F83;
    line-height: 1.6;
    text-align: center;
}

.disclaimer-text strong {
    color: #A8BDB0;
}

/* Footer Bottom Copyright */
.footer-bottom {
    padding: 22px 0;
    background-color: #0B170F;
    font-size: 0.85rem;
    color: #7D8F83;
}

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

.payment-methods-icons {
    font-size: 0.8rem;
    color: #92A398;
}

/* Back To Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--gc-green-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 6px 18px rgba(22, 56, 36, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--gc-transition);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gc-gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 154, 78, 0.35);
}
