/* ============================================================
   پروین شاپ - استایل اصلی (نسخه اصلاح شده)
   ============================================================ */

/* ---- فونت ---- */
@font-face {
    font-family: 'Yekan';
    font-weight: 200;
    src: url('/assets/font/Yekan.ttf');
}

/* ---- ریست پایه ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Yekan', Tahoma, Arial, sans-serif;
    font-weight: 200;
    color: #333;
    background-color: #f9f9f9;
    direction: rtl;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    line-height: 1.7;
    margin: 0 0 8px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px;
}

/* ---- کانتینر ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   هدر
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    min-height: 65px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

/* لوگو */
.header_logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header_logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* همبرگر */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    user-select: none;
    color: #333;
}

/* ناوبری */
.header_nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header_nav > li {
    position: relative;
    cursor: pointer;
}

.header_nav > li > a,
.header_nav > li > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.header_nav > li > a:hover,
.header_nav > li > .dropdown-toggle:hover {
    background-color: #f0faf8;
    color: rgb(44, 185, 157);
}

/* دراپ‌داون */
.dropdown_menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}

.dropdown:hover .dropdown_menu {
    display: block;
}

.dropdown_menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown_menu li:hover {
    background-color: #f0faf8;
}

.dropdown_menu li:hover a {
    color: rgb(44, 185, 157);
}

/* دکمه هدر */
.btn-header {
    background-color: rgb(44, 185, 157);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-header:hover {
    background-color: #1fa882;
}

/* ============================================================
   محتوای اصلی
   ============================================================ */
.main {
    padding-top: 65px;
}

/* ============================================================
   بنر
   ============================================================ */
.page_intro {
    width: 100%;
    overflow: hidden;
    max-height: 340px;
}

.page_intro img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   بخش‌ها
   ============================================================ */
.new_posts,
.product-section,
.why_us {
    padding: 40px 0;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: rgb(44, 185, 157);
    margin-bottom: 24px;
    padding-right: 4px;
    direction: rtl;
}

/* ============================================================
   گرید محصولات
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* کارت محصول */
.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(44,185,157,0.18);
    transform: translateY(-3px);
}

.product-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img img {
    width: 100%;
    height: 100%;
    padding:10px;
    display: block;
    transition: transform 0.3s;
}

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

.product-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    direction: rtl;
}

.product-price {
    font-size: 14px;
    color: rgb(44, 185, 157);
    font-weight: 600;
    margin: 0;
}

.badge-discount {
    display: inline-block;
    background-color: #ff6b6b;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
}

/* دکمه دیدن بیشتر */
.see-more {
    text-align: center;
    margin-top: 24px;
}

.btn-more {
    display: inline-block;
    background-color: rgb(44, 185, 157);
    color: #fff;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-more:hover {
    background-color: #1fa882;
}

/* ============================================================
   بخش چرا ما
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.why-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.why-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.why-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   فوتر
   ============================================================ */
