/* ==========================================
   THUMB TOE THAILAND DESIGN SYSTEM & VARIABLES
   ========================================== */

:root {
    /* Backgrounds & Text */
    --color-bg: #fffbf5;            /* Soft creamy white background */
    --color-card-bg: #ffffff;
    --color-text-main: #594a42;     /* Soft warm dark brown (cute, not harsh black) */
    --color-text-muted: #9c8e86;    /* Warm beige-gray */
    
    /* Pastel Theme Palette */
    --color-pastel-pink: #ffd6e4;
    --color-pastel-mint: #d4f3e6;
    --color-pastel-yellow: #fff3c4;
    --color-pastel-purple: #e9dfff;
    --color-pastel-blue: #d6efff;
    
    /* Action & Accents */
    --color-accent: #f48fb1;        /* Soft sweet pink */
    --color-accent-hover: #e57399;  /* Darker sweet pink */
    --color-accent-light: #fce4ec;  /* Very light pink */
    --color-success: #81c784;       /* Soft green */
    --color-danger: #ff8a80;        /* Soft red */
    
    --color-border: #f4eae4;
    --color-glass-bg: rgba(255, 255, 255, 0.85);
    --color-glass-border: rgba(244, 234, 228, 0.6);
    
    --font-main: 'Outfit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 4px 14px rgba(89, 74, 66, 0.05);
    --shadow-md: 0 10px 30px rgba(89, 74, 66, 0.08);
    --shadow-lg: 0 20px 40px rgba(89, 74, 66, 0.12);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

/* ==========================================
   BASE & TYPOGRAPHY
   ========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Aligns section top to solid navbar bottom */
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   CONTAINERS & UTILITIES
   ========================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }
    .section-title {
        font-size: 1.85rem;
    }
}

/* ==========================================
   NAVIGATION BAR (GLASSMORPHISM)
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--color-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(89, 74, 66, 0.05);
    transition: var(--transition-smooth);
}

.nav-utility-row {
    background-color: transparent;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
}

.utility-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.utility-container a {
    transition: var(--transition-fast);
}

.utility-container a:hover {
    color: var(--color-accent);
}

.nav-container {
    height: 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-main);
    text-decoration: none;
    line-height: 1;
    transition: var(--transition-fast);
}

.logo-centered:hover {
    color: var(--color-accent);
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.85;
}

.nav-item:hover {
    opacity: 1;
    color: var(--color-accent);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-highlight {
    background-color: var(--color-accent-light);
    color: var(--color-accent-hover) !important;
    font-weight: 500;
    padding: 0.4rem 1rem !important;
    border-radius: var(--radius-sm);
}

.nav-highlight::after {
    display: none;
}

.nav-actions-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.search-box-mini {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(244, 234, 228, 0.5);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    transition: var(--transition-fast);
}

.search-box-mini:focus-within {
    background: rgba(244, 234, 228, 0.9);
    box-shadow: 0 0 0 2px rgba(244, 143, 177, 0.2);
}

.search-box-mini input {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    width: 120px;
    color: var(--color-text-main);
}

.search-box-mini input::placeholder {
    color: var(--color-text-muted);
}

.search-box-mini i {
    color: var(--color-text-main);
    font-size: 0.9rem;
    cursor: pointer;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text-main);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.icon-btn .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-success);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Menu button (Hamburger) - hidden by default on desktop */
.menu-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text-main);
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(244, 234, 228, 0.4);
    transition: var(--transition-fast);
}

.menu-btn:hover, .menu-btn:active {
    background-color: var(--color-accent-light);
    color: var(--color-accent-hover);
}

