﻿:root {
    --primary-color: #d4a017; /* رنگ طلایی عسل */
    --secondary-color: #a67c00; /* رنگ عسل تیره */
    --light-color: #fff8e1; /* رنگ کرم روشن */
    --dark-color: #5d4037; /* رنگ قهوه ای شکلاتی */
    --honey-light: #ffecb3; /* رنگ عسل روشن */
    --honey-dark: #b28704; /* رنگ عسل تیره */
}

body {
    font-family: 'IRANSansWeb(FaNum)', 'Vazirmatn', 'Sahel', sans-serif; 
    /*background-color: var(--light-color);*/
    color: var(--dark-color);
    padding-bottom: 60px;
}
.cmsarya {
    background-color: #f7b00891;
    padding: 3px;
    border-radius: 10px;
}
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--honey-light);
    z-index: 1027;
}
a {
    text-decoration: none;
}
.navbar-brand img {
    height: 50px;
}

/* منوی موبایل */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1060;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* منوی پایین موبایل */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1060;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 2px solid var(--honey-light);
    }

        .mobile-bottom-nav .nav-item {
            text-align: center;
        }

        .mobile-bottom-nav .nav-link {
            color: var(--dark-color);
            font-size: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .mobile-bottom-nav .bi {
            font-size: 20px;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

    /* غیرفعال کردن زیرمنوها در موبایل */
    .navbar-nav .dropdown-menu {
        display: none !important;
    }
}

/* مگامنو */
.mega-menu {
    position: static !important;
}

    .mega-menu .dropdown-menu {
        width: 100%;
        padding: 20px;
        margin-top: 0;
        display: none;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        background-color: #fff;
        border: 1px solid var(--honey-light);
    }

    .mega-menu:hover .dropdown-menu {
        display: block;
    }

    .mega-menu .menu-column {
        padding: 0 15px;
    }

        .mega-menu .menu-column h5 {
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 5px;
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

/* جستجو */
.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
    display: none;
    border: 1px solid var(--honey-light);
}

    .search-box.active {
        display: block;
    }

/* اسلایدر هیرو */
.hero-slider {
    height: 34vh;
    max-height: 580px;
    width: 55%;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--honey-light);
}

    .hero-slider .swiper-slide {
        background-size: cover;
        background-position: center;
        color: white;
        display: flex;
        align-items: center;
    }

    .hero-slider .slide-content {
        background-color: rgba(0,0,0,0.5);
        padding: 30px;
        border-radius: 10px;
        max-width: 600px;
        margin: 0 auto;
    }

/* اسلایدر محصولات */
.products-slider {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
}

    .products-slider .swiper-wrapper {
        padding: 20px 0;
    }

.product-card {
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--honey-light);
    height: 100%;
    background-color: white;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.product-img {
    height: 200px;
    object-fit: fill;
    background-color: var(--honey-light);
}

.badge-organic {
    background-color: var(--primary-color);
    color: white;
}

/* اسلایدر دسته بندی */
.categories-slider {
    width: 85%;
    margin: 0 auto;
    overflow: hidden;
}

    .categories-slider .swiper-wrapper {
        padding: 20px 0;
    }

.category-card {
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--honey-light);
    height: 100%;
    background-color: white;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.category-img {
   /* height: 200px;*/
    /*object-fit: cover;*/
    background-color: var(--honey-light);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    border-top: 3px solid var(--primary-color);
    margin-bottom: -61px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--secondary-color);
        border-color: var(--secondary-color);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }

@media (max-width: 768px) {
    .hero-slider {
        height: 21vh;
        width: 95%;
    }

    .products-slider, .categories-slider {
        width: 95%;
    }

    .hero-slider .slide-content {
        padding: 15px;
        margin: 0 15px;
    }
}
/* کادر جستجوی موبایل */
.mobile-search-box {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    display: none;
}

@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }

    .fixed-add-to-cart {
        display: block !important;
    }
}

/* منوی موبایل */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1060;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    /* منوی پایین موبایل */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1060;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 2px solid var(--honey-light);
    }

        .mobile-bottom-nav .nav-item {
            text-align: center;
        }

        .mobile-bottom-nav .nav-link {
            color: var(--dark-color);
            font-size: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .mobile-bottom-nav .bi {
            font-size: 20px;
            margin-bottom: 5px;
            color: var(--primary-color);
        }

    /* غیرفعال کردن زیرمنوها در موبایل */
    .navbar-nav .dropdown-menu {
        display: none !important;
    }
}


