﻿:root {
    --saffron: #F4A300;
    --chili: #C8102E;
    --cinnamon: #8B4513;
    --charcoal: #1A1A1A;
    --cream: #FFF8ED;
    --gold: #D4A656;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2000;
    padding: 10px 16px;
    background: #fff;
    color: #111;
    border-radius: 8px;
    transform: translateY(-160%);
}

    .skip-link:focus {
        transform: translateY(0);
    }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--saffron);
    outline-offset: 4px;
}

.top-bar {
    position: relative;
    z-index: 1001;
    background: var(--charcoal);
    color: var(--saffron);
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
}

    .top-bar span {
        color: #fff;
    }

header {
    position: absolute;
    top: 42px;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

    header.scrolled {
        position: fixed;
        top: 0;
        background: rgba(26, 26, 26, 0.96);
        backdrop-filter: blur(12px);
        padding-top: 12px;
        padding-bottom: 12px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--saffron);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
}

    .logo::before {
        content: "🌶️";
        font-size: 28px;
        filter: drop-shadow(0 0 8px rgba(244, 163, 0, 0.5));
    }

    .logo span {
        color: var(--chili);
    }

nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
}

    nav a::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: var(--saffron);
        transition: width 0.25s ease;
    }

    nav a:hover {
        color: var(--saffron);
    }

        nav a:hover::after {
            width: 100%;
        }

.header-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: var(--saffron);
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

    .header-cta:hover {
        background: #ffc04a;
        transform: translateY(-2px);
    }

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 5% 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A1A 0%, #2c1810 50%, #3d1f10 100%);
}

.spice-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(1px);
    animation: float 15s infinite ease-in-out;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 30px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 18px;
    border: 1px solid var(--saffron);
    border-radius: 50px;
    background: rgba(244, 163, 0, 0.12);
    color: var(--saffron);
    font-size: 13px;
    font-weight: 500;
}

.hero h1 {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(44px, 7vw, 82px);
    font-weight: 900;
    line-height: 1.2;
}

    .hero h1 .highlight {
        position: relative;
        display: inline-block;
        color: var(--saffron);
    }

        .hero h1 .highlight::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 7px;
            z-index: -1;
            width: 100%;
            height: 10px;
            background: var(--chili);
            opacity: 0.5;
            transform: skewX(-10deg);
        }

.hero p {
    max-width: 530px;
    margin-bottom: 32px;
    color: #ddd;
    font-size: 17px;
    line-height: 2;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: var(--saffron);
    color: var(--charcoal);
    box-shadow: 0 10px 30px rgba(244, 163, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 36px rgba(244, 163, 0, 0.45);
    }

.btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
    color: #fff;
}

    .btn-outline:hover {
        border-color: var(--saffron);
        color: var(--saffron);
    }