/* Mobile Responsive Navigation styling */
@media (max-width: 768px) {
    /* Hide the large floating decorative background flowers on mobile to prevent any clutter */
    body {
        background-image: none !important;
    }
    .menu-btn {
        display: flex; /* Shown on mobile */
    }

    /* Restructure the header on mobile to fit screen beautifully */
    .nav-container {
        height: 70px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .logo-centered img {
        height: 32px !important; /* Elegant smaller logo on mobile */
    }

    /* Hide the navbar search box on mobile to prevent extreme clutter */
    .search-box-mini {
        display: none !important;
    }

    /* Style language switch to match the hamburger button */
    .lang-switch-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: rgba(244, 234, 228, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition-fast);
    }

    .lang-switch-btn:hover, .lang-switch-btn:active {
        background-color: var(--color-accent-light);
        color: var(--color-accent-hover);
    }

    .nav-actions-right {
        gap: 0.6rem;
    }

    /* Frosted glass premium mobile navigation menu */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 251, 245, 0.96); /* Pastel background matching theme */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        border-bottom: 2px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(89, 74, 66, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 99;
    }

    .nav-links.open {
        max-height: 240px; /* Perfect height for 3 links */
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 1.1rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--color-text-main);
        border-bottom: 1px solid rgba(244, 234, 228, 0.5);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .nav-item:hover, .nav-item:active {
        background-color: var(--color-accent-light);
        color: var(--color-accent-hover);
    }

    .nav-item::after {
        display: none;
    }

    .nav-highlight {
        border-radius: 0;
        background-color: var(--color-accent-light);
    }

    .nav-actions {
        display: block;
    }
}

/* ==========================================
   PASTEL SHOP AWNING (AT BOTTOM OF NAVBAR)
   ========================================== */
.shop-awning {
    position: relative;
    width: 100%;
    height: 15px; /* Thinner stripe since it's part of navbar now */
    margin-top: 0; /* No margin, it's directly below the nav-container */
    z-index: 80;
    background: repeating-linear-gradient(
        to right,
        var(--color-pastel-pink) 0, var(--color-pastel-pink) 40px,
        var(--color-pastel-mint) 40px, var(--color-pastel-mint) 80px,
        var(--color-pastel-yellow) 80px, var(--color-pastel-yellow) 120px,
        var(--color-pastel-purple) 120px, var(--color-pastel-purple) 160px,
        var(--color-pastel-blue) 160px, var(--color-pastel-blue) 200px
    );
}

/* The hanging scallops */
.shop-awning::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: inherit;
    -webkit-mask-image: radial-gradient(circle at 20px 0, black 20px, transparent 20.5px);
    -webkit-mask-size: 40px 20px;
    -webkit-mask-repeat: repeat-x;
    mask-image: radial-gradient(circle at 20px 0, black 20px, transparent 20.5px);
    mask-size: 40px 20px;
    mask-repeat: repeat-x;
}

/* ==========================================
   HERO SHOWCASE SLIDER
   ========================================== */

.hero-slider {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    /* margin-top: 70px; removed, awning is here now */
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 10%;
    color: #ffffff;
    padding: 2rem;
    text-shadow: 0 4px 12px rgba(26, 26, 46, 0.15);
}

.slide-badge {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.slide h2 {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.slide p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn-outline-white {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--color-text-main);
    border-color: #ffffff;
}

/* Arrows controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

/* Dots page indicator */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
    }
    .slide {
        align-items: flex-end;
    }
    .slide::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; width: 100%; height: 75%;
        background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        z-index: 1;
        pointer-events: none;
    }
    .slide h2 {
        font-size: 2.1rem;
    }
    .slide p {
        font-size: 1.05rem;
    }
    .slide-content {
        margin-left: 0;
        padding: 2rem 1.5rem 4rem 1.5rem;
        width: 100%;
        text-align: center;
        background: transparent;
    }
    .slider-arrow {
        display: none; /* Hide arrows on mobile for swipe space */
    }
}

/* ==========================================
   BRAND PHILOSOPHY SECTION
   ========================================== */

.brand-about {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-pink-light) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.features-mini {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feat-item {
    display: flex;
    gap: 1.25rem;
}

.feat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-card-bg);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.feat-item h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.feat-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.about-visual {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-visual:hover .about-img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-img {
        height: 300px;
    }
}

/* ==========================================
   PRODUCT CATALOG & CARDS
   ========================================== */

.catalog-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.catalog-subtext {
    color: var(--color-text-muted);
}

/* Filter Bar styles */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tab-btn.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46, 158, 92, 0.15);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        width: 100%;
    }
}

/* Products Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Product Card Design */
.product-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background-color: var(--color-accent-light);
    aspect-ratio: 4 / 3;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(44, 42, 41, 0.8);
    backdrop-filter: blur(5px);
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.product-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(235, 230, 223, 0.5);
    padding-top: 1rem;
}

