:root {
    --primary-color: #FF5252;
    --secondary-color: #ffffff;
    --background-color: #f8f9fa;
    --text-color: #333333;
    --text-on-primary: #ffffff;
    --text-on-secondary: #333333;
    --divider-color: #ffffff;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', 'Segoe UI', sans-serif;
}

body {
    font-family: 'Rubik', 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
}

/* Header styles */
.header {

    height: 80px;

    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;
    /* High z-index to keep it above other elements */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container {
    width: 100%;
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    padding: 0 20px;
    height: 100%;
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    height: 60px;
    max-height: 60px;
    object-fit: contain;
}

.halal-logo {
    height: 70px;
    max-height: 70px;
    margin-left: 8px;
    object-fit: contain;
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.menu-items {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-item-header {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-on-secondary);
    cursor: pointer;
    transition: background-color 0.3s;
}

/* .menu-item-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
} */

.divider {
    height: 30px;
    width: 1px;
    background-color: var(--divider-color);
}

/* Address section */
.address-section {
    display: none;
    /* Initially hidden, shown on menu page */
    align-items: center;
    cursor: pointer;
    min-width: 150px;
    max-width: 250px;
}

.address-icon {
    width: 24px;
    height: 24px;
}

.address-icon path {
    stroke: var(--text-on-secondary);
}

.address-content {
    margin-left: 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.address-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-on-secondary);
}

.address-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-on-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    font-size: 20px;
    margin-left: 2px;
}

/* Cart section */
.cart-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    min-width: 94px;
}

.cart-icon-container {
    position: relative;
}

.cart-icon {
    width: 24px;
    height: 24px;
}

.cart-icon path {
    stroke: var(--text-on-secondary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    border-radius: 50%;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
}

.cart-text {
    margin-left: 6px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-on-secondary);
    text-transform: uppercase;
}

/* Profile section */
.profile-container {
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: pointer;
}

.profile-icon {
    width: 24px;
    height: 24px;
}

.profile-icon path {
    stroke: var(--text-on-secondary);
}

.profile-name {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-on-secondary);
    text-transform: uppercase;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menu */
.burger-menu {
    display: none;
    cursor: pointer;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-on-secondary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-menu-item {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text-on-secondary);
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
}

.mobile-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.horizontal-divider {
    height: 1px;
    background-color: rgba(136, 136, 136, 0.3);
    margin: 0 20px;
}

.mobile-cart-item,
.mobile-profile-item {
    display: flex;
    align-items: center;
}

/* Media queries */
@media screen and (max-width: 1024px) {
    .menu-item-header {
        padding: 0 10px;
        font-size: 16px;
    }

    .profile-name {
        max-width: 80px;
    }
}

@media screen and (max-width: 768px) {
    .desktop-menu {
        justify-content: flex-start;
    }

    .menu-items {
        display: none;
    }

    .divider {
        display: none;
    }

    .burger-menu {
        display: block;
        margin-left: auto;
    }

    .address-section {
        flex: 1;
        margin-left: 20px;
        max-width: calc(100% - 160px);
    }

    .mobile-menu.active {
        display: block;
    }

    /* When menu is open */
    .open .burger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .open .burger-line:nth-child(2) {
        opacity: 0;
    }

    .open .burger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Carousel Styles - Add to your existing CSS */
/* Carousel Styles - Optimized for 1600x500 pixel images (16:5 aspect ratio) */
.carousel-section {
    width: 100%;
    margin: 0 auto;
    margin-top: 80px;
    padding: 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 33%;
    /* Exact 16:5 aspect ratio (500/1600 = 0.3125 or 31.25%) */
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use cover since we know the exact aspect ratio */
}



/* Media queries to maintain aspect ratio on all devices */

/* Large screens */
@media screen and (min-width: 1921px) {
    .carousel-container {
        max-width: 1920px;
        /* Cap width on very large screens */
        margin: 0 auto;
    }
}

/* Devices with unusual aspect ratios */
@media screen and (max-width: 768px) {
    .carousel-container {
        padding-bottom: 33%;
        /* Maintain the same aspect ratio */
    }

    /* If images appear too small on mobile, you can use this alternative:
    .carousel-item img {
        object-position: center top; /* Align to top if image gets cropped */
}


/* Very small devices */
@media screen and (max-width: 480px) {
    .carousel-section {
        margin-top: 40px;
        /* Less top margin on mobile */
    }
}

/* Menu Section Styles */
.menu-section {
    width: 100%;
    background-color: var(--primary-color, #FF5252);
    color: white;
    padding: 50px 0;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu Description Styles */
.menu-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 50px;
}

.menu-description h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
}

.description-text {
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
}

.menu-features {
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
    min-width: 20px;
}

.feature-item p {
    font-size: 18px;
    line-height: 1.5;
}

.highlight-text {
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
}

/* Menu Grid Styles */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.menu-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    max-width: 300px;
    height: 250px;
    margin-bottom: 20px;
}

