/*
Theme Name: Aramesh Theme
Theme URI: https://arameshkhabmandegar.ir
Author: Your Name
Description: قالب اختصاصی فروشگاه آرامش خواب ماندگار
Version: 1.0
*/

/*
Theme Name: Aramesh Theme
Theme URI: http://arameshkhabmandegar.ir/
Author: Mohammad Mahdi Qaemi
Description: قالب اختصاصی آرامش خواب ماندگار با پشتیبانی از فروشگاه ووکامرس
Version: 2.0
*/

:root {
    --primary-color: #7bb31a; /* رنگ سبز مبل افرا */
    --text-color: #333;
    --bg-light: #f5f9f0;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
}

/* هدر سایت */
.site-header {
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 5%;
    background: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #8b7355;
    text-decoration: none;
}

.search-box input {
    padding: 8px 15px;
    width: 300px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header-buttons .btn-satisfaction {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* منوی ناوبری */
.main-nav {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

.main-nav a {
    color: #555;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* بخش بنر عنوان صفحه */
.page-title-bar {
    background-color: var(--bg-light);
    padding: 40px 5%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.page-title-bar h1 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

/* ساختار دو ستونه فروشگاه */
.shop-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    padding: 40px 5%;
}

/* سایدبار سمت راست */
.shop-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* بخش محصولات در سمت چپ */
.shop-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-description {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
}

/* گرید کارت محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
    text-align: center;
    padding: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-card h3 {
    font-size: 16px;
    margin: 15px 0 10px;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 15px;
}

/* نوار اعلان پایین صفحه */
.bottom-announcement {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    z-index: 9999;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f9f4;
    color: #333;
}

.site-header {
    background: white;
    padding: 20px 5%;
    border-bottom: 3px solid #7bb31a;
}

.header-top,
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top {
    justify-content: space-between;
}

.logo {
    color: #638f13;
    font-size: 24px;
    font-weight: bold;
}

.search-box input {
    width: 260px;
    padding: 10px;
}

.search-box button,
.header-buttons a {
    background: #7bb31a;
    color: white;
    border: 0;
    padding: 10px 16px;
    text-decoration: none;
}

.main-nav {
    margin-top: 20px;
}

.main-nav a {
    color: #444;
    text-decoration: none;
}

.page-title-bar {
    text-align: center;
    padding: 40px 20px;
    background: #edf5e2;
}

.shop-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    padding: 35px 5%;
}

.shop-sidebar,
.shop-description,
.product-card {
    background: white;
    padding: 20px;
    border: 1px solid #dfe7d5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    text-align: center;
}

.product-image {
    height: 150px;
    display: grid;
    place-items: center;
    background: #e8efdf;
    color: #638f13;
}

.price {
    display: block;
    color: #638f13;
    font-weight: bold;
    margin-top: 15px;
}

.bottom-announcement {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: white;
    background: #7bb31a;
}

@media (max-width: 700px) {
    .header-top,
    .main-nav {
        flex-direction: column;
    }

    .shop-container {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .search-box input {
        width: 180px;
    }
}
/* تنظیمات عمومی برای موبایل */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* منو را از حالت خطی خارج کنید تا زیر هم نروند یا مرتب شوند */
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    nav ul li {
        margin: 5px;
        list-style: none;
    }

    /* کارت‌های محصول در موبایل دو تایی یا تکی شوند */
    .product-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* دو ستونه در موبایل */
        gap: 10px;
    }

    /* بنر بنفش بالا */
    .top-bar {
        font-size: 12px;
        padding: 10px;
        text-align: center;
    }
}