.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.product-gallery {
    border: 1px solid var(--honey-light);
    border-radius: 10px;
    overflow: hidden;
}

.main-image {
    height: 400px;
    object-fit: contain;
    background-color: white;
    cursor: zoom-in;
    display: block;
    margin: 0 auto;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
    scrollbar-width: thin;
}

    .thumbnail-container::-webkit-scrollbar {
        height: 5px;
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 10px;
    }

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

    .thumbnail:hover {
        border-color: var(--primary-color);
    }

.product-details {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.product-title {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--honey-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #777;
    font-size: 1.1rem;
}

.badge-organic {
    background-color: var(--primary-color);
    color: white;
}

.quantity-selector {
    width: 120px;
}

.product-tabs {
    margin-top: 40px;
}

.nav-tabs .nav-link {
    color: var(--dark-color);
}

    .nav-tabs .nav-link.active {
        color: var(--primary-color);
        font-weight: bold;
        border-bottom: 2px solid var(--primary-color);
    }

.tab-content {
    padding: 20px;
    background-color: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.related-products {
    margin-top: 50px;
}

.related-product-card {
   /* border: 1px solid var(--honey-light);*/
    border-radius: 10px;
    transition: all 0.3s;
}

    .related-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.related-product-img {
    height: 180px;
    object-fit: contain;
    background-color: var(--light-color);
    /*height: 261px;*/
    object-fit: contain;
    background-color: var(--light-color);
    width: 100%;
    padding: 3px;
    border-radius: 5px;
}

.related-product-img1 {
    object-fit: contain;
    background-color: var(--light-color);
    width: 66%;
    padding: 3px;
    height: 127px;
}
/* دکمه ثابت در پایین صفحه */
.fixed-add-to-cart {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    border-top: 1px solid #eee;
}

/* استایل جدید برای فیلد تعداد */
.quantity-input-group {
    display: flex;
    align-items: center;
    width: 170px;
}

    .quantity-input-group .btn {
        width: 40px;
        padding: 0.375rem;
    }

    .quantity-input-group .form-control {
        text-align: center;
        flex: 1;
    }

.box-ol {
    background-color: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.test {
    border-bottom-color: #FAD272 !important;
    width: 100%;
    border-bottom: 2px solid #f2f6fc;
    padding: 2px;
}

.test1 {
    background: #FAD272 !important;
    border-radius: 9px 9px 9px 9px !important;
    height: 40px;
    margin-top: 20px;
    margin-bottom: -23px;
    padding: 7px 15px;
    box-sizing: border-box;
    font-size: 17px;
    font-weight: 700;
    color: #5d4037;
    margin-right: -3px;
}

.element {
    background-image: url("/Theme/img/bg.svg"), url("/Theme/img/honeybee.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

/* تغییر استایل در موبایل */
@media (max-width: 768px) {
    .element {
        background-image: none; /* حذف پس‌زمینه در موبایل */
    }

    .mobile-bg {
        background-image: url("/Theme/img/bg.svg"), url("/Theme/img/honeybee.png"); 
        background-repeat: no-repeat;
        background-position: center top; /* قرار دادن تصاویر در بالای متن */
        background-size: contain;
        padding: 50px 0; /* ایجاد فضای مناسب */
    }
}

.custom-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: auto;
}

/* تنظیم بخش متن */
.text-content {
    flex: 6;
    padding: 20px;
    text-align: right;
}

/* تنظیم بخش تصویر سمت چپ */
.left-image {
    flex: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end; /* تنظیم برای قرارگیری در پایین */

    overflow: visible;
}

    .left-image img {
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        position: absolute;
        left: 0;
        bottom: 0px; /* تصویر کمی روی کادر قرار گیرد */
        z-index: 2; /* تصویر بالاتر از کادر باشد */
    }


/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .custom-box {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        position: relative;
        bottom: 0px;
    }

    .text-content {
        text-align: center;
    }

    .left-image {
        justify-content: center;
        width: 100%;
    }

        .left-image img {
            position: static;
            height: auto;
            max-width: 80%;
            margin-bottom: -10px; /* تنظیم خروجی تصویر برای موبایل */
        }
}

.btnnn {
    background-color: #0c976e;
    line-height: 1rem;
    color: #fff;
    border-radius: 30px 30px 30px 30px;
    padding: 0.8rem 1.2rem 0.65rem 1.2rem;
}