: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 */
    }
}

/* 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;
}

section {
    width: 100%;
    padding: 20px;
}

.konucko-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-wrapper {
    position: relative;
    min-height: 350px;
    display: flex;
    flex-wrap: wrap;
}

.hero-container {
    background: linear-gradient(90deg,

            #1A2570 0%,

            #1E2B7B 10%,

            #243384 20%,

            #2A3E94 30%,

            #2F48A4 40%,

            #3552B5 50%,

            #3C61C5 60%,

            #4270D5 70%,

            #4780E2 80%,

            #4B8FEB 90%,

            #4F98F0 100%);

    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 65%;
    position: absolute;
    left: 0;
    top: 16px;
    z-index: 2;
}

.hero-text {
    max-width: 90%;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b2b2dc;
    margin-bottom: 30px;
}

.hero-image {

    border-radius: 12px;
    width: 40%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 300px;

    display: block;
    object-fit: cover;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .hero-container,
    .hero-image {
        position: static;
        width: 100%;
        margin: 0 auto;
    }

    .hero-image {
        order: 1;
        margin-bottom: 20px;
        height: 300px;
    }

    .hero-container {
        order: 2;
        margin-top: -40px;
        /* Creates overlap effect */
        padding: 30px 25px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text {
        max-width: 100%;
    }
}

/* Add some button styling if needed */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d35400;
}

.container {
    /* max-width: 1200px; */
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #800020;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1.1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.1);
}

.card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 12px 15px;
    display: flex;
    gap: 12px;
    /* justify-content: space-between; */
    align-items: center;
}

.card-title {
    color:
        #663300;
    font-weight: 600;
    font-size: 20px;
}

.arrow {
    color:
        #663300;
}

/* Specific styling for first card */
.non-veg-pickles .card-image {
    background-color:
        #1a4e8a;
}

/* Media queries for responsiveness */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .card {
        aspect-ratio: 4/3;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #5d3a1a;
    margin-bottom: 40px;
    text-align: left;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.process-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-image-container {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #fff8e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.process-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-content {
    padding: 25px 20px;
    background-color: #f5f5f5;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-title {
    font-size: 22px;
    font-weight: 600;
    color: #5d3a1a;
    margin-bottom: 15px;
}

.process-description {
    font-size: 16px;
    line-height: 1.6;
    color: #7e6655;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.cta-button {
    background-color: #f8a055;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(248, 160, 85, 0.3);
}

.cta-button:hover {
    background-color: #f6893a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(248, 160, 85, 0.4);
}

.card-footer-link {
    display: flex;
    /* justify-content: space-between; */
    gap: 12px;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    /* Ensures text color doesn't change */
    cursor: pointer;
}

.card-footer-link:hover {
    /* Add hover effects if desired */
    opacity: 0.9;
}


/* Media queries for responsiveness */
@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
        text-align: center;
    }

    .process-title {
        font-size: 20px;
    }
}

.subscription-container {
    width: 100%;

    text-align: center;
    padding: 40px 20px;
}

h1 {
    color: #541f07;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.email-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.email-input:focus {
    border-color: #a15c38;
}

.submit-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    min-width: 45px;
    height: calc(100% - 10px);
    background-color: #541f07;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    flex-shrink: 0;
    /* Fixed dimensions to prevent expansion */
    flex-basis: 45px;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #a15c38;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    /* Set a position to ensure it doesn't affect other elements */
    position: relative;
    z-index: 1;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: none;
    margin-top: 15px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(84, 31, 7, 0.3);
    border-radius: 50%;
    border-top-color: #541f07;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}