@font-face {
    font-family: "IRANSans";
    src: url(/assets/themes/fonts/IRANSansWeb.ttf);
}

.meal_category, .items {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

.meal_category::-webkit-scrollbar, .items::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

@keyframes bubble {
    0% {
        transform: translateY(100vh) scale(0);
    }
    100% {
        transform: translateY(-10vh) scale(1);
    }
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.8;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        clip-path: inset(100% 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


* {
    font-family: "IRANSans";
}

body {
    color: black;
    background-color: var(--bg-color);
    direction: rtl;
    overflow-y: hidden;
}

body span, p, h1, h2, h3, h4, h5, h6 {
    color: var(--font-color);
}

.name_product {
    color: var(--font-color);
    position: relative;
    top: 10px;
}

.bubble-container {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.bubbles {
    position: absolute;
    display: flex;
}

.bubbles span {
    position: relative;
    width: 30px;
    height: 30px;
    background-color: #4fc3dc;
    border-radius: 50%;
    box-shadow: 0 0 0 10px #4fc3dc44, 0 0 50px #4fc3dc, 0 0 100px #4fc3dc;
    animation: bubble 15s linear infinite;
}

.bubbles span:nth-child(even) {
    background: #ff2d75;
    box-shadow: 0 0 0 10px #4fc3dc44, 0 0 50px #ff2d75, 0 0 100px #ff2d75;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero img {
    display: none;
    background: no-repeat;
    width: min(800px, 80%);
    height: min(200px, 100px);
    object-fit: cover;
    margin-top: 2%;
    /* z-index: 1; */
}

.swiper {
    width: 90%;
    height: auto;
    margin-top: 10px;
    user-select: none;
}

.swiper-slide {
    display: flex;
    align-content: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    border-radius: 10px;
}

.slider_image_product img, .slider_image_product video {
    width: 220px;
    height: 220px;
}

.swiper-slide p {
    color: var(--name-category-color);
    position: relative;
    top: 10px;
}

.bi {
    display: block;
    font-size: 24px;
    color: snow;
    margin-right: 5px;
}

.bi:active {
    transform: rotate(calc(360deg * 2));
    transition: 1s ease-in-out;
}

.category_search {
    margin: auto;
}

.category_search .btn .icon_toggle {
    color: black;
}
#searchBox{
    z-index: 999 !important;
}
.search_box {
    z-index: 1;
    position: absolute;
    width: 80%;
    left: 10%;
    border: none;
    padding-right: 35px;
    border-radius: 10px;
    background-color: #ffffff;
    height: 30px;
    box-shadow: 0px 0px 16px -5px rgb(215, 215, 215);
}


.search_section .search_icon svg {
    position: absolute;
    right: calc(10% + 10px);
    z-index: 1;
    margin-top: 5px;
}

.search-box:focus-within {
    box-shadow: 0px 0px #c80036;
    transform: translate(3px, 1px);
    transition-duration: 0.2s;
}

.grid-row .card-img-top {
    width: 100%;
    height: 150px;
}

.search-box::placeholder {
    letter-spacing: 2px;
    /* opacity: 0.8; */
    margin-right: 5px;
    color: #000;
}

.grid-row {
    display: grid;
    gap: 10px;
    justify-content: center;
}

.grid-row .card {
    animation-range: entry 0% cover 30%;
    background-color: rgba(255, 255, 255, 0.7);
    height: 500px;
}

.grid-row .food-price {
    position: absolute;
    bottom: 0;
    left: 10px;
}

.flex-row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
}

.background_items::-webkit-scrollbar {
    display: none;
}

.background_items {
    top: 15px;
    position: relative;
    height: calc(100vh - 220px);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
    border: 4px double #8a8a8a;
    background: var(--main-color);
}

.grid-row img {
    height: 200px;
}

.flex-row .card {
    display: flex;
    margin: 3px;
    flex-direction: row;
    width: 100%;
    height: 100px !important;
    background-color: transparent;
}

.flex-row .card .card-title {
    padding: 7px;
    display: flex;
    width: 100%;
    color: snow;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title .name_category {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}

.cart-title .prices {

}

.flex-row .card .ingredients-container {
    display: none;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    width: 250px;
    padding: 4px;
    font-size: 14px;
    list-style-type: none;
    /* flex-direction: row; */
}

.flex-row .ingredients {
    display: grid;
    place-content: center;
    border: 1px solid hsl(210deg, 8%, 50%);
    border-radius: 4px;
    font-weight: 700;
}

.flex-row .isAvailable {
    position: absolute;
    left: 0;
    bottom: 0;
}

.flex-row .food-price {
    color: var(--font-color);
}

.flex-row .isAvailable,
.food-price {
    margin-left: 5px;
}

.card {
    display: flex;
    user-select: none;
    transition: 0.5s;
    border: none;
}

.card-title p {
    font-size: 12px;
}

.card:hover {
    background-color: #dedede;
    transform: scale(1.02);
}


.card img {
    border-radius: 5px;
}

.flex-row .card img {
    width: 100px;
    object-fit: cover;
}

.card-title,
.card-text,
.text-muted {
    direction: rtl;
    margin-right: 10px;
}

.grid-row .card .card-title {
    display: block;
    margin-top: 10px;
}

.grid-row .ingredients-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    font-size: 10px;
    list-style-type: none;
}

.grid-row .ingredients-container .ingredients:nth-child(odd):last-child {
    grid-column: 1/4;
}

.grid-row .ingredients {
    display: grid;
    place-content: center;
    border: 1px solid hsl(210deg, 8%, 50%);
    border-radius: 4px;
    font-weight: 700;
}

.grid-row .isAvailable {
    position: absolute;
    right: 0;
    bottom: 0;
}

.footer {
    /* position: absolute; */
    width: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    border: 1px solid;
    direction: rtl;
}

.footer p {
    margin-top: 10px;
}

.flex-row .description_product {
    display: none;
}

/* استایل مدرن برای پیام "محصول مورد نظر پیدا نشد" */
#show_note {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
}

#show_note::before {
    content: "🔍";
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

#show_note h3 {
    color: var(--font-color, #333);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    max-width: 400px;
    padding: 0 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* بهبود استایل‌های پاپ‌آپ محصول */
.page_detail_product_close {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* استایل برای دکمه خروج پاپ‌آپ */
.close-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.close-button:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--main-color, #007bff);
}

.close-button i {
    font-size: 1.3rem;
    color: #333;
    transition: color 0.3s ease;
}

.close-button:hover i {
    color: var(--main-color, #007bff);
}

/* بهبود موقعیت پاپ‌آپ */
.page_detail_product {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    margin: 0; /* حذف margin */
}

/* ریسپانسیو برای پاپ‌آپ */
@media (max-width: 768px) {
    .page_detail_product {
        max-width: 95%;
        border-radius: 20px;
        max-height: 95vh;
    }

    .page_detail_product .title_detail_product {
        font-size: 1.3rem;
        margin: 15px 20px 10px;
    }


    .page_detail_product .tab-content {
        margin: 0 20px 15px;
        padding: 15px;
    }

    .page_detail_product form#send_comment {
        margin: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .page_detail_product {
        width: 98%;
        border-radius: 15px;
    }

    .page_detail_product .title_detail_product {
        font-size: 1.1rem;
        margin: 10px 15px 8px;
    }

    .page_detail_product .title_description {

        font-size: 0.9rem;
    }

    .page_detail_product .tab-content {
        margin: 0 15px 10px;
        padding: 10px;
    }

    .page_detail_product form#send_comment {
        margin: 0 15px 15px;
    }
}

.page_detail_product .swiper_slider_product {
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #f8f9fa;
    height: 200px; /* ارتفاع ثابت برای اسلایدر */
    position: relative;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
}

.page_detail_product .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    height: 200px; /* ارتفاع ثابت برای اسلاید */
}

.page_detail_product .swiper-slide img,
.page_detail_product .swiper-slide video {
    width: 100%;
    height: 40vh; /* فقط عکس و ویدیو 40vh */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
}

.page_detail_product .title_detail_product {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 25px 15px;
    text-align: center;
    line-height: 1.3;
}

.page_detail_product .title_description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.page_detail_product .tab-content {
    background: #f8f9fa;
    border-radius: 15px;
    margin: 0 25px 20px;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .page_detail_product {
        max-width: 95%;
        border-radius: 20px;
    }

    .page_detail_product .title_detail_product {
        font-size: 1.3rem;
        margin: 15px 20px 10px;
    }


    .page_detail_product .tab-content {
        margin: 0 20px 15px;
        padding: 15px;
    }

    .page_detail_product form#send_comment {
        margin: 0 20px 20px;
    }
    #show_note::before {
        font-size: 2.5rem;
    }

    #show_note h3 {
        font-size: 1.1rem;
    }
}
#products-list{
    margin-bottom: 70px !important;

}
.category_product p {
    font-size: 10px;
    font-weight: bold;
    text-wrap: wrap !important;
}
.category_products p {
    white-space: wrap !important;

}

