/* =========================================================
   SERITTO HOME PAGE - FULL PROFESSIONAL REDESIGN
   RTL / Bootstrap 5 / Swiper Compatible
   Mobile-first / Digikala-inspired / Green + Red Brand
========================================================= */


/* =========================================================
   1) DESIGN TOKENS
========================================================= */
:root {
    --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;

    --sr-text: #111827;
    --sr-text-soft: #374151;
    --sr-muted: #6b7280;

    --sr-bg: #ffffff;
    --sr-bg-soft: #f8fafc;
    --sr-bg-mute: #f1f5f9;

    --sr-border: #e5e7eb;
    --sr-border-soft: #eef2f7;
    --sr-white: #ffffff;

    --sr-radius-xs: 8px;
    --sr-radius-sm: 12px;
    --sr-radius-md: 16px;
    --sr-radius-lg: 22px;
    --sr-radius-xl: 30px;

    --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 40px rgba(15, 23, 42, 0.09);
    --sr-shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.12);

    --sr-transition-fast: 0.22s ease;
    --sr-transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    --sr-container: 1240px;
    --sr-container-wide: 1420px;
    --sr-section-space: clamp(38px, 5vw, 72px);
}


/* =========================================================
   2) RESET & BASE
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    overflow-x: hidden;
    margin: 0;
    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;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.swiper {
    direction: rtl;
}

.swiper-slide {
    height: auto;
}


/* =========================================================
   3) UTILITIES
========================================================= */
.empty-state,
.premium-empty-product {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    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.5),
        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(22px, 4vw, 42px);
    text-align: center;
}

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 18px);
    margin: 0;
    color: var(--sr-text);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 950;
    line-height: 1.5;
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: "";
    width: clamp(22px, 5vw, 62px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-danger));
}

.section-title::before {
    transform: rotate(180deg);
}


/* =========================================================
   5) HERO SLIDER
========================================================= */
.full-hero-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--sr-white);
}

.full-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--sr-bg-mute);
}

.full-hero-slider.swiper,
.full-hero-slider .swiper-wrapper,
.full-hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.full-hero-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1792 / 592;
    background: var(--sr-bg-mute);
}

.full-hero-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 45%, rgba(0, 0, 0, 0.10));
}

.full-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 7s ease;
}

.swiper-slide-active .full-hero-image,
.carousel-item.active .full-hero-image {
    transform: scale(1.045);
}

.full-hero-indicators {
    position: absolute;
    inset-inline-start: 50%;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    transform: translateX(-50%);
}

.full-hero-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: width var(--sr-transition-fast), background var(--sr-transition-fast);
}

.full-hero-indicators .active {
    width: 22px;
    background: #ffffff;
}

.full-hero-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.full-hero-progress span {
    display: block;
    width: 0;
    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
========================================================= */
.category-section {
    padding: clamp(34px, 5vw, 60px) 0;
    background:
        radial-gradient(circle at top right, rgba(19, 138, 66, 0.045), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(28px, 5vw, 76px);
    width: min(100% - 32px, var(--sr-container-wide));
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.category-image {
    position: relative;
    width: clamp(150px, 16vw, 210px);
    height: clamp(150px, 16vw, 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 50%;
    box-shadow:
        0 14px 30px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform var(--sr-transition-fast), box-shadow var(--sr-transition-fast);
}

.category-image img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    transition: transform var(--sr-transition-fast);
}

.category-card h3 {
    margin: 0;
    color: var(--sr-text);
    font-size: clamp(0.82rem, 1vw, 1rem);
    font-weight: 850;
    line-height: 1.5;
}


/* =========================================================
   7) DISCOUNT SLIDER
========================================================= */
.discount-slider-section {
    padding: 34px 0 58px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8fa 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:
        radial-gradient(circle at left top, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, var(--sr-danger), var(--sr-danger-dark));
    border-radius: var(--sr-radius-xl);
    box-shadow: 0 18px 45px rgba(239, 57, 78, 0.20);
}

.discount-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 100%;
    padding: clamp(16px, 2.5vw, 24px);
    text-align: center;
    color: #ffffff;
    background: linear-gradient(180deg, #ff5b6e, #d3122d);
    border-radius: var(--sr-radius-lg);
}

.discount-banner h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 950;
    line-height: 1.5;
}

.discount-banner img {
    width: 60%;
    max-width: 145px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.discount-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 20px;
    color: var(--sr-danger-dark);
    font-size: 0.85rem;
    font-weight: 900;
    background: #ffffff;
    border-radius: 999px;
}

.discount-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--sr-radius-lg);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform var(--sr-transition-fast), box-shadow var(--sr-transition-fast);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 9px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--sr-danger), var(--sr-warning));
    border-radius: 999px;
}

