/* Menu System - Animated Slide Panel - Using Karantina font and brand colors */

/* RTL Support for Hebrew */
html[lang="he-IL"],
body.rtl,
.menu-panel,
.product-name,
.product-description,
.product-price,
.popup-name,
.popup-description,
.popup-price,
.cart-title,
.cart-total,
.empty-cart-message,
.cart-item-name,
.cart-item-price {
    direction: rtl;
    text-align: right;
}

/* Main Container Animation */
.main-container {
    width: 100%;
    height: 100vh;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

body.menu-open .main-container {
    transform: translateX(-100%);
}

/* Sidebar Navigation - Make sticky */
.sidebar-nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    background: #eae7d5;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 20px;
    border-bottom: none;
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Show navigation only when menu is open */
body.menu-open .sidebar-nav {
    opacity: 1;
    pointer-events: all;
}

/* Combined Logo and Back Button */
.top-close-menu {
    height: 45px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 12px 0 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: 0;
    grid-column: 2;
}

.back-arrow {
    margin-left: 12px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.top-close-menu:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.top-close-menu:hover .back-arrow {
    transform: translateX(4px);
}

.top-close-menu img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.sidebar-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    grid-column: 1;
}

.sidebar-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Menu Panel */
.menu-panel {
    position: fixed;
    right: -100%;
    top: 0; /* Start from the top of the page */
    width: 100%;
    height: 100vh;
    background: #f5f5f0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0; /* Remove padding completely */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

body.menu-open .menu-panel {
    right: 0;
}

/* Menu Header - Hidden */
.menu-header {
    display: none; /* Hide menu header */
}

/* Parent Categories - Make sticky below nav */
.parent-categories {
    display: flex;
    justify-content: space-evenly; /* Spread buttons evenly across full width */
    align-items: center;
    margin: 0;
    gap: 0; /* Remove gap to allow space-evenly to work properly */
    position: sticky;
    top: 65px;
    z-index: 1001;
    background: #eae7d5;
    border-bottom: 2px solid #d0cdb8;
    padding: 12px 30px;
    flex-wrap: nowrap;
    height: 72px; /* Increased height for more breathing room */
    box-sizing: border-box;
}

.parent-cat-btn {
    padding: 10px 28px;
    border: none;
    background: white;
    border-radius: 22px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c4945;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    min-width: 85px;
    text-align: center;
}

.parent-cat-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.parent-cat-btn.active {
    background: #ff7a4a; /* Coral */
    color: white !important;
}

.filter-button {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden but easy to restore by changing to 'flex' */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Karantina', cursive, sans-serif !important;
}

.filter-button:hover {
    background: #5a77a5;
    transform: translateY(-2px);
}

.filter-icon {
    font-size: 1.2rem;
}

/* Filter Popup */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-popup.active {
    opacity: 1;
    visibility: visible;
}

.filter-popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.filter-popup h3 {
    margin: 0 0 20px 0;
    font-size: 2rem;
    color: #4c4945;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.filter-option {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-option span {
    font-size: 1.3rem;
    color: #4c4945;
    margin-right: 10px;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.view-toggle {
    padding: 8px 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 15px;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.view-toggle:hover {
    border-color: #ff7a4a;
    color: #ff7a4a;
}

.view-toggle.active {
    background: #ff7a4a;
    border-color: #ff7a4a;
    color: white;
}

.close-filter {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
    margin-top: 10px;
}

.close-filter:hover {
    background: #ebebeb;
}

/* Category Icons - Like in the example image */
.category-icons {
    display: flex;
    justify-content: space-between;
    margin: 20px 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-icons::-webkit-scrollbar {
    display: none;
}

.category-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 10px;
    flex: 0 0 auto;
}

.category-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.category-icon-img img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.category-icon-name {
    font-size: 0.8rem;
    color: #4c4945;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Carousel - Make sticky below parent categories */
.category-carousel-wrapper {
    position: sticky;
    top: 137px; /* Stick below sidebar-nav (65px) + parent-categories (72px) */
    z-index: 1000;
    background: #eae7d5;
    margin: 0;
    padding: 12px 0; /* Remove side padding to extend to edges */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 64px; /* Increased height for more breathing room */
    box-sizing: border-box;
}

.carousel-nav {
    display: none;
}

.category-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0 30px; /* Add padding inside carousel for first/last items */
    align-items: center;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 12px 30px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: #ff7a4a; /* Coral */
    color: #ff7a4a; /* Coral */
    transform: translateY(-2px);
}

.category-btn.active {
    background: #ff7a4a; /* Solid coral background as requested */
    border-color: transparent;
    color: white !important; /* Ensure text is white */
    font-family: 'Karantina', cursive, sans-serif !important;
    font-weight: 700;
}

/* Products Sections Container */
.products-sections-container {
    padding: 20px 0;
}

/* Category Section */
.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 180px; /* Offset for sticky header */
    overflow: visible; /* Allow shadows to extend beyond section */
}

.category-section.hidden {
    display: none;
}

/* Category Section Title */
.category-section-title {
    font-size: 1.8rem; /* Increased from 1.5rem */
    font-weight: 700;
    color: #4c4945;
    font-family: 'Karantina', cursive, sans-serif !important;
    margin: 0 0 15px 0;
    padding: 0 30px;
    text-align: right;
    letter-spacing: 0.4em; /* Doubled again - 40% of font size for very wide spacing */
}

/* Category Products Carousel */
.category-products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible; /* Change from hidden to visible to show shadows */
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 30px 30px 30px; /* Increased bottom padding to prevent shadow clipping */
    cursor: grab; /* Show grab cursor for drag functionality */
    user-select: none; /* Prevent text selection while dragging */
}

.category-products-carousel:active {
    cursor: grabbing; /* Show grabbing cursor when dragging */
}

.category-products-carousel::-webkit-scrollbar {
    display: none;
}

/* Section Title with "View All" link */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 30px 15px 30px;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.section-title h3 {
    font-size: 1.5rem;
    color: #4c4945;
    margin: 0;
    font-weight: 700;
}

.view-all {
    font-size: 1rem;
    color: #ff7a4a;
    text-decoration: none;
}

/* Product Card */
.product-card {
    background: transparent; /* No background - only product-info will have white background */
    border-radius: 20px;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 200px; /* Reduced from 250px */
    margin-top: 70px; /* Reduced from 90px */
}

.products-container.grid-view .product-card {
    width: 100%; /* Full width in grid view */
}

/* Remove hover transform - center card will scale instead */
.product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Center card in carousel gets bigger */
.product-card.center-card {
    transform: scale(1.15); /* Increased from 1.08 to make difference more noticeable */
    transform-origin: bottom center; /* Scale from bottom, grows upward */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

/* Non-center cards have default size */
.product-card {
    transform: scale(1);
    transform-origin: bottom center; /* Scale from bottom anchor point */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.hidden {
    display: none;
}

/* Product Image */
.product-image-wrapper {
    width: 100%;
    height: 140px; /* Reduced from 180px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    margin-bottom: -70px; /* 50% of image pops above card (half of 140px) */
    transition: transform 0.3s ease;
    z-index: 10; /* Highest layer to ensure image is on top */
}

/* Center card image wrapper also scales */
.product-card.center-card .product-image-wrapper {
    transform: scale(1.05);
}

.product-image-wrapper {
    transform: scale(1);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image without cutting */
    border-radius: 15px; /* Fully rounded image */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Removed gradient effect as requested */

/* Product with No Image */
.product-card.no-image .product-image-wrapper {
    height: 20px;
    margin-bottom: 0;
    display: none;
}

.product-card.no-image .product-info {
    padding-top: 20px;
}

.product-card.no-image {
    min-height: 0;
}

/* Product Info */
.product-info {
    padding: 80px 15px 15px; /* Reduced padding - was 100px 20px 20px */
    background: white;
    border-radius: 20px;
    position: relative;
    z-index: 5; /* Higher z-index to ensure text is visible above image */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Shadow only on white card */
    transition: all 0.3s ease;
    min-height: 140px; /* Set minimum height to keep cards consistent */
    overflow: visible; /* Changed to visible so shadow extends beyond card */
}

/* Product card when added to cart */
.product-card.in-cart .product-info {
    background: #ff7a4a;
}

.product-card.in-cart .product-name {
    color: white;
}

.product-card.in-cart .product-description {
    color: white !important;
}

.product-card.in-cart .product-price,
.product-card.in-cart .product-price *,
.product-card.in-cart .product-price span,
.product-card.in-cart .product-price bdi {
    color: white !important;
}

/* Hover effect on product-info shadow */
.product-card:hover .product-info {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4c4945; /* Charcoal gray */
    margin: 0 0 5px 0;
    line-height: 1.2;
    font-family: 'Karantina', cursive, sans-serif !important;
    text-align: center; /* Center the text */
}

.product-description {
    font-size: 0.9rem;
    color: #666 !important;
    line-height: 1.4;
    margin: 0 0 10px 0;
    min-height: 3em; /* Reserve space for at least 2 lines of text */
    max-height: none; /* Allow full description */
    overflow: visible;
    text-align: center !important;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4c4945; /* Same as product name - charcoal gray */
    margin: 0;
    font-family: 'Karantina', cursive, sans-serif !important;
    text-align: center !important; /* Force center alignment */
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    body.menu-open .main-container {
        transform: translateX(-100%);
    }
    
    .menu-panel {
        width: 100%;
        padding: 0; /* No padding on mobile */
    }
    
    .sidebar-nav {
        padding: 8px 12px; /* Further reduced padding for mobile */
    }
    
    .top-close-menu {
        height: 40px;
    }
    
    .top-close-menu img {
        height: 36px !important; /* Slightly smaller on mobile */
    }
    
    .sidebar-icons {
        flex-direction: row;
        gap: 6px;
    }
    
    .sidebar-icon {
        width: 40px;
        height: 40px;
    }
    
    .sidebar-icon img {
        width: 24px;
        height: 24px;
    }
    
    /* Fix mobile spacing - adjust sticky positions */
    .parent-categories {
        top: 56px; /* Adjusted for mobile header height */
        padding: 10px 15px;
        height: 64px; /* Increased height for mobile */
    }
    
    .category-carousel-wrapper {
        top: 120px; /* Adjusted for mobile (56px header + 64px parent-categories) */
        padding: 10px 0; /* Remove side padding on mobile to extend to edges */
        height: 56px; /* Increased height for mobile */
    }
    
    .category-carousel {
        padding: 0 15px; /* Add padding inside carousel for mobile */
    }
    
    .products-container,
    .section-title {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    
    .products-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .product-card {
        width: 200px;
    }
    
    .product-price {
        font-size: 1.1rem; /* Smaller price on mobile */
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-container.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        width: 180px;
    }
}

/* No loading animation - removed as requested */

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

.menu-button {
    cursor: pointer;
    user-select: none;
}

/* Restaurant row like in the example */
.restaurant-row {
    margin: 30px 30px 20px 30px;
}

.restaurant-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.restaurant-title h3 {
    font-size: 1.5rem;
    color: #4c4945;
    margin: 0;
    font-weight: 700;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.restaurant-link {
    font-size: 1rem;
    color: #ff7a4a;
    text-decoration: none;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.restaurant-cards {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.restaurant-cards::-webkit-scrollbar {
    display: none;
}

.restaurant-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    flex: 0 0 auto;
}

.restaurant-image {
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-info {
    padding: 10px;
    text-align: center;
}

.restaurant-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #4c4945;
}

.restaurant-rating {
    font-size: 0.8rem;
    color: #ff7a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant-rating .rating-star {
    margin-left: 3px;
}

/* Product Popup Styles */
.product-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-popup {
    background: white;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-popup-overlay.active .product-popup {
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.popup-close:hover {
    background: #ff7a4a;
    color: white;
    transform: rotate(90deg);
}

.popup-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    max-height: 85vh;
}

.popup-image-wrapper {
    width: 100%;
    min-height: 300px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-info {
    text-align: center;
    padding: 0 10px 20px;
}

.popup-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4c4945;
    margin: 0 0 15px 0;
    font-family: 'Karantina', cursive, sans-serif !important;
    line-height: 1.2;
    text-align: center !important;
}

.popup-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    white-space: pre-wrap;
    text-align: center !important;
}

.popup-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff7a4a;
    font-family: 'Karantina', cursive, sans-serif !important;
    text-align: center !important;
    margin-bottom: 20px;
}

.popup-variations {
    margin-bottom: 20px;
}

.variations-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.variation-btn {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.variation-btn:hover {
    border-color: #ff7a4a;
    color: #ff7a4a;
}

.variation-btn.selected {
    background: #ff7a4a;
    border-color: #ff7a4a;
    color: white;
}

.popup-add-to-cart {
    width: 100%;
    padding: 15px;
    background: #ff7a4a;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.popup-add-to-cart:hover {
    background: #ff6a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 74, 0.3);
}

.popup-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.popup-add-to-cart:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Responsive popup */
@media (max-width: 768px) {
    .product-popup {
        width: 95%;
        max-height: 90vh;
        border-radius: 25px;
    }
    
    .popup-image-wrapper {
        min-height: 250px;
        max-height: 300px;
    }
    
    .popup-name {
        font-size: 2rem;
    }
    
    .popup-description {
        font-size: 1.1rem;
    }
    
    .popup-price {
        font-size: 1.8rem;
    }
}

/* Cart Button Sticky */
.cart-button-sticky {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff7a4a;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 122, 74, 0.4);
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-button-sticky:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 122, 74, 0.6);
}

.cart-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4c4945;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Karantina', cursive, sans-serif !important;
}

/* Cart Popup Overlay */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.cart-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-popup {
    background: white;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.cart-popup-overlay.active .cart-popup {
    transform: scale(1);
    opacity: 1;
}

.cart-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4c4945;
    margin: 0;
    padding: 25px 25px 15px;
    font-family: 'Karantina', cursive, sans-serif !important;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-message {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
    padding: 40px 20px;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4c4945;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.total-price {
    color: #ff7a4a;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    background: #ff7a4a;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.checkout-button:hover {
    background: #ff6a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 74, 0.3);
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #ff7a4a;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: center;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.cart-item-price {
    font-size: 1rem;
    color: white;
    font-family: 'Karantina', cursive, sans-serif !important;
}

.cart-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Responsive cart */
@media (max-width: 768px) {
    .cart-button-sticky {
        bottom: 15px;
        left: 15px;
        width: 55px;
        height: 55px;
    }
    
    .cart-icon {
        width: 24px;
        height: 24px;
    }
    
    .cart-count {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .cart-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .cart-title {
        font-size: 2rem;
        padding: 20px 20px 12px;
    }
    
    .cart-total {
        font-size: 1.5rem;
    }
    
    .checkout-button {
        font-size: 1.3rem;
        padding: 12px;
    }
}
