@font-face {
    font-family: 'Vazir';
    src: url(../webfonts/Vazir.woff2) format(woff2);
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: 'Vazir';
    color: #343a40;
    font-weight: 500;
}

html {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent
}

body {
    direction: rtl;
    text-align: right;
    background-color: #fdfbf5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    display: flex;
}

ul, ol {
    list-style-type: none;
}

img {
    width: 100%;
    display: flex;
}

button {
    background-color: transparent;
    cursor: pointer;
}

form {
    width: 100%;
    padding: 0.5rem 0.75rem;
}

p {
    font-size: 14px;
    text-align: justify;
    line-height: 2rem;
}

.fs-10 {
    font-size: 0.625rem !important;
}

.fs-12 {
    font-size: 0.75rem !important;
}

.fs-14 {
    font-size: 0.875rem !important;
}

.fs-16 {
    font-size: 1rem !important;
}

.container {
    width: 90%;
    margin: 0 5% !important;
}

.d-flex {
    display: -ms-flexbox !important;
    display: flex !important;
}

.d-inline-block {
    display: -ms-flexbox !important;
    display: inline-block !important;
}

.d-none {
    display: -ms-flexbox !important;
    display: none !important;
}

.flex-wrap {
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

.flex-row {
    -ms-flex-direction: row !important;
    flex-direction: row !important;
}

.flex-column {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}

.justify-content-start {
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
}

.justify-content-end {
    -ms-flex-pack: end !important;
    justify-content: flex-end !important;
}

.justify-content-center {
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

.justify-content-between {
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
}

.justify-content-around {
    -ms-flex-pack: distribute !important;
    justify-content: space-around !important;
}

.align-items-start {
    -ms-flex-align: start !important;
    align-items: flex-start !important;
}

.align-items-end {
    -ms-flex-align: end !important;
    align-items: flex-end !important;
}

.align-items-center {
    -ms-flex-align: center !important;
    align-items: center !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-right {
    border-right: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-left {
    border-left: 1px solid #dee2e6 !important;
}

.rounded-sm {
    border-radius: 0.25rem !important;
}

.rounded-md {
    border-radius: 0.5rem !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15) !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

.text-danger {
    color: #dc3545 !important
}

.text-light {
    color: #f8f9fa !important
}

.py-sm {
    padding: 0.5rem 0 !important;
}

.px-sm {
    padding: 0 0.5rem !important;
}

.pr-sm {
    padding-right: 0.5rem !important;
}

.pl-sm {
    padding-left: 0.5rem !important;
}

.py-md {
    padding: 1rem 0 !important;
}

.px-md {
    padding: 0 1rem !important;
}

.pr-md {
    padding-right: 1rem !important;
}

.pl-md {
    padding-left: 1rem !important;
}

.my-sm {
    margin: 0.5rem 0 !important;
}

.mx-sm {
    margin: 0 0.5rem !important;
}

.mr-sm {
    margin-right: 0.5rem !important;
}

.ml-sm {
    margin-left: 0.5rem !important;
}

.my-md {
    margin: 1rem 0 !important;
}

.mx-md {
    margin: 0 1rem !important;
}

.mr-md {
    margin-right: 1rem !important;
}

.ml-md {
    margin-left: 1rem !important;
}

.mt-lg {
    margin: 3rem 0 !important;
}

.fa-solid {
    color: #c4a15d;
}

/*--------------------Loader--------------------*/
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* رنگ بکگراند صفحه لودر */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999999999;
    transition: opacity 0.5s ease;
}

/* چرخش loader */
#loader::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------Header--------------------*/
header {
    background-color: #fff;
}

.logo-sm {
    width: 7.5rem;
}

.logo-lg {
    width: 9.375rem;
}

header input {
    width: 100%;
    background-color: transparent;
    outline: 0;
}

header form .fa-search {
    font-size: 1.25rem !important;
    color: #b3b3b3 !important;
}

/*----------header for mobile ----------*/
.header-mobile-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    background-color: #fff;
    z-index: 99999;
}

.header-mobile .fa-solid {
    font-size: 1.25rem;
}

.fa-close {
    color: red !important;
}

.header-mobile .gps {
    width: 24px;
}

.header-mobile-bottom .col {
    width: 20%;
}

.header-mobile-bottom .col button,
.header-mobile-bottom .col a {
    height: 100%;
}

.header-mobile-bottom .cart-count {
    position: absolute;
    top: 0.5rem;
    width: 1rem;
    background-color: #fff;
    border-radius: 100%;
}

.layers>.layer {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    padding: 0 1rem;
    overflow-y: auto;
    scrollbar-width: none !important;
    z-index: 99999;
    transition-duration: 0.5s;
}

.layers>.layer .layer-header,
.layers>.layer .layer-content {
    margin-bottom: 1rem;
}

.layers>.layer ul>li {
    line-height: 2rem;
}

#layer-categorize.active,
#layer-search.active {
    right: 0;
    transition-duration: 0.5s;
}

/*----------header for desktop----------*/
.header-desktop .fa-solid {
    font-size: 1.5rem;
}

.header-fixed .row-middle .col-right,
.header-fixed .row-middle .col-left {
    width: 23%;
}

.header-fixed .row-middle .col-center {
    width: 50%;
}

.header-desktop .row-bottom {
    position: relative;
}

.header-desktop .row-bottom .col-right {
    width: 30%;
}

.header-desktop .row-bottom .col-left {
    width: 70%;
}

.header-desktop>.row-bottom>.col-center>a:nth-child(even) {
    margin: 0 1rem;
}

@media screen and (min-width:992px) {
    .header-desktop>.row-bottom>.col-center>a:nth-child(even) {
        margin: 0 2rem !important;
    }
}

.dropdown {
    height: 3rem;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 3rem;
    right: 0;
    width: 100%;
    background-color: #fff;
    z-index: 99;
}

.dropdown-menu a {
    width: 25%;
    line-height: 3rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.header-desktop .number-purchases span:nth-child(1) {
    width: 100px;
    height: 30px;
    background-color: #c4a15d;
    color: #fdfbf5;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.header-desktop .number-purchases span:nth-child(2) {
    width: 30px;
    height: 30px;
    background-color: #125624;
    color: #fdfbf5;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.header-fixed {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
    /* حرکت نرم */
}

.header-fixed.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 1rem 5% 0 5%;
    border-bottom: 1px solid #dee2e6;
    transform: translateY(-0.8rem);
    /* کمی به بالا حرکت کنه */
}

.header-desktop {
    display: none;
}

@media screen and (min-width:768px) {
    .header-mobile {
        display: none;
    }

    .header-desktop {
        display: block;
    }
}

/*--------------------Main--------------------*/
/* === Hero Section === */
.intro-title {
    height: 100vh;
    background: url('../images/banners/bg-index.webp') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    /* فاصله از هدر */
    overflow: hidden;
}

/* Overlay قابل تنظیم */
.intro-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* محتوای روی تصویر */
.intro-overlay {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.intro-overlay h1 {
    font-size: clamp(1rem, 1.455vw + 0.727rem, 2rem);
    line-height: clamp(1.5rem, 1.6vw + 1.2rem, 2.6rem);
    margin-bottom: 20px;
    color: #fff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.intro-overlay h2 {
    font-size: clamp(0.875rem, 1.273vw + 0.636rem, 1.75rem);
    line-height: clamp(1.313rem, 1.4vw + 1.05rem, 2.275rem);
    margin-bottom: 15px;
    color: #ffd966;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.intro-overlay p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-discover {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
    /* background: #ffd966; */
    color: #fdfbf5;
    border-radius: 30px;
    transition: 0.3s;
}

.btn-discover:hover {
    background: #ffcc33;
    transform: translateY(-3px);
}

/*----------این قسمت برای عنوان های هر بخش می باشد(h2)----------*/
.section-title-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.section-title-wrapper>hr {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #c4a15d;
}

h2.section-title {
    padding: 0 1rem;
    font-size: clamp(1rem, 3.5vw, 1.5rem) !important;
    background-color: #fff;
    z-index: 9;
}

/*----------این قسمت برای نمایش دسته بندی در صفحه اصلی می باشد----------*/
.product-categories {
    padding-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
}

.category-card {
    display: block;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (min-width: 30rem) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 38.75rem) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 48rem) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 62rem) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 75rem) {
    .categories-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/*----------این قسمت برای کروسل می باشد----------*/
.carousel-box {
    padding: 2rem 1rem 1rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.carousel-container {
    position: relative;
    max-width: 75rem;
    margin: 1rem auto;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 13.75rem;
    padding: 0.9375rem;
    scale: 0.95;
    background-color: #fff;
    text-align: center;
}

.product-img {
    max-height: 7.5rem;
    object-fit: cover;
    border-radius: 0.625rem;
    margin-bottom: 0.625rem;
}

.product-name {
    margin: 0.375rem 0;
    font-weight: bold;
}

.product-weight,
.product-price {
    margin: 0.25rem 0;
    text-align: center;
}

.product-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
    color: #fff;
    padding: 0.5rem 0;
    border-radius: 0.375rem;
    text-decoration: none;
    margin-top: 0.5rem;
}

.carousel-slide.view-all {
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0.5rem;
}

@media (max-width: 62rem) {
    .carousel-slide {
        width: 12.5rem;
    }
}

@media (max-width: 48rem) {
    .carousel-slide {
        width: 15.625rem;
    }
}

@media (max-width: 36rem) {
    .carousel-slide {
        width: 17.5rem;
    }
}

/*----------این قسمت برای مقالات صفحه اصلی می باشد----------*/
.blog {
    padding-bottom: 1rem;
}

.articles-section {
    max-width: 1200px;
}

.articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.article-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card img {
    height: 12.5rem;
    object-fit: cover;
    display: block;
}

.article-card h3 {
    margin: 0.75rem;
}

.article-card p {
    margin: 0 0.75rem 0.75rem 0.75rem;
    color: #555;
}

.article-card:hover {
    transform: translateY(-0.25rem);
}

/* فقط دسکتاپ نمایش داده شود */
.article-desktop-only {
    display: none;
}

/* دکمه مشاهده همه مقالات */
.view-all-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

.view-all-btn {
    margin: 0 auto;
    background-color: #4CAF50;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.view-all-btn:hover {
    background-color: #388E3C;
    transform: translateY(-0.125rem);
}

/* ریسپانسیو */
@media (min-width: 768px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-card img {
        height: 13.75rem;
    }

}

@media (min-width: 1200px) {
    .articles-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .article-desktop-only {
        display: block;
    }

    .article-card img {
        height: 15.625rem;
    }
}

/*----------این قسمت راهنمای صفحات می باشد----------*/
.page-header {
    background: #fff;
    margin-top: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.page-header .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 1rem;
}

.page-header .breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    margin: 0 0.5rem;
    color: #c4a15d;
    font-size: 1.5rem;
    font-weight: bold;
}