.discount-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(118px, 15vw, 165px);
    margin-bottom: 12px;
    overflow: hidden;
    background: radial-gradient(circle, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--sr-radius-md);
}

.discount-product-image img {
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
    transition: transform var(--sr-transition-fast);
}

.discount-product-card h3 {
    display: -webkit-box;
    height: 43px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--sr-text);
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.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.76rem;
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-dark));
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(19, 138, 66, 0.16);
}

.cart-btn:hover {
    color: #ffffff;
}

.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: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: 50%;
    box-shadow: var(--sr-shadow-sm);
    transform: translateY(-50%);
}

.discountPrev {
    right: -18px;
}

.discountNext {
    left: -18px;
}


/* =========================================================
   8) ABOUT US
========================================================= */
.about-us-section {
    padding: var(--sr-section-space) 0;
    background:
        radial-gradient(circle at right, rgba(19, 138, 66, 0.04), transparent 35%),
        #ffffff;
}

.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 {
    padding: clamp(12px, 2vw, 24px);
    background: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-xl);
    box-shadow: var(--sr-shadow-sm);
}

.about-us-image img {
    margin: 0 auto;
    border-radius: var(--sr-radius-lg);
}

.about-us-subtitle {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 3px 13px;
    color: var(--sr-primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--sr-primary-soft);
    border-radius: 999px;
}

.about-us-content h2 {
    margin: 0 0 14px;
    color: var(--sr-text);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 950;
    line-height: 1.55;
}

.about-us-content p {
    margin: 0 0 24px;
    color: var(--sr-muted);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 2.05;
}

.about-us-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.about-us-feature {
    padding: clamp(12px, 1.5vw, 18px) 10px;
    text-align: center;
    background: var(--sr-bg-soft);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-md);
}

.about-us-feature strong {
    display: block;
    color: var(--sr-primary);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 950;
}

.about-us-feature span {
    display: block;
    margin-top: 5px;
    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: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-dark));
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(19, 138, 66, 0.16);
}

.about-us-btn:hover {
    color: #ffffff;
}


/* =========================================================
   9) PREMIUM PEANUT PRODUCTS
========================================================= */
.premium-peanut-section {
    padding: clamp(34px, 5vw, 72px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(19, 138, 66, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.premium-peanut-section .container-fluid {
    width: min(100% - 24px, var(--sr-container-wide));
    margin-inline: auto;
    padding-inline: 0 !important;
}

.premium-peanut-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 3vw, 30px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
        radial-gradient(circle at left top, rgba(239, 57, 78, 0.07), transparent 30%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: clamp(18px, 2vw, 30px);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.065),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-peanut-panel::before,
.premium-peanut-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.premium-peanut-panel::before {
    top: -90px;
    left: -90px;
    width: 220px;
    height: 220px;
    background: rgba(239, 57, 78, 0.055);
}

.premium-peanut-panel::after {
    right: -110px;
    bottom: -120px;
    width: 260px;
    height: 260px;
    background: rgba(19, 138, 66, 0.055);
}

.premium-peanut-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(18px, 2.8vw, 30px);
}

.premium-peanut-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-bottom: 8px;
    padding: 3px 12px;
    color: var(--sr-primary-dark);
    font-size: 0.76rem;
    font-weight: 950;
    background: var(--sr-primary-soft);
    border: 1px solid rgba(19, 138, 66, 0.12);
    border-radius: 999px;
}

.premium-peanut-header h2 {
    margin: 0;
    color: var(--sr-text);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 950;
    line-height: 1.45;
}

.premium-peanut-header p {
    max-width: 560px;
    margin: 7px 0 0;
    color: var(--sr-muted);
    font-size: clamp(0.8rem, 1vw, 0.92rem);
    line-height: 1.9;
}

.premium-peanut-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.premium-peanut-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--sr-text);
    background: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.premium-peanut-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    color: var(--sr-primary-dark);
    font-size: 0.82rem;
    font-weight: 950;
    white-space: nowrap;
    background: var(--sr-primary-soft);
    border: 1px solid rgba(19, 138, 66, 0.14);
    border-radius: 14px;
}

