/* ============================================================
   HomeEssentials - Quality Household Products
   Color Palette:
     - Background: #FAF7F2 (warm off-white)
     - Primary:    #2D5A3D (deep green)
     - Accent:    #E07A3C (warm orange)
     - Text:      #2A2A2A (near black)
     - Muted:     #6B6B6B (gray)
     - Card:      #FFFFFF (white)
     - Border:    #E8E2D5 (soft beige)
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    color: #2A2A2A;
    background: #FAF7F2;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #E8E2D5;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2D5A3D;
}

.logo-icon {
    font-size: 28px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: #2A2A2A;
    position: relative;
    transition: color 0.2s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E07A3C;
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: #2D5A3D;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #2D5A3D;
    color: #2D5A3D;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: #2D5A3D;
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2A2A2A;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 100px 32px 60px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.80) 0%, rgba(45, 90, 61, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeUp 1s ease;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 36px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: #E07A3C;
    color: white;
}

.btn-primary:hover {
    background: #c8672e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 60, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #2D5A3D;
}

.btn-full {
    width: 100%;
}

/* ===== Features Strip ===== */
.features {
    background: white;
    padding: 60px 32px;
    border-bottom: 1px solid #E8E2D5;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2D5A3D;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13px;
    color: #6B6B6B;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    color: #E07A3C;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 15px;
    color: #6B6B6B;
}

/* ===== Products Section ===== */
.products-section {
    padding: 100px 32px;
    background: #FAF7F2;
}

.category-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.category-btn {
    padding: 8px 24px;
    border-radius: 24px;
    border: 1px solid #E8E2D5;
    background: white;
    color: #6B6B6B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.category-btn:hover {
    border-color: #2D5A3D;
    color: #2D5A3D;
}

.category-btn.active {
    background: #2D5A3D;
    border-color: #2D5A3D;
    color: white;
}

.products-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #E8E2D5;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

.product-image {
    aspect-ratio: 1;
    background: #F3EFE8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-image-placeholder {
    font-size: 64px;
    opacity: 0.4;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #E07A3C;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: #6B6B6B;
    margin-bottom: 14px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2D5A3D;
}

.product-price small {
    font-size: 11px;
    color: #6B6B6B;
    font-weight: 400;
}

.product-inquire {
    background: transparent;
    border: 1px solid #2D5A3D;
    color: #2D5A3D;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.product-inquire:hover {
    background: #2D5A3D;
    color: white;
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 32px;
    background: white;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #2D5A3D 0%, #3a7553 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: rgba(255,255,255,0.2);
}

.about-content .section-tag {
    margin-bottom: 8px;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 15px;
    color: #6B6B6B;
    margin-bottom: 16px;
}

.about-list {
    list-style: none;
    margin-top: 24px;
}

.about-list li {
    padding: 8px 0;
    font-size: 15px;
    color: #2A2A2A;
    border-bottom: 1px solid #F0EBE0;
}

.about-list li:last-child {
    border-bottom: none;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 32px;
    background: #FAF7F2;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info .section-tag {
    margin-bottom: 8px;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.contact-info > p {
    color: #6B6B6B;
    font-size: 15px;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #E8E2D5;
    transition: all 0.2s;
}

.contact-method:hover {
    border-color: #2D5A3D;
    transform: translateX(4px);
}

.contact-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3EFE8;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2A2A2A;
}

/* ===== Contact Form ===== */
.contact-form-wrap {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #E8E2D5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2A2A2A;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E2D5;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #FAF7F2;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2D5A3D;
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.08);
}

.form-note {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
    color: #2D5A3D;
    min-height: 20px;
}

/* ===== Footer ===== */
.footer {
    background: #1F2B22;
    color: rgba(255,255,255,0.7);
    padding: 60px 32px 30px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-container > p {
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #E07A3C;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.1);
    font-size: 24px;
    color: #2A2A2A;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #E07A3C;
    color: white;
}

.modal-body {
    padding: 0;
}

.modal-image {
    background: #F3EFE8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.modal-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.modal-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #fff;
}

.modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #F3EFE8;
    overflow-x: auto;
}

.modal-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.modal-thumb:hover {
    border-color: #E07A3C;
}

.modal-thumb.active {
    border-color: #2D5A3D;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-image-placeholder {
    font-size: 120px;
    opacity: 0.3;
}

.modal-detail {
    padding: 32px;
}

.modal-category {
    font-size: 12px;
    color: #E07A3C;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #2A2A2A;
    margin-bottom: 16px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #2D5A3D;
    margin-bottom: 24px;
}

.modal-desc {
    font-size: 15px;
    color: #6B6B6B;
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-specs {
    background: #FAF7F2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 28px;
}

.modal-specs h4 {
    font-size: 13px;
    font-weight: 600;
    color: #2A2A2A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.modal-specs ul {
    list-style: none;
}

.modal-specs li {
    padding: 6px 0;
    font-size: 14px;
    color: #6B6B6B;
    display: flex;
    justify-content: space-between;
}

.modal-specs li span:last-child {
    font-weight: 600;
    color: #2A2A2A;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid #E8E2D5;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 80vh;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .modal.active {
        padding: 16px;
    }

    .modal-detail {
        padding: 24px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .nav-container {
        padding: 14px 20px;
    }
}
