/* =========================================================
   SERITTO HOME PAGE - PREMIUM PRO REDESIGN (FINAL & OPTIMIZED)
   Frameworks: RTL / Bootstrap 5 / Swiper JS Compatible
   Design System: Digikala-inspired, Green/Red Accents
========================================================= */

/* =========================================================
   1) DESIGN TOKENS & VARIABLES
========================================================= */
:root {
    /* Colors - Brand Identity */
    --sr-primary: #138a42;
    --sr-primary-dark: #0d6f35;
    --sr-primary-soft: #eaf8ef;

    --sr-danger: #ef394e;
    --sr-danger-dark: #d92b42;
    --sr-danger-soft: #fff1f3;

    --sr-warning: #ff9800;
    --sr-accent: #ffc107;

    /* Colors - Neutrals */
    --sr-text: #1f2937;
    --sr-text-soft: #4b5563;
    --sr-muted: #6b7280;
    --sr-bg: #ffffff;
    --sr-bg-soft: #f8fafc;
    --sr-bg-mute: #f1f5f9;
    --sr-border: #e9eef5;
    --sr-white: #ffffff;

    /* Border Radius System */
    --sr-radius-xs: 8px;
    --sr-radius-sm: 12px;
    --sr-radius-md: 16px;
    --sr-radius-lg: 24px;
    --sr-radius-xl: 32px;

    /* Premium Shadow System */
    --sr-shadow-xs: 0 4px 14px rgba(15, 23, 42, 0.04);
    --sr-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --sr-shadow-md: 0 16px 38px rgba(15, 23, 42, 0.08);
    --sr-shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.12);

    /* Category Specific Custom Shadows */
    --sr-shadow-category: 0 10px 25px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.01);
    --sr-shadow-category-hover: 0 20px 35px rgba(19, 138, 66, 0.12);

    /* Animation Curve (Spring Elastic Feel) */
    --sr-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --sr-transition-fast: 0.2s ease;
    --sr-transition: 0.4s var(--sr-ease);

    /* Layout & Fluid Spacers */
    --sr-container: 1240px;
    --sr-container-wide: 1400px;
    --sr-section-space: clamp(40px, 5vw, 72px);
}

/* =========================================================
   2) RESET & BASE STYLES
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    overflow-x: hidden;
    background: var(--sr-bg);
    color: var(--sr-text);
    font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section {
    position: relative;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--sr-transition-fast),
                background-color var(--sr-transition-fast),
                border-color var(--sr-transition-fast),
                transform var(--sr-transition-fast),
                box-shadow var(--sr-transition-fast);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================================================
   3) UTILITY BLOCKS
========================================================= */
.empty-state {
    width: 100%;
    padding: 48px 24px;
    text-align: center;
    color: var(--sr-muted);
    background: var(--sr-bg-soft);
    border: 2px dashed var(--sr-border);
    border-radius: var(--sr-radius-lg);
}

.img-shimmer {
    position: relative;
    overflow: hidden;
    background: var(--sr-bg-mute);
}

.img-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: sr-shimmer 1.6s infinite;
}

@keyframes sr-shimmer {
    100% {
        transform: translateX(-100%);
    }
}

/* =========================================================
   4) SHARED SECTION TITLE
========================================================= */
.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(24px, 4vw, 44px);
    text-align: center;
}

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 20px);
    margin: 0;
    color: var(--sr-text);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.5;
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: "";
    width: clamp(20px, 4vw, 60px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--sr-primary),
        var(--sr-danger)
    );
    transition: width var(--sr-transition);
}

.section-title::before {
    transform: rotate(180deg);
}

.section-title-wrap:hover .section-title::before,
.section-title-wrap:hover .section-title::after {
    width: clamp(35px, 6vw, 85px);
}

/* =========================================================
   5) FULL WIDTH HERO SLIDER (EDGE-TO-EDGE)
========================================================= */
.full-hero-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--sr-white);
    overflow: hidden;
}

.full-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--sr-shadow-xs);
}

.full-hero-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: clamp(220px, 35vh, 520px);
    background: var(--sr-bg-mute);
}

.full-hero-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.12) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.full-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.0);
    transition: transform 8s ease, filter 0.4s ease;
    will-change: transform;
}

.swiper-slide-active .full-hero-image,
.carousel-item.active .full-hero-image {
    transform: scale(1.05);
}

.full-hero-indicators {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    transform: translateX(-50%);
}

.full-hero-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width var(--sr-transition),
                background-color var(--sr-transition),
                transform var(--sr-transition);
    opacity: 1;
}