.premiumPeanutSlider {
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 2px 2px 4px;
}

.premiumPeanutSlider .swiper-wrapper {
    align-items: stretch;
}

.premium-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 365px;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    transition:
        transform var(--sr-transition-fast),
        box-shadow var(--sr-transition-fast),
        border-color var(--sr-transition-fast);
}

.premium-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(19, 138, 66, 0.035) 100%);
    transition: opacity var(--sr-transition-fast);
}

.premium-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(175px, 18vw, 230px);
    padding: 18px;
    overflow: hidden;
    background: radial-gradient(circle at center 48%, #ffffff 0%, #f7faf8 58%, #eff8f2 100%);
}

.premium-product-image::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 16px;
    width: 58%;
    height: 18px;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 50%;
    filter: blur(8px);
    transform: translateX(50%);
}

.premium-product-image img {
    position: relative;
    z-index: 2;
    max-width: 86%;
    max-height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.11));
    transition: transform 0.28s ease, filter 0.28s ease;
}

.premium-product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 3px 9px;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 950;
    line-height: 1.5;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.premium-badge-sale {
    background: linear-gradient(135deg, var(--sr-danger), var(--sr-warning));
}

.premium-badge-stock {
    margin-right: auto;
    color: var(--sr-primary-dark);
    background: rgba(234, 248, 239, 0.96);
    border: 1px solid rgba(19, 138, 66, 0.15);
}

.premium-badge-out {
    margin-right: auto;
    color: #475569;
    background: rgba(241, 245, 249, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.premium-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px 15px 14px;
}

.premium-product-info h3 {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--sr-text);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-product-info h3 a:hover {
    color: var(--sr-primary);
}

.premium-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
    margin-bottom: 12px;
}

.premium-product-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 999px;
}

.premium-product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.premium-product-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.premium-product-price strong {
    color: var(--sr-primary);
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    font-weight: 950;
    line-height: 1.25;
    direction: ltr;
    text-align: right;
}

.premium-product-price small {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
}

.premium-product-price del {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    direction: ltr;
}

.premium-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 950;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--sr-primary), var(--sr-primary-dark));
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(19, 138, 66, 0.18);
    flex-shrink: 0;
}

.premium-product-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sr-danger), var(--sr-danger-dark));
}

.premium-peanut-progress {
    position: relative !important;
    z-index: 2;
    height: 4px !important;
    margin-top: 24px;
    overflow: hidden;
    background: #e2e8f0 !important;
    border-radius: 999px;
}

.premium-peanut-progress .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, var(--sr-primary), var(--sr-danger)) !important;
    border-radius: 999px;
}


/* =========================================================
   10) TESTIMONIALS
========================================================= */
.testimonials-section {
    padding: var(--sr-section-space) 0;
    background: #ffffff;
}

.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.22rem, 2.3vw, 1.85rem);
    font-weight: 950;
}

.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: 38px;
    height: 38px;
    color: var(--sr-text);
    background: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: 50%;
    box-shadow: var(--sr-shadow-xs);
}

.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: transform var(--sr-transition-fast), box-shadow var(--sr-transition-fast);
}

