:root {
    --primary-color: #25D366;
    --secondary-color: #128C7E;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switching Logic */
.lang-en .cn {
    display: none !important;
}

.lang-cn .en {
    display: none !important;
}

/* Header & Navigation */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-bottom: 2px;
}

.logo-text {
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    font-size: 1.2rem;
}

/* Language Switcher UI */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    font-weight: 600;
}

.lang-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #999;
    transition: var(--transition);
    padding: 2px 5px;
}

.lang-switcher button.active {
    color: var(--primary-color);
}

.lang-switcher button:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('https://images.unsplash.com/photo-1532187875605-1ef147c6d14b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-whatsapp {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: #fff;
    color: var(--dark-color);
    border: 1px solid #111;
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-left.section-title::after {
    left: 0;
    transform: none;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

.text-white {
    color: var(--white);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Products */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* About */
.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.check-list li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--dark-color);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

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

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ccc;
}

.footer-list li i {
    margin-right: 12px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-list a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.cart-button {
    position: relative;
    background: none;
    border: 1px solid #eee;
    cursor: pointer;
    color: var(--dark-color);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-button #cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 10px;
    pointer-events: none;
}

.product-link {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.product-card-info {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.product-card-title {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-weight: 800;
    font-size: 0.9rem;
    color: #d7ffe7;
    white-space: nowrap;
}

.hidden-view {
    display: none;
}

.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

.link-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.product-page {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.product-page-media img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.product-page-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.price-box {
    background: #f6f6f6;
    border-radius: 14px;
    padding: 16px;
    margin: 10px 0 16px;
}
.price-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.price-current {
    font-size: 2rem;
    font-weight: 900;
    color: #e53935;
}
.price-compare {
    font-size: 1.2rem;
    color: #777;
    text-decoration: line-through;
}
.price-badge {
    background: #2e7d32;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.product-page-info p {
    color: #666;
    margin-bottom: 16px;
}

.product-buy {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

.product-field {
    margin-bottom: 12px;
}

.product-field label {
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.product-label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-field select,
.product-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-option {
    border: 1.5px solid #111;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.spec-option:hover {
    transform: translateY(-1px);
}

.spec-option.active {
    background: #111;
    color: #fff;
}

.spec-option .spec-price {
    font-weight: 800;
    opacity: 0.9;
}

.qty-controls {
    display: grid;
    grid-template-columns: 44px minmax(120px, 180px) 44px;
    gap: 10px;
    align-items: center;
    width: fit-content;
}

.qty-controls input[type="number"] {
    text-align: center;
}

.qty-btn {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
    font-size: 1.1rem;
}

.price-line {
    font-size: 1.05rem;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.spec-table-wrap {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.spec-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.checkout-list {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.checkout-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.checkout-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.checkout-item-title {
    font-weight: 900;
}

.checkout-summary {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer.hidden {
    display: none;
}

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

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-backdrop.hidden {
    display: none;
}

.cart-backdrop.show {
    display: block;
    opacity: 1;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
}
.cart-header #close-cart {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    color: #333;
}
.cart-header #close-cart:hover {
    background: #f6f6f6;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-title {
    font-weight: 600;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid #eee;
    padding: 16px;
    box-shadow: 0 -12px 24px rgba(0,0,0,0.06);
}

.cart-total {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    gap: 8px;
}

.cart-total strong {
    white-space: nowrap;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 12px;
    align-items: stretch;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1200;
    transition: var(--transition);
}

.cart-open .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 36px;
        margin-bottom: 0;
    }
    .logo-text {
        display: none;
    }
    nav {
        width: 0;
        flex: 0 0 0;
    }
    .header-actions {
        gap: 8px;
    }
    .lang-switcher {
        font-size: 0.85rem;
        margin-left: 0;
    }
    #nav-toggle {
        order: 3;
    }
    #open-cart {
        order: 2;
    }
    .lang-switcher {
        order: 1;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid #eee;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        right: 12px;
        left: 12px;
        background: var(--white);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 12px;
        flex-direction: column;
        gap: 6px;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        margin-left: 0;
    }
    .nav-links a {
        padding: 12px;
        border-radius: 12px;
        display: flex;
        justify-content: space-between;
    }
    .nav-links a:hover {
        background: rgba(0,0,0,0.04);
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .product-page {
        grid-template-columns: 1fr;
    }
    .product-page-media img {
        height: 320px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary {
        position: static;
    }
}
