.accordion-button {
    border: none;
    background-color: #f8f9fa;
    box-shadow: none;
    color: #000
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none
}

.accordion-button.collapsed, .accordion-button:not(.collapsed) {
    background-color: #f8f9fa
}

.accordion-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px
}

.accordion-item {
    border: none;
    margin-bottom: 10px
}

.fit-cover {
    object-fit: cover
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number] {
    -moz-appearance: textfield
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    border-radius: 50%;
    background-color: #000
}

.carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 50%;
    transform: translateY(0);
    z-index: 5
}

.carousel-control-prev {
    left: 10px
}

.carousel-control-next {
    right: 10px
}

.bs-icon {
    --bs-icon-size: .75rem;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-size: var(--bs-icon-size);
    width: calc(var(--bs-icon-size) * 2);
    height: calc(var(--bs-icon-size) * 2);
    color: var(--bs-primary)
}

.bs-icon-xs {
    --bs-icon-size: 1rem;
    width: calc(var(--bs-icon-size) * 1.5);
    height: calc(var(--bs-icon-size) * 1.5)
}

.bs-icon-sm {
    --bs-icon-size: 1rem
}

.bs-icon-md {
    --bs-icon-size: 1.5rem
}

.bs-icon-lg {
    --bs-icon-size: 2rem
}

.bs-icon-xl {
    --bs-icon-size: 2.5rem
}

.bs-icon.bs-icon-primary {
    color: var(--bs-white);
    background: var(--bs-primary)
}

.bs-icon.bs-icon-primary-light {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .2)
}

.bs-icon.bs-icon-semi-white {
    color: var(--bs-primary);
    background: rgba(255, 255, 255, .5)
}

.bs-icon.bs-icon-rounded {
    border-radius: .5rem
}

.bs-icon.bs-icon-circle {
    border-radius: 50%
}

.card {
    border: none;
    box-shadow: none
}

.card-img-top {
    object-fit: cover;
    width: 100%;
    height: 100%
}

.card-body {
    padding: 15px;
    text-align: left
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px
}

.card-text {
    font-size: 1em;
    margin-bottom: 10px
}

.product-price {
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: left
}

.input-group .btn, .input-group .form-control {
    border-radius: 0;
    border: 1px solid #ced4da;
    margin-bottom: 10px
}

.input-group .form-control {
    max-width: 50px
}

.input-group {
    justify-content: flex-end
}

#emptyCartNotification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border-radius: 5px;
    display: none;
    max-width: 300px;
    width: auto;
    word-wrap: break-word;
    z-index: 1000;
}

@media (max-width: 600px) {
    #emptyCartNotification {
        top: 80px;
        right: 10px;
        max-width: 250px;
    }
}

@media (min-width: 1200px) {
    #emptyCartNotification {
        max-width: 400px;
    }
}

#addToCartNotification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    border-radius: 5px;
    display: none;
    max-width: 300px;
    width: auto;
    word-wrap: break-word;
    z-index: 1000;
}

@media (max-width: 600px) {
    #addToCartNotification {
        top: 80px;
        right: 10px;
        max-width: 250px;
    }
}

@media (min-width: 1200px) {
    #addToCartNotification {
        max-width: 400px;
    }
}

#checkout-btn.btn-success {
    background-color: #18a036;
    border-color: #18a036;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 0.25rem;
}

#checkout-btn.btn-success:hover {
    background-color: #4CAF50; /* Более светлый оттенок для фона */
    border-color: #4CAF50; /* Тот же светлый оттенок для бордера */
}

#checkout-btn.btn-success:focus, #checkout-btn.btn-success:active {
    background-color: #18a036;
    border-color: #18a036;
    box-shadow: none;
}

#checkout-btn.btn-success:disabled {
    background-color: #e0e0e0;
    border-color: #cccccc;
    color: #9e9e9e;
    cursor: not-allowed;
}

/*admin panel*/
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    /*width: 240px;*/
    /*background-color: #f8f9fa;*/
    /*padding: 20px 0;*/
    /*border-right: 1px solid #dee2e6;*/
    /*display: flex;*/
    /*flex-direction: column;*/

    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    overflow-y: auto;
    background-color: #f8f9fa;
    transition: left 0.3s ease-in-out;
    z-index: 1050;
    padding: 1rem;
}

#sidebar.active {
    left: 0;
}

/* Затемнение фона при открытом сайдбаре */
#sidebarBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}

#sidebarBackdrop.active {
    display: block;
}

@media (min-width: 768px) {
    /* на десктопах сайдбар всегда виден */
    #sidebar {
        position: static;
        width: 250px;
        height: auto;
        left: 0;
        padding: 0;
        background-color: transparent;
    }
    #sidebarBackdrop {
        display: none !important;
    }
}

.sidebar form {
    margin: 0;
    width: 100%;
}

.sidebar button.btn-light {
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #dee2e6;
    text-align: left;
    padding-left: 20px;
    font-weight: 500;
    color: #212529;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.sidebar button.btn-light:last-child {
    border-bottom: none;
}

.sidebar button.btn-light:hover,
.sidebar button.btn-light:focus {
    background-color: #e9ecef;
    color: #000;
    outline: none;
    box-shadow: none;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.nav-link.active {
    font-weight: bold;
}

.sidebar button.no-border {
    border-bottom: none !important;
}

h2.text-primary {
    color: #0d6efd !important;
}

.btn-secondary {
    min-width: 90px;
}

.category-item {
    cursor: grab;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.products {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}
.product-item {
    cursor: grab;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}
.sortable-ghost {
    opacity: 0.5;
}

.custom-yellow-btn {
    background-color: #f8d108;
    border: none;
    color: white;
}

.custom-yellow-btn:hover {
    background-color: #e0bd00;
    color: white;
}

/*виджет сдек*/
.cdek-map-responsive {
    width: 100%;
    height: 600px;
    max-width: 100%;
    margin-bottom: 3.0rem;
}

@media (max-width: 768px) {
    .cdek-map-responsive {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .cdek-map-responsive {
        height: 400px;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    padding: 10px 15px;
    font-size: 18px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none; /* скрыта по умолчанию */
}

#scrollTopBtn:hover {
    background-color: #555;
}