.testimonial-quote {
    margin-bottom: -4px;
    color: rgba(239, 57, 78, 0.14);
    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 #ffffff;
    border-radius: 50%;
    box-shadow: var(--sr-shadow-xs);
}

.testimonial-user h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 900;
}

.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.9;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-rate {
    color: var(--sr-accent);
    font-size: 0.85rem;
}


/* =========================================================
   11) ARTICLES
========================================================= */
.articles-section {
    padding: var(--sr-section-space) 0;
    background: var(--sr-bg-soft);
}

.article-card {
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius-lg);
    transition: transform var(--sr-transition-fast), box-shadow var(--sr-transition-fast);
}

.article-image {
    position: relative;
    height: clamp(150px, 17vw, 195px);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sr-transition-fast);
}

.article-image span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    color: var(--sr-primary-dark);
    font-size: 0.74rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

.article-content {
    padding: clamp(14px, 2vw, 18px);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--sr-muted);
    font-size: 0.75rem;
}

.article-content h3 {
    margin: 0 0 10px;
    color: var(--sr-text);
    font-size: clamp(0.86rem, 1.2vw, 0.98rem);
    font-weight: 950;
    line-height: 1.7;
}

.article-content p {
    color: var(--sr-muted);
    font-size: clamp(0.78rem, 1vw, 0.85rem);
    line-height: 1.85;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--sr-primary);
    font-size: 0.82rem;
    font-weight: 900;
}


/* =========================================================
   12) FAQ
========================================================= */
.faq-section {
    padding: var(--sr-section-space) 0;
    background: #ffffff;
}

.faq-list {
    display: grid;
    gap: 14px;
    max-width: 820px;
    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: border-color var(--sr-transition-fast), box-shadow var(--sr-transition-fast), background var(--sr-transition-fast);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 16px 20px;
    color: var(--sr-text);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 900;
    text-align: right;
}

.faq-question i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 12px;
    color: var(--sr-primary);
    background: #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--sr-transition-fast), background var(--sr-transition-fast), color var(--sr-transition-fast);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--sr-muted);
    font-size: 0.88rem;
    line-height: 1.95;
}

.faq-item.active {
    background: #ffffff;
    border-color: rgba(19, 138, 66, 0.24);
    box-shadow: var(--sr-shadow-sm);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-item.active .faq-question i {
    color: #ffffff;
    background: var(--sr-primary);
    transform: rotate(45deg);
}


/* =========================================================
   13) DESKTOP HOVERS
========================================================= */
@media (hover: hover) and (pointer: fine) {
    .category-card:hover .category-image {
        transform: translateY(-7px);
        box-shadow: 0 20px 38px rgba(19, 138, 66, 0.12);
    }

    .category-card:hover .category-image img {
        transform: scale(1.08) rotate(-2deg);
    }

    .category-card:hover h3 {
        color: var(--sr-primary);
    }

    .discount-product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
    }

    .discount-product-card:hover .discount-product-image img {
        transform: scale(1.055);
    }

    .cart-btn:hover,
    .about-us-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(19, 138, 66, 0.22);
    }

    .slider-arrow:hover,
    .testimonialNext:hover,
    .testimonialPrev:hover,
    .articleNext:hover,
    .articlePrev:hover {
        color: #ffffff;
        background: var(--sr-primary);
        border-color: var(--sr-primary);
    }

    .premium-peanut-arrow:hover {
        color: #ffffff;
        background: var(--sr-primary);
        border-color: var(--sr-primary);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(19, 138, 66, 0.18);
    }

    .premium-peanut-more:hover {
        color: #ffffff;
        background: var(--sr-primary);
        border-color: var(--sr-primary);
        transform: translateY(-2px);
    }

    .premium-product-card:hover {
        transform: translateY(-7px);
        border-color: rgba(19, 138, 66, 0.22);
        box-shadow: 0 22px 48px rgba(15, 23, 42, 0.11);
    }

    .premium-product-card:hover::before {
        opacity: 1;
    }

    .premium-product-card:hover .premium-product-image img {
        transform: scale(1.055) translateY(-3px);
        filter: drop-shadow(0 18px 22px rgba(15, 23, 42, 0.15));
    }

    .premium-product-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(239, 57, 78, 0.18);
    }

    .testimonial-card:hover {
        background: #ffffff;
        box-shadow: var(--sr-shadow-sm);
        transform: translateY(-4px);
    }

    .article-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--sr-shadow-md);
    }

    .article-card:hover .article-image img {
        transform: scale(1.055);
    }
}