.menu-item-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-item-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-content img {
    transform: scale(1.05);
}

.menu-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Additional Sections Styles */
.additional-sections {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 18px;
}

.sub-section {
    margin-bottom: 50px;
    text-align: center;
}

.sub-section h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
}

.sub-section p {
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.closing-text {
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 24px;
}

/* Responsive Styles */
@media screen and (max-width: 800px) {
    .menu-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media screen and (max-width: 600px) {

    .menu-description h2,
    .sub-section h2 {
        font-size: 24px;
    }

    .description-text,
    .feature-item p,
    .highlight-text,
    .sub-section p {
        font-size: 16px;
    }

    .closing-text {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .menu-item {
        max-width: 100%;
    }
}

/* Video Section Styles */
.video-section {
    width: 100%;
    padding: 20px 0;
    background-color: var(--secondary-color, #ffffff);
}

.video-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.video-wrapper {
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.video-wrapper::-webkit-scrollbar {
    height: 8px;
}

.video-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.video-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Video Card Styles */
.video-card {
    flex: 0 0 auto;
    height: 400px;
    /* width: 300px; */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Loading State */
.loading-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #F28C00;
    /* Orange color from theme */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
}

/* Error State */
.error-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.error-icon {
    font-size: 40px;
    color: #c62828;
    margin-bottom: 12px;
}

.error-text {
    color: #c62828;
    font-weight: bold;
    margin-bottom: 8px;
}

.retry-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.retry-button:hover {
    background-color: #b71c1c;
}

.retry-icon {
    display: inline-block;
    transform: rotate(90deg);
}

/* Video Player */
.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain */
    background-color: black;
    display: block;
}

/* Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-button-overlay {
    opacity: 1;
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media screen and (max-width: 800px) {
    .video-wrapper {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
    }

    .video-card {
        margin-bottom: 20px;
    }
}


/* Footer Section Styles */
.footer-section {
    background-color: var(--secondary-color, #ffffff);
    color: white;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content area */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    text-align: center;
}

/* Column Headers */
.footer-column h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

/* Useful Links */
.useful-links ul {
    list-style: none;
    padding: 0;
}

.useful-links li {
    margin-bottom: 10px;
}

.useful-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.useful-links a:hover {
    /* opacity: 0.8; */
    /* text-decoration: underline; */
}

/* Contact Info */
.contact-info .address {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.phone-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.phone-icon {
    font-size: 20px;
}

.phone-number {
    font-size: 18px;
}

/* Opening Hours */
.hours-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.hours-item {
    display: flex;
    margin-bottom: 8px;
    width: 100%;
    justify-content: center;
}

.day-column {
    width: 200px;
    /* text-align: left; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-slot {
    padding: 2px 0;
}

.day {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.time {
    font-size: 16px;
    color: white;
}

.time.closed {
    color: #ff6b6b;
}

.hours-loading {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Social Media */
.social-media {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-icon {
    margin: 0 12px;
    transition: transform 0.3s ease;
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    /* Makes icons white */
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    text-align: center;
    /* padding-top: 20px; */
    /* border-top: 1px solid white; */
}

.copyright p {
    font-size: 12px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        max-width: 400px;
        margin-bottom: 40px;
    }

    .social-media {
        padding: 10px 0;
    }

    .social-icon {
        margin: 0 8px;
    }
}

/* Loader Styles */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color, #ff6b35);
    animation: spin 1s ease-in-out infinite;
}

.loader-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden;
}

/* Branding on the loader */
.loader-branding {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Logo in loader */
.loader-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

/* Footer divider with limited width */
.footer-divider {
    max-width: 500px;
    /* Adjust to match the width of your social icons */
    width: 80%;
    /* Use percentage for responsiveness */
    height: 1px;
    background-color: white;
    /* White color as requested */
    margin: 20px auto;
    /* Center the divider and add spacing */
    opacity: 0.7;
    /* Optional: slightly transparent for a softer look */
}

/* Make sure the divider width adjusts on smaller screens */
@media screen and (max-width: 600px) {
    .footer-divider {
        width: 90%;
    }
}

.header a {
    text-decoration: none;
}