/* iDEA Lab CSS Design System - Premium Light Editorial Theme */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette - HSL & Hex */
    --clr-bg-body: #fafafa;
    --clr-bg-surface: #ffffff;
    --clr-bg-subtle: #f8fafc;
    
    /* Branding Colors (Matched to Logo) */
    --clr-primary: #005da6;       /* Deep Royal Blue */
    --clr-primary-rgb: 0, 93, 166;
    --clr-secondary: #f5ab16;     /* Golden Yellow */
    --clr-secondary-rgb: 245, 171, 22;
    --clr-dark: #0f172a;          /* Slate 900 / Dark Charcoal */
    --clr-border: #e2e8f0;        /* Clean light border */
    --clr-border-subtle: rgba(0, 93, 166, 0.05);
    
    /* Text Colors */
    --clr-text-main: #334155;     /* Slate 700 - Soft body text */
    --clr-text-heading: #0f172a;  /* Slate 900 - Sharp heading text */
    --clr-text-muted: #64748b;    /* Slate 500 - Muted metadata */
    --clr-text-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Outfit', 'Anuphan', sans-serif;
    --font-body: 'Anuphan', 'Outfit', sans-serif;

    /* Transitions & Physics */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-micro: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Global Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--clr-bg-body);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 0;
}

/* Custom Web Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bg-body);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* Typography & Layout Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--clr-text-heading);
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--clr-primary);
    display: inline-block;
    position: relative;
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border-subtle);
    padding: 0.8rem 0;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-micro);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: var(--transition-micro);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--clr-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text-heading);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-text-white);
    box-shadow: 0 4px 12px rgba(0, 93, 166, 0.15);
}

.btn-primary:hover {
    background: #004d8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 93, 166, 0.25);
}

.btn-secondary {
    background: var(--clr-bg-surface);
    color: var(--clr-primary);
    border: 1px solid rgba(0, 93, 166, 0.2);
}

.btn-secondary:hover {
    border-color: var(--clr-primary);
    background: rgba(0, 93, 166, 0.02);
    transform: translateY(-2px);
}

.btn-card-order {
    background: var(--clr-bg-subtle);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.product-card:hover .btn-card-order {
    background: var(--clr-primary);
    color: var(--clr-text-white);
    border-color: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(0, 93, 166, 0.15);
}

.btn-card-order:hover {
    background: #004d8a !important;
    border-color: #004d8a !important;
}

/* Hero Section */
.hero-section {
    padding: 10rem 2rem 6rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--clr-text-main);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-card-editorial {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    overflow: hidden;
    padding: 1.2rem;
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.main-card-editorial:hover {
    box-shadow: 0 20px 40px rgba(0, 93, 166, 0.06);
    transform: translateY(-4px);
}

.hero-showcase-img {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    background: var(--clr-bg-subtle);
    transition: opacity 0.3s ease;
}

.card-details {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.card-badge {
    align-self: flex-start;
    background: rgba(0, 93, 166, 0.08);
    color: var(--clr-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.card-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

/* Catalog Section */
.catalog-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
}

.section-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

/* Minimalist Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-micro);
}

.tab-btn:hover {
    color: var(--clr-primary);
}

.tab-btn.active {
    background: var(--clr-bg-surface);
    color: var(--clr-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Product Grid - 3 Columns Editorial */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    width: 100%;
}

.product-card {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border-subtle);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 93, 166, 0.01);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 93, 166, 0.12);
    box-shadow: 0 14px 30px rgba(0, 93, 166, 0.04), 0 2px 4px rgba(0, 0, 0, 0.01);
}

.product-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--clr-bg-subtle);
    aspect-ratio: 1/1;
    border: 1px solid #f1f5f9;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.card-tag {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: var(--clr-secondary);
    color: var(--clr-dark);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-info {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--clr-text-heading);
}

.product-desc {
    color: var(--clr-text-main);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.8rem;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--clr-primary);
}

.product-fit {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

/* About / Standard Section */
.about-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #f1f5f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: center;
}

.about-image-side {
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: linear-gradient(135deg, rgba(0, 93, 166, 0.03), rgba(245, 171, 22, 0.03));
    border: 1px solid var(--clr-border);
    overflow: hidden;
}

.about-image-side::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 93, 166, 0.05) 0%, transparent 60%);
    z-index: 0;
}

.about-editorial-box {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    z-index: 1;
    position: relative;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--clr-primary);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.brand-head {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--clr-text-heading);
}

.brand-desc {
    font-size: 0.9rem;
    color: var(--clr-text-main);
    line-height: 1.6;
}

.about-content-side {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-text {
    font-size: 1rem;
    color: var(--clr-text-main);
    line-height: 1.7;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.about-features strong {
    color: var(--clr-text-heading);
}

.feature-check {
    color: var(--clr-primary);
    margin-top: 0.2rem;
    background: rgba(0, 93, 166, 0.08);
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact / Call To Action */
.contact-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-box {
    padding: 4.5rem 4rem;
    text-align: center;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.contact-subtitle {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 3.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.order-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.channel-card {
    background: var(--clr-bg-subtle);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-decoration: none;
    color: var(--clr-text-heading);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.channel-card:hover {
    background: var(--clr-bg-surface);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

.channel-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.channel-card:hover .channel-icon {
    transform: scale(1.1);
}

.line-color { color: #06C755; }
.shopee-color { color: #EE4D2D; }
.facebook-color { color: #1877F2; }

/* Custom channel card hovers */
#channel-line:hover { border-color: #06C755; }
#channel-shopee:hover { border-color: #EE4D2D; }
#channel-facebook:hover { border-color: #1877F2; }

.channel-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.channel-card p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--clr-border);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--clr-bg-subtle);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-text-heading);
}

.footer-note {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-showcase {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image-side {
        height: 320px;
    }
    
    .order-channels {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .nav-menu {
        display: none; /* Controlled via mobile JS toggle */
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-header {
        padding: 0.6rem 0;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 0.2rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }
}