.full-hero-indicators .active {
    width: 22px;
    background: var(--sr-white);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.full-hero-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
}

.full-hero-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-danger));
    animation: sr-hero-progress 5s linear infinite;
}

@keyframes sr-hero-progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* =========================================================
   6) CATEGORIES SECTION (CENTERED & PROMINENT IMAGES)
========================================================= */
.category-section {
    padding: clamp(32px, 5vw, 56px) 0;
    background: linear-gradient(180deg, var(--sr-white) 0%, rgba(19, 138, 66, 0.03) 100%);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* این بخش تغییر کرد: فاصله‌ها بسیار بیشتر شد */
    gap: clamp(40px, 6vw, 80px); 
    max-width: var(--sr-container, 1400px);
    margin: 0 auto;
    padding: 0 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;

    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px); 
}

.category-card:focus-visible {
    outline: none;
}

.category-image {
    /* حداقل سایز برای موبایل به 170 پیکسل افزایش یافت */
    width: clamp(170px, 40vw, 210px); 
    height: clamp(170px, 40vw, 210px);
    
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.04),
        0 4px 10px rgba(0, 0, 0, 0.02),
        inset 0 0 0 1px rgba(0, 0, 0, 0.03);
        
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.category-card:hover .category-image {
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 0 0 2px var(--sr-primary, #00bf6f);
}

.category-image img {
    width: 97%; 
    height: 97%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    margin: 0;
    color: var(--sr-text, #333);
    font-size: clamp(0.85rem, 1.2vw, 1rem); 
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--sr-primary, #138a42);
}

/* =========================================================
   7) DISCOUNT SLIDER / SPECIAL OFFERS
========================================================= */
.discount-slider-section {
    padding: 32px 0 56px;
    background: linear-gradient(180deg, var(--sr-white) 0%, #fffbfc 100%);
}

.discount-slider-container {
    width: min(100% - 32px, var(--sr-container-wide));
    margin: 0 auto;
}

.discount-products-wrap {
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 3vw, 28px);
    background: linear-gradient(135deg, var(--sr-danger), var(--sr-danger-dark));
    border-radius: var(--sr-radius-xl);
    box-shadow: 0 16px 40px rgba(239, 57, 78, 0.18);
}

.discount-products-wrap::before {
    content: "";
    position: absolute;
    top: -120px;
    left: -100px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.discount-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(16px, 2.5vw, 24px);
    text-align: center;
    color: var(--sr-white);
    background: linear-gradient(180deg, #ff5b6e, #d3122d);
    border-radius: var(--sr-radius-lg);
    gap: 16px;
}

.discount-banner h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.discount-banner img {
    width: 60%;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform var(--sr-transition);
}

.discount-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    color: var(--sr-danger-dark);
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--sr-white);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
}

.discount-banner a:hover {
    color: var(--sr-danger-dark);
    background: var(--sr-danger-soft);
    transform: translateY(-2px);
}

/* Discount Product Card */
.discount-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: var(--sr-white);
    border-radius: var(--sr-radius-lg);
    transition: transform var(--sr-transition), box-shadow var(--sr-transition);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 3px 10px;
    color: var(--sr-white);
    font-size: 0.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sr-danger), var(--sr-warning));
    border-radius: 999px;
}

.discount-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(120px, 15vw, 160px);
    margin-bottom: 12px;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--sr-white) 0%, var(--sr-bg-soft) 100%);
    border-radius: var(--sr-radius-md);
}

.discount-product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform var(--sr-transition);
}

.discount-product-card h3 {
    display: -webkit-box;
    height: 40px;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.discount-product-card h3 a:hover {
    color: var(--sr-primary);
}

.discount-product-card .price {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: 12px;
}

.discount-product-card .price strong {
    color: var(--sr-danger);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    font-weight: 950;
}

.discount-product-card .price del {
    color: var(--sr-muted);
    font-size: 0.78rem;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    color: var(--sr-white);
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-dark));
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(19, 138, 66, 0.12);
}

.cart-btn:hover {
    color: var(--sr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 138, 66, 0.22);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--sr-text);
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: 50%;
    box-shadow: var(--sr-shadow-sm);
    cursor: pointer;
    transform: translateY(-50%);
    transition: var(--sr-transition);
}

.discountPrev {
    right: -20px;
}

.discountNext {
    left: -20px;
}

/* =========================================================
   8) ABOUT US SECTION
========================================================= */
.about-us-section {
    padding: var(--sr-section-space) 0;
    background:
        radial-gradient(circle at right, rgba(19, 138, 66, 0.02), transparent 35%),
        var(--sr-white);
}