.item_category {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background-color: #fff;
    transition: all 0.5s;
    height: 80% !important;
    top: 10%;
}

#show_note {
    display: none;
    position: relative;
    top: 15px;
    height: 50%;
    color: var(--font-color);
}

/* استایل برای flex-row */
.flex-row .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* استایل برای ویژگی‌های محصول */
.product-properties {
    margin: 0; /* حذف تمام margin */
    padding: 0; /* حذف تمام padding */
    max-width: 100%; /* محدود کردن عرض */
    overflow: hidden; /* جلوگیری از overflow */
    display: flex; /* نمایش کنار هم */
    flex-wrap: nowrap; /* عدم شکستن خط - همه کنار هم */
    gap: 8px; /* فاصله بین آیتم‌ها */
    justify-content: flex-start; /* شروع از چپ */
    align-items: center; /* وسط چین عمودی */
    overflow-x: auto; /* اسکرول افقی */
    padding-bottom: 5px; /* فاصله برای اسکرول بار */
    scrollbar-width: none; /* مخفی کردن اسکرول بار در Firefox */
    -ms-overflow-style: none; /* مخفی کردن اسکرول بار در IE/Edge */
    cursor: grab; /* نشان دادن قابلیت کشیدن */
    user-select: none; /* جلوگیری از انتخاب متن */
    -webkit-user-select: none; /* جلوگیری از انتخاب متن در Safari */
}

/* استایل برای flex-row */
.flex-row .product-properties {
    margin: 0; /* حذف تمام margin */
    padding: 0; /* حذف تمام padding */
    max-width: 100%;
    gap: 6px; /* فاصله کمتر برای flex-row */
    overflow-x: auto; /* اسکرول افقی */
    padding-bottom: 5px; /* فاصله برای اسکرول بار */
    scrollbar-width: none; /* مخفی کردن اسکرول بار در Firefox */
    -ms-overflow-style: none; /* مخفی کردن اسکرول بار در IE/Edge */
    cursor: grab; /* نشان دادن قابلیت کشیدن */
    user-select: none; /* جلوگیری از انتخاب متن */
    -webkit-user-select: none; /* جلوگیری از انتخاب متن در Safari */
}

/* مخفی کردن اسکرول بار در WebKit browsers */
.product-properties::-webkit-scrollbar {
    display: none; /* مخفی کردن کامل اسکرول بار */
}

/* بهبود عملکرد اسکرول */
.product-properties {
    scroll-behavior: smooth; /* اسکرول نرم */
    -webkit-overflow-scrolling: touch; /* بهبود اسکرول در iOS */
}

/* مخفی کردن اسکرول بار در موبایل */
@media (max-width: 768px) {
    .product-properties::-webkit-scrollbar {
        height: 4px; /* اسکرول بار نازک‌تر در موبایل */
    }
}

/* Responsive برای ویژگی‌ها */
@media (max-width: 768px) {
    .product-properties {
        margin: 0; /* حذف تمام margin */
        padding: 0; /* حذف تمام padding */
        gap: 6px; /* فاصله کمتر */
    }
}

