:root {
    --main-color: #186F65;
    --secondary-color: #B3D8A8;
    --back-color: #FBFFE4;

}

@font-face {
    font-family: 'IranSansXV-normal'; /* اسمی که انتخاب می‌کنید */
    src: url('../fonts/IRANSansXV-1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* برای نمایش بهتر هنگام لود */
}

@font-face {
    font-family: 'IranSansXV-bold'; /* اسمی که انتخاب می‌کنید */
    src: url('../fonts/IRANSansXV-1.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap; /* برای نمایش بهتر هنگام لود */
}


.col-6 {
    flex: 0 0 auto !important;
    width: 47% !important;
}
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 auto !important;
        width: 48% !important;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto !important;
        width: 31% !important;
    }
}

.main-color {
    background-color: var(--main-color) !important;
}

.secondary-color {
    background-color: var(--secondary-color) !important;
}

.back-color {
    background-color: var(--back-color) !important;
}

.status-free {
    background-color: #d4edda;
}

.status-occupied {
    background-color: #fff3cd;
}

.status-reserved {
    background-color: #cce5ff;
}

.btn-free {
    background-color: #28a745;
    color: white;
}

*, body {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body {
    font-family: IranSansXV-normal !important;
}

.container-sm {
    background-color: var(--back-color);
}

p {
    margin: 0 !important;
}


.categories-carousel-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--back-color);

}

/* استایل کاروسل دسته‌بندی‌ها */
.categories-carousel {
    padding: 20px 0 0 0;
    background-color: var(--back-color);
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.carousel a.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.category-card {
    display: flex;
    min-width: 180px;
    text-align: center;
    padding: 15px;
    background: #E1FFBB;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    font-family: IranSansXV-bold !important;
}

.category-card.active {
    background: var(--main-color);
    color: white;
}

.category-card.disabled {
    pointer-events: none;
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: not-allowed;
    transition: 0.3s;
}

/*.category-card:hover {*/
/*    background: #e9ecef;*/
/*    transform: translateY(-3px);*/
/*}*/

.category-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* استایل بخش محصولات */
.category-products {
    margin-bottom: 40px;
    scroll-margin-top: 120px; /* ارتفاع نوار چسبان + حاشیه */
    padding-top: 20px; /* فضای اضافه برای جداسازی */
}

.category-title {
    font-size: 1.125em;
    text-align: center;
    padding-bottom: 10px;
    /*border-bottom: 2px solid #007bff;*/
    margin-bottom: 20px;
}

.products-section {
    padding: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.price {
    font-weight: bold;
    margin: 10px 0;
    color: var(--main-color);
}

.add-to-cart {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

/* اسکرول افقی برای موبایل */
@media (max-width: 768px) {
    .carousel {
        scroll-snap-type: x mandatory;
    }

    .category-card {
        scroll-snap-align: start;
    }

    .add-to-cart {
        font-size: 12px;
    }
}

.input-group {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 10px;

}

.input-group .btn {
    color: #212529;
}

.input-group .form-control {
    text-align: center;
    border-radius: 0;
    border: none;
    -moz-appearance: textfield;
    appearance: none;

}

.input-group .form-control::-webkit-inner-spin-button,
.input-group .form-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.svg_resize {
    width: 22px;
}


h3::before {
    content: "";
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 2px;
    /*background: #81858b;*/
    background-color: var(--main-color);
    margin-left: .7rem;
}

h3::after {
    content: "";
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 2px;
    background-color: var(--main-color);
    margin-right: .7rem;
}

.hd-color {
    background-color: var(--main-color);
}

.header-sides-style {
    padding: 7px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    color: var(--main-color);
}

.st0 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: var(--secondary-color);
}

.dir-ltr {
    direction: ltr;
}