/*
Theme Name: Herbal Shop Theme
Author: Komak Codenevis
Description: A custom theme matching the design provided.
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400&display=swap');

:root {
    --bg-color: #Fdfbf0; /* رنگ کرم پس‌زمینه */
    --text-color: #333;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header */
header {
    background-color: var(--primary-color, #3a4b2c); /* سبز تیره */
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.logo {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.header-btn {
    background-color: #dccfa8;
    color: #3a4b2c;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* Hero Section - FINAL CORRECTED OVERLAY STYLES */
.hero-overlay {
    /* تنظیمات پس‌زمینه برای پوشش کامل کادر */
    min-height: 550px; /* ارتفاع بخش را مشخص می‌کند */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    
    /* تنظیمات برای قرار دادن محتوا در داخل */
    position: relative;
    padding: 0;
}

.hero-text-overlay {
    /* این بخش شبیه همان حالت قبل است اما بدون float و flexbox */
    position: absolute; /* قرارگیری روی عکس */
    top: 0;
    left: 0;
    width: 40%; /* متناسب با طرح اصلی */
    height: 100%;
    
    /* استفاده از Flexbox برای تنظیم فاصله داخلی متن */
    display: flex;
    flex-direction: column;
    justify-content: Left; /* متن را وسط چین می‌کند */
    
    padding-left: 2%; /* فاصله از لبه چپ کادر */
    background-color: transparent; /* پس‌زمینه شفاف */
}

/* استایل‌های محتوای داخل Overlay */

.hero-text-overlay h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    color: var(--primary-color, #3a4b2c);
    margin-bottom: 20px;
    line-height: 1.1;
    z-index: 10;
}

.hero-text-overlay p {
    font-size: 18px;
    color: #333; /* متن روی پس‌زمینه تیره ممکن است خوانا نباشد، رنگ تیره بهتر است */
    margin-bottom: 30px;
    z-index: 10;
}

/* استایل دکمه را تغییر نمی‌دهیم تا همان رنگ بژ را حفظ کند */
/* Products Section */
.products {
    padding: 60px 10%;
    text-align: center;
}

.products h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--primary-color, #3a4b2c);
    margin-bottom: 50px;
}

.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.product-card {
    width: 48%;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333;
}

/* Newsletter */
.newsletter {
    background-color: var(--bg-color);
    padding: 60px 10%;
    text-align: center;
    margin-top: 50px;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--primary-color, #3a4b2c);
}

.newsletter-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input {
    padding: 15px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f3f3f3;
}

.newsletter-form button {
    background-color: #dccfa8;
    color: #3a4b2c;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

/* ============================================
   RESPONSIVE FULL SYSTEM – Added by Assistant
   ============================================ */

/* ---------- Tablet (max 1024px) ---------- */
@media (max-width: 1024px) {

    header {
        padding: 15px 30px;
    }

    nav ul {
        gap: 20px;
    }

    .hero-overlay {
        min-height: 450px;
        margin: 20px 5%;
    }

    .hero-text-overlay {
        width: 55%;
        padding-left: 3%;
    }

    .hero-text-overlay h1 {
        font-size: 46px;
    }

    .products {
        padding: 40px 6%;
    }

    .product-grid {
        gap: 20px;
    }

    .newsletter {
        padding: 40px 6%;
    }
}

/* ---------- Mobile Large (max 768px) ---------- */
@media (max-width: 768px) {

    header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .hero-overlay {
        margin: 15px 4%;
        min-height: 420px;
    }

    .hero-text-overlay {
        position: relative;
        width: 100%;
        height: auto;
        padding: 25px 20px;
        background-color: rgba(255,255,255,0.45);
        backdrop-filter: blur(4px);
    }

    .hero-text-overlay h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .hero-text-overlay p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .product-grid {
        flex-direction: column;
    }

    .product-card {
        width: 100%;
    }

    .product-card img {
        height: 240px;
    }

    .products h2 {
        font-size: 32px;
    }

    .newsletter h2 {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ---------- Mobile Small (max 480px) ---------- */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    header .logo {
        font-size: 20px;
    }

    .hero-text-overlay {
        padding: 20px 15px;
    }

    .hero-text-overlay h1 {
        font-size: 30px;
    }

    .product-card img {
        height: 200px;
    }

    .product-card h3 {
        font-size: 20px;
    }

    .newsletter h2 {
        font-size: 24px;
    }
}

/* ===========================
   Mobile Navigation System
   =========================== */

.mobile-menu-btn {
    display: none;
    width: 32px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 4px;
    transition: .3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--primary-color, #3a4b2c);
    padding: 60px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right .35s ease;
    z-index: 9999;
}

.mobile-menu.open {
    right: 0;
}

.mobile-nav {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

/* Show burger button only on mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    nav {
        display: none;
    }
}
/* ================================
   FOOTER SECTION (Herbal Theme)
   ================================ */

.site-footer {
    background-color: var(--primary-color, #3a4b2c);
    color: #fff;
    padding: 60px 10% 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 18px;
    color: #dccfa8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.85;
    transition: .2s;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-right: 4px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    margin-bottom: 12px;
    color: #dccfa8;
}

.footer-desc {
    color: #eee;
    line-height: 1.8;
    font-size: 14px;
    max-width: 260px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    opacity: 0.85;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }
}
