/* 
   Gelato House - Main Stylesheet
   A responsive website for a gelato shop
*/

/* ===== VARIABLES ===== */
:root {
    /* Color scheme - Based on screenshots */
    --primary-color: #8B5A2B;        /* Rich brown */
    --secondary-color: #D4AF37;      /* Gold */
    --accent-color: #F5F5DC;         /* Beige/cream */
    --dark-color: #3A2718;           /* Dark chocolate brown */
    --light-color: #FFF8E1;          /* Warm off-white */
    --text-color: #2B1D0E;           /* Deep brown for text */
    --light-gray: #F8F3E9;           /* Light warm gray for backgrounds */
    --medium-gray: #E5D7C3;          /* Medium warm gray for borders */
    --hero-bg-color: #a19b8c;        /* Gray-brown background from first screenshot */
    --button-color: #9e7a4d;         /* Button color from screenshot */

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;

    /* Sizing */
    --container-width: 1200px;
    --gutter: 2rem;
    --border-radius: 8px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    /* Mobile performance improvements */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-family: var(--heading-font);
    font-size: 3.6rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    position: relative;
    text-transform: uppercase;
}

.divider {
    width: 80px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 0 auto 2rem;
    position: relative;
}

.section-title p {
    color: #555;
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1.5rem 3rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #8b6c45;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #c9a528;
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: 2px solid var(--secondary-color);
    padding: 1.6rem 3.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background-color: rgba(201, 165, 40, 0.9);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

header .container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
}

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 4rem;
    z-index: 5;
}