.footer {
    background: rgb(44, 185, 157);
    width: 100%;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    padding: 36px 40px 20px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.trust-symbols img {
    width: 80px;
    height: auto;
    border-radius: 6px;
}

.footer-bottom {
    background: #fff;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a {
    color: rgb(44, 185, 157);
}

/* ============================================================
   صفحه ورود / ثبت نام
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: #f9f9f9;
    padding: 20px;
    position: relative;
}

.btn-back {
    background-color: rgb(44, 185, 157);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.btn-back:hover {
    background-color: #1fa882;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    flex-wrap: wrap;
}

.auth-illustration {
    flex: 1;
    min-width: 240px;
    max-width: 380px;
}

.auth-illustration img {
    width: 100%;
    height: auto;
}

.auth-form-box {
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-form-box h2 {
    font-size: 20px;
    color: #222;
    margin-bottom: 6px;
    text-align: center;
}

.auth-form-box p {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.input-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 14px;
    background: #f6f6f6;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    direction: rtl;
    outline: none;
    transition: border 0.2s;
}

.auth-input:focus {
    border-color: rgb(44, 185, 157);
    background: #fff;
}

.btn-auth {
    width: 100%;
    height: 46px;
    background-color: rgb(44, 185, 157);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}

.btn-auth:hover {
    background-color: #1fa882;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-top: 16px;
}

.auth-switch a {
    color: rgb(44, 185, 157);
    font-weight: 600;
}

/* ============================================================
   صفحه درباره ما
   ============================================================ */
.about-wrapper {
    padding: 40px 24px;
}

.about-main {
    background: #fff;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    max-width: 900px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-main h1 {
    color: rgb(44, 185, 157);
    font-size: 28px;
}

.about-main h2 {
    color: rgb(44, 185, 157);
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.about-main p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.about-list {
    list-style: disc;
    padding-right: 24px;
    color: #444;
    font-size: 15px;
    line-height: 2;
}

/* ============================================================
   صفحه محصول تکی
   ============================================================ */
.single-product-wrapper {
    display: flex;
    gap: 40px;
    padding: 40px 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.single-product-img {
    flex: 1;
    min-width: 260px;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.single-product-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.single-product-body {
    flex: 1;
    min-width: 260px;
    direction: rtl;
}

.single-product-body h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.single-price {
    font-size: 20px;
    color: rgb(44, 185, 157);
    font-weight: 700;
    margin-bottom: 20px;
}

.single-product-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #333;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.qty-input {
    width: 80px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 15px;
    text-align: center;
    outline: none;
}

.btn-add-cart {
    display: block;
    margin-top: 20px;
    background-color: rgb(44, 185, 157);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background-color: #1fa882;
}

/* ============================================================
   نان‌پودری (Breadcrumbs)
   ============================================================ */
.breadcrumbs {
    direction: rtl;
    padding: 20px 0 10px;
    font-size: 13px;
    color: #888;
}

.breadcrumbs a {
    color: rgb(44, 185, 157);
}

.breadcrumbs a::after {
    content: ' > ';
    color: #aaa;
    margin: 0 4px;
}

/* ============================================================
   سبد خرید
   ============================================================ */
.cart-wrapper {
    padding: 40px 24px;
}

.cart-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.cart-table th,
.cart-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    text-align: right;
    font-size: 14px;
}

.cart-table th {
    background-color: rgb(44, 185, 157);
    color: #fff;
    font-weight: 600;
}

.cart-empty {
    text-align: center !important;
    color: #999;
    padding: 40px !important;
}

.cart-total {
    margin-top: 24px;
    text-align: left;
    direction: rtl;
}

.cart-total p {
    font-size: 16px;
    margin-bottom: 16px;
}

.btn-checkout {
    background-color: rgb(44, 185, 157);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background-color: #1fa882;
}

/* ============================================================
   ریسپانسیو - تبلت (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .container {
        padding: 0 20px;
    }
}

/* ============================================================
   ریسپانسیو - موبایل (max 768px)
   ============================================================ */
@media (max-width: 768px) {
    .main {
        padding-top: 58px;
    }

    .header {
        min-height: 58px;
    }

    .hamburger {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 8px 16px;
    }

    .header_nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 0 6px;
        background: #fff;
    }

    .header_nav.active {
        display: flex;
    }

    .header_nav > li > a,
    .header_nav > li > .dropdown-toggle {
        padding: 10px 14px;
        background: #f7f7f7;
        border-radius: 8px;
        width: 100%;
    }

    .dropdown_menu {
        position: static;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
        margin-top: 4px;
        background: #f0f0f0;
    }

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

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .page_intro img {
        height: 200px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 14px 20px;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-illustration {
        max-width: 260px;
        margin: 0 auto;
    }

    .single-product-wrapper {
        flex-direction: column;
    }

    .single-product-img {
        max-width: 100%;
    }

    .about-main {
        padding: 24px 20px;
    }
}

/* ============================================================
   ریسپانسیو - موبایل کوچک (max 480px)
   ============================================================ */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
/* منوی اصلی */
.header_nav{
    list-style: none;
    display: flex;
    gap: 20px;
}

.header_nav li{
    position: relative;
    list-style: none;
}

.header_nav a,
.dropdown-toggle{
    text-decoration: none;
    color: #222;
    cursor: pointer;
    padding: 10px 15px;
    display: block;
}

/* منوی دسته ها */
.dropdown_menu{
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    display: none;
    z-index: 999;
}

.dropdown:hover .dropdown_menu{
    display: block;
}

.dropdown_menu li{
    position: relative;
}

.dropdown_menu li a{
    padding: 12px 15px;
    color: #333;
    transition: .3s;
}

.dropdown_menu li a:hover{
    background: #f5f5f5;
    color: #c49b3d;
}

/* زیرمنوی طراحی و دوخت */
.sub-menu{
    position: absolute;
    top: 0;
    right: 100%;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
    display: none;
}

.sub-dropdown:hover .sub-menu{
    display: block;
}

.sub-menu li a{
    padding: 12px 15px;
    display: block;
}