.about-us-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    width: min(100% - 32px, var(--sr-container));
    margin: 0 auto;
}

.about-us-image {
    position: relative;
    padding: clamp(12px, 2vw, 24px);
    background: var(--sr-bg-soft);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
}

.about-us-image img {
    margin: 0 auto;
    border-radius: var(--sr-radius-md);
    transition: transform var(--sr-transition);
}

.about-us-image:hover img {
    transform: scale(1.015);
}

.about-us-subtitle {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 14px;
    color: var(--sr-primary);
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--sr-primary-soft);
    border-radius: 999px;
}

.about-us-content h2 {
    margin: 0 0 16px;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 900;
    line-height: 1.5;
}

.about-us-content p {
    margin: 0 0 24px;
    color: var(--sr-muted);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 2.0;
}

.about-us-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.about-us-feature {
    padding: clamp(10px, 1.5vw, 18px) 10px;
    text-align: center;
    background: var(--sr-bg-soft);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-md);
    transition: var(--sr-transition);
}

.about-us-feature:hover {
    background: var(--sr-white);
    border-color: rgba(19, 138, 66, 0.18);
    box-shadow: var(--sr-shadow-sm);
    transform: translateY(-3px);
}

.about-us-feature strong {
    display: block;
    color: var(--sr-primary);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 900;
}

.about-us-feature span {
    display: block;
    margin-top: 4px;
    color: var(--sr-muted);
    font-size: 0.78rem;
}

.about-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 28px;
    color: var(--sr-white);
    font-weight: 800;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-dark));
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(19, 138, 66, 0.18);
}

.about-us-btn:hover {
    color: var(--sr-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 138, 66, 0.28);
}

/* =========================================================
   9) PREMIUM PRODUCTS (PEANUT PRODUCTS)
========================================================= */
.premium-peanut-section {
    padding: var(--sr-section-space) 0;
    background: var(--sr-bg-soft);
}

.premium-peanut-panel {
    padding: clamp(16px, 3vw, 28px);
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-xl);
    box-shadow: var(--sr-shadow-sm);
}

.premium-peanut-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.premium-peanut-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--sr-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.premium-peanut-header h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-weight: 900;
}

.premium-peanut-header p {
    margin: 6px 0 0;
    color: var(--sr-muted);
}

.premium-peanut-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-peanut-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--sr-text);
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: 50%;
    transition: var(--sr-transition);
}

.premium-peanut-arrow:hover {
    color: var(--sr-white);
    background: var(--sr-primary);
    border-color: var(--sr-primary);
}

.premium-peanut-more {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    color: var(--sr-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--sr-primary-soft);
    border-radius: 999px;
}

/* Premium Product Card */
.premium-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
    transition: transform var(--sr-transition),
                box-shadow var(--sr-transition),
                border-color var(--sr-transition);
}

.premium-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(150px, 19vw, 210px);
    padding: 16px;
    background: radial-gradient(circle, var(--sr-white), var(--sr-bg-soft));
}

.premium-product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform var(--sr-transition);
}

.premium-product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.premium-badge {
    padding: 4px 10px;
    color: var(--sr-white);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
}

.premium-badge-sale {
    background: var(--sr-danger);
}

.premium-badge-stock {
    background: var(--sr-primary);
}

.premium-badge-out {
    background: #6b7280;
}

.premium-product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: clamp(14px, 1.8vw, 18px);
}

.premium-product-info h3 {
    display: -webkit-box;
    height: 40px;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.premium-product-meta span {
    padding: 4px 8px;
    color: var(--sr-muted);
    font-size: 0.72rem;
    background: var(--sr-bg-mute);
    border-radius: 999px;
}

.premium-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.premium-product-price strong {
    color: var(--sr-primary);
    font-size: clamp(0.98rem, 1.3vw, 1.2rem);
    font-weight: 950;
}

.premium-product-price del {
    display: block;
    color: var(--sr-muted);
    font-size: 0.75rem;
}

.premium-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 35px;
    color: var(--sr-primary);
    background: var(--sr-primary-soft);
    border: none;
    border-radius: 8px;
    transition: var(--sr-transition);
    flex-shrink: 0;
}

.premium-peanut-progress {
    position: relative !important;
    height: 4px !important;
    margin-top: 24px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 999px;
}

.premium-peanut-progress .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-danger));
}

/* =========================================================
   10) TESTIMONIALS SECTION
========================================================= */
.testimonials-section {
    padding: var(--sr-section-space) 0;
    background: var(--sr-white);
}