.btn-details {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-card:hover .btn-details {
    color: var(--color-accent-hover);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* ==========================================
   DISCOUNT / SALE PRICE SYSTEM
   ========================================== */

/* Discount ribbon in top-right of product card */
.discount-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #e74c8b, #F472B6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem 0.3rem 0.9rem;
    border-bottom-left-radius: 10px;
    z-index: 3;
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    text-transform: uppercase;
    box-shadow: -2px 2px 8px rgba(244,114,182,0.35);
    animation: ribbonPulse 2.5s ease-in-out infinite;
}

@keyframes ribbonPulse {
    0%, 100% { box-shadow: -2px 2px 8px rgba(244,114,182,0.35); }
    50%       { box-shadow: -2px 2px 18px rgba(244,114,182,0.6); }
}

/* Sale card glow border */
.product-card.on-sale {
    border-color: rgba(244,114,182,0.25);
}

.product-card.on-sale:hover {
    border-color: rgba(244,114,182,0.5);
    box-shadow: 0 8px 30px rgba(244,114,182,0.12);
}

/* Price wrapper when discount is active */
.price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.price-original {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(244,114,182,0.5);
    text-decoration-thickness: 1.5px;
    letter-spacing: 0.01em;
}

.price-sale {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c8b;
    letter-spacing: -0.01em;
    line-height: 1;
}

/* "ลด X%" chip next to sale price */
.price-save-chip {
    display: inline-block;
    background: rgba(244,114,182,0.1);
    color: #e74c8b;
    border: 1px solid rgba(244,114,182,0.25);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.04em;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Modal sale price display */
.modal-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.modal-price-original {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(244,114,182,0.5);
}

.modal-price-sale {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e74c8b;
    letter-spacing: -0.02em;
}

.modal-discount-badge {
    background: linear-gradient(135deg, #e74c8b, #F472B6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Expo discount banner (top of catalog section) */
.expo-discount-banner {
    background-color: var(--color-accent-light);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.expo-discount-banner::before {
    content: none;
}

.expo-discount-banner::after {
    content: none;
}

.expo-banner-icon {
    display: none;
}

.expo-banner-text {
    flex: 1;
    padding: 1rem 1.5rem;
}

.expo-banner-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.expo-banner-desc {
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 400;
    letter-spacing: 0;
}

.expo-banner-divider {
    display: none;
}

.expo-banner-pct {
    background: var(--color-accent-light);
    border-left: 1px solid var(--color-border);
    color: var(--color-accent-hover);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    -webkit-background-clip: unset;
}

.expo-banner-pct span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-left: 2px;
    -webkit-text-fill-color: unset;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}


/* ==========================================
   EVENT EXCLUSIVE SECTION & COUPON CARD
   ========================================== */

.event-section {
    background-color: var(--color-card-bg);
}

.event-card {
    background: linear-gradient(135deg, var(--color-pastel-pink) 0%, var(--color-pastel-purple) 100%);
    color: var(--color-text-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    border: 4px dashed rgba(255, 255, 255, 0.5);
}

.event-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(46, 158, 92, 0.15) 0%, rgba(244, 114, 182, 0.1) 70%);
    pointer-events: none;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid #ffffff;
    color: var(--color-accent-hover);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.event-info h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.event-info p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.event-perks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perk {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.perk i {
    color: var(--color-accent);
}

/* Event Action Box (Form / Result Container) */
.event-action-box {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.event-action-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-subtext {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(46, 158, 92, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.3);
}

/* Coupon/Voucher Box Styling */
.coupon-voucher {
    background-color: var(--color-card-bg);
    border: 2px dashed var(--color-accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: scaleUp 0.4s ease-out;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.voucher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.voucher-header h4 {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.voucher-badge {
    background-color: var(--color-accent-light);
    color: var(--color-accent-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.voucher-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.voucher-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.code-box {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.code-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.code-box strong {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-text-main);
}

.copy-code-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.copy-code-btn:hover {
    color: var(--color-accent);
}

.voucher-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
}

.voucher-notes {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.voucher-notes strong {
    color: var(--color-text-main);
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .event-card {
        padding: 2.5rem;
    }
    .event-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .event-card {
        padding: 1.5rem 1rem;
    }
    .event-action-box {
        padding: 1.5rem 1rem;
    }
    .voucher-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================
   INTERACTIVE MODAL DIALOGS
   ========================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    background-color: var(--color-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpModal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(26, 26, 46, 0.05);
    border: none;
    font-size: 1.8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(26, 26, 46, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Grid Content */
.modal-grid {
    display: flex;
    min-height: 450px;
    flex: 1;
    min-height: 0;
}

.modal-visual {
    position: relative;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    flex: 0 0 55%;
    width: 55%;
    aspect-ratio: 1 / 1;
}

.modal-visual img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
    display: block;
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-visual .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-text-main);
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
}

.modal-visual .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.modal-visual .slider-arrow-left {
    left: 1rem;
}

.modal-visual .slider-arrow-right {
    right: 1rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 0;
    flex: 1; /* Stretch to fill the remaining 45% space of the modal container! */
}

.modal-body-content {
    padding: 3rem;
    padding-right: 3.5rem; /* Beautiful padding to give safe space for Close X button and keep scrollbar perfectly flush with the right edge! */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Premium Minimalist Scrollbar for details panel */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 46, 0.15);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 26, 46, 0.3);
}

.modal-body .product-badge {
    position: static;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.modal-body h3 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.modal-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.spec-list {
    margin-bottom: 2rem;
    border-top: 1px solid var(--color-border);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.spec-label {
    font-weight: 500;
    color: var(--color-text-main);
}

.spec-value {
    color: var(--color-text-muted);
    text-align: right;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    flex-grow: 1;
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--color-text-main);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-grid {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .modal-visual {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-height: 50vh !important;
    }
    .modal-visual img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 0.75rem !important;
        box-sizing: border-box !important;
    }
    .modal-body {
        width: 100% !important;
        padding: 0 !important;
        overflow-y: visible !important;
    }
    .modal-body-content {
        padding: 2.5rem 1.5rem !important;
    }
    .modal-container {
        width: 95%;
        overflow-y: auto !important;
        display: block !important;
    }
}

/* ==========================================
   STAFF PORTAL SPECIFIC STYLING
   ========================================== */

.staff-modal .modal-container {
    max-width: 650px;
    padding: 2.5rem;
}

.staff-modal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pinSection {
    text-align: center;
    padding: 1rem 0;
}

#pinSection p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

#pinSection input {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.25rem auto;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.error-msg {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Leads Management Panel */
.leads-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.btn-success {
    background-color: var(--color-success);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-danger:hover {
    opacity: 0.9;
}

.leads-table-container {
    overflow-x: auto;
    max-height: 400px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

#leadsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

#leadsTable th, #leadsTable td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

#leadsTable th {
    background-color: var(--color-accent-light);
    color: var(--color-text-main);
    font-weight: 600;
    position: sticky;
    top: 0;
}

#leadsTable tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   FOOTER DESIGN
   ========================================== */

.footer {
    background-color: var(--color-accent-light);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.footer-links h4, .footer-contact h4 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--color-border);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.btn-staff-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-staff-link:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================
   LANGUAGE SWITCHER BUTTON
   ========================================== */
.lang-switch-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-switch-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}

/* ==========================================
   MOBILE MENU GLASSMORPHISM OVERLAY
   ========================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 98;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   ADVANCED RESPONSIVE LAYOUT OPTIMIZATIONS
   ========================================== */

/* 1. Viewport sizes: Medium/Small Mobile (e.g. max-width: 768px) */
@media (max-width: 768px) {
    /* Header & Nav */
    .nav-container {
        height: 70px;
    }
    
    .nav-links {
        top: 70px;
        z-index: 99;
    }

    /* Modal Close Button visual styling over images */
    .modal-close {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(26, 26, 46, 0.15);
        top: 0.75rem;
        right: 0.75rem;
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
        z-index: 12;
    }
}

/* 2. Small Viewports & Multi-Device Mobile (e.g. max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Hero Slider height adjustment for small screens */
    .hero-slider {
        height: 55vh;
        min-height: 380px;
    }

    .slide h2 {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Event Section Text Alignment */
    .event-info h2 {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .event-info p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .perk {
        font-size: 0.95rem;
    }

    /* Table alignment */
    #leadsTable th, #leadsTable td {
        padding: 0.6rem 0.75rem;
    }
}

/* 3. Extremely Small Mobile Viewports (e.g. max-width: 480px, iPhone SE) */
@media (max-width: 480px) {
    /* Base spacing adjustments to maximize screen space */
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Logo Scale for small width */
    .logo {
        font-size: 1.35rem;
    }
    
    .logo-sub {
        font-size: 0.55rem;
        padding: 0.05rem 0.2rem;
        margin-left: 0.3rem;
    }

    .lang-switch-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }

    /* Hero Slider optimized layout */
    .hero-slider {
        height: 50vh;
        min-height: 340px;
    }

    .slide-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.75rem;
    }

    .slide h2 {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }

    .slide p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .slide-content {
        margin-left: 0;
        padding: 1.5rem 1rem 3.5rem 1rem;
        width: 100%;
        max-width: 100%;
        text-align: center;
        background: transparent;
        border-radius: 0;
        box-sizing: border-box;
    }

    .btn-outline-white {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    /* About Section scaling */
    .about-img {
        height: 200px;
    }

    .about-lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .feat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .feat-item {
        gap: 0.75rem;
    }

    .feat-item h4 {
        font-size: 0.95rem;
    }

    .feat-item p {
        font-size: 0.8rem;
    }

    /* Category Tabs */
    .tab-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }

    /* Product Cards scaling to prevent text clipping & layout distortion */
    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .product-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .product-price {
        font-size: 1.05rem;
        padding-top: 0.75rem;
    }

    .btn-details {
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    /* Event Coupon Section scaling */
    .event-card {
        padding: 1.75rem 1rem;
        border-radius: var(--radius-md);
    }

    .event-info h2 {
        font-size: 1.5rem;
    }

    .event-info p {
        font-size: 0.85rem;
    }

    .event-action-box {
        padding: 1.25rem 1rem;
    }

    .event-action-box h3 {
        font-size: 1.15rem;
    }

    .form-subtext {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }

    .input-wrapper input {
        padding: 0.65rem 0.75rem 0.65rem 2.25rem;
        font-size: 0.85rem;
    }

    .input-wrapper i {
        left: 0.85rem;
        font-size: 0.85rem;
    }

    /* Coupon Voucher card optimizations to prevent code container text collisions */
    .coupon-voucher {
        padding: 0.85rem;
    }

    .voucher-header h4 {
        font-size: 0.9rem;
    }

    .voucher-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .voucher-value {
        font-size: 1rem;
    }

    .code-box {
        padding: 0.65rem;
        padding-right: 2.5rem; /* Guarantees safe space for copy button */
        margin-bottom: 1rem;
    }

    .code-box strong {
        font-size: 1.05rem; /* Downsized code text to fit smaller viewports safely */
    }

    .copy-code-btn {
        right: 0.4rem;
        font-size: 0.9rem;
    }

    .voucher-footer {
        padding-top: 0.85rem;
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .qr-placeholder {
        width: 64px;
        height: 64px;
    }

    .voucher-notes {
        font-size: 0.65rem;
    }

    /* Modal dialog layout adjustments */
    .modal-container {
        width: 94%;
        max-height: 85vh;
    }

    .modal-visual {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 240px !important;
        max-height: 35vh !important;
    }

    .modal-body {
        width: 100% !important;
        padding: 1.5rem 1rem !important;
    }

    .modal-body h3 {
        font-size: 1.35rem;
    }

    .modal-price {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .modal-desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .spec-list {
        margin-bottom: 1rem;
        padding-top: 0.75rem;
    }

    .spec-item {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }

    .modal-body ul {
        margin-bottom: 1.25rem !important;
        font-size: 0.75rem !important;
    }

    /* Modal Action Buttons vertical stack for seamless fit */
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    /* Staff panel adjustments */
    .staff-modal .modal-container {
        padding: 1.25rem 1rem;
    }
    
    .leads-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .leads-actions button {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* ==========================================
   ULTRA-NARROW VIEWPORTS (320px - Galaxy Fold etc.)
   ========================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo-sub {
        display: none; /* Hide THAILAND badge on extreme narrow */
    }
    .nav-container {
        padding: 0 0.75rem;
    }
    .section-title {
        font-size: 1.45rem;
    }
    .tab-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    .product-title {
        font-size: 1rem;
    }
    .modal-body h3 {
        font-size: 1.2rem;
    }
    .event-info h2 {
        font-size: 1.35rem;
    }
    .slide h2 {
        font-size: 1.4rem;
    }
    .slide p {
        font-size: 0.82rem;
    }
}

/* ==========================================
   PRODUCT VARIANTS
   ========================================== */
.variant-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface-1);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.variant-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    pointer-events: none;
}

.variant-btn:hover {
    transform: scale(1.05);
}

    /* Coupon Voucher card optimizations to prevent code container text collisions */
    .coupon-voucher {
        padding: 0.85rem;
    }

    .voucher-header h4 {
        font-size: 0.9rem;
    }

    .voucher-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .voucher-value {
        font-size: 1rem;
    }

    .code-box {
        padding: 0.65rem;
        padding-right: 2.5rem; /* Guarantees safe space for copy button */
        margin-bottom: 1rem;
    }

    .code-box strong {
        font-size: 1.05rem; /* Downsized code text to fit smaller viewports safely */
    }

    .copy-code-btn {
        right: 0.4rem;
        font-size: 0.9rem;
    }

    .voucher-footer {
        padding-top: 0.85rem;
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .qr-placeholder {
        width: 64px;
        height: 64px;
    }

    .voucher-notes {
        font-size: 0.65rem;
    }

    /* Modal dialog layout adjustments */
    .modal-container {
        width: 94%;
        max-height: 85vh;
    }

    .modal-visual {
        height: 180px;
    }

    .modal-body {
        padding: 1.25rem 1rem;
    }

    .modal-body h3 {
        font-size: 1.35rem;
    }

    .modal-price {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .modal-desc {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .spec-list {
        margin-bottom: 1rem;
        padding-top: 0.75rem;
    }

    .spec-item {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }

    .modal-body ul {
        margin-bottom: 1.25rem !important;
        font-size: 0.75rem !important;
    }

    /* Modal Action Buttons vertical stack for seamless fit */
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        padding: 0.7rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    /* Staff panel adjustments */
    .staff-modal .modal-container {
        padding: 1.25rem 1rem;
    }
    
    .leads-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .leads-actions button {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

/* ==========================================
   ULTRA-NARROW VIEWPORTS (320px - Galaxy Fold etc.)
   ========================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo-sub {
        display: none; /* Hide THAILAND badge on extreme narrow */
    }
    .nav-container {
        padding: 0 0.75rem;
    }
    .section-title {
        font-size: 1.45rem;
    }
    .tab-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }
    .product-title {
        font-size: 1rem;
    }
    .modal-body h3 {
        font-size: 1.2rem;
    }
    .event-info h2 {
        font-size: 1.35rem;
    }
    .slide h2 {
        font-size: 1.4rem;
    }
    .slide p {
        font-size: 0.82rem;
    }
}

/* ==========================================
   PRODUCT VARIANTS
   ========================================== */
.variant-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface-1);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.variant-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    pointer-events: none;
}

.variant-btn:hover {
    transform: scale(1.05);
}

.variant-btn.active {
    border-color: transparent;
    transform: scale(1.05);
}

.variant-btn.active::after {
    border-color: var(--color-accent);
}

.variant-btn-mini {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface-1);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.variant-btn-mini::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    pointer-events: none;
}

.variant-btn-mini:hover {
    transform: scale(1.1);
}

.variant-btn-mini.active {
    border-color: transparent;
    transform: scale(1.1);
}

.variant-btn-mini.active::after {
    border-color: var(--color-accent);
}


/* ==========================================
   VIP MEMBERSHIP SUCCESS CARD
   ========================================== */
.membership-success-card {
    border: 2px solid var(--color-accent) !important;
    background: var(--color-card-bg) !important;
    border-radius: var(--radius-md) !important;
    padding: 2rem 1.5rem !important;
    text-align: center;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    position: relative;
}

.success-header {
    display: block !important;
    text-align: center;
    border-bottom: 1px solid var(--color-border) !important;
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.success-icon-wrapper {
    font-size: 3rem;
    color: var(--color-success);
    margin-bottom: 0.5rem;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.success-header h4 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: var(--color-text-main) !important;
    letter-spacing: -0.01em;
}

.success-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0.35rem 0 0 0;
}

/* Premium VIP Card Badge */
.vip-card-body {
    background: linear-gradient(135deg, rgba(46, 158, 92, 0.08) 0%, rgba(232, 250, 240, 0.5) 100%) !important;
    border: 1px solid var(--color-accent) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(46, 158, 92, 0.05);
    text-align: left;
    transition: var(--transition-smooth);
}

.vip-card-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 158, 92, 0.12), inset 0 0 20px rgba(46, 158, 92, 0.05);
}

.badge-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 158, 92, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed rgba(46, 158, 92, 0.3);
    padding-bottom: 0.6rem;
}

.vip-card-header .club-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
}

.vip-card-header .badge-status {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--color-accent);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(46, 158, 92, 0.3);
}

.vip-card-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge-field .field-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.badge-field strong {
    font-size: 1.2rem;
    color: var(--color-text-main);
    font-weight: 700;
}

#memberIdDisplay {
    color: var(--color-accent) !important;
    letter-spacing: 0.5px;
}

.success-footer {
    display: block !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.success-footer .voucher-notes p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    text-align: center;
}

.reset-member-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.95rem !important;
    margin-top: 0.5rem;
}

/* Mobile responsive fixes for VIP card */
@media (max-width: 576px) {
    .membership-success-card {
        padding: 1.5rem 1rem !important;
    }
    
    .success-icon-wrapper {
        font-size: 2.5rem;
    }
    
    .success-header h4 {
        font-size: 1.3rem !important;
    }
    
    .vip-card-body {
        padding: 1.25rem 1rem !important;
    }
    
    .badge-field strong {
        font-size: 1.1rem;
    }
    
    .success-footer .voucher-notes p {
        font-size: 0.8rem;
    }
}

/* ==========================================
   CUTE SIZE GUIDE SECTION
   ========================================== */
.size-guide-section {
    padding: 6rem 0;
    background-color: rgba(255, 249, 249, 0.7); /* Semi-transparent to let the cute flower pattern bleed through */
}

.size-guide-new-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .size-guide-new-wrapper {
        grid-template-columns: 1fr;
    }
}

.size-table-card, .size-instruction-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(89, 74, 66, 0.05);
    border: 2px dashed #fce4ec;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.size-table-card:hover, .size-instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(89, 74, 66, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.card-header i {
    font-size: 1.8rem;
    background: #fdf1f4;
    padding: 1rem;
    border-radius: 50%;
    color: #e57373;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.cute-size-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cute-size-table th {
    text-align: left;
    padding: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cute-size-table td {
    padding: 1.2rem 1rem;
    background: #fdfbf7;
    color: var(--color-text);
    font-size: 1.1rem;
}

.cute-size-table tr td:first-child {
    border-radius: 15px 0 0 15px;
}

.cute-size-table tr td:last-child {
    border-radius: 0 15px 15px 0;
}

.cute-size-table .size-label {
    font-weight: 700;
    color: #e57373;
    font-size: 1.5rem;
    width: 20%;
}

/* Instructions List */
.measure-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.measure-steps li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.measure-steps .step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #e57373;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(229, 115, 115, 0.3);
}

