@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* Variables & Global Reset */
:root {
    --primary-color: #e63946;
    --secondary-color: #f1faee;
    --accent-color: #fca311;
    --dark-color: #1d3557;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
}

.primary-color {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 800;
    color: var(--secondary-color) !important;
    font-size: 1.6rem;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    background-color: var(--dark-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Image Layer */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background.jpg') no-repeat center center/cover;
    filter: blur(4px);
    transform: scale(1.1);
    z-index: 1;
}

/* Dark Overlay Layer */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    padding: 5px 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease-in-out;
}

.search-wrapper:focus-within {
    border-color: #dc3545;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    color: #aaa;
    font-size: 1.1rem;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    color: #dc3545;
}

.custom-search-input {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 10px 0;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #333;
    height: auto;
}

.custom-search-input::placeholder {
    color: #bbb;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Filter Buttons (Horizontal Scroll) */
.btn-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 5px;
    gap: 10px;
    margin-bottom: 2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.btn-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.category-btn {
    flex: 0 0 auto;
    background: white;
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    border-radius: 50px;
    padding: 8px 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

/* Menu Grid & Cards */
.section-center {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 0.5rem;
}

.menu-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
    background-color: #e0e0e0;
    transition: opacity 0.3s ease-in-out;
}

.card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.card-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed #eee;
}

.card-price {
    color: var(--primary-color) !important;
    font-size: 1.3rem;
    font-weight: 800;
}

.btn-simple-add {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(29, 53, 87, 0.2);
}

.btn-simple-add:hover {
    background-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

/* Offcanvas (Cart Sidebar) */
.offcanvas-header {
    background-color: var(--primary-color);
}

.offcanvas-title {
    color: var(--dark-color);
}

.offcanvas-footer {
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

/* Checkout Radio Buttons */

/* Default State */
.btn-check+.btn-outline-secondary {
    border-color: #ddd;
    color: var(--dark-color);
    background-color: white;
    transition: all 0.3s ease;
}

/* Active/Checked State */
.btn-check:checked+.btn-outline-secondary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
    transform: translateY(-2px);
}

/* Hover State */
.btn-check+.btn-outline-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: rgb(180, 0, 0);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}