.testimonials-container,
.articles-container,
.faq-container {
    width: min(100% - 32px, var(--sr-container));
    margin: 0 auto;
}

.testimonials-title-wrap,
.articles-title,
.faq-title {
    margin-bottom: 28px;
    text-align: center;
}

.testimonials-title-wrap h2,
.articles-title h2,
.faq-title h2 {
    margin: 8px 0;
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 900;
}

.testimonials-title-wrap p,
.articles-title p,
.faq-title p {
    color: var(--sr-muted);
    font-size: clamp(0.82rem, 1vw, 0.92rem);
}

.testimonials-head,
.articles-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonials-nav,
.articles-nav {
    display: flex;
    gap: 8px;
}

.testimonialNext,
.testimonialPrev,
.articleNext,
.articlePrev {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--sr-text);
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: 50%;
    transition: var(--sr-transition);
}

.testimonialNext:hover,
.testimonialPrev:hover,
.articleNext:hover,
.articlePrev:hover {
    color: var(--sr-white);
    background: var(--sr-primary);
    border-color: var(--sr-primary);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(16px, 2.2vw, 24px);
    background: var(--sr-bg-soft);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
    transition: var(--sr-transition);
}

.testimonial-card:hover {
    background: var(--sr-white);
    box-shadow: var(--sr-shadow-sm);
    transform: translateY(-3px);
}

.testimonial-quote {
    margin-bottom: -4px;
    color: rgba(239, 57, 78, 0.12);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 0.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.testimonial-user img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border: 2px solid var(--sr-white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-user h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.testimonial-user span {
    color: var(--sr-muted);
    font-size: 0.75rem;
}

.testimonial-card p {
    flex-grow: 1;
    margin-bottom: 14px;
    color: var(--sr-muted);
    font-size: clamp(0.8rem, 1vw, 0.88rem);
    line-height: 1.8;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-rate {
    color: var(--sr-accent);
    font-size: 0.85rem;
}

/* =========================================================
   11) ARTICLES SECTION
========================================================= */
.articles-section {
    padding: var(--sr-section-space) 0;
    background: var(--sr-bg-soft);
}

.article-card {
    height: 100%;
    overflow: hidden;
    background: var(--sr-white);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
    transition: transform var(--sr-transition), box-shadow var(--sr-transition);
}

.article-image {
    position: relative;
    height: clamp(150px, 17vw, 190px);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-image span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    color: var(--sr-primary);
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

.article-content {
    padding: clamp(14px, 2vw, 18px);
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--sr-muted);
    font-size: 0.75rem;
}

.article-content h3 {
    margin: 0 0 10px;
    font-size: clamp(0.85rem, 1.2vw, 0.98rem);
    font-weight: 900;
    line-height: 1.6;
}

.article-content p {
    color: var(--sr-muted);
    font-size: clamp(0.78rem, 1vw, 0.85rem);
    line-height: 1.8;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sr-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.article-link:hover {
    color: var(--sr-primary-dark);
}

/* =========================================================
   12) FAQ SECTION
========================================================= */
.faq-section {
    padding: var(--sr-section-space) 0;
    background: var(--sr-white);
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
    background: var(--sr-bg-soft);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-md);
    transition: var(--sr-transition);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    color: var(--sr-text);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 800;
    text-align: right;
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-question i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--sr-primary);
    background: var(--sr-white);
    border-radius: 50%;
    transition: var(--sr-transition);
    flex-shrink: 0;
    margin-right: 12px;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(19, 138, 66, 0.2);
    outline-offset: 3px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--sr-muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

.faq-item.active {
    background: var(--sr-white);
    border-color: rgba(19, 138, 66, 0.22);
    box-shadow: var(--sr-shadow-sm);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    color: var(--sr-white);
    background: var(--sr-primary);
    transform: rotate(45deg);
}

/* =========================================================
   13) DESKTOP ONLY INTERACTION HOVERS (NO MOBILE DOUBLE-TAP)
========================================================= */
@media (hover: hover) and (pointer: fine) {
    .category-card:hover .category-image {
        transform: translateY(-6px);
        border-color: rgba(19, 138, 66, 0.2);
        box-shadow: var(--sr-shadow-category-hover);
        background: #ffffff;
    }

    .category-card:hover .category-image::before {
        opacity: 1;
        transform: scale(1.15);
    }

    .category-card:hover .category-image img {
        transform: scale(1.1) rotate(-2deg);
    }

    .category-card:hover h3 {
        color: var(--sr-primary);
    }

    .discount-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
    }

    .discount-product-card:hover .discount-product-image img {
        transform: scale(1.05);
    }

    .slider-arrow:hover {
        color: var(--sr-white);
        background: var(--sr-primary);
        border-color: var(--sr-primary);
        transform: translateY(-50%) scale(1.05);
    }

    .premium-product-card:hover {
        transform: translateY(-6px);
        border-color: rgba(19, 138, 66, 0.18);
        box-shadow: var(--sr-shadow-md);
    }

    .premium-product-card:hover .premium-product-image img {
        transform: scale(1.05);
    }

    .premium-product-card:hover .premium-product-btn {
        color: var(--sr-white);
        background: var(--sr-primary);
    }

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sr-shadow-md);
    }

    .article-card:hover .article-image img {
        transform: scale(1.05);
    }
}