.measure-steps p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text);
    padding-top: 5px;
}

.cute-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #fdf1f4;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e57373;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================
   UNIVERSAL RESPONSIVE FIXES (ALL DEVICES)
   ========================================== */

/* Tablet & Smaller Desktop (max-width: 992px) */
@media (max-width: 992px) {
    .size-guide-new-wrapper {
        gap: 1.5rem;
    }
    .size-table-card, .size-instruction-card {
        padding: 2rem;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* Slightly scale down all em/rem based sizes */
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .size-table-card, .size-instruction-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .card-header i {
        font-size: 1.4rem;
        padding: 0.8rem;
    }
    
    .cute-size-table td {
        padding: 1rem 0.5rem;
        font-size: 1rem;
    }
    
    .cute-size-table .size-label {
        font-size: 1.3rem;
    }
    
    .cute-note {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Further scale down for very small screens like iPhone SE */
    }
    
    .hero-slider .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .size-guide-section {
        padding: 4rem 0;
    }
    
    .cute-size-table th {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .cute-size-table td {
        font-size: 0.95rem;
        padding: 0.8rem 0.5rem;
    }
    
    .measure-steps li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #fdfbf7;
        padding: 1rem;
        border-radius: 15px;
    }
    
    .measure-steps p {
        padding-top: 0;
    }
    
    .product-grid {
        gap: 1rem;
    }
}

/* Extra Small Phones (max-width: 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    .hero-slider .slide-content h2 {
        font-size: 1.8rem;
    }
}