.logo-image {
    height: 9rem;
    width: 9rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.left-menu {
    justify-content: flex-end;
}

.right-menu {
    justify-content: flex-start;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Create space between menu items */
.left-menu li:not(:first-child) {
    margin-left: 3rem;
}

.right-menu li:not(:last-child) {
    margin-right: 3rem;
}

#mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 2rem;
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile menu active state */
#mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-color: var(--hero-bg-color);
    background-image: url('img/custard-cream-bg.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 12rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(58, 39, 24, 0.75), rgba(58, 39, 24, 0.65));
    backdrop-filter: blur(1px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
    animation-duration: 1.5s;
    padding: 3rem;
    background-color: rgba(58, 39, 24, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-title h2 {
    font-family: var(--heading-font);
    font-size: 6.4rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    display: inline-block;
    letter-spacing: 1px;
}

.hero-title .highlight {
    color: var(--secondary-color);
    display: block;
    font-size: 7.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 400;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 10rem 0;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===== FLAVORS SECTION ===== */
.flavors-section {
    padding: 10rem 0;
    background-color: var(--light-gray);
}

.flavor-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.category-btn {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    background: var(--button-color);
    color: #fff;
    border: none;
    margin: 0 0.5rem 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(58, 39, 24, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    z-index: -1;
    outline: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15);
}

.category-btn:hover::before,
.category-btn.active::before {
    width: 100%;
}

.category-btn:hover,
.category-btn.active {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.flavor-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
}

.flavor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.2);
    border-color: var(--secondary-color);
}

.flavor-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--secondary-color) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flavor-item:hover::after {
    opacity: 1;
}

.flavor-image {
    height: 200px;
    overflow: hidden;
}

.flavor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flavor-item:hover .flavor-image img {
    transform: scale(1.05);
}

.flavor-info {
    padding: 2rem;
}

.flavor-info h3 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* ===== SPECIAL OFFERS SECTION ===== */
.special-offers {
    padding: 10rem 0;
    background: linear-gradient(rgba(58, 39, 24, 0.85), rgba(58, 39, 24, 0.85)), url('../img/special-offers-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--accent-color);
    text-align: center;
}

.offer-content h2 {
    font-family: var(--heading-font);
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.offer-content > p {
    font-size: 1.8rem;
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF8E1;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.offer-card {
    background-color: rgba(43, 29, 14, 0.7);
    border: 1px solid var(--secondary-color);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.offer-icon {
    margin-bottom: 2rem;
}

.offer-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.offer-card h3 {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 10rem 0;
    background-color: var(--light-gray);
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.instagram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instagram-widget-container {
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.sk-instagram-feed {
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(240,148,51,0.9) 0%, rgba(220,39,67,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 3rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ===== CART SYSTEM ===== */
.cart-button {
    position: relative;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cart-button:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.cart-button.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    display: none;
}

.add-to-cart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    /* Better touch interactions */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    z-index: 2;
}

.menu-item:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn:hover,
.add-to-cart-btn:focus {
    background: var(--primary-color);
    transform: scale(1.1);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    background: var(--light-gray);
}

.cart-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart-btn:hover {
    background: rgba(0,0,0,0.1);
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    padding: 40px 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 10px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.item-price {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-total {
    font-weight: bold;
    color: var(--secondary-color);
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: rgba(231, 76, 60, 0.1);
}

.cart-total {
    padding: 20px;
    border-top: 1px solid var(--medium-gray);
    background: var(--light-gray);
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.cart-actions {
    padding: 20px;
}

.checkout-btn {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.checkout-modal.active {
    opacity: 1;
    visibility: visible;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    background: var(--light-gray);
    border-radius: 12px 12px 0 0;
}

.checkout-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.checkout-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
}

.order-summary {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.order-summary h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--medium-gray);
    font-size: 1.1rem;
}

.place-order-btn {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.place-order-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Order Success */
.order-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1002;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.success-content i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.success-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.success-content p {
    color: var(--primary-color);
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header h3 {
        font-size: 1.2rem;
    }
    
    .cart-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .cart-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .cart-item-details p {
        font-size: 0.9rem;
        margin: 2px 0;
    }
    
    .quantity-controls {
        gap: 8px;
    }
    
    .quantity-controls button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        /* Better touch targets */
        min-height: 44px;
        min-width: 44px;
    }
    
    .quantity-controls input {
        width: 50px;
        font-size: 1rem;
        padding: 8px;
        /* Better touch targets */
        min-height: 44px;
    }
    
    .cart-total {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .checkout-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
        /* Better touch targets */
        min-height: 48px;
    }
    
    .checkout-modal {
        width: 95%;
        max-height: 95vh;
        margin: 20px auto;
        border-radius: 10px;
    }
    
    .checkout-content {
        padding: 20px;
        max-height: calc(95vh - 40px);
        overflow-y: auto;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        /* Better touch targets */
        min-height: 48px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .radio-group label {
        padding: 12px 15px;
        font-size: 1rem;
        /* Better touch targets */
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .submit-order-btn {
        padding: 14px 25px;
        font-size: 1.1rem;
        /* Better touch targets */
        min-height: 52px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .cart-button {
        padding: 10px 14px;
        font-size: 1rem;
        /* Better touch targets */
        min-height: 44px;
    }
    
    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        top: 5px;
        right: 5px;
        /* Better touch targets */
        min-width: 10px;
        min-height: 10px;
    }
}

/* ===== GALLERY SECTION ===== */
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.4rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 10rem 0;
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
}

.info-item {
    display: flex;
    margin-bottom: 3rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
    flex-shrink: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.info-icon i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.info-text h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.social-media {
    margin-top: 4rem;
}

.social-media h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #2B1D0E;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px) rotate(10deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    font-family: var(--body-font);
    font-size: 1.6rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 6rem 0 2rem;
    border-top: 3px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo h2 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.footer-links ul li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-newsletter p {
    margin-bottom: 2rem;
}

#newsletterForm {
    display: flex;
}

#newsletterForm input {
    flex-grow: 1;
    padding: 1.2rem;
    font-family: var(--body-font);
    font-size: 1.6rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

#newsletterForm button {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

#newsletterForm button:hover {
    background-color: #c9a528;
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== OUR MENU SECTION ===== */
.menu-section {
    padding: 6rem 2rem;
    background-color: var(--light-color);
    background-image: linear-gradient(to bottom, #FFF8E1 0%, rgba(245, 245, 220, 0.9) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.05), inset 0 -5px 10px rgba(0,0,0,0.05);
}

.menu-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,20 Q40,5 50,20 T70,20" stroke="%238B5A2B" fill="none" stroke-width="1" opacity="0.1" /></svg>');
    background-size: 100px 100px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.menu-section .container {
    position: relative;
    z-index: 1;
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.08);
}

.category-btn {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    background: var(--button-color);
    color: #fff;
    border: none;
    margin: 0 0.5rem 1rem 0.5rem;
    box-shadow: 0 2px 8px rgba(58, 39, 24, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.category-btn.active,
.category-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.category-btn:focus {
    outline: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.menu-item {
    background-color: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 16px;
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    outline: none;
    overflow: hidden;
}

.price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* See More Button Styles */
.see-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin: 3rem 0 1rem;
}

.see-more-btn {
    background: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 50px;
    padding: 1.2rem 3.5rem;
    font-size: 1.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.see-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    z-index: -1;
}

.see-more-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

.see-more-btn:focus {
    outline: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15);
}

.menu-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.18);
}

.menu-item:hover .price-tag {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(58, 39, 24, 0.15);
}

.menu-item:focus {
    outline: 3px solid var(--primary-color);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.12);
}

.menu-item h3 {
    font-size: 2rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-item p {
    font-size: 1.5rem;
    color: #3a2718;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Category visibility styles */
.category-visible {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .hero-content h2 {
        font-size: 4.2rem;
    }
}

/* Tablet devices (between 768px and 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .menu-item {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-title .highlight {
        font-size: 5.5rem;
    }
    
    .logo-image {
        height: 8rem;
        width: 8rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    html {
        font-size: 56.25%; /* 9px */
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 3rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    html {
        font-size: 50%; /* 8px */
    }

    header .container {
        padding-top: 1rem;
    }
    
    .hero-title h2 {
        font-size: 1.5rem;
        color: #3a2718;
        margin-bottom: 0.5rem;
        line-height: 1.6;
    }
    
    .hero-title .highlight {
        font-size: 6.4rem;
    }

    #navbar {
        flex-direction: column;
    }

    .logo-center {
        margin: 1rem 0;
        order: 1;
    }

    .logo-image {
        height: 7.5rem;
        width: 7.5rem;
    }

    #mobile-menu-btn {
        display: block;
        z-index: 101;
        position: absolute;
        right: 2rem;
        top: 2rem;
    }

    .left-menu, .right-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, var(--light-color) 0%, #f8f9fa 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 100;
        backdrop-filter: blur(10px);
    }

    .left-menu.active, .right-menu.active {
        right: 0;
    }

    .left-menu li, .right-menu li {
        margin: 2rem 0 !important;
        transform: translateX(50px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .left-menu.active li, .right-menu.active li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu a {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--dark-color);
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-menu a:hover {
        background-color: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }

    /* Animate menu items with stagger effect */
    .left-menu.active li:nth-child(1), .right-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .left-menu.active li:nth-child(2), .right-menu.active li:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .left-menu.active li:nth-child(3), .right-menu.active li:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .left-menu.active li:nth-child(4), .right-menu.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    /* Cart button in mobile menu */
    .cart-button {
        margin-top: 1rem;
        font-size: 1.4rem;
        padding: 12px 20px;
    }

    .hero-content h2 {
        font-size: 3.6rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .section-title h2 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 3.2rem;
    }
    
    .hero-title h2 {
        font-size: 4.2rem;
    }
    
    .hero-title .highlight {
        font-size: 5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 480px) {
    /* Header improvements */
    header {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        height: 6rem;
        width: 6rem;
    }
    
    #mobile-menu-btn {
        right: 1rem;
        top: 1.5rem;
    }
    
    /* Hero section mobile */
    .hero-content h2 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .hero-title h2 {
        font-size: 3.5rem;
    }
    
    .hero-title .highlight {
        font-size: 4rem;
    }
    
    /* Menu improvements */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .menu-item {
        padding: 1rem;
    }
    
    /* Gallery improvements */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Contact form improvements */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 48px; /* Better touch targets */
    }
    
    .contact-form button {
        min-height: 52px;
        font-size: 1.1rem;
        padding: 14px 25px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Section padding improvements */
    .section {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Instagram feed mobile */
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Gallery improvements */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* Hero improvements */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-title h2 {
        font-size: 3.5rem;
    }
    
    .hero-title .highlight {
        font-size: 4rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    /* Menu improvements */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .menu-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .menu-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .menu-item p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .price-tag {
        font-size: 1.1rem;
        padding: 6px 12px;
        right: 8px;
        top: 8px;
    }
}