.breadcrumb-item>a>span {
    color: #2e7d32;
}

.breadcrumb-item>span.active {
    color: #c4a15d;
}

.page-header h1 {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 1.455vw + 0.727rem, 1.5rem);
    margin-bottom: 1rem;
}

.page-header h2 {
    font-size: clamp(0.813rem, 1.182vw + 0.591rem, 1.25rem);
}

/*----------این قسمت مربوط به فیلتر محصولات می باشد----------*/
.category-box {
    padding: 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sort .row-top {
    padding-bottom: 0.5rem;
}

.sort .link-sort:not(:first-child) {
    margin: 0.5rem;
}

.sort .row-bottom .link-sort.active {
    color: #2e7d32;
    font-weight: 600;
}

/*----------این قسمت مربروط به کارت های صفحه دسته بندی می باشد----------*/
.category-content {
    margin: 2rem 0;
}

.card {
    width: 100%;
    overflow: hidden;
}

.card:not(:first-child) {
    border-top: 0 !important;
}

.card .card-header {
    width: 100%;
}

.card .card-img,
.card .card-body {
    width: 50%;
}

.card .card-img img {
    width: 150px;
}

.card .card-body .select-weight {
    padding: 0.25rem 1.5rem;
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
}

@media screen and (min-width:520px) {
    .card {
        width: 50%;
    }

    .card:not(:first-child) {
        border-top: 1px #dee2e6 solid !important;
    }

    .card:not(:first-child, :nth-child(2)) {
        border-top: 0 !important;
    }

    .card:not(:nth-child(odd)) {
        border-right: 0 !important;
    }

    .card .card-img,
    .card .card-body {
        width: 100%;
    }

    .card .card-img img {
        width: 200px;
    }

    .card .card-body {
        padding-bottom: 1rem;
    }

    .card .card-body .mb-sm {
        margin-bottom: 0.75rem;
    }
}

@media screen and (min-width:768px) {
    .card {
        width: calc(33.33%);
    }

    .card:not(:first-child, :nth-child(2)) {
        border-top: 1px #dee2e6 solid !important;
    }

    .card:not(:nth-child(odd)) {
        border-right: 1px #dee2e6 solid !important;
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3)) {
        border-top: 0 !important;
    }

    .card:not(:nth-child(3n+1)) {
        border-right: 0 !important;
    }
}