/* =========================================================
   14) RESPONSIVE
========================================================= */
@media (max-width: 1200px) {
    .discountPrev {
        right: -10px;
    }

    .discountNext {
        left: -10px;
    }
}

@media (max-width: 991px) {
    .about-us-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-us-content {
        order: 1;
        text-align: center;
    }

    .about-us-image {
        order: 2;
        max-width: 620px;
        margin: 0 auto;
    }

    .about-us-subtitle {
        margin-inline: auto;
    }

    .premium-peanut-header {
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .premium-peanut-header p {
        margin-inline: auto;
    }

    .premium-peanut-controls {
        justify-content: center;
    }

    .premium-product-card {
        min-height: 340px;
        border-radius: 20px;
    }

    .discount-banner {
        min-height: auto;
        padding: 22px;
    }

    .discount-banner img {
        max-width: 120px;
    }
}

@media (max-width: 767px) {
    :root {
        --sr-section-space: 36px;
    }

    .section-title {
        font-size: 1.08rem;
    }

    .section-title::before,
    .section-title::after {
        width: 24px;
    }

    .full-hero-indicators {
        bottom: 9px;
    }

    .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: 22px;
        width: min(100% - 28px, var(--sr-container));
    }

    .category-image {
        width: clamp(96px, 20vw, 138px);
        height: clamp(96px, 20vw, 138px);
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 0.84rem;
    }

    .slider-arrow,
    .testimonials-nav,
    .articles-nav {
        display: none !important;
    }

    .discount-slider-section {
        padding: 24px 0 40px;
    }

    .discount-slider-container {
        width: min(100% - 24px, var(--sr-container-wide));
    }

    .discount-products-wrap {
        padding: 14px;
        border-radius: 22px;
    }

    .discount-banner {
        padding: 18px;
        border-radius: 18px;
    }

    .discount-product-card {
        padding: 12px;
        border-radius: 18px;
    }

    .discount-product-image {
        height: 118px;
    }

    .about-us-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-us-feature {
        padding: 14px;
    }

    .premium-peanut-section {
        padding: 30px 0 40px;
    }

    .premium-peanut-section .container-fluid {
        width: 100%;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .premium-peanut-panel {
        padding: 16px 12px 14px;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    }

    .premium-peanut-header {
        align-items: flex-start;
        text-align: right;
        gap: 10px;
        margin-bottom: 16px;
    }

    .premium-peanut-label {
        min-height: 25px;
        margin-bottom: 6px;
        padding: 2px 10px;
        font-size: 0.68rem;
    }

    .premium-peanut-header h2 {
        font-size: 1.12rem;
        line-height: 1.55;
    }

    .premium-peanut-header p {
        display: none;
    }

    .premium-peanut-controls {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        margin-top: 2px;
    }

    .premium-peanut-arrow {
        display: none !important;
    }

    .premium-peanut-more {
        width: 100%;
        min-height: 38px;
        font-size: 0.76rem;
        border-radius: 12px;
    }

    .premiumPeanutSlider {
        padding: 2px 0;
        overflow: visible;
    }

    .premium-product-card {
        min-height: 315px;
        border-radius: 18px;
        box-shadow: 0 9px 24px rgba(15, 23, 42, 0.06);
    }

    .premium-product-image {
        height: 158px;
        padding: 12px;
    }

    .premium-product-image::after {
        bottom: 11px;
        width: 52%;
        height: 14px;
        filter: blur(7px);
    }

    .premium-product-image img {
        max-width: 88%;
        max-height: 88%;
    }

    .premium-product-badges {
        top: 9px;
        right: 9px;
        left: 9px;
        gap: 5px;
    }

    .premium-badge {
        min-height: 22px;
        padding: 2px 7px;
        font-size: 0.58rem;
    }

    .premium-product-info {
        padding: 12px 11px 11px;
    }

    .premium-product-info h3 {
        min-height: 41px;
        margin-bottom: 8px;
        font-size: 0.78rem;
        line-height: 1.75;
    }

    .premium-product-meta {
        gap: 5px;
        min-height: 24px;
        margin-bottom: 9px;
    }

    .premium-product-meta span {
        min-height: 21px;
        padding: 2px 7px;
        font-size: 0.6rem;
    }

    .premium-product-bottom {
        gap: 7px;
        padding-top: 9px;
    }

    .premium-product-price strong {
        font-size: 0.92rem;
    }

    .premium-product-price small,
    .premium-product-price del {
        font-size: 0.62rem;
    }

    .premium-product-btn {
        min-width: 40px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.7rem;
        border-radius: 11px;
    }

    .premium-peanut-progress {
        height: 3px !important;
        margin-top: 16px;
    }

    .testimonials-head,
    .articles-head {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .faq-question {
        padding: 14px 16px;
    }

    .faq-answer p {
        padding: 0 16px 18px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .category-image {
        width: clamp(130px, 40vw, 168px);
        height: clamp(130px, 40vw, 168px);
    }

    .category-image img {
        width: 90%;
        height: 90%;
    }

    .discount-product-image {
        height: 110px;
    }

    .article-image {
        height: 150px;
    }
}

@media (max-width: 380px) {
    .premium-peanut-section .container-fluid {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .premium-peanut-panel {
        padding: 14px 10px 12px;
    }

    .premium-product-card {
        min-height: 300px;
    }

    .premium-product-image {
        height: 145px;
    }

    .premium-product-info h3 {
        font-size: 0.74rem;
    }

    .premium-product-price strong {
        font-size: 0.86rem;
    }

    .premium-product-btn {
        height: 34px;
        min-width: 38px;
        font-size: 0.66rem;
    }
}

@media (max-width: 359px) {
    .category-grid {
        gap: 12px;
    }

    .category-image {
        width: 120px;
        height: 120px;
    }
}


/* =========================================================
   15) 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;
    }
}




/* =========================================================
   FIX HORIZONTAL SCROLL
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    position: relative;
}

/* جلوگیری از بیرون‌زدگی سکشن‌ها */
.full-hero-slider-section,
.category-section,
.discount-slider-section,
.about-us-section,
.premium-peanut-section,
.testimonials-section,
.articles-section,
.faq-section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Swiper نباید باعث افزایش عرض صفحه شود */
.swiper,
.swiper-wrapper,
.swiper-slide {
    max-width: 100%;
}

.swiper {
    overflow: hidden;
}

/* فقط اگر لازم است کارت‌ها کمی دیده شوند، داخل پنل کنترل شود نه کل صفحه */
.premium-peanut-panel,
.discount-products-wrap {
    overflow: hidden;
}

/* این مورد در نسخه قبلی می‌تواند اسکرول افقی بسازد */
.premiumPeanutSlider {
    overflow: hidden !important;
}

/* فلش‌های بیرون‌زده تخفیف */
.discountPrev {
    right: 8px !important;
}

.discountNext {
    left: 8px !important;
}

/* اطمینان از اینکه کانتینرها از عرض صفحه بیرون نزنند */
.discount-slider-container,
.category-grid,
.about-us-container,
.testimonials-container,
.articles-container,
.faq-container,
.premium-peanut-section .container-fluid {
    max-width: calc(100vw - 24px);
}

/* pseudo element های دکوراتیو نباید صفحه را بزرگ کنند */
.premium-peanut-panel::before,
.premium-peanut-panel::after {
    max-width: 100%;
}

/* Bootstrap row اگر داخل HTML وجود داشته باشد گاهی باعث overflow می‌شود */
.row {
    --bs-gutter-x: 1.5rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
