/* ===========================
   Meny & Priser - Stylesheet
   =========================== */

/* ---------------------------
   1. Menu Hero Carousel
   (Kept from your original design)
   --------------------------- */
.menu-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.menu-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.menu-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.menu-carousel-slide.active {
    opacity: 1;
}

.menu-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay for text readability */
.menu-carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Carousel Buttons */
.menu-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    border-radius: 4px;
    color: #333;
}

.menu-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.menu-carousel-btn.prev { left: 20px; }
.menu-carousel-btn.next { right: 20px; }

/* Carousel Dots */
.menu-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.menu-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-carousel-dot.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Hero Text Overlay */
.menu-hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    width: 90%;
}

.menu-hero-overlay h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-family: 'Playfair Display', serif;
}

.menu-hero-overlay p {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    font-family: 'Patrick Hand', cursive;
}

/* ---------------------------
   2. Menu Layout - The Paper Design
   (New "Handmade" Look)
   --------------------------- */

.menu-content {
    padding: 50px 0;
    background-color: var(--white); /* Fallback if var not defined: #fff */
    /* Ensure pattern background on body if you have one */
}

.menu-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.menu-intro h2 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.menu-intro p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: 'Patrick Hand', cursive;
}

/* The Paper Container */
.paper-menu {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two even columns */
    gap: 80px; /* Generous gap between columns */
    
    /* The Paper Effect */
    background-color: #fdfbf7; /* Warm paper color */
    padding: 60px;
    box-shadow: 
        0 1px 4px rgba(0,0,0,0.05),
        0 8px 25px rgba(0,0,0,0.08);
    border-radius: 2px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

/* Optional top decorative border */
.paper-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background-color: var(--secondary-color);
    opacity: 0.4;
}

/* Grouping Wrapper */
.menu-group {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between sections (e.g. Tårtor and Smörgåstårta) */
}

/* Individual Section */
.menu-section {
    position: relative;
}

/* Handwritten Headers */
.handwritten-title {
    font-family: 'Patrick Hand', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    display: inline-block;
    width: 100%;
}


/* The List Structure */
.menu-list-styled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Items (Name ... Price) */
.menu-list-styled li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    width: 100%;
}

/* Sub-items (Flavors, options) */
.menu-list-styled li.sub-item {
    margin-top: -10px;
    margin-bottom: 15px;
    padding-left: 0;
}

.menu-list-styled li.sub-item .name {
    font-size: 0.9rem;
    font-family: 'Patrick Hand', cursive;
    color: #777;
    font-style: italic;
    font-weight: normal;
}

/* Item Name */
.name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding-right: 5px;
    position: relative;
    z-index: 2;
    background-color: #fdfbf7; /* Matches paper color to hide dots behind text if needed */
}

/* The Dotted Leader */
.dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 8px;
    position: relative;
    top: -5px; /* Adjusts vertical alignment of dots */
    opacity: 0.6;
}

/* The Price */
.price {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding-left: 5px;
    white-space: nowrap;
    background-color: #fdfbf7;
    z-index: 2;
}

/* Divider Icon */
.menu-divider {
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin: -20px 0 40px 0;
}

/* small order note text */
.order-note {
    font-size: 0.95rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    font-family: 'Patrick Hand', cursive;
}

/* Price Update Text */
.price-updated {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    font-family: 'Patrick Hand', cursive;
}

/* ---------------------------
   3. Call to Action (CTA)
   --------------------------- */
.menu-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--cream);
    border-radius: 8px;
    border: 1px dashed var(--secondary-color);
}

.menu-cta h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.cta-center {
    display: flex;
    justify-content: center;
}

/* ---------------------------
   4. Responsive Design
   --------------------------- */

/* Laptop / Small Desktop */
@media (max-width: 1024px) {
    .menu-hero { height: 380px; }
    
    .paper-menu {
        gap: 50px;
        padding: 40px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .menu-hero { height: 350px; }

    .paper-menu {
        /* Stack columns on tablet */
        grid-template-columns: 1fr; 
        gap: 50px;
        padding: 40px 30px;
    }

    .handwritten-title {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .menu-group {
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .menu-hero { height: 280px; }
    
    .menu-hero-overlay h1 { font-size: 2.2rem; }
    .menu-intro h2 { font-size: 2rem; }
    
    .paper-menu {
        padding: 25px 15px;
        margin-bottom: 20px;
        box-shadow: none; /* Flatter look on mobile */
        background-color: transparent; /* Seamless on mobile */
    }
    
    /* Ensure lists are still readable on small screens */
    .menu-list-styled li {
        margin-bottom: 12px;
    }
    
    .name { font-size: 1rem; }
    .price { font-size: 1.1rem; }
    
    .menu-cta h2 { font-size: 1.5rem; }
}