/* style3.css - Complete Food Delivery Interface Styles */

/* Reset and Base Styles */


.style3-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Header Styles */
.style3-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.style3-logo {
    flex: 1;
}

.style3-logo-img {
    height: 60px;
}

.style3-location {
    display: flex;
    align-items: center;
    flex: 2;
    justify-content: center;
}



.style3-location-text {
    font-size: 35px;
    color: #555;
}

.style3-profile {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}



/* Banner Slider Styles */
.style3-banner-container {
    position: relative;
    width: 100%;
    height: 200px; /* Set a fixed height - adjust as needed */
    margin-bottom: 20px;
    padding: 16px 20px;
    overflow: hidden; /* Ensures nothing spills outside */
}

.style3-slider {
    position: relative;
    height: 100%; /* Take full height of the container */
}

.style3-banner-item {
    width: 100%;
    height: 100%; /* Take full height of the container */
}

.style3-banner-item img {
    width: 100%;
    height: 100%; /* Take full height */
    object-fit: cover; /* This is key - makes the image cover the container */
    border-radius: 10px;
}

/* Dots navigation */
.style3-dots-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.style3-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.style3-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Food Categories */
.style3-categories {
    display: flex;
    padding: 20px;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    white-space: nowrap;
}

/* Hide scrollbar */
.style3-categories::-webkit-scrollbar {
    display: none;
}

.style3-category {
    min-width: 120px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s, color 0.3s;
}

.style3-category.active, .style3-burger-category {
    background-color: #e41e3f;
    color: white;
}

.style3-category-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.style3-category-name {
    font-weight: bold;
}

/* Food Grid */
.style3-food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px 20px;
    min-height: 200px;
}

.style3-food-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.style3-food-item:active {
    transform: scale(0.98);
}

.style3-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    border-radius: 12px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.style3-star-icon {
    color: #FFB800;
    width: 12px;
    height: 12px;
    margin-right: 3px;
}

.style3-rating-value {
    font-size: 12px;
    font-weight: bold;
}

.style3-food-img-container {
    position: relative;
    height: 140px;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.style3-food-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.style3-food-details {
    padding: 12px;
}

.style3-food-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.style3-food-description {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.4;
}

.style3-food-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style3-food-price {
    font-weight: bold;
    color: #e41e3f;
    font-size: 16px;
}

.style3-food-price small {
    font-size: 12px;
}

.style3-add-btn {
    width: 28px;
    height: 28px;
    background-color: #e41e3f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.variations-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Keep a smaller gap between each variation option */
    margin-top: 10px;
}

.variation-option {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.variation-option:hover {
    background-color: #e0e0e0;
}

.variation-option input {
    display: none;
}

.variation-option.selected {
    color: #fff;
    background-color: #007bff; /* Highlight selected variation */
}

h5 {
    margin-top: 10px; /* Add space above each variation type label */
    margin-bottom: 5px; /* Keep a small space between the label and its options */
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 5px; /* Space below the label before options start */
}

.old-price {
    text-decoration: line-through;
    color: gray;
    margin-right: 10px;
}

.modal-image-slider {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust as needed */
    overflow: hidden;
}

.slider-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-photo.active {
    opacity: 1;
}

h5 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 5px;
}

.add-to-cart {
    width: 100%;
    border: none;
    background-color: #e41e3f;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

/* Empty state for products */
.empty-products {
    grid-column: span 2;
    text-align: center;
    padding: 40px 0;
    color: #888;
}

/* Loading state */
.loading {
    grid-column: span 2;
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e41e3f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {transform: translateY(100%);}
    to {transform: translateY(0);}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .style3-food-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .style3-slide-title {
        font-size: 30px;
    }
    
    .style3-food-name {
        font-size: 14px;
    }
    
    .style3-food-description {
        font-size: 10px;
    }
    
    .style3-food-price {
        font-size: 14px;
    }
    
    .style3-food-details {
        padding: 8px;
    }
    
    .style3-food-img-container {
        height: 100px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-image-slider {
        height: 200px;
    }
}