:root {
    --primary-ocean: #0A2540;
    --secondary-aqua: #00B4D8;
    --accent-coral: #FF6B6B;
    --accent-seafoam: #90E0EF;
    --text-white: #FFFFFF;
    --text-gray: #E0E0E0;
    --bg-gradient: linear-gradient(180deg, #0A2540 0%, #001A33 100%);
    --card-glass: rgba(255, 255, 255, 0.1);
    --card-glass-hover: rgba(255, 255, 255, 0.15);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-aqua {
    background: var(--secondary-aqua);
    color: var(--primary-ocean);
    border: none;
    transition: var(--transition-smooth);
}

.btn-aqua:hover {
    background: var(--accent-seafoam);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.hover-aqua:hover { color: var(--secondary-aqua) !important; }

.btn-outline-aqua {
    border: 2px solid var(--secondary-aqua) !important;
    color: var(--secondary-aqua) !important;
    background: transparent !important;
    transition: var(--transition-smooth);
}

.btn-outline-aqua:hover {
    background: var(--secondary-aqua) !important;
    color: var(--primary-ocean) !important;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-clear-filters {
    background: none;
    border: none;
    color: var(--secondary-aqua);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.btn-clear-filters:hover {
    color: var(--accent-coral);
    opacity: 0.8;
}

select option {
    background-color: #1a1a1a !important;
    color: white !important;
}

.text-coral { color: var(--accent-coral) !important; }

/* Wave Divider */
.footer-wave {
    background: transparent;
    line-height: 0;
    margin-top: -100px;
    position: relative;
    z-index: 1;
}

.footer-ocean {
    background: #0A2540;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    transition: var(--transition-smooth);
}

.footer-contact .bi {
    font-size: 1.25rem;
}

html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: 'Noto Sans Thai', 'Noto Sans SC', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Language Switcher */
.language-switcher {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.language-switcher:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.language-option {
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #e9ecef;
    font-weight: 600;
}


/* Glassmorphism Utilities */
.glass-panel {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

/* Navbar & Logo */
.navbar {
    background: rgba(10, 37, 64, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transition: var(--transition-smooth);
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-aqua) !important;
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.navbar-logo {
    height: 100px;
    /* > 80px as requested */
    width: auto;
    transition: height 0.3s ease;
    object-fit: contain;
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 60px;
        /* Smaller on tablet/mobile */
    }
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient);
    min-height: 75vh;
    z-index: 1;
}

.ocean-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300B4D8" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 50% 100px;
    background-repeat: repeat-x;
    animation: waveMove 20s linear infinite;
    opacity: 0.3;
}

.wave:nth-child(2) {
    bottom: 20px;
    animation: waveMove 15s linear infinite reverse;
    opacity: 0.2;
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.floating-img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.bg-aqua-soft {
    background: rgba(0, 180, 216, 0.1);
}

.max-w-500 {
    max-width: 500px;
}

.hero-image-overlay {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 4rem);
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: bubbleUp linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes bubbleUp {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-800px); opacity: 0; }
}

.text-gray-500 {
    color: var(--text-gray);
    opacity: 0.8;
}

/* Category Slider */
.category-slider-section {
    background: transparent;
    padding: 80px 0;
}

.category-card-slide {
    background: var(--card-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
    padding: 24px;
    height: 180px;
}

.category-card-slide:hover {
    background: var(--card-glass-hover);
    transform: translateY(-10px);
    border-color: var(--secondary-aqua);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

.cat-name {
    color: var(--text-white);
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.25rem);
    margin-top: 10px;
}

.cat-icon {
    color: var(--secondary-aqua);
    transition: var(--transition-smooth);
}

.cat-badge-ocean {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-coral);
    color: white;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
    z-index: 5;
}

.cat-count-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cat-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    background: var(--secondary-aqua);
    filter: blur(40px);
    opacity: 0.15;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.category-card-slide:hover .cat-glow {
    opacity: 0.4;
    transform: scale(1.5);
}

.cat-shop-now {
    transition: var(--transition-smooth);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-card-slide:hover .cat-shop-now {
    opacity: 1;
    transform: translateY(0);
}

.category-card-slide:hover .cat-name {
    transform: translateY(-5px);
}

/* Form Controls */
.form-select, .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.form-select:focus, .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--secondary-aqua) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 180, 216, 0.25) !important;
}

/* Skeleton Shimmer Dark */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-img {
    background: rgba(255,255,255,0.05);
}

.skeleton-text {
    background: rgba(255,255,255,0.05);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.cat-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.category-card-slide:hover .cat-img,
.category-card-slide:hover .cat-icon {
    transform: scale(1.1) rotate(5deg);
}

.cat-hover-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: var(--secondary-aqua);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.category-card-slide:hover .cat-hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

.btn-outline-aqua {
    border: 1px solid var(--secondary-aqua);
    color: var(--secondary-aqua);
    transition: var(--transition-smooth);
}

.btn-outline-aqua:hover {
    background: var(--secondary-aqua);
    color: var(--primary-ocean);
}
/* --- Components & Sections --- */

/* Category Tabs (Filters) */
.category-tabs-wrapper {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.category-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.category-tabs::-webkit-scrollbar { display: none; } /* Safari/Chrome */

.category-tab {
    padding: 10px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    opacity: 0.7;
    font-weight: 600;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.1);
}

.category-tab.active {
    background: var(--secondary-aqua) !important;
    color: var(--primary-ocean) !important;
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

/* Products Layout */
.products-section { padding: 40px 0 80px; }
.products-header h4 { color: var(--text-white); font-weight: 700; }
.product-count { color: var(--secondary-aqua); opacity: 0.8; font-size: 0.95rem; }

/* Filter Sidebar Modern */
.filter-sidebar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.filter-group { margin-bottom: 30px; border: none !important; background: transparent !important; }
.filter-title {
    color: var(--secondary-aqua);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
}

/* Product Card - The Core Element */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--secondary-aqua) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 180, 216, 0.2);
}

.product-image {
    position: relative;
    padding-top: 80%;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img { transform: scale(1.1); }

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    color: var(--text-white);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: var(--secondary-aqua) !important;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-weight: 800;
    margin-top: auto;
}

.sold-count { color: var(--text-gray); opacity: 0.5; font-size: 0.8rem; }

/* Buttons & Badges */
.product-buy-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: var(--secondary-aqua);
    color: var(--primary-ocean);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.product-buy-btn:hover {
    background: var(--text-white);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.badge-featured {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-coral);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

.badge-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-aqua);
    color: var(--primary-ocean);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

/* Deals Section */
.deals-section {
    background: linear-gradient(90deg, #0A2540 0%, #1A3A5A 100%);
    border-radius: var(--border-radius-lg);
    border-left: 5px solid var(--accent-coral);
}

/* Fade In Animation for Infinite Scroll */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* End of Styles */

/* Why Choose Section */
.why-choose-section {
    margin-top: 60px;
}

.feature-box {
    padding: 20px;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    border-color: var(--secondary-aqua);
}

/* Category Highlights */
.category-highlight {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.category-highlight:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    border-color: var(--secondary-aqua);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .filter-sidebar { position: static; margin-bottom: 30px; }
    .category-tabs-wrapper { border-radius: 20px; }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .category-tabs-wrapper {
        border-radius: 20px;
        padding: 5px;
        margin-bottom: 25px;
    }
    
    .category-tab {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        height: 2.6rem;
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
    
    .product-price {
        font-size: 1.15rem;
    }
    
    .category-card-slide {
        padding: 15px;
        height: auto;
        min-height: 100px;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .section-title { font-size: 1.8rem; }
}