.hero-visual {
    position: absolute;
    top: 50%;
    left: 6%;
    width: min(36vw, 420px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    z-index: 5;
}

.spice-bowl {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient( circle at 30% 30%, var(--saffron), var(--chili) 70%, #5a0010 );
    box-shadow: 0 0 80px rgba(244, 163, 0, 0.45), inset 0 0 80px rgba(0, 0, 0, 0.4);
    font-size: clamp(100px, 14vw, 160px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 80px rgba(244, 163, 0, 0.45), inset 0 0 80px rgba(0, 0, 0, 0.4);
    }

    50% {
        transform: scale(1.04);
        box-shadow: 0 0 110px rgba(244, 163, 0, 0.7), inset 0 0 80px rgba(0, 0, 0, 0.4);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    color: var(--saffron);
    font-size: 11px;
    letter-spacing: 3px;
    text-decoration: none;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.categories {
    padding: 100px 5% 90px;
    background: var(--cream);
}

.section-header {
    margin-bottom: 54px;
    text-align: center;
}

    .section-header .sub {
        margin-bottom: 12px;
        color: var(--chili);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .section-header h2 {
        color: var(--charcoal);
        font-size: clamp(32px, 5vw, 50px);
        font-weight: 900;
    }

        .section-header h2 span {
            color: var(--chili);
        }

.cat-grid {
    display: grid;
    max-width: 1300px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.cat-card {
    position: relative;
    display: flex;
    min-height: 290px;
    align-items: flex-end;
    padding: 26px;
    overflow: hidden;
    border-radius: 22px;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .cat-card:nth-child(1) {
        background: linear-gradient(160deg, #F4A300, #A86C00);
    }

    /* زعفران */
    .cat-card:nth-child(2) {
        background: linear-gradient(160deg, #D9A900, #806300);
    }

    /* زردچوبه */
    .cat-card:nth-child(3) {
        background: linear-gradient(160deg, #454545, #171717);
    }

    /* فلفل سیاه */
    .cat-card:nth-child(4) {
        background: linear-gradient(160deg, #C8102E, #6B0015);
    }

    /* فلفل قرمز */
    .cat-card:nth-child(5) {
        background: linear-gradient(160deg, #8B4513, #4A2408);
    }

    /* دارچین */
    .cat-card:nth-child(6) {
        background: linear-gradient(160deg, #D94A1E, #79250E);
    }

    /* پاپریکا */
    .cat-card:nth-child(7) {
        background: linear-gradient(160deg, #B98B68, #65432D);
    }

    /* پودر سیر */
    .cat-card:nth-child(8) {
        background: linear-gradient(160deg, #A77B5A, #5B3B28);
    }

    /* پودر پیاز */
    .cat-card:nth-child(9) {
        background: linear-gradient(160deg, #8B6B32, #493716);
    }

    /* ادویه کاری */
    .cat-card:nth-child(10) {
        background: linear-gradient(160deg, #4F772D, #263B16);
    }

    /* پودر آویشن */
    .cat-card:nth-child(11) {
        background: linear-gradient(160deg, #B56545, #653321);
    }

    /* ادویه مرغ */
    .cat-card:nth-child(12) {
        background: linear-gradient(160deg, #9C6B3D, #57371E);
    }

    /* ادویه خورشتی */
    .cat-card:nth-child(13) {
        background: linear-gradient(160deg, #397A8C, #1C3F4A);
    }

    /* ادویه ماهی */
    .cat-card:nth-child(14) {
        background: linear-gradient(160deg, #8B2635, #4C101C);
    }

    /* سماق */
    .cat-card:nth-child(15) {
        background: linear-gradient(160deg, #4A7C59, #1C3D2A);
    }

    /* سبزیجات معطر */
    .cat-card:nth-child(16) {
        background: linear-gradient(160deg, #6B6B6B, #333333);
    }

    /* سایر */

    .cat-card::before {
        content: attr(data-emoji);
        position: absolute;
        top: 25px;
        left: 25px;
        font-size: 64px;
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
        transition: transform 0.35s ease;
    }

    .cat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
    }

        .cat-card:hover::before {
            transform: scale(1.12) rotate(-8deg);
        }

    .cat-card h3 {
        margin-bottom: 6px;
        color: #fff;
        font-size: 24px;
        font-weight: 900;
    }

    .cat-card p {
        color: rgba(255, 255, 255, 0.86);
        font-size: 13px;
        line-height: 1.8;
    }

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 90px 5%;
    background: var(--charcoal);
    color: #fff;
}

.story-visual {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--chili), var(--cinnamon));
    font-size: 170px;
}

    .story-visual::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 70% 30%, transparent, rgba(0, 0, 0, 0.45) );
    }

.story-content h2 {
    margin-bottom: 22px;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.4;
}

    .story-content h2 span {
        color: var(--saffron);
    }

.story-content > p {
    margin-bottom: 18px;
    color: #c5c5c5;
    font-size: 15px;
    line-height: 2;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(244, 163, 0, 0.15);
    font-size: 19px;
}

.feature h3 {
    margin-bottom: 4px;
    color: var(--saffron);
    font-size: 14px;
}

.feature p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.8;
}

footer {
    padding: 48px 5% 26px;
    background: #0f0f0f;
    color: #999;
    text-align: center;
}

    footer .logo {
        justify-content: center;
        margin-bottom: 16px;
    }

    footer p {
        font-size: 13px;
        line-height: 2;
    }

@media (max-width: 900px) {
    header {
        gap: 16px;
    }

    nav ul {
        gap: 16px;
    }

    .header-cta {
        display: none;
    }

    .hero-visual {
        left: 3%;
        width: 34vw;
        opacity: 0.55;
    }

    .hero-content {
        max-width: 600px;
    }

    .story {
        grid-template-columns: 1fr;
    }

    .story-visual {
        min-height: 300px;
        font-size: 120px;
    }
}

@media (max-width: 640px) {
    .top-bar {
        font-size: 11px;
    }

    header,
    header.scrolled {
        padding-right: 5%;
        padding-left: 5%;
    }

    .logo {
        font-size: 21px;
    }

        .logo::before {
            font-size: 23px;
        }

    nav ul {
        gap: 12px;
    }

    nav a {
        font-size: 12px;
    }

    .hero {
        min-height: 90vh;
        padding: 150px 7% 80px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .hero p {
        margin-right: auto;
        margin-left: auto;
        font-size: 15px;
    }

    .hero-btns {
        justify-content: center;
    }

    .btn {
        padding: 12px 21px;
        font-size: 14px;
    }

    .categories {
        padding: 72px 5%;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cat-card {
        min-height: 230px;
        padding: 18px;
        border-radius: 17px;
    }

        .cat-card::before {
            top: 17px;
            left: 17px;
            font-size: 48px;
        }

        .cat-card h3 {
            font-size: 19px;
        }

        .cat-card p {
            font-size: 11px;
        }

    .story {
        gap: 32px;
        padding: 70px 7%;
    }

    .story-visual {
        min-height: 230px;
        font-size: 95px;
    }

    .features {
        gap: 16px 12px;
    }
}

@media (max-width: 380px) {
    nav ul {
        gap: 8px;
    }

    nav a {
        font-size: 11px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .cat-card {
        min-height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* صفحهٔ جزئیات محصول */
.product-page {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 145px 0 90px;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    margin-bottom: 32px;
    color: #8a8175;
    font-size: 13px;
}

    .product-breadcrumb a {
        color: #8a8175;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .product-breadcrumb a:hover {
            color: var(--chili);
        }

    .product-breadcrumb span:last-child {
        color: var(--charcoal);
        font-weight: 700;
    }

.product-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
    padding: 38px;
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 30px;
    background: #fffdf9;
    box-shadow: 0 20px 60px rgba(57, 37, 15, 0.07);
}

.product-eyebrow,
.section-kicker {
    margin-bottom: 9px;
    color: var(--chili);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-info h1 {
    margin-bottom: 12px;
    color: var(--charcoal);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
}

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: #756b5e;
    font-size: 13px;
}

.rating-stars {
    color: #efa900;
    letter-spacing: 2px;
    white-space: nowrap;
}

.product-rating a {
    color: #87663a;
    text-decoration: none;
}

    .product-rating a:hover {
        text-decoration: underline;
    }

.product-description {
    margin-bottom: 20px;
    color: #6b6259;
    font-size: 15px;
    line-height: 2;
}

.product-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 23px;
}

    .product-highlights span {
        padding: 8px 11px;
        border: 1px solid #f0e5d2;
        border-radius: 30px;
        background: #fffaf1;
        color: #715c3d;
        font-size: 11px;
    }

.product-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 17px 19px;
    border: 1px solid #f1e4ce;
    border-radius: 16px;
    background: #fff8eb;
}

.price-label,
.price-unit {
    display: block;
    color: #8b8172;
    font-size: 12px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 4px 0;
    color: var(--charcoal);
}

    .product-price strong {
        font-size: 25px;
        font-weight: 900;
    }

    .product-price span {
        font-size: 13px;
    }

.price-badge {
    padding: 8px 11px;
    border-radius: 30px;
    background: rgba(244, 163, 0, 0.14);
    color: #986500;
    font-size: 11px;
    font-weight: 700;
}

.quantity-row,
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quantity-row {
    margin: 19px 0;
    color: #51493e;
    font-size: 14px;
    font-weight: 700;
}

.quantity-control {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e7ddce;
    border-radius: 12px;
    background: #fff;
}

.quantity-button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff8eb;
    color: #684d24;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .quantity-button:hover {
        background: #f5e5c5;
    }

.quantity-control input {
    width: 48px;
    height: 38px;
    border: 0;
    border-right: 1px solid #eee4d6;
    border-left: 1px solid #eee4d6;
    color: var(--charcoal);
    font-family: inherit;
    font-size: 14px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

    .quantity-control input::-webkit-inner-spin-button,
    .quantity-control input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }

.total-row {
    padding: 16px 0;
    border-top: 1px solid #eee5d9;
    color: #51493e;
    font-size: 14px;
}

    .total-row strong {
        color: var(--chili);
        font-size: 21px;
    }

        .total-row strong span:last-child {
            color: #73665a;
            font-size: 13px;
        }

.add-to-cart-button,
.back-to-cart-button,
.properties-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.add-to-cart-button {
    width: 100%;
    margin-top: 8px;
    background: var(--chili);
    color: #fff;
    box-shadow: 0 9px 22px rgba(200, 16, 46, 0.18);
}

    .add-to-cart-button:hover {
        transform: translateY(-2px);
        background: #a90d26;
        box-shadow: 0 12px 26px rgba(200, 16, 46, 0.25);
    }

.product-stock-note {
    margin-top: 11px;
    color: #9a9186;
    font-size: 11px;
    text-align: center;
}

.product-gallery {
    min-width: 0;
}

.product-image-frame {
    position: relative;
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 26px;
    background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.45), transparent 40%), linear-gradient(145deg, #f9d88a, #e9a323 58%, #a85420);
    box-shadow: inset 0 0 45px rgba(95, 48, 8, 0.12);
}

.product-main-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    width: 220px;
    height: 270px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff8dc, #f2cf85);
    box-shadow: 0 24px 55px rgba(93, 50, 5, 0.23);
    font-size: 110px;
    transform: rotate(-4deg);
}

.image-caption {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 3;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(31, 24, 17, 0.72);
    color: #fff;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.image-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
}

.image-decoration-one {
    top: 45px;
    right: 50px;
    font-size: 35px;
}

.image-decoration-two {
    bottom: 75px;
    left: 50px;
    font-size: 26px;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
}

.gallery-thumbnail {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dfd3c0;
}

    .gallery-thumbnail.active {
        width: 25px;
        border-radius: 10px;
        background: var(--chili);
    }

.related-section {
    padding: 78px 0 58px;
}

.related-heading,
.reviews-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .related-heading h2,
    .reviews-heading h2,
    .properties-section h2 {
        color: var(--charcoal);
        font-size: clamp(25px, 4vw, 34px);
        font-weight: 900;
    }

        .related-heading h2 span,
        .reviews-heading h2 span {
            color: var(--chili);
        }

.all-products-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #795b31;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    position: relative;
    display: flex;
    min-height: 135px;
    align-items: center;
    gap: 15px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(57, 37, 15, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(57, 37, 15, 0.1);
    }

.related-emoji {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    place-items: center;
    border-radius: 17px;
    background: #fff5df;
    font-size: 34px;
}

.related-cinnamon .related-emoji {
    background: #f7e9df;
}

.related-paprika .related-emoji {
    background: #ffebe3;
}

.related-card h3 {
    margin-bottom: 5px;
    color: #30291f;
    font-size: 16px;
}

.related-card p {
    color: #8a8175;
    font-size: 11px;
    line-height: 1.8;
}

.related-arrow {
    margin-right: auto;
    color: #b7a487;
    font-size: 20px;
}

.product-extra-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 23px;
}

.back-to-cart-button,
.properties-button {
    padding: 0 21px;
}

.back-to-cart-button {
    background: var(--charcoal);
    color: #fff;
}

    .back-to-cart-button:hover {
        transform: translateY(-2px);
        background: #333;
    }

.properties-button {
    border: 1px solid #e9d9bb;
    background: #fff8eb;
    color: #76551e;
}

    .properties-button:hover {
        transform: translateY(-2px);
        background: #f7edda;
    }

.properties-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    border: 1px solid #eee2ce;
    border-radius: 22px;
    background: linear-gradient(110deg, #fffaf1, #f8edda);
}

.properties-icon {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    place-items: center;
    border-radius: 20px;
    background: #e8f0dd;
    font-size: 32px;
}

.properties-section h2 {
    margin-bottom: 9px;
    font-size: 23px;
}

.properties-section p:last-child {
    max-width: 850px;
    color: #6d6459;
    font-size: 13px;
    line-height: 2;
}

.reviews-section {
    padding-top: 78px;
}

.reviews-heading {
    align-items: center;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #786e60;
    font-size: 13px;
}

    .reviews-summary strong {
        color: var(--charcoal);
        font-size: 20px;
    }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.review-card {
    padding: 22px;
    border: 1px solid rgba(139, 69, 19, 0.09);
    border-radius: 18px;
    background: #fff;
}

.review-card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.review-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: #f8e5bd;
    color: #795a28;
    font-weight: 900;
}

.review-avatar-orange {
    background: #f6ded4;
    color: #9b4930;
}

.review-card-heading h3 {
    margin-bottom: 3px;
    color: #352e25;
    font-size: 13px;
}

.review-card-heading div:nth-child(2) span {
    color: #9a9186;
    font-size: 11px;
}

.review-card-heading .rating-stars {
    margin-right: auto;
    font-size: 12px;
}

.review-card > p {
    color: #6d6459;
    font-size: 13px;
    line-height: 1.9;
}

.review-note {
    margin-top: 15px;
    color: #938a7e;
    font-size: 11px;
}

.cart-toast {
    position: fixed;
    right: 50%;
    bottom: 25px;
    z-index: 1500;
    width: min(440px, 90%);
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #252019;
    color: #fff;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    .cart-toast.show {
        opacity: 1;
        transform: translate(50%, 0);
    }

@media (max-width: 850px) {
    .product-main {
        grid-template-columns: 1fr 0.85fr;
        gap: 30px;
        padding: 25px;
    }

    .product-image-frame {
        min-height: 360px;
    }

    .related-card {
        gap: 10px;
        padding: 15px;
    }

    .related-emoji {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .product-page {
        width: 92%;
        padding-top: 125px;
        padding-bottom: 60px;
    }

    .product-breadcrumb {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
        border-radius: 22px;
    }

    .product-gallery {
        grid-row: 1;
    }

    .product-info {
        grid-row: 2;
    }

    .product-image-frame {
        min-height: 310px;
    }

    .image-placeholder {
        width: 175px;
        height: 215px;
        font-size: 85px;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .product-description {
        font-size: 14px;
    }

    .related-section {
        padding: 58px 0 42px;
    }

    .related-heading {
        align-items: flex-start;
    }

    .all-products-link {
        margin-top: 22px;
        font-size: 11px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .related-card {
        min-height: 105px;
    }

    .product-extra-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .properties-section {
        align-items: flex-start;
        gap: 15px;
        padding: 21px;
    }

    .properties-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 15px;
        font-size: 25px;
    }

    .properties-section h2 {
        font-size: 20px;
    }

    .reviews-section {
        padding-top: 58px;
    }

    .reviews-heading {
        align-items: flex-start;
    }

    .reviews-summary {
        margin-top: 25px;
        gap: 4px;
        font-size: 11px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .product-main {
        padding: 15px;
    }

    .product-price-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .price-badge {
        align-self: flex-start;
    }

    .related-heading {
        flex-direction: column;
        gap: 8px;
    }

    .all-products-link {
        margin-top: 0;
    }
}
/* چیدمان محصولات در شبکه */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* استایل کارت محصول */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

/* بخش تصویر */
.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f8f8;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* بسیار مهم برای اینکه عکس‌ها دفرمه نشوند */
    }

.lack-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* بخش اطلاعات و قیمت */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    height: 2.4em; /* برای یکسان بودن ارتفاع عنوان‌ها */
    overflow: hidden;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.current-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

.product-actions {
    padding: 0 15px 15px;
}
/* ۱. حل مشکل خط خوردن روی هر دو عدد */
.old-price {
    text-decoration: line-through; /* فقط روی قیمت قدیمی خط می‌افتد */
    color: #9ca3af; /* خاکستری روشن */
    font-size: 0.9em;
    margin-left: 8px;
}

.current-price {
    text-decoration: none !important; /* اطمینان از اینکه روی قیمت جدید خط نمی‌افتد */
    color: #ef4444; /* قرمز برای قیمت جدید (اختیاری) */
    font-weight: bold;
}

/* ۲. حل مشکل تقاطع (تداخل) تخفیف با نام محصول */
.product-card {
    position: relative; /* برای اینکه badge نسبت به کارت قرار بگیرد */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    position: relative; /* این باعث می‌شود badge داخل محدوده عکس بماند */
    width: 100%;
    padding-bottom: 100%; /* ایجاد نسبت تصویر ۱ به ۱ برای عکس‌ها */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.discount-badge {
    position: absolute;
    top: 10px; /* فاصله از بالای عکس */
    right: 10px; /* فاصله از سمت راست عکس */
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 10; /* اطمینان از اینکه روی عکس قرار می‌گیرد */
}

/* ۳. ایجاد فاصله بین بخش عکس و بخش اطلاعات (نام و قیمت) */
.product-info {
    padding: 15px 10px; /* ایجاد فاصله داخلی برای متن‌ها */
    text-align: right;
}

.product-title {
    margin-bottom: 10px; /* فاصله بین نام محصول و قیمت */
    font-size: 1.1rem;
    height: 2.4em; /* ثابت نگه داشتن ارتفاع برای نظم در چیدمان */
    overflow: hidden;
}
.product-link {
    text-decoration: none !important; /* این خط باعث می‌شود هیچ لینک یا آندرلاینی زیر متن‌ها نباشد */
    color: inherit; /* باعث می‌شود رنگ متن‌ها تغییر نکند و از رنگ اصلی خودشان استفاده کنند */
}

/* اطمینان از اینکه قیمت جدید هیچ خطی ندارد */
.current-price {
    text-decoration: none !important;
    display: inline-block; /* برای کنترل بهتر استایل */
}

/* اطمینان از اینکه قیمت قدیمی فقط خط دارد و آندرلاین ندارد */
.old-price {
    text-decoration: line-through !important;
    text-decoration-color: #9ca3af; /* رنگ خط روی قیمت قدیمی */
}