@media screen and (min-width:992px) {
    .card {
        width: calc(25%);
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3)) {
        border-top: 1px #dee2e6 solid !important;
    }

    .card:not(:nth-child(3n+1)) {
        border-right: 1px #dee2e6 solid !important;
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4)) {
        border-top: 0 !important;
    }

    .card:not(:nth-child(4n+1)) {
        border-right: 0 !important;
    }
}

@media screen and (min-width:1200px) {
    .card {
        width: calc(20%);
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4)) {
        border-top: 1px #dee2e6 solid !important;
    }

    .card:not(:nth-child(4n+1)) {
        border-right: 1px #dee2e6 solid !important;
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5)) {
        border-top: 0 !important;
    }

    .card:not(:nth-child(5n+1)) {
        border-right: 0 !important;
    }
}

@media screen and (min-width:1400px) {
    .card {
        width: 16.66%;
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5)) {
        border-top: 1px #dee2e6 solid !important;
    }

    .card:not(:nth-child(5n+1)) {
        border-right: 1px #dee2e6 solid !important;
    }

    .card:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)) {
        border-top: 0 !important;
    }

    .card:not(:nth-child(6n+1)) {
        border-right: 0 !important;
    }
}

/*----------این قسمت مربوط به معرفی محصول صفحه تک محصول می باشد----------*/
.product-box {
    padding: 0 1rem 2rem 1rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-wrapper {
    display: flex;
    flex-direction: column;
}

.product-image,
.product-info {
    width: 100%;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ویژگی‌ها */
.product-features {
    margin-top: 1.5rem;
}

.product-features li {
    margin-bottom: 1rem;
    position: relative;
}

.product-features strong {
    font-weight: 600;
}

.product-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

@media screen and (min-width:520px) {
    .product-features li::before {
        left: 0.5rem;
    }
}

@media screen and (min-width:768px) {
    .product-wrapper {
        flex-direction: row;
    }

    .product-wrapper .product-image,
    .product-wrapper .product-info {
        width: 50%;
    }
}

/* 🌿 پایه - موبایل */
.product-weights {
    display: grid;
    grid-template-columns: 1fr;
    /* موبایل: تک‌ستونه */
    gap: 15px;
    margin: 20px 0;
}

.weight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.weight-info p {
    margin: 2px 0;
}

.cart-icon button {
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 16px;
}

/* 📱 موبایل متوسط: دو ستون */
@media (min-width: 480px) {
    .product-weights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 📲 تبلت: سه ستون */
@media (min-width: 768px) {
    .product-weights {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 💻 لپتاپ: چهار ستون */
@media (min-width: 992px) {
    .product-weights {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 💻 دسکتاپ: پنج ستون */
@media (min-width: 1200px) {
    .product-weights {
        grid-template-columns: repeat(5, 1fr);
    }
}

.short-desc-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-color: #343a40 !important;
}

/*----------این قسمت مربوط به صفحه سبد خرید میباشد ----------*/
.cart-shopping {
    padding: 2rem 0.5rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@media screen and (min-width:480px) {
    .cart-shopping {
        padding: 2rem 1rem;
    }
}

.cart-shopping .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.cart-shopping .col-right,
.cart-shopping .col-left {
    width: 100%;
}

.cart-shopping .col-left {
    margin-top: 2rem;
}

@media screen and (min-width:768px) {
    .cart-shopping .col-right {
        width: 60%;
    }

    .cart-shopping .col-left {
        width: 40%;
        margin-top: 0;
        padding-right: 5%;
    }
}

.cart-shopping .cart {
    margin-bottom: 1.5rem;
}

.cart-shopping .cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.cart-shopping .cart-header h2 {
    font-size: 1rem;
}

.cart-shopping .cart-header button {
    display: flex;
    width: 24px;
    background-color: transparent;
}

.cart-shopping .cart-body {
    display: flex;
}

.cart-shopping .cart-img {
    width: 120px;
}

.cart-shopping .cart-img>img {
    width: 100%;
}

.cart-shopping .cart-details {
    display: flex;
    align-items: center;
    width: 100%;
    line-height: 2rem;
    padding: 0 0.5rem;
}

.cart-shopping .cart-details>dl {
    width: 100%;
}

.cart-shopping .detail-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cart-shopping .detail-row::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-index: -1;
}

.cart-shopping .detail-row dt,
.cart-shopping .detail-row dd {
    background-color: #fff;
}

.cart-shopping .detail-row dt {
    padding-left: 0.75rem;
    font-size: 12px;
}

.cart-shopping .detail-row dd {
    padding-right: 0.75rem;
    font-size: 14px;
}

.cart-shopping .cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.cart-shopping .cart-footer dl {
    width: 100%;
    margin-right: 0.8rem;
}

.cart-shopping .quantity {
    display: flex;
    justify-content: space-around;
    width: 100px;
    border-radius: 0.25rem;
}

.cart-shopping .cart-shopping .quantity span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.cart-shopping .fa-solid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    background-color: transparent;
    color: #66686b;
}

.cart-shopping .increase img,
.cart-shopping .decrease img {
    width: 20px;
}

.cart-shopping .checkout-btn {
    display: block;
    width: 10rem;
    margin: 1.5rem auto 0 auto;
    padding: 0.5rem 0;
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
    color: whitesmoke;
}

.cart-shopping .pre-invoice {
    padding: 2rem 1rem;
}

.cart-shopping .pre-invoice h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cart-shopping .pre-invoice .my-md {
    margin: 1rem 0;
}

.cart-shopping .pre-invoice button {
    width: 50%;
    margin: 2rem 25% 0 25%;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e0b95f;
}


/*--------------------Footer--------------------*/
footer {
    position: relative;
    background-color: #125624;
    margin-top: 3rem;
    padding: 2rem 0 4rem 0;
}

footer>.container {
    padding-bottom: 2rem;
}

footer h4 {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: #c4a15d;
    border-bottom: 1px #c4a15d solid;
}

footer .footer-section {
    width: 100%;
    margin-bottom: 2rem;
}

footer a,
footer p {
    color: #ccc;
    line-height: 2rem;
}

footer .fa-solid {
    font-size: 1rem;
}

footer .links img {
    width: 40px;
}

.copyright {
    position: absolute;
    right: 0;
    bottom: 3.2rem;
    left: 0;
    background-color: #343a40;
}

.copyright p {
    color: #c4a15d;
}

@media screen and (min-width:768px) {
    footer {
        padding-bottom: 1rem !important;
    }

    footer .container {
        display: flex;
        flex-wrap: wrap;
    }

    footer .footer-section:nth-child(1) {
        width: 45%;
        margin-left: 10%;
    }

    footer .footer-section:nth-child(2) {
        width: 45%;
    }

    footer .footer-section:nth-child(3) {
        width: 100%;
    }

    footer .footer-section:nth-child(3) h4 {
        text-align: center;
    }

    footer .links {
        justify-content: center;
    }

    .copyright {
        bottom: 0;
    }
}

@media screen and (min-width:992px) {
    footer .footer-section {
        width: 30% !important;
    }

    footer .footer-section:not(:last-child) {
        margin-left: 5%;
    }

    footer .footer-section:nth-child(3) h4 {
        text-align: right;
    }

    footer .links {
        justify-content: start;
    }
}

/*----------این قسمت مربوط به صفحه تک محصول میباشد----------*/
.product-page {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
}

.product-header {
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-title {
    font-size: clamp(1rem, 1.455vw + 0.727rem, 1.5rem);
    color: #333;
    text-align: center;
}

.product-subtitle {
    font-size: clamp(0.813rem, 1.182vw + 0.591rem, 1.25rem);
    color: #666;
    text-align: center;
    margin-top: 0.75rem;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0rem !important;
}

.product-image-container {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.product-image {
    max-width: 400px;
    /* width: 100%; */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.product-meta-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-right: 2rem;
}

.product-details {
    flex: 1;
    /* این بخش تمام فضای باقی مانده را پر می کند */
    padding: 10px;
}

.price-table-container {
    margin-bottom: 25px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.price-table th, .price-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.price-table th {
    background-color: #2e7d32;
    color: #fff;
}

.price-table td {
    background-color: #f9f9f9;
}

.add-to-cart-btn {
    padding: 8px 15px;
    font-size: 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Tab Styling */
.tabs-container {
    padding-top: 20px;
}

.tabs-header {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border: none;
    background-color: transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #333;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.tabs-content .tab-content {
    display: none;
    line-height: 1.6;
    color: #555;
    padding-top: 15px;
    font-size: 0.95rem;
}

.tabs-content .tab-content.active {
    display: block;
}

/* Accordion Styling */
.accordion-container {
    margin-top: 15px;
}

.accordion-item {
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header .icon {
    font-size: 0.8rem;
    color: #888;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 18px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.accordion-content li{
    line-height: 2rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 15px 18px;
}

.accordion-content p {
    margin-top: 0;
}

/* Why Choose Us Section */
.why-choose-us {
    margin-top: 35px;
    padding-top: 20px;
    margin-bottom: 0 !important;
    border-top: 1px solid #e0e0e0;
}

.reasons-list {
    margin-top: 2rem;
}

.reasons-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reasons-list li i {
    font-size: 2rem;
    color: #ffc107;
    margin-left: 15px;
    min-width: 30px;
}

.reason-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.reason-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Quality Assurance Section */
.quality-assurance {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
}

.qa-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qa-item i {
    font-size: 1.5rem;
    color: #ffc107;
    min-width: 25px;
}

.qa-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Availability Status Section */
.availability-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.status-label {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    color: #444;
}

.in-stock-icon, .out-of-stock-icon {
    font-size: 1.2rem;
}

.in-stock-icon {
    color: #28a745;
}

.in-stock-text {
    color: #28a745;
}

/* Scroll-to-details link */

.scroll-to-details {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    margin-top: 1rem;
    padding: 10px;
    font-size: 0.95rem;
    color: #fdfbf5;
    background: linear-gradient(-135deg, #f94327, #ff7d14) !important;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.scroll-to-details .fa-arrow-down {
    color: #fdfbf5;
}

/* Media Query for Responsiveness */
@media (max-width: 768px) {
    .product-content {
        flex-direction: row !important;
        gap: 0;
    }

    .product-image-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .product-image {
        max-width: 100%;
    }

    .product-details {
        padding: 10px;
    }

    .product-meta-info {
        margin-top: 15px;
        margin-right: 0 !important;
        align-self: stretch;
    }
}

/*----------این قسمت مربوط به ثبت فرم درخواست میباشد----------*/

.order-form {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .08);
}

.form-label {
    display: block;
    margin-top: 14px;
}

.form-input {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-fieldset {
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
}

/* استایل اختصاصی برای بخش رادیو باتن‌ها */
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-weight: normal;
}

.payment-info {
    opacity: .6;
    pointer-events: none;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.75rem;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.active {
    display: block;
}

.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.06);
}

.accept-label.disabled {
    opacity: 0.6;
}

.submit-btn {
    margin-top: 18px;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #007BFF;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:disabled {
    background: #cfcfcf;
    cursor: not-allowed;
}

.list-unstyled {
    margin-top: 1rem;
    padding-right: 1rem;
    list-style-type: disc;
    /* حذف دایره‌های لیست */
}

.list-unstyled li {
    margin-bottom: 6px;
    line-height: 1.4;
}

#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modalOverlay .modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
}

#modalOverlay .modal .submit-btn {
    margin-top: 12px;
}

/*این قسمت برای پیغام کارت به کارت میباشد*/
.payment-alert-box {
    background-color: #fff3cd; 
    border: 1px solid #ffe0a3; 
    color: #856404; 
    padding: 15px; 
    margin: 1.5rem 0; 
    border-radius: 8px; 
    text-align: right; 
    font-size: 1rem; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.payment-alert-box p {
    margin: 0; 
    line-height: 1.6;
}
.payment-alert-box strong:not(:first-child) { 
    color: #c0392b; /* قرمز تیره برای تأکید */
    font-size: 1.05em; 
    padding: 0 4px;
    border-bottom: 2px dashed #e74c3c; /* خط زیرین برای تأکید */
}

/*----------این قسمت برای پیام تائید اضافه شدن محصول میباشد----------*/
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 280px;
    transform: translate(-50%, -50%);
    background-color: #4caf50;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast-message>p {
    color: whitesmoke !important;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
}

/* این کلاس‌ها هم باید اضافه شوند */
.toast-message.success {
    background-color: #4caf50;
    /* سبز برای موفقیت */
}

.toast-message.error {
    background-color: #dc3545;
    /* قرمز برای خطا */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: #fff;
    padding: 2rem 1rem;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-top: 0;
    font-size: 20px;
}

.modal-actions {
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 5px;
}

.modal-btn.confirm {
    background-color: #dc3545;
    color: #fff;
}

.modal-btn.cancel {
    background-color: #6c757d;
    color: #fff;
}

/*----------این قسمت برای جستجویمحصولات می باشد----------*/
.search-container {
    position: relative;
    width: 100%;
}

.searchInput {
    width: 100%;
    padding: 10px;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 0 0 5px 5px;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #999;
}

.searchResults .card {
    width: 100%;
    display: flex;
    /* آیتم‌ها را در یک ردیف قرار می‌دهد */
    align-items: center;
    /* آیتم‌ها را در مرکز عمودی قرار می‌دهد */
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.searchResults .card:hover {
    background-color: #f5f5f5;
    /* تغییر رنگ پس‌زمینه هنگام هاور */
}

.searchResults .card-img {
    width: 60px;
    /* اندازه تصویر محصول */
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
    /* جلوگیری از کوچک شدن تصویر */
}

.searchResults .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تصویر را به گونه‌ای تنظیم می‌کند که کل کادر را بپوشاند */
}

.searchResults .card-header {
    flex-grow: 1;
    /* فضای باقی‌مانده را اشغال می‌کند */
    margin-right: 15px;
    /* فاصله از تصویر */
}

/*----------این قسمت برای صفحه تماس با ما می باشد----------*/
.contact-information {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-information .section-title {
    font-size: clamp(1rem, 1.455vw + 0.727rem, 2rem);
    margin-bottom: 2rem;
}

.contact-information .section-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Contact Grid Layout */
/* .contact-information .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
} */

/* Contact Cards */
.contact-information .contact-card {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0.75rem;
    scale: 0.95;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-information .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width:768px) {
    .contact-information .contact-card {
        width: 50%;
        scale: 0.9;
    }
}

@media screen and (min-width:1200px) {
    .contact-information .contact-card {
        width: 33.33%;
    }
}

.contact-information .card-title {
    font-size: clamp(1rem, 1.273vw + 0.636rem, 1.5rem);
    color: #388E3C;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.contact-information .contact-list li {
    margin-bottom: 1rem;
}

.contact-information .contact-list img{
    width: 24px;
}

.contact-information .contact-address {
    text-align: center;
}

.contact-information .contact-address-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    font-style: normal;
}

/*-----------این قسمت مربوط به صفحه فروشگاه میباشد----------*/
#load-more-btn {
    padding: 0.5rem 1rem;
    background-color: #c4a15d;
}

/*----------این قسمت برای صفحه راهنمای خرید میباشد-----------*/
.faq {
    padding: 2rem 1rem;
    background-color: #fff;
}

.faq h1 {
    font-size: clamp(1rem, 1.455vw + 0.727rem, 2rem);
}

.out-of-stock-overlay {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: rgba(220, 53, 69, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/*----------این قسمت برای صفحه مقالات میباشد-----------*/
.weblog {
    padding: 2rem 1rem;
    background-color: #fff;
}

/*----------این قسمت برای صفحه تک مقاله میباشد-----------*/
.blog-post-single {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.article-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.article-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: block;
    margin-bottom: 1.5rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
}

.article-content p {
    margin-bottom: 1.5rem;
}