/* Global Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* Header */
.header-image {
    height: 75px;
    padding: 9px;
    color: #333;
}
.header-menu {
    background-color: black;;
    width: 100%;
    color: #fff;
    padding: 10px 0;
}
.header-menu-categories {
    background-color: #fafafa;
    padding: 10px;
}

/* Menu Sections Slider */
.menu-sections-slider {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}
.menu-sections-slider::-webkit-scrollbar {
    height: 6px;
}
.menu-sections-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.slider-item {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.slider-item:hover {
    background: #f0f0f0;
    border-color: #aaa;
}
.slider-item.active-section {
    background: #333;
    color: #fff;
    border-color: #030303;
    font-weight: bold;
}

/* Categories & Products */
.product-list {
    padding: 15px;
}
.product-image {
    object-fit: cover;
    object-position: center;
    height: 145px;
    width: 100%;
    border-radius: 4px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    width: -webkit-fill-available;
}
.product-description {
    font-size: 14px;
    color: #555;
}
.product, .product-basket {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.product-title {
    font-weight: bold;
    color: #404040;
    margin-bottom: 5px;
}
.category-title {
    font-weight: bold;
    color: #000;
    min-height: 110px;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    display: table-cell;
}

/* Buttons */
.invisible-btn {
    all: unset;
}
.btn-secondary {
    color: #fff;
    background-color: #000000;
    border-color: #6c757d;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Category Images & Blocks */
.category-image {
    object-fit: cover;
    object-position: center;
    height: 110px;
    width: 100%;
    padding: 2px;
    border-radius: 4px;
}
.category {
    min-height: 110px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Icons & Additional Elements */
.categories-icon {
    color: #4f4f4f;
}
.product-description-box {
    margin-top: 5px;
}

/* Toasts */
.toast-success {
    background: rgb(0, 204, 3);
    background: linear-gradient(90deg, rgba(0, 204, 3, 0.41780462184873945) 0%, rgba(39, 215, 63, 0.7315301120448179) 50%, rgba(202, 255, 0, 0.41220238095238093) 100%);

    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}

/* Flags */
.flag-image {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

/* Active Category (if used in header categories) */
.active-category {
    background: linear-gradient(90deg, rgba(224,224,224,1) 0%, rgba(245,245,245,1) 50%, rgba(255,255,255,0.41) 100%);
}
a:hover {
    color: inherit !important;
    text-decoration: none !important;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-menu {
        padding: 8px 0;
    }
    .slider-item {
        padding: 8px 15px;
        margin-right: 8px;
    }
    .product-image {
        height: 120px;
    }
}

/* Loading Overlay Styles */
#loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Make sure it appears on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Spinner Styles */
#loading-overlay .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* CSS Spinner Animation */
.spinner:after {
    content: " ";
    display: block;
    width: 60px;
    height: 60px;
    margin: 1px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* 🏆 Categories & Products */
.product-list {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.product-image {
    object-fit: cover;
    object-position: center;
    height: 150px;
    width: 100%;
    border-radius: 8px;
}
.product {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.product:hover {
    transform: scale(1.02);
}
.product-description {
    font-size: 14px;
    color: #555;
}
.product-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

#categories-btn {
    text-align: left;
}

.btn-favorites {
    height: 40px;
    width: 40px;
    padding: 8px;
}

.no-image-category {
    min-height: 65px;
}
.no-image-category > .row{
    height: 63px;
}