/* Modern Styles for Gaohouse Theme */

:root {
    --primary: #28b350;
    /* Green from Gaohouse logo */
    --primary-light: #3cd368;
    --primary-dark: #1e8a3c;
    --secondary: #ed1c24;
    --accent: #ed1c24;
    /* Red for hover/active states */
    --accent-light: #ff474f;
    --accent-dark: #b8151b;
    --dark: #0B1224;
    --muted: rgba(15, 23, 42, 0.68);
    --gray-light: #F8FAFC;
    --white: #FFFFFF;

    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --stroke: rgba(2, 6, 23, 0.08);
    --stroke-strong: rgba(2, 6, 23, 0.12);

    --shadow-soft: 0 18px 60px rgba(2, 6, 23, 0.08);
    --shadow-card: 0 14px 36px rgba(2, 6, 23, 0.10);
    --shadow-float: 0 28px 72px rgba(2, 6, 23, 0.14);

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--dark);
    background:
        radial-gradient(900px 500px at 10% -5%, rgba(255, 90, 0, 0.18) 0%, rgba(255, 90, 0, 0.0) 60%),
        radial-gradient(900px 500px at 95% 10%, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.0) 60%),
        radial-gradient(850px 520px at 50% 120%, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0.0) 60%),
        linear-gradient(180deg, #ffffff 0%, var(--gray-light) 45%, #ffffff 100%);
    background-color: var(--gray-light);
}

.container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Better defaults */
img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(255, 90, 0, 0.22);
}

/* Headings */
.display-font {
    font-family: 'Plus Jakarta Sans', 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

/* Topbar + Header */
.site-topbar {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.site-header {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
    transition: background 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.site-header.is-scrolled {
    background: var(--surface-strong);
    border-bottom-color: rgba(2, 6, 23, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.search-pill {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

.search-pill:focus-within {
    border-color: rgba(255, 90, 0, 0.55);
    box-shadow: 0 14px 34px rgba(255, 90, 0, 0.14);
}



/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #FF2A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Surfaces */
.surface {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.surface-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.surface-card:hover {
    box-shadow: var(--shadow-float);
}

/* Navigation */
.main-menu a {
    position: relative;
    font-weight: 600;
}

@media (min-width: 1200px) {
    .main-menu {
        font-size: 16px !important;
    }
}

.main-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu>li:hover>a::after,
.main-menu>li>a[aria-current="page"]::after {
    width: 100%;
}

.sub-menu {
    display: block;
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 50;
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: none;
    overflow: hidden;
    padding: 0 !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.product-card .product-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

/* Remove inner image container border & gap */
.product-card>div:first-child {
    border: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Product card info padding */
.product-card .variant-btn,
.product-card h3,
.product-card>.flex {
    padding-left: 8px;
    padding-right: 8px;
}

.product-card>div:not(:first-child) {
    padding-left: 10px;
    padding-right: 10px;
}

.product-card>div:last-child {
    padding-bottom: 10px;
}

/* Mobile menu */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 25px -5px rgba(0, 0, 0, 0.1);
}

.menu-open {
    transform: translateX(0) !important;
}

/* Tabs */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners-marquee-track {
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
    gap: 4rem;
}

.partners-marquee-wrapper:hover .partners-marquee-track {
    animation-play-state: paused;
}

.partner-logo-item {
    transition: all 0.4s ease;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.partner-logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 90, 0, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FF2A00 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 0, 0.4);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.12);
    color: rgba(15, 23, 42, 0.92);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
}

.btn-soft:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 90, 0, 0.30);
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.14);
}

/* Badges & Tags */
.badge {
    background: rgba(255, 90, 0, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glowing Elements */
.glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 90, 0, 0.4);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Section titles */
.section-kicker {
    color: rgba(255, 90, 0, 0.95);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.section-title {
    font-family: 'Plus Jakarta Sans', 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Swiper Continuous Scroll */
.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Category Swiper - full bleed images */
.categorySwiper .swiper-slide a {
    display: block;
    border-radius: 0;
}

.categorySwiper .swiper-slide img {
    border-radius: 0;
}

/* Hide scrollbar for mobile horizontal scroll */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ============================================
   MOBILE SPACING OVERRIDE — Gap = 5px
   Chỉ áp dụng cho mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {

    /* --- Gap & Space (10px là vừa đẹp cho mobile) --- */
    [class*="gap-"] {
        gap: 5px !important;
    }

    [class*="space-x-"]>:not([hidden])~:not([hidden]) {
        margin-left: 10px !important;
    }

    [class*="space-y-"]>:not([hidden])~:not([hidden]) {
        margin-top: 10px !important;
    }

    /* --- Container padding (nới rộng ra mép 1 chút) --- */
    .container-custom {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* --- Section spacing (30px cho thoáng mục) --- */
    section[class*="py-"] {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    /* --- Section title (22px cho dễ đọc, ko quá to) --- */
    section h2,
    .section-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    /* --- Margin nội bộ (10-15px tùy cấp độ) --- */
    .mb-6,
    .mb-8,
    .mb-10,
    .mb-12,
    .mb-16,
    .mb-20 {
        margin-bottom: 15px !important;
    }

    .mt-6,
    .mt-8,
    .mt-10,
    .mt-12,
    .mt-16,
    .mt-20 {
        margin-top: 15px !important;
    }

    /* --- Padding nội bộ các block lớn --- */
    .p-6,
    .p-8,
    .p-10,
    .p-12,
    .p-16,
    .p-20 {
        padding: 15px !important;
    }
}