/* =========================================================
   14) EXPERT RESPONSIVE TUNING
========================================================= */

/* Large Tablets & Desktop Boundaries */
@media (max-width: 1200px) {
    .discountPrev { right: -10px; }
    .discountNext { left: -10px; }
}

/* Medium Tablets (iPad Portrait, Touch Screens) */
@media (max-width: 991px) {
    .about-us-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-us-image {
        order: 2; /* تصویر به زیر متن منتقل می‌شود تا محتوا بالاتر باشد */
        max-width: 600px;
        margin: 0 auto;
    }

    .about-us-content {
        order: 1;
        text-align: center;
    }

    .about-us-subtitle {
        justify-content: center;
    }

    .premium-peanut-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .premium-peanut-controls {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    /* رفتار دکمه بنر در حالت تبلت */
    .discount-banner {
        min-height: auto;
        padding: 24px;
    }
    
    .discount-banner img {
        max-width: 120px;
    }
}

/* Small Tablets / Large Mobile */
@media (max-width: 767px) {
    :root {
        --sr-section-space: 36px;
    }

    .full-hero-item {
        height: auto;
        aspect-ratio: 16 / 8;
    }

    .full-hero-indicators {
        bottom: 10px;
    }

    .full-hero-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
    }

    .full-hero-indicators .active {
        width: 16px;
    }

    .category-section {
        padding: 32px 0;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* ۳ ستون برای تبلت‌های کوچک */
        gap: 24px;
        padding: 0 16px;
    }

    .category-image {
        width: clamp(100px, 20vw, 140px);
        height: clamp(100px, 20vw, 140px);
        margin-bottom: 12px;
    }

    .category-image img {
        width: 85%; /* عکس بزرگ و پر داخل دایره */
        height: 85%;
    }

    .category-card h3 {
        font-size: 0.9rem;
    }


    /* مخفی سازی هوشمند فلش‌ها در موبایل و تبلت برای تجربه لمسی روان (Native Touch Swipe) */
    .slider-arrow, 
    .premium-peanut-controls,
    .testimonials-nav, 
    .articles-nav {
        display: none !important;
    }

    .discount-slider-section {
        padding: 24px 0 40px;
    }

    .discount-products-wrap {
        padding: 16px;
        border-radius: var(--sr-radius-lg);
    }

    /* بنر تخفیف در بالا قرار می‌گیرد و محصولات در زیر آن با اسکرول افقی عالی کار می‌کنند */
    .discount-banner {
        padding: 20px;
        border-radius: var(--sr-radius-md);
    }

    .discount-product-card {
        padding: 12px;
    }

    .discount-product-image {
        height: 120px;
    }

    .about-us-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .about-us-feature {
        padding: 14px;
    }

    .testimonials-head,
    .articles-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* Mobile Portrait Mode (Smartphones) */
@media (max-width: 480px) {
    .category-grid {
        /* تغییر به ۲ ستون در موبایل برای نمایش دایره‌های بسیار بزرگ و جذاب */
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 20px;
    }

    .category-image {
        /* دایره‌ها در موبایل تا جای ممکن بزرگ می‌شوند */
        width: clamp(130px, 40vw, 170px); 
        height: clamp(130px, 40vw, 170px);
    }

    .category-image img {
        width: 90%; /* بیشترین فضای ممکن برای خود عکس محصول/آیکون */
        height: 90%;
    }

    .discount-product-image {
        height: 110px;
    }

    .premium-product-image {
        height: 130px;
    }

    .premium-peanut-panel {
        padding: 12px;
    }

    .article-image {
        height: 150px;
    }

    .full-hero-item {
        aspect-ratio: 16 / 9;
    }
}

/* Small Screens (Below 360px) */
@media (max-width: 359px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
}

/* =========================================================
   15) SYSTEM PREFERENCE (REDUCED MOTION)
========================================================= */
@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;
        scroll-behavior: auto !important;
    }
}