@media (max-width: 480px) {
    .product-properties {
        margin: 0; /* حذف تمام margin */
        padding: 0; /* حذف تمام padding */
        gap: 4px; /* فاصله کمتر */
    }
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    max-width: 100%; /* محدود کردن عرض */
    word-wrap: break-word; /* شکستن کلمات طولانی */
    overflow-wrap: break-word; /* پشتیبانی بهتر */
    background: rgba(0, 123, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    min-width: 120px; /* حداقل عرض */
    flex-shrink: 0; /* عدم کوچک شدن */
}

.property-item:hover {
    background: rgba(0, 123, 255, 0.15);
    border-color: var(--main-color, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.property-name {
    color: var(--font-color, #333);
    font-weight: 500;
    font-size: 0.75rem;
    max-width: 60%; /* محدود کردن عرض نام */
    overflow: hidden;
    text-overflow: ellipsis; /* نمایش ... برای متن‌های طولانی */
    white-space: nowrap; /* عدم شکستن خط */
    margin-left: 5px; /* فاصله از چپ */
}

.property-price {
    color: var(--main-color, #007bff);
    font-weight: 600;
    font-size: 0.8rem;
    background: linear-gradient(45deg, var(--main-color, #007bff), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0; /* عدم کوچک شدن */
    min-width: 50px; /* حداقل عرض */
    text-align: left; /* چپ چین */
}

/* بهبود grid layout */
.grid-row .card .card-title {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 0 0 20px 20px;
    min-height: 140px; /* افزایش ارتفاع برای فضای ویژگی‌ها */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* جلوگیری از overflow */
}

.flex-row .card .card-title {
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));

    border-radius: 0 15px 15px 0;
    min-height: 120px; /* افزایش ارتفاع برای فضای ویژگی‌ها */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* جلوگیری از overflow */
}

/* افزایش ارتفاع کارت‌ها */
.grid-row .card {
    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 450px; /* افزایش ارتفاع کارت */
}

.flex-row .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 120px; /* افزایش ارتفاع کارت */
}

/* Responsive برای ویژگی‌ها */
@media (max-width: 768px) {
    .product-properties {
        margin: 0; /* حذف تمام margin */
        padding: 0; /* حذف تمام padding */
        gap: 6px; /* فاصله کمتر */
        overflow-x: auto; /* اسکرول افقی */
        padding-bottom: 4px; /* فاصله کمتر برای اسکرول بار */
    }

    .property-item {
        font-size: 0.75rem;
        padding: 3px 6px;
        min-width: 100px; /* حداقل عرض کمتر */
        flex-shrink: 0; /* عدم کوچک شدن */
    }

    .property-item:hover {
        padding: 3px 6px;
        margin: 0;
    }

    .property-name {
        max-width: 55%;
        font-size: 0.7rem;
    }

    .property-price {
        font-size: 0.75rem;
        min-width: 45px;
    }

    .grid-row .card .card-title {
        min-height: 130px; /* افزایش ارتفاع */
        padding: 12px;
    }

    .flex-row .card .card-title {
        min-height: 110px; /* افزایش ارتفاع */
        padding: 10px;
    }

    .grid-row .card {
        min-height: 420px; /* افزایش ارتفاع کارت */
    }

    .flex-row .card {
        min-height: 130px; /* افزایش ارتفاع کارت */
    }
}

@media (max-width: 480px) {
    .product-properties {
        margin: 0; /* حذف تمام margin */
        padding: 0; /* حذف تمام padding */
        gap: 4px; /* فاصله کمتر */
        overflow-x: auto; /* اسکرول افقی */
        padding-bottom: 3px; /* فاصله کمتر برای اسکرول بار */
    }

    .property-item {
        min-width: 80px; /* حداقل عرض کمتر */
        padding: 2px 4px;
        flex-shrink: 0; /* عدم کوچک شدن */
    }

    .property-name {
        max-width: 50%;
        font-size: 0.65rem;
    }

    .property-price {
        font-size: 0.7rem;
        min-width: 40px;
    }

    .flex-row .property-name {
        max-width: 45%;
        font-size: 0.6rem;
    }

    .flex-row .property-price {
        font-size: 0.65rem;
        min-width: 35px;
    }

    .flex-row .product-properties {
        overflow-x: auto; /* اسکرول افقی */
        padding-bottom: 3px; /* فاصله کمتر برای اسکرول بار */
    }

    .grid-row .card .card-title {
        min-height: 120px; /* افزایش ارتفاع */
        padding: 10px;
    }

    .flex-row .card .card-title {
        min-height: 100px; /* افزایش ارتفاع */
        padding: 8px;
    }

    .grid-row .card {
        min-height: 400px; /* افزایش ارتفاع کارت */
    }

    .flex-row .card {
        min-height: 120px; /* افزایش ارتفاع کارت */
    }
}

/* استایل برای بخش نظرات */
.comments-section {
    margin: 0 0 20px 0;
    background: #f8f9fa;
    border-radius: 0;
}

.comments-title {
    color: var(--font-color, #333);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
    padding-bottom: 8px;
}

.comments-container {
    max-height: 250px;
    overflow-y: auto;
}

.comments-container::-webkit-scrollbar {
    width: 4px;
}

.comments-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.comments-container::-webkit-scrollbar-thumb {
    background: var(--main-color, #007bff);
    border-radius: 2px;
}

.comments-container::-webkit-scrollbar-thumb:hover {
    background: var(--main-color-dark, #0056b3);
}

/* Responsive برای دکمه خروج */
@media (max-width: 768px) {
    .close-button {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .close-button i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .close-button {
        top: 8px;
        left: 8px;
        width: 35px;
        height: 35px;
    }

    .close-button i {
        font-size: 1rem;
    }
}


.page_detail_product .swiper_slider_product {
    width: 100%;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #f8f9fa;
    height: 40vh; /* ارتفاع 40vh برای اسلایدر */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    position: relative;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    flex-shrink: 0; /* عدم کوچک شدن */
}

.page_detail_product .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    height: 40vh; /* ارتفاع 40vh برای اسلاید */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    flex-shrink: 0; /* عدم کوچک شدن */
}

.page_detail_product .swiper-slide img,
.page_detail_product .swiper-slide video {
    width: 100%;
    height: 40vh; /* ارتفاع 40vh */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    flex-shrink: 0; /* عدم کوچک شدن */
}

/* بهبود ویدیو کانتینر */
.video-container {
    position: relative;
    width: 100%;
    height: 40vh; /* ارتفاع 40vh */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    flex-shrink: 0; /* عدم کوچک شدن */
}

.video-container video {
    width: 100%;
    height: 40vh; /* ارتفاع 40vh */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
    flex-shrink: 0; /* عدم کوچک شدن */
}

.page_detail_product .title_detail_product {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 25px 15px;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0; /* عدم کوچک شدن */
}

.page_detail_product .title_description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    flex-shrink: 0; /* عدم کوچک شدن */
}

.page_detail_product .tab-content {
    background: #f8f9fa;
    border-radius: 15px;
    margin: 0 25px 20px;
    padding: 20px;
    flex-shrink: 0; /* عدم کوچک شدن */
}


.page_detail_product .product_comment strong {
    color: var(--main-color, #007bff);
    font-weight: 600;
}

.page_detail_product form#send_comment {
    margin: 0 25px 25px;
}

.page_detail_product form#send_comment textarea {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.page_detail_product form#send_comment textarea:focus {
    outline: none;
    border-color: var(--main-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.page_detail_product form#send_comment input[type="submit"] {
    background: var(--main-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.page_detail_product form#send_comment input[type="submit"]:hover {
    background: var(--main-color-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* بهبود دکمه‌های ناوبری Swiper */
.page_detail_product .swiper-button-next,
.page_detail_product .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.page_detail_product .swiper-button-next:hover,
.page_detail_product .swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page_detail_product .swiper-button-next:after,
.page_detail_product .swiper-button-prev:after {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .page_detail_product {
        max-width: 95%;
        border-radius: 20px;
    }

    .page_detail_product .title_detail_product {
        font-size: 1.3rem;
        margin: 15px 20px 10px;
    }


    .page_detail_product .tab-content {
        margin: 0 20px 15px;
        padding: 15px;
    }

    .page_detail_product form#send_comment {
        margin: 0 20px 20px;
    }

    #show_note {
        padding: 30px 20px;
    }

    #show_note::before {
        font-size: 2.5rem;
    }

    #show_note h3 {
        font-size: 1.1rem;
    }
}

.slider_image_product {
    position: relative;
    width: 100%;
}

.title_detail_product {
    position: relative;
    text-align: center;
    margin-top: 20px;
    color: black;
}

.title_description {
    color: black;
    position: relative;
    width: 100%;
}

.page_detail_product p {
    margin-top: 15px;
    font-size: 16px;
    line-height: 30px;
    z-index: 2;
    width: 95%;
    right: 2.5%;
}

.full_size {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

@media screen and (min-width: 750px) {
    .search-box {
        width: 40%;
    }

    .name_product {
        font-size: 1.2rem !important;
    }

    .grid-row {
        grid-template-columns: repeat(5, 1fr);
    }

    .grid-row .card .card-title {
        margin-top: 10px;
    }

    .flex-row .card {
        width: 48%;
        height: 100px !important;
    }


    .flex-row .card-title {
        display: flex;
    }

    .flex-row .card .food-price {
        display: block;
    }
}

@media screen and (min-width: 721px) and (max-width: 1140px) {
    .grid-row {
        /* display: grid; */
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 541px) and (max-width: 720px) {
    .grid-row {
        /* display: grid; */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 540px) {
    /* grid-row */
    .grid-row {
        /* display: grid; */
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-row .card .card-title {
        max-width: 250px;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .grid-row .food-price {
        position: absolute;
        bottom: 0;
    }

    /* grid-row */
    .card {
        display: flex;
        /* width: 11rem; */
        height: 300px !important;
        margin-top: 10px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-title::before {
        content: "";
        position: absolute;
        bottom: -8px;
        left: 0;
        right: 0;
        height: 12px;
    }

    .card-text {
        font-size: 12px;
        font-weight: normal;
    }

    .card-title,
    .card-text {
        margin-left: 5px !important;
    }


    .flex-row .card .ingredients {
        display: none;
    }

    .grid-row img {
        height: 150px;
    }
}

@media screen and (max-width: 390px) {
    .grid-row {
        /* display: grid; */
        grid-template-columns: repeat(2, 1fr);
    }
}

.category_product {
    position: relative;
    height: 80px;
    color: snow;
    width: 95%;
    right: 2.5%;
}

.category_product p {
    font-size: 10px;
    font-weight: bold;
    text-wrap: nowrap;
}

.item_category {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    background-color: #fff;
    transition: all 0.5s;
    height: 80%;
    top: 10%;
}

.item_category img {
    top: 5px;
    position: relative;
}

.item_category_selected {
    outline: 3px solid #007bff; /* شفاف و ساده */
    outline-offset: 2px; /* فاصله از تصویر */
    transform: scale(1.03); /* کمی بزرگ‌تر شدن */
    z-index: 2;
}

.item_category img {
    height: auto;
    width: auto;
    max-width: 40px;
    max-height: 35px;
}

.category {
    position: relative;
    top: 25px;
}
.flex-row .category_item {
    top: 10px;
    position: relative;
    color: var(--font-color);

}

.grid-row .category_item {
    right: 10px;
    bottom: 0;
    color: black;
}

.splash {

    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 2;
}

.splash_image {
    animation-duration: 1s;
    animation-name: appear;
    position: absolute;
    top: calc(50% - 90px);
    left: calc(50% - 70px);
}

.toggle_flex {
    position: absolute;
    z-index: 1;
    color: black;
    display: inline-block;
}

.name_coffee_shop {
    color: var(--font-color);
    font-weight: bold;
    padding-top: 20px;
}

.max_width {
    position: relative;
    max-width: 900px;
}

.instagram_icon {
    left: 40px;
    bottom: 0px;
    font-size: 48px;
    color: var(--color-black);
}

.address_google {
    right: 40px;
    bottom: 0px;
    font-size: 48px;
    color: var(--color-black);
}

.address_google svg {
    color: var(--color-black);
}

.note {
    display: flex;
    padding: 3px 5px;
    align-items: center;
    gap: 5px;
}

.category_details {
    background-color: var(--bg-note);
    margin-top: 10px;
    padding: 5px;
    border: 2px solid gray;
    border-right: 0;
    border-left: 0;
    width: 100%;
}

.welcome_note {
    animation-duration: 1s;
    animation-name: appear;
    width: 100%;
    text-align: center;
    color: var(--main-color);
    top: calc(50% + 50px);
}

.meal_category {
    position: absolute;
    overflow-y: scroll;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: var(--bg-color);
}

.row {
    padding: 0;
    margin: 0;
}

.meal_category .items {
    position: relative;
    margin: auto;
    max-width: 900px;
    width: 90%;
    height: 80%;
    margin: auto;
    overflow-y: scroll;
    transition: color 0.2s;
}

.meal_category .items .item {
    transition: background-color 0.2s;
}

.meal_category .items img {
    position: relative;
    margin-inline: auto;
    border-radius: 5px;
    max-height: 35vh;
}

.meal_category h2 {
    color: var(--bs-light);
    transition: color 0.2s;
}


.meal_category .items .parent_meal h2 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-inline: auto;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 20px 15px 15px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
    max-height: 60%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.parent_meal img {
    position: relative;
    max-width: 100%;
}

.video_control {
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
}

.swiper_slider_product img, video {
    max-height: 200px;
    width: auto;
}

.slide_product {
    position: relative;
    height: 200px;
}

.grayscale-image {
    transition: filter 0.5s;
}

.grayscale-image:hover {
    filter: none;
}

/* --- Custom Swiper Arrows for .page_detail_product --- */
.page_detail_product .swiper-button-next,
.page_detail_product .swiper-button-prev {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: background 0.2s, transform 0.2s;
    top: 50%;
    transform: translateY(-50%);
}

.page_detail_product .swiper-button-next:after,
.page_detail_product .swiper-button-prev:after {
    font-size: 1.7rem;
    color: #fff;
    font-weight: bold;
}

.page_detail_product .swiper-button-next:hover,
.page_detail_product .swiper-button-prev:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.18);
}

.page_detail_product .swiper-button-next,
.page_detail_product .swiper-rtl .swiper-button-prev {
    right: 8px;
    left: auto;
}

.page_detail_product .swiper-button-prev,
.page_detail_product .swiper-rtl .swiper-button-next {
    left: 8px;
    right: auto;
}

@media (max-width: 600px) {
    .page_detail_product .swiper-button-next,
    .page_detail_product .swiper-button-prev {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .page_detail_product .swiper-button-next:after,
    .page_detail_product .swiper-button-prev:after {
        font-size: 1.2rem;
    }
}

.pr-not-available {
    position: absolute;
    top: 25px;
    height: 45px;
    right: 15%;
    width: 70%;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 1;
    border-radius: 12px;
    pointer-events: none;
    text-align: center;
    transform: rotate(-5deg) translateY(0);
}

/* استایل‌های اضافه شده برای منوی AJAX */
.product-blur > img,
.product-blur .card-title,
.product-blur .name_category,
.product-blur .food-price {
    pointer-events: none;
    user-select: none;
}

#splash-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color, #fff);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* بخش محصولات به اندازه صفحه و اسکرول عمودی */
#products-scroll-area {
    height: calc(100vh - 100px);
    overflow-y: auto;
    background: none !important;
    padding: 0;
    margin: 0;
}

#notes-list {
    margin-bottom: 10px;
}

.socials_media {
    left: 10px !important;
}

.name_coffee_shop {
    display: none !important;
}

.category_product {
    margin-top: 0 !important;
}

/* استایل برای آیکون بازگشت به دسته‌بندی‌ها */
.back-to-meals {
    cursor: pointer;
}

.back-to-meals img {
    max-width: 40px;
    max-height: 35px;
}

/* استایل برای loading محصولات */
#products-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

#products-loading .spinner-border {
    color: var(--main-color, #007bff);
}

#products-loading p {
    margin-top: 0.5rem;
    color: var(--font-color, #333);
}

/* مدرن‌سازی استایل محصولات */
.grid-row .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.grid-row .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color, #007bff);
}

.grid-row .card img {
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.grid-row .card:hover img {
    transform: scale(1.05);
}

.grid-row .card .card-title {
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 0 0 20px 20px;
}

.grid-row .card .name_product {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--font-color, #2c3e50);
    margin-bottom: 8px;
    line-height: 1.3;
}

.grid-row .card .description_product {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.grid-row .card .food-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color, #007bff);
    background: linear-gradient(45deg, var(--main-color, #007bff), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* استایل برای محصولات غیرفعال */
.product-blur {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.product-blur .card {
    background: rgba(200, 200, 200, 0.8);
}

.product-blur .card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* استایل برای flex-row */
.flex-row .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.flex-row .card:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color, #007bff);
}

.flex-row .card img {
    border-radius: 15px 0 0 15px;
    transition: transform 0.3s ease;
}

.flex-row .card:hover img {
    transform: scale(1.05);
}

.flex-row .card .card-title {
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 0 15px 15px 0;
}

.flex-row .card .name_product {
    font-size: 1rem;
    font-weight: 600;
    color: var(--font-color, #2c3e50);
    margin-bottom: 5px;
}

.flex-row .card .description_product {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
}

.flex-row .card .food-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color, #007bff);
}

/* بهبود grid layout */
.grid-row {
    gap: 15px;
    padding: 15px;
}

.flex-row {
    gap: 10px;
    padding: 10px;
}

/* Responsive برای محصولات */
@media (max-width: 768px) {
    .grid-row .card {
        border-radius: 15px;
    }

    .grid-row .card img {
        border-radius: 15px 15px 0 0;
    }

    .grid-row .card .card-title {
        border-radius: 0 0 15px 15px;
        padding: 12px;
    }

    .flex-row .card {
        border-radius: 12px;
    }

    .flex-row .card img {
        border-radius: 12px 0 0 12px;
    }

    .flex-row .card .card-title {
        border-radius: 0 12px 12px 0;
        padding: 10px;
    }

    #show_note::before {
        font-size: 3rem;
    }

    #show_note h3 {
        font-size: 1.2rem;
    }
}

/* استایل برای دکمه پلیر ویدیو */
.video-container {
    position: relative;
    width: 100%;
    height: 40vh; /* ارتفاع 40vh */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
}

.video-container video {
    width: 100%;
    height: 40vh; /* ارتفاع 40vh */
    min-height: 300px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin: 0; /* حذف margin */
    padding: 0; /* حذف padding */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.play-button:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-button i {
    font-size: 2rem;
    color: var(--main-color, #007bff);
    margin-left: 5px; /* برای آیکون play */
}

/* استایل برای pagination نظرات */
.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

.comments-pagination button {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comments-pagination button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.comments-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#comments-page-info {
    font-weight: 600;
    color: var(--font-color, #333);
    background: rgba(0, 123, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* استایل برای فرم نظرات */
.comment-form-container {
    margin: 0 25px 25px;
    text-align: center;
}

.comment-form-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment-form-container textarea {
    width: 100%;
    max-width: 400px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    text-align: center;
}

.comment-form-container textarea:focus {
    outline: none;
    border-color: var(--main-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form-container input[type="submit"] {
    background: var(--main-color, #007bff);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    min-width: 150px;
}

.comment-form-container input[type="submit"]:hover {
    background: var(--main-color-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* بهبود استایل نظرات */
.product_comment {
    background: #fff;
    border-radius: 8px; /* کاهش border-radius */
    padding: 12px; /* کاهش padding */
    margin-bottom: 10px; /* کاهش margin */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* سایه نازک‌تر */
    transition: all 0.3s ease;
}

.product_comment:hover {
    transform: translateX(3px); /* کاهش حرکت */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.product_comment .comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* کاهش margin */
}

.product_comment .comment-icon {
    width: 30px; /* کاهش اندازه */
    height: 30px; /* کاهش اندازه */
    background: var(--main-color, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px; /* کاهش margin */
    color: #fff;
    font-size: 1rem; /* برای آیکون‌های emoji */
    line-height: 1;
}

.product_comment .comment-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.product_comment .comment-info {
    flex: 1;
}

.product_comment strong {
    color: var(--main-color, #007bff);
    font-weight: 600;
    font-size: 0.9rem; /* کاهش اندازه */
    display: block;
}

.product_comment small {
    color: #666;
    font-size: 0.75rem; /* کاهش اندازه */
    display: block;
    margin-top: 1px; /* کاهش margin */
}

.product_comment p {
    color: var(--font-color, #333);
    line-height: 1.4; /* کاهش line-height */
    margin: 0;
    padding: 6px 0; /* کاهش padding */
    font-size: 0.9rem; /* کاهش اندازه */
}

/* بهبود پاسخ‌ها */
.reply-comment {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03), rgba(0, 123, 255, 0.08)) !important;
    border-left: 2px solid var(--main-color, #007bff); /* خط نازک‌تر */
    border-radius: 6px; /* کاهش border-radius */
    margin-top: 8px; /* کاهش margin */
    padding: 10px; /* کاهش padding */
    position: relative;
}

.reply-comment::before {
    content: "↳";
    position: absolute;
    top: -6px; /* کاهش فاصله */
    right: 12px; /* کاهش فاصله */
    background: var(--main-color, #007bff);
    color: #fff;
    width: 16px; /* کاهش اندازه */
    height: 16px; /* کاهش اندازه */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem; /* کاهش اندازه */
    font-weight: bold;
}

.reply-comment .reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px; /* کاهش margin */
}

.reply-comment .reply-icon {
    width: 20px; /* کاهش اندازه */
    height: 20px; /* کاهش اندازه */
    background: var(--main-color, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px; /* کاهش margin */
    color: #fff;
    font-size: 0.8rem; /* برای آیکون‌های emoji */
    line-height: 1;
}

.reply-comment .reply-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.reply-comment strong {
    color: var(--main-color, #007bff);
    font-size: 0.8rem; /* کاهش اندازه */
    font-weight: 600;
}

.reply-comment p {
    margin: 0;
    font-size: 0.85rem; /* کاهش اندازه */
    line-height: 1.3; /* کاهش line-height */
}

/* Responsive برای ویدیو و نظرات */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .comments-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .comments-pagination button {
        width: 100%;
        max-width: 200px;
    }

    .login-required {
        padding: 15px;
    }

    .login-required p {
        font-size: 0.9rem;
    }

    .product_comment {
        padding: 12px;
    }

    .product_comment strong {
        font-size: 0.9rem;
    }
}

/* ریسپانسیو برای اسلایدر */
@media (max-width: 768px) {
    .page_detail_product .swiper_slider_product {
        height: 35vh; /* ارتفاع کمتر برای موبایل */
        min-height: 250px; /* حداقل ارتفاع کمتر */
        max-height: 400px; /* حداکثر ارتفاع کمتر */
        border-radius: 15px 15px 0 0;
    }

    .page_detail_product .swiper-slide {
        height: 35vh; /* ارتفاع کمتر برای موبایل */
        min-height: 250px; /* حداقل ارتفاع کمتر */
        max-height: 400px; /* حداکثر ارتفاع کمتر */
    }

    .page_detail_product .swiper-slide img,
    .page_detail_product .swiper-slide video {
        height: 35vh; /* عکس و ویدیو کمتر برای موبایل */
        min-height: 250px; /* حداقل ارتفاع کمتر */
        max-height: 400px; /* حداکثر ارتفاع کمتر */
        border-radius: 15px 15px 0 0;
    }

    .video-container {
        height: 35vh; /* ویدیو کانتینر کمتر برای موبایل */
        min-height: 250px; /* حداقل ارتفاع کمتر */
        max-height: 400px; /* حداکثر ارتفاع کمتر */
        border-radius: 15px 15px 0 0;
    }

    .video-container video {
        height: 35vh; /* ویدیو کمتر برای موبایل */
        min-height: 250px; /* حداقل ارتفاع کمتر */
        max-height: 400px; /* حداکثر ارتفاع کمتر */
        border-radius: 15px 15px 0 0;
    }
}

@media (max-width: 480px) {
    .page_detail_product .swiper_slider_product {
        height: 30vh; /* ارتفاع کمتر برای گوشی‌های کوچک */
        min-height: 200px; /* حداقل ارتفاع کمتر */
        max-height: 300px; /* حداکثر ارتفاع کمتر */
    }

    .page_detail_product .swiper-slide {
        height: 30vh; /* ارتفاع کمتر برای گوشی‌های کوچک */
        min-height: 200px; /* حداقل ارتفاع کمتر */
        max-height: 300px; /* حداکثر ارتفاع کمتر */
    }

    .page_detail_product .swiper-slide img,
    .page_detail_product .swiper-slide video {
        height: 30vh; /* عکس و ویدیو کمتر برای گوشی‌های کوچک */
        min-height: 200px; /* حداقل ارتفاع کمتر */
        max-height: 300px; /* حداکثر ارتفاع کمتر */
    }

    .video-container {
        height: 30vh; /* ویدیو کانتینر کمتر برای گوشی‌های کوچک */
        min-height: 200px; /* حداقل ارتفاع کمتر */
        max-height: 300px; /* حداکثر ارتفاع کمتر */
    }

    .video-container video {
        height: 30vh; /* ویدیو کمتر برای گوشی‌های کوچک */
        min-height: 200px; /* حداقل ارتفاع کمتر */
        max-height: 300px; /* حداکثر ارتفاع کمتر */
    }
}

/* محدود کردن عرض کل منو */
#menu-main {
    max-width: 1200px; /* حداکثر عرض */
    margin: 0 auto; /* وسط چین */
    width: 100%;
}

/* محدود کردن عرض صفحه انتخاب meal */
#meals-page {
    margin: 0 auto; /* وسط چین */
    width: 100%;
}


@media (min-width: 1920px) {
    #menu-main,
    #meals-page {
        max-width: 1600px; /* حداکثر عرض برای تلویزیون‌های بزرگ */
    }
}

/* Responsive برای نوشته‌های دسته‌بندی مادر */
@media (max-width: 768px) {
    .meal_category .items .parent_meal h2 {
        font-size: 1rem;
        padding: 15px 10px 10px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .meal_category .items .parent_meal h2 {
        font-size: 0.9rem;
        padding: 12px 8px 8px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 360px) {
    .meal_category .items .parent_meal h2 {
        font-size: 0.8rem;
        padding: 10px 6px 6px;
        -webkit-line-clamp: 2;
    }
}

/* استایل‌های سبد خرید */
.cart-icon-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.cart-icon-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-icon-btn svg {
    color: #667eea;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover svg {
    color: #5a6fd8;
}

.cart-btn {
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-count {
    transition: all 0.3s ease;
}

/* استایل‌های سبد خرید */
.cart-btn {
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cart-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.cart-count {
    animation: bounceIn 0.6s ease-out;
}

/* استایل modal سبد خرید */
#cartModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header{
    flex-direction: row-reverse !important;
}

#cartModal .modal-header {
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px 20px 0 0;
}

#cartModal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3748;
}

#cartModal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

#cartModal .btn-close:hover {
    color: #dc3545;
    transform: scale(1.1);
}

.cart-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.cart-item:hover::before {
    transform: scaleX(1);
}

.cart-item h6 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-item small {
    color: #718096;
    font-size: 0.9rem;
}

.input-group-sm {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-group-sm .form-control {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    background: #f7fafc;
    color: #2d3748;
    padding: 0.75rem;
}

.input-group-sm .form-control:focus {
    box-shadow: none;
    background: white;
    border: 2px solid #667eea;
}

.input-group-sm .btn {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group-sm .btn:first-child {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.input-group-sm .btn:last-child {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

.input-group-sm .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cart-item .btn-outline-danger {
    border: none;
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.cart-item .btn-outline-danger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

.modal-footer {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 0 20px 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.total-section {
    padding: 1rem;
    color: black;
    border-top: 0.1px solid;
}

.total-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.empty-cart-icon {
    opacity: 0.5;
}


/* مخفی کردن spin buttons از input number */
.input-group-sm .form-control::-webkit-outer-spin-button,
.input-group-sm .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group-sm .form-control[type=number] {
    -moz-appearance: textfield;
}

/* استایل loading */
.cart-item-loading {
    position: relative;
}

.cart-item-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cart-item-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* استایل دکمه تأیید تغییر */
.confirm-quantity-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.confirm-quantity-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.confirm-quantity-btn:active {
    transform: translateY(0) !important;
}

/* استایل spinner */
.spinner-border-sm {
    width: 1rem !important;
    height: 1rem !important;
    border-width: 0.15em !important;
}

/* استایل modal loading */
.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* استایل آیکون سبد خرید */
.cart-icon-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cart-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cart-icon-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover svg {
    transform: scale(1.1);
}

/* ==================== استایل‌های مودال ویژگی‌های محصول ==================== */

#productPropertiesModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#productPropertiesModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

#productPropertiesModal .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

#productPropertiesModal .modal-title svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

#productPropertiesModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#productPropertiesModal .btn-close:hover {
    opacity: 1;
}

.product-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.product-info img {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.product-info:hover img {
    border-color: #667eea;
    transform: scale(1.05);
}

.base-price {
    background: #e8f5e8;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.property-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.property-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.property-option.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.property-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #28a745 transparent transparent;
}

.property-option.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.property-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.property-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1em;
}

.property-description {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 5px;
}

.selected-properties {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.selected-property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.selected-property-name {
    font-weight: 500;
    color: #333;
}

.selected-property-price {
    color: #28a745;
    font-weight: 600;
}

.total-price {

    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

#addToCartWithPropertiesBtn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#addToCartWithPropertiesBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#addToCartWithPropertiesBtn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* انیمیشن‌ها */
@keyframes propertySelect {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.property-option.selected {
    animation: propertySelect 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    #productPropertiesModal .modal-dialog {
        margin: 10px;
    }

    .product-info .row {
        flex-direction: column;
        text-align: center;
    }

    .product-info .col-md-3 {
        margin-bottom: 15px;
    }

    .property-option {
        padding: 12px;
    }

    .selected-property-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    #productPropertiesModal .modal-title {
        font-size: 1rem;
    }

    .property-option {
        padding: 10px;
    }

    .property-name {
        font-size: 0.9em;
    }

    .property-price {
        font-size: 1em;
    }
}

/* جایگزینی رنگ‌های گرادیانت و قوی با رنگ‌های خنثی */
.cart-btn {
    position: absolute !important;
    right: 15px !important;
    bottom: 10px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}
.cart-btn:hover {
    background: #f8f9fa !important;
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px) !important;
}
.cart-btn svg {
    color: #000000 !important;
}
.cart-count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #e53e3e !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.4) !important;
    border: 2px solid white !important;
    animation: pulse 2s infinite !important;
}
#cartModal .modal-header, #productPropertiesModal .modal-header {
    background: #f5f5f5 !important;
    color: #333 !important;
}
#cartModal .modal-title svg, #productPropertiesModal .modal-title svg {
    stroke: #333 !important;
}
#cartModal .btn-close, #productPropertiesModal .btn-close {
    filter: none !important;
    opacity: 0.7 !important;
}
#cartModal .btn-close:hover, #productPropertiesModal .btn-close:hover {
    opacity: 1 !important;
}

/* وسط چین کردن دکمه‌های مودال */
#productPropertiesModal .modal-footer {
    justify-content: center !important;
    gap: 10px;
}

/* رنگ خنثی برای قیمت نهایی */
#modalFinalPrice {
    color: #333 !important;
    background: #f8f9fa !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #e0e0e0 !important;
    font-weight: bold !important;
}

/* دکمه‌های مودال */
#productPropertiesModal .btn {
    min-width: 120px;
}

/* کنترل‌های تعداد زیبا */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 200px;
    margin: 0 auto;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

.quantity-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quantity-btn:active,
.quantity-btn.clicked {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-display {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    min-width: 60px;
    text-align: center;
    padding: 0 15px;
    user-select: none;
}

/* انیمیشن برای تغییر تعداد */
@keyframes quantityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.quantity-display.updated {
    animation: quantityPulse 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .quantity-selector {
        max-width: 180px;
        padding: 6px;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
    }

    .quantity-display {
        font-size: 16px;
        min-width: 50px;
    }
}
/* استایل برای textarea آدرس */
.form-control[rows] {
    text-align: right !important;
    resize: vertical !important;
    min-height: 80px !important;
    font-family: inherit !important;
}

.form-control[rows]:focus {
    border: 1.5px solid #16a34a !important;
    background: #f1f5f9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1) !important;
}

/* استایل برای label آدرس */
.form-label {
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

/* استایل برای بخش مالیات */
.total-section {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
}

.subtotal-row, .tax-row, .total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

.total-row {
    border-top: 1px solid #dee2e6 !important;
    padding-top: 8px !important;
    margin-top: 8px !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
}

.tax-row {
    color: #6c757d !important;
    font-size: 0.9em !important;
}

.subtotal-amount, .tax-amount, .total-amount {
    font-weight: 600 !important;
}

.total-amount {
    color: #28a745 !important;
    font-size: 1.2em !important;
}

/* اضافه کردن استایل برای مخفی کردن اسکرول افقی */
.product-properties::-webkit-scrollbar,
.properties-drawer::-webkit-scrollbar {
    display: none;
}
.product-properties,
.properties-drawer {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    overflow-x: hidden;
    position: relative;
}

/* استایل دکمه تماس اصلی */
.contact_main_btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.contact_main_btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(44, 62, 80, 0.6);
}

.contact_main_btn:active {
    transform: translateY(0) scale(0.95);
}

/* استایل منوی تماس */
.contact_menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.contact_menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* استایل آیتم‌های تماس */
.contact_item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 500;
}

.contact_item:last-child {
    border-bottom: none;
}

.contact_item:hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
    text-decoration: none;
    transform: translateX(5px);
}

.contact_item svg {
    margin-left: 12px;
    flex-shrink: 0;
}

.contact_item span {
    white-space: nowrap;
}

/* رنگ‌بندی آیتم‌ها - خنثی و سازگار */
.contact_item:nth-child(1) {
    color: #555;
}
.contact_item:nth-child(1):hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
}

.contact_item:nth-child(2) {
    color: #555;
}
.contact_item:nth-child(2):hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
}

.contact_item:nth-child(3) {
    color: #555;
}
.contact_item:nth-child(3):hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
}

.contact_item:nth-child(4) {
    color: #555;
}
.contact_item:nth-child(4):hover {
    background: rgba(44, 62, 80, 0.1);
    color: #2c3e50;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .contact_wrapper {
        bottom: 15px !important;
        left: 15px !important;
    }

    .contact_main_btn {
        width: 55px;
        height: 55px;
    }

    .contact_menu {
        bottom: 65px;
        left: 0;
        min-width: 180px;
        border-radius: 12px;
    }

    .contact_item {
        padding: 10px 16px;
        font-size: 13px;
    }

    .contact_item svg {
        width: 18px;
        height: 18px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .contact_wrapper {
        bottom: 10px !important;
        left: 10px !important;
    }

    .contact_main_btn {
        width: 50px;
        height: 50px;
    }

    .contact_main_btn svg {
        width: 20px;
        height: 20px;
    }

    .contact_menu {
        bottom: 60px;
        min-width: 160px;
        border-radius: 10px;
    }

    .contact_item {
        padding: 8px 14px;
        font-size: 12px;
    }

    .contact_item svg {
        width: 16px;
        height: 16px;
        margin-left: 8px;
    }
}

/* انیمیشن برای نمایش/مخفی کردن منو */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
}

/* استایل مینیمال دکمه موقعیت مکانی - تمام عرض */
#getLocationBtn {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 0.5rem;
}

#getLocationBtn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

#getLocationBtn:active {
    background: #dee2e6;
    color: #343a40;
    border-color: #6c757d;
}

#getLocationBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

#getLocationBtn svg {
    width: 18px;
    height: 18px;
}

/* بهبودهای موبایل برای دکمه موقعیت مکانی */
@media (max-width: 768px) {
    #getLocationBtn {
        width: 100% !important;
        height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 14px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        cursor: pointer !important;
        z-index: 10 !important;
        position: relative !important;
        margin-top: 0.5rem !important;
    }

    #getLocationBtn:not(:disabled) {
        background: #f8f9fa !important;
        color: #6c757d !important;
    }

    #getLocationBtn:not(:disabled):hover {
        background: #e9ecef !important;
        color: #495057 !important;
    }

    #getLocationBtn:not(:disabled):active {
        background: #dee2e6 !important;
        color: #343a40 !important;
    }

    #getLocationBtn svg {
        width: 16px !important;
        height: 16px !important;
        pointer-events: none !important;
    }

    .form-control {
        font-size: 16px !important; /* جلوگیری از zoom در iOS */
    }

    /* بهبود modal نقشه برای موبایل */
    .modal-xl {
        max-width: 95% !important;
        margin: 0.5rem auto !important;
    }

    #mapContainer {
        height: 400px !important;
    }

    .map-overlay {
        position: absolute !important;
        top: 5px !important;
        left: 5px !important;
        right: 5px !important;
        padding: 8px !important;
    }

    .map-instructions {
        position: absolute !important;
        bottom: 5px !important;
        left: 5px !important;
        right: 5px !important;
        padding: 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    #getLocationBtn {
        width: 100% !important;
        height: 40px !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 13px !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        cursor: pointer !important;
        margin-top: 0.5rem !important;
    }

    #getLocationBtn:not(:disabled) {
        background: #f8f9fa !important;
        color: #6c757d !important;
    }

    #getLocationBtn:not(:disabled):hover {
        background: #e9ecef !important;
        color: #495057 !important;
    }

    #getLocationBtn svg {
        width: 14px !important;
        height: 14px !important;
        pointer-events: none !important;
    }

    #mapContainer {
        height: 350px !important;
    }
}

/* اضافی برای اطمینان از کارکرد دکمه در موبایل */
@media (max-width: 1024px) {
    #getLocationBtn {
        width: 100% !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        cursor: pointer !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
    }

    #getLocationBtn:not(:disabled) {
        background: #f8f9fa !important;
        color: #6c757d !important;
    }
}

/* استایل آیکون سبد خرید با علامت بعلاوه */
.bi-cart-plus {
    transition: all 0.3s ease;
    color: currentColor;
}

.cart-icon-btn:hover .bi-cart-plus {
    color: #28a745;
    transform: scale(1.1);
}

.cart-icon-btn:active .bi-cart-plus {
    transform: scale(0.95);
}

/* انیمیشن برای آیکون */
.bi-cart-plus {
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.cart-icon-btn:hover .bi-cart-plus {
    animation: none;
    opacity: 1;
}

/* استایل دکمه افزودن به سبد خرید در صفحه جزئیات */
.btn-add-to-cart {
    width: 100%;
    background-color: white;
    color: black;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-add-to-cart:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-add-to-cart:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart .bi-cart-plus {
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover .bi-cart-plus {
    transform: scale(1.1);
}
