/*
Theme Name: Golpar WEEE RTL
Theme URI: https://golpar.dev/themes/weee-rtl
Author: Golpar Studio
Author URI: https://golpar.dev
Description: نسخه 4.2.7 با هدر شبیه Woodmart، ناوبری موبایل، اسلایدر جشنواره، دسته‌بندی آیکونی، اسلایدر محصولات جدید و پرتخفیف، Code Lab داخلی و مدیریت مرجوعی/پشتیبانی.
Version: 4.2.7
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: weee-rtl
Tags: woocommerce, rtl-language, customizer, theme-options, e-commerce
*/

:root {
    --weee-brand: #ff5e7a;
    --weee-brand-dark: #d43f60;
    --weee-accent: #7a5bff;
    --weee-mint: #36d1a7;
    --weee-sun: #ffb347;
    --weee-dark: #111320;
    --weee-muted: #7c829c;
    --weee-surface: #ffffff;
    --weee-bg: #f7f8fc;
    --weee-radius: 18px;
    --weee-shadow: 0 25px 65px -40px rgba(17, 19, 32, 0.55);
    font-family: "IRANSans", "Vazir", "Dana", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
    direction: rtl;
    margin: 0;
    background-color: var(--weee-bg);
    color: var(--weee-dark);
    font-family: "IRANSans", "Vazir", sans-serif;
    line-height: 1.8;
}

/* ---------------- Header (Woodmart style) ---------------- */
.site-header {
    background: var(--weee-surface);
    box-shadow: 0 15px 40px -32px rgba(10, 11, 28, 0.65);
    position: sticky;
    top: 0;
    z-index: 999;
}

.weee-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.4rem;
    border-bottom: 1px solid rgba(17, 19, 32, 0.06);
    font-size: 0.9rem;
    color: var(--weee-muted);
}

.weee-header-main {
    display: grid;
    grid-template-columns: 120px 1fr 220px;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 1.5rem;
}

.weee-header-search {
    position: relative;
}

.weee-header-search input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 19, 32, 0.08);
    background: #fafbff;
    font-size: 0.95rem;
}

.weee-header-search button {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--weee-brand);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.weee-header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.weee-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(17, 19, 32, 0.08);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--weee-dark);
    transition: all 0.2s ease;
}

.weee-header-icon:hover {
    border-color: var(--weee-brand);
    color: var(--weee-brand);
}

.primary-menu-area {
    padding: 0 1.5rem 1rem;
}

.primary-menu-area nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-menu-area nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(17, 19, 32, 0.04);
    color: var(--weee-dark);
    font-weight: 600;
    transition: all 0.2s ease;
}

.primary-menu-area nav a:hover {
    background: var(--weee-brand);
    color: #fff;
}

/* ---------------- Home sections ---------------- */
.site-main {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
}

.weee-section {
    background: var(--weee-surface);
    border-radius: var(--weee-radius);
    padding: 2rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--weee-shadow);
}

.weee-section header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.weee-section header h3 {
    margin: 0;
    font-size: 1.35rem;
}

.weee-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.weee-slide {
    border-radius: calc(var(--weee-radius) - 4px);
    background: #fff;
    border: 1px solid rgba(17, 19, 32, 0.06);
    padding: 1rem;
    scroll-snap-align: start;
    min-height: 210px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.weee-slide:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 60px -40px rgba(17, 19, 32, 0.65);
}

.weee-slide .badge {
    background: var(--weee-brand);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    align-self: flex-start;
}

.weee-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
    text-align: center;
}

.weee-category-card {
    background: #fff;
    border-radius: calc(var(--weee-radius) - 8px);
    padding: 1rem 0.5rem;
    border: 1px solid rgba(17, 19, 32, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.weee-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--weee-brand);
}

.weee-category-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    margin: 0 auto 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.weee-new-products .weee-slide {
    min-height: 260px;
}

.weee-hot-deals .weee-slide {
    border: 2px dashed rgba(255, 94, 122, 0.35);
}

.weee-deals-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--weee-brand-dark);
    margin-bottom: 0.3rem;
}

.weee-old-price {
    text-decoration: line-through;
    color: rgba(17, 19, 32, 0.4);
    font-size: 0.9rem;
}

/* inspiration cards */
.weee-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.weee-inspiration-card {
    border-radius: var(--weee-radius);
    background: linear-gradient(135deg, rgba(255,94,122,0.1), rgba(122,91,255,0.25));
    padding: 1.5rem;
    color: var(--weee-dark);
}

/* newsletter */
.weee-newsletter {
    text-align: center;
    background: linear-gradient(135deg, #ffb347, #ff5e7a);
    color: #fff;
}

.weee-newsletter form {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.weee-newsletter input {
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    border: none;
    min-width: 260px;
}

.weee-newsletter button {
    border-radius: 999px;
    background: #111320;
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    cursor: pointer;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: #0b0d16;
    color: #fff;
    padding: 3rem 0 5rem;
}

.site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.weee-footer-trust {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.weee-footer-trust img {
    max-height: 64px;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
}

.weee-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* ---------------- Mobile Bottom Nav ---------------- */
.weee-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid rgba(17, 19, 32, 0.08);
    display: none;
    z-index: 990;
}

.weee-mobile-nav ul {
    margin: 0;
    padding: 0.4rem 0.5rem;
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.weee-mobile-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--weee-muted);
    font-size: 0.8rem;
}

.weee-mobile-nav svg {
    width: 24px;
    height: 24px;
    margin-bottom: 0.2rem;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .weee-header-main {
        grid-template-columns: 1fr;
    }
    .weee-header-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding-bottom: 7rem;
    }
    .weee-mobile-nav {
        display: block;
    }
    .weee-section {
        padding: 1.5rem;
    }
}