/* // Fixed product card linking issue across Desktop, Mobile & Tablet.
// Each card now has isolated <a> tags. No more cross-section redirects.
// Clicking anywhere on card goes to correct product link only. */

/* // Mobile + Tablet Only: Natural scrolling with fade-in + slide-up animation
// when each section enters viewport. Removed all previous unnatural plus every every every existing scroll effects from both layouts and implement exactly what described above thats it */

/* Third Section - Mobile Layout Only
   Removed all horizontal scrolling + buttons for Khari, Cream Roll & Donuts.
   Changed to grid layout: Khari (3+2), Cream Roll (3+1), Donuts (3).
   Perfect alignment, no overflow. */
/* Desktop-only changes: Replaced background in Third section with second-section-bg-for-responsiveness.jpeg.
   Increased image sizes by 10% and text by 5% in Third, Fourth, Fifth & Sixth sections (desktop ≥1025px only).
   No overflow, perfect alignment maintained. */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
}

.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffe8a1;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    animation: pageLoadPopUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageLoadPopUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed custom CSS background layers to use single background image */

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1400px;
    height: calc(100vh - 120px);
    /* Decreased height to keep content fully visible */
    margin-top: 100px;
    /* Shifted downward below the 84px navbar */
    margin-bottom: 20px;
    /* Slight bottom breathing room */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* TOP SECTION */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 0 0 auto;
    padding-top: 10px;
    position: relative;
    z-index: 10;
}

.top-left h2 {
    color: #008a45;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.top-left p {
    color: #000;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.top-right {
    text-align: right;
    padding-top: 10px;
}

.logo-container {
    display: inline-block;
    text-align: center;
}

.logo {
    background-color: #d1122a;
    color: white;
    padding: 10px 35px;
    border-radius: 20px;
    border-bottom-left-radius: 5px;
    position: relative;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.logo i {
    font-style: italic;
}

.logo .leaf {
    position: absolute;
    top: -5px;
    right: 25px;
    width: 20px;
    height: 20px;
    background-color: #8cc63f;
    border-radius: 20px 0 20px 0;
    transform: rotate(15deg);
}

.logo-container p {
    color: #ab9558;
    /* matching the yellowish brown text under logo */
    font-weight: 800;
    font-size: 1.1rem;
    margin: 5px 0 0 0;
    letter-spacing: -0.5px;
}

/* MIDDLE SECTION */
.middle-section {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    /* Take up all available remaining vertical space */
    min-height: 0;
    /* Crucial to allow it to shrink if needed so it doesn't overflow */
    margin: 20px 0;
    /* Provides spacing above and below just like Image 1 */
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.middle-text {
    position: absolute;
    bottom: 25px;
    left: 30px;
    z-index: 5;
}

.middle-text h1 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -1px;
}

/* BOTTOM SECTION */
.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 0 0 auto;
    padding-bottom: 20px;
    position: relative;
    z-index: 10;
}

.bottom-left {
    max-width: 60%;
}

.bottom-left h3 {
    color: #000;
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.bottom-left p {
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.bottom-right h2 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

/* ===== SECTION 2: CAKE BOX SCROLL ANIMATION ===== */
.cake-box-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fce295;
    background-image: url('desktop-sec-bg.jpeg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hidden by default — shown only during its scroll range */
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cake-box-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#cake-box-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scroll-spacer {
    height: 1850vh;
}

/* ── Hide scroll-spacer on mobile + tablet (natural flow used instead) ── */
@media (max-width: 1024px) {
    .scroll-spacer {
        display: none !important;
        height: 0 !important;
    }
}

/* ===== SECTION 3: PRODUCT GRID ===== */
.third-section {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    /* CHANGE 1: Background replaced with user-provided image (second-section-bg-for-responsiveness.jpeg) */
    background-image: url('second-section-bg-for-responsiveness.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 4vw 2vh 4vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* Slide-over effect */
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.third-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}



.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6vh 6vw;
    margin-top: 50px;
    flex-grow: 1;
    min-height: 0;
}

.quadrant {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2vh 2vw;
    align-content: start;
    align-items: start;
    flex-grow: 1;
    min-height: 0;
}

.quad-khari .quad-grid {
    grid-template-rows: auto auto auto;
}

.quad-creamrolls .quad-grid {
    grid-template-rows: auto auto auto;
}

.quad-doughnuts .quad-grid,
.quad-butter .quad-grid {
    grid-template-rows: auto auto;
}

.category-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Shift slightly upward below the top */
    transform: translateY(-2vh);
}

.category-header h2 {
    color: #cd2c31;
    /* Bright red matching the image */
    font-size: 3.675vh;
    /* +5% from 3.5vh — desktop only */
    font-weight: 900;
    margin: 0 0 0.5vh 0;
    letter-spacing: -1px;
}

.category-header p {
    color: #000;
    font-size: 1.68vh;
    /* +5% from 1.6vh — desktop only */
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* The requested background gradient #efc481 top to bottom increasing */
    background: linear-gradient(to bottom, rgba(239, 196, 129, 0.4), #efc481);
    border-radius: 1.5vh;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1vh 1vw;
    width: 100%;
    max-width: 100%;
    height: 12vh;
    box-sizing: border-box;
    /* Shift items upward */
    transform: translateY(-2vh);
}

.product-item img {
    max-width: 100%;
    /* +10% from calc(7.5vh + 2px) — desktop only */
    max-height: calc(8.25vh + 2px);
    object-fit: contain;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.jeera img {
    max-width: 100%;
    max-height: calc(11.00vh + 2px);
}

.ajwain img {
    max-width: 100%;
    max-height: calc(11.00vh + 2px);
}

.product-item:hover img {
    transform: translateY(-5px) scale(1.05);
}

.product-item span {
    font-size: 1.90vh;
    /* +5% from 1.1vh — desktop only */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.5vh;
}

/* ===== SECTION 4: TOAST & RUSK + BUN MASKA ===== */
.fourth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 30;
    background-image: url('backgorund-image-of-sectoin-four.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100vh;
    /* Slide-over effect */
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fourth-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#fourth-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product grid overlay on the right half */
.fourth-products-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18vh 4vw 10vh 2vw;
    /* Adjust top padding to leave room for the baked-in header */
    box-sizing: border-box;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed */
}

/* Product Grid — 2 columns, first item spans both */
.fourth-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5vh 2.5vw;
    width: 100%;
    max-width: 100%;
    pointer-events: none;
}

.fourth-section.active .fourth-products-grid {
    pointer-events: auto;
}

/* Heading container (Row 1, Column 2) */
.fourth-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-4vh);
    /* Shift slightly upward */
}

.fourth-heading-container h2 {
    color: #cd2c31;
    /* Noticeable red heading */
    font-size: 4.725vh;
    /* +5% from 4.5vh — desktop only */
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
    text-align: center;
}

/* Positional adjustments requested by user */
.item-elaichi {
    transform: translate(-3vw, -6vh);
    /* Shift left and upward more */
}

.item-powerpack {
    transform: translateY(2vh);
    /* Shift slightly downward */
}

.item-kaju {
    transform: translateY(5vh);
    /* Shift downward */
}

.item-indori {
    transform: translateY(5vh);
    /* Shift downward */
}

.item-fruit-1 {
    transform: translateY(-2vh);
    /* Shift slightly upward */
}

.item-fruit-2 {
    transform: translateY(2vh);
    /* Shift slightly downward */
}

.item-pista {
    transform: translateY(-2vh);
    /* Shift slightly upward */
}

/* Product cards — overlaying the background image's shapes */
.fourth-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 11vh;
    box-sizing: border-box;
}

.item-elaichi {
    margin-left: 50px;
}

.fourth-product-item img {
    max-width: 80%;
    max-height: 10.0vh;
    /* +10% from 7vh — desktop only */
    object-fit: contain;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.fourth-product-item:hover img {
    transform: translateY(-5px) scale(1.05);
}

.fourth-product-item span {
    font-size: 1.90vh;
    /* +5% from 1vh — desktop only */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    margin-top: 0.5vh;
}

/* ===== SECTION 5 ===== */
.fifth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 40;
    background-image: url('background-image-of-fifth-section.jpeg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fifth-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#fifth-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SECTION 5 PRODUCTS ===== */
.fifth-products-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fifth-product-item {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    pointer-events: none;
}

.fifth-section.active .fifth-product-item {
    pointer-events: auto;
}


.fifth-product-item img {
    max-width: 16.00vw;
    /* +10% from 12.6vw — desktop only */
    max-height: 12.00vh;
    /* +10% from 8.4vh — desktop only */
    object-fit: contain;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.item-brown img {
    max-width: 160px;
    max-height: 100px;
    position: fixed;
}

.item-brown span {
    max-width: 155px;
    max-height: 95px;
    padding-left: 50px;
    padding-top: 30px;
}

.fifth-product-item:hover img {
    transform: translateY(-5px) scale(1.05);
}

.fifth-product-item span {
    font-size: 1.90vh;
    /* +5% from 1.2vh — desktop only */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-left: 0.5vw;
}

/* Specific Positions */
.item-gold {
    top: 41%;
    left: 6%;
}

.item-mini {
    top: 56%;
    left: 6%;
}

.item-milk {
    top: 70%;
    left: 6%;
}

.item-sandwich {
    top: 84%;
    left: 6%;
}

.item-brown {
    top: 56%;
    left: 28%;
}

.item-wins {
    top: 70%;
    left: 28%;
}

.item-sunny {
    top: 84%;
    left: 28%;
}

.item-pav {
    top: 42%;
    left: 55%;
}

.item-milkbun {
    top: 42%;
    left: 77%;
}

/* Text Section */
.fifth-section-text {
    position: absolute;
    top: 65%;
    left: 55%;
    pointer-events: none;
}

.fifth-section.active .fifth-section-text {
    pointer-events: auto;
}

.fifth-section-text h2 {
    color: #cd2c31;
    /* matching the other headings' red */
    font-size: 6.5vh;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 1.5vh 0;
    letter-spacing: -1.5px;
}

.fifth-section-text p {
    color: #000;
    font-size: 1.90vh;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    letter-spacing: -0.2px;
}

/* ===== SECTION 6 ===== */
.sixth-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    background-image: url('background-image-for-sixth-section.jpeg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sixth-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== SECTION 6 PRODUCTS ===== */
.sixth-products-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sixth-product-item {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    pointer-events: none;
}

.sixth-section.active .sixth-product-item {
    pointer-events: auto;
}

.sixth-product-item img {
    max-width: 15.00vw;
    /* +10% from 12.6vw — desktop only */
    max-height: 11.00vh;
    /* +10% from 8.4vh — desktop only */
    object-fit: contain;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.item-6-farsan1 img {
    max-width: 150px;
    max-height: 90px;
}

.item-6-farsan3 img {
    max-width: 150px;
    max-height: 90px;
}

.sixth-product-item:hover img {
    transform: translateY(-5px) scale(1.05);
}

.sixth-product-item span {
    font-size: 1.90vh;
    /* +5% from 1.2vh — desktop only */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-left: 0.5vw;
}

/* Specific Positions */
/* Left Column 1 */
.item-6-fruity {
    top: 45%;
    left: 5%;
}

.item-6-pista1 {
    top: 58%;
    left: 5%;
}

.item-6-choco {
    top: 71%;
    left: 5%;
}

.item-6-osmania {
    top: 84%;
    left: 5%;
}

/* Left Column 2 */
.item-6-shrews {
    top: 32%;
    left: 28%;
}

.item-6-pista2 {
    top: 45%;
    left: 28%;
}

.item-6-dum {
    top: 58%;
    left: 28%;
}

.item-6-moon {
    top: 71%;
    left: 28%;
}

.item-6-til {
    top: 84%;
    left: 28%;
}

/* Right Side (Farsan) */
.item-6-farsan1 {
    top: 58%;
    left: 56%;
}

.item-6-farsan2 {
    top: 58%;
    left: 78%;
}

.item-6-farsan3 {
    top: 72%;
    left: 56%;
}

.item-6-farsan4 {
    top: 72%;
    left: 78%;
}

/* Farsan Text Section */
.sixth-farsan-text {
    position: absolute;
    top: 85%;
    left: 55%;
    width: 42%;
    pointer-events: none;
}

.sixth-section.active .sixth-farsan-text {
    pointer-events: auto;
}

.farsan-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5vh;
}

.farsan-col p {
    color: #000;
    font-size: 1.50vh;
    /* +5% from 1vh — desktop only */
    font-weight: 700;
    margin: 0 0 0.5vh 0;
    text-transform: uppercase;
}

.farsan-footer {
    color: #cd2c31;
    font-size: 1.30vh;
    /* +5% from 1.1vh — desktop only */
    font-weight: 700;
    margin: 0;
}

/* ===== CUSTOM NAVBAR ===== */
.custom-navbar {
    position: fixed;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 876px;
    height: 72px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.custom-navbar-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    flex-grow: 1;
    justify-content: flex-start;
    padding-left: 0px;
    margin-left: -75px;
}

.custom-navbar-logo-container a {
    display: flex;
    align-items: center;
    outline: none;
    height: 100%;
}

.nav-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-logo {
    background-color: #cd303b;
    color: white;
    padding: 3px 16px;
    border-radius: 8px;
    /* border-bottom-left-radius: 4px; */
    position: relative;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: inline-block;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.15);
}

.nav-logo i {
    font-style: italic;
}

.nav-logo .nav-leaf {
    position: absolute;
    top: -4px;
    right: 45px;
    width: 9px;
    height: 15px;
    background-color: #45a13e;
    border-radius: 9px 0 9px 0;
    transform: rotate(15deg);
}

.nav-slogan {
    color: #ab9558;
    font-weight: 800;
    font-size: 0.55rem;
    margin: 3px 0 0 0;
    letter-spacing: -0.2px;
}

/* ── New PNG logo image in navbar ── */
.nav-logo-img {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    margin-left: 70px;
}

.custom-navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When scrolled past hero, shift links slightly left to make room */
.custom-navbar.scrolled .custom-navbar-links {
    transform: translateX(-8px);
}

.custom-navbar-links a {
    text-decoration: none;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    transition: opacity 0.2s ease-out;
}

.custom-navbar-links a:hover {
    opacity: 0.7;
}

/* ── Join Free CTA button (slides in when scrolled past hero) ── */
.navbar-cta-wrapper {
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition:
        max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease,
        margin-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-navbar.scrolled .navbar-cta-wrapper {
    max-width: 150px;
    opacity: 1;
    margin-left: 16px;
}

.navbar-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 9999px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.navbar-join-btn:hover {
    background-color: #333;
}

/* Responsive adjustment for small screens */
@media (max-width: 720px) {
    .custom-navbar {
        width: calc(100vw - 48px);
        top: 6px;
    }
}

/* ── Disable transitions during instant navbar jumps ── */
body.instant-switch .cake-box-container,
body.instant-switch .third-section,
body.instant-switch .fourth-section,
body.instant-switch .fifth-section,
body.instant-switch .sixth-section,
body.instant-switch .footer-section {
    transition: none !important;
}

/* ===== FOOTER SECTION ===== */
.footer-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Reduced by 42px — copyright bar sits in that 42px gap below the footer.
       Mobile/tablet override this to height:auto !important so no impact there. */
    height: calc(100vh - 42px);
    z-index: 45;
    background-image: url('footer-background-image.jpeg');
    background-size: 100% 100%;
    /* Force perfect fit — no overflow */
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-section.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Parallax helper ── */
.sixth-section.parallaxing {
    transition: none !important;
}

/* ── Footer overlay container ── */
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ── Left content: top FSSAI text (next to bg logo) ── */
.footer-fssai-top {
    position: absolute;
    bottom: 24%;
    /* ⬅️ moved DOWN from 28.5% */
    left: 24%;
    pointer-events: none;
}

.footer-section.active .footer-fssai-top {
    pointer-events: auto;
}

.footer-fssai-top p {
    font-size: 0.7vw;
    font-weight: 800;
    color: #000;
    margin: 0;
}

/* ── Left content: addresses + ISO (below bg logo) ── */
.footer-left-content {
    position: absolute;
    top: 89%;
    /* ⬅️ moved DOWN from 4% */
    left: 6%;
    width: 42%;
    transform: translateY(-50%);
    /* keeps it centered nicely */
    pointer-events: none;
}

.footer-section.active .footer-left-content {
    pointer-events: auto;
}

/* Address blocks */
.footer-addr-block {
    margin-bottom: 6px;
}

.footer-addr-block p {
    font-size: 0.70vw;
    /* ⬅️ slightly reduced */
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0;
}

.footer-addr-block strong {
    font-weight: 800;
    color: #111;
}

/* Divider */
.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 5px 0;
    width: 100%;
}

/* ISO certification text */
.footer-iso-cert {
    font-size: 0.65vw;
    /* ⬅️ slightly reduced */
    font-weight: 900;
    color: #000;
    margin: 0;
    letter-spacing: 0.2px;

}

/* ── Right bottom: FSSAI + website (below bg ISO badge) ── */
.footer-right-bottom {
    position: absolute;
    bottom: 1.5%;
    /* ⬅️ moved DOWN from 4% */
    left: 55%;
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    pointer-events: none;
}

.footer-section.active .footer-right-bottom {
    pointer-events: auto;
}

.footer-right-fssai {
    font-size: 0.72vw;
    font-weight: 600;
    color: #fff;
    text-align: left;
    margin: 0;
}

.footer-right-website {
    font-size: 0.75vw;
    font-weight: 800;
    color: #fff;
    text-align: left;
    margin: 0;
}

/* ============================================================
   HERO SECTION — Mobile (0–767px) & Tablet (768–1024px) only
   Desktop (1025px+) uses rules above unchanged.
   ============================================================ */

:root {
    --hero-cream: #fff4da;
    --hero-green: #0c7a3e;
    --hero-text: #1a1a1a;
}

.hero-responsive,
.nav-hamburger,
.mobile-nav-overlay,
.mobile-nav-drawer {
    display: none;
}

@media (max-width: 1024px) {

    /* ── Navbar (tablet + mobile) ── */
    .custom-navbar {
        width: calc(100% - 32px);
        max-width: none;
        height: auto;
        min-height: 64px;
        padding: 10px 16px;
        border-radius: 16px;
        top: 12px;
    }

    .custom-navbar-links {
        display: none;
    }

    .navbar-cta-wrapper {
        max-width: none;
        opacity: 1;
        margin-left: 8px;
        overflow: visible;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: 8px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .nav-hamburger:focus-visible {
        outline: 2px solid var(--hero-green);
        outline-offset: 2px;
    }

    .nav-hamburger-line {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #111;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger[aria-expanded="true"] .nav-hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile nav drawer */
    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .mobile-nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(72vw, 320px);
        height: 100vh;
        height: 100dvh;
        z-index: 10001;
        background: #fff;
        padding: 24px 20px 32px;
        box-sizing: border-box;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .mobile-nav-drawer.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-nav-close {
        align-self: flex-end;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        font-size: 2rem;
        line-height: 1;
        color: #111;
        cursor: pointer;
        margin-bottom: 16px;
    }

    .mobile-nav-close:focus-visible {
        outline: 2px solid var(--hero-green);
        outline-offset: 2px;
    }

    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 8px;
        text-decoration: none;
        color: #111;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 8px;
    }

    .mobile-nav-link:focus-visible {
        outline: 2px solid var(--hero-green);
        outline-offset: 2px;
    }

    .mobile-nav-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: var(--hero-green);
    }

    .mobile-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-social {
        display: flex;
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .mobile-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        color: #fff;
        text-decoration: none;
    }

    .mobile-social-link svg {
        width: 20px;
        height: 20px;
    }

    .mobile-social-link:focus-visible {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    /* ── Hero container (responsive) ── */
    /* CHANGE 4: Fixed unnecessary stuck scrolling on mobile+tablet. 
       Hero is now relative/visible so it naturally scrolls up over the fixed second section. */
    .hero-container {
        position: relative;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        background-color: var(--hero-cream);
        animation: none;
        z-index: 10;
    }

    .hero-desktop-content>.top-section,
    .hero-desktop-content>.middle-section,
    .hero-desktop-content>.bottom-section {
        display: none !important;
    }

    .hero-content {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: calc(100vh - 88px);
        min-height: calc(100dvh - 88px);
        margin-top: 88px;
        margin-bottom: 0;
        padding: 0 20px 48px;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    .hero-responsive {
        display: block;
        position: relative;
        width: 100%;
    }

    .hero-responsive-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
        max-width: 100%;
    }

    .hero-responsive-copy {
        width: 100%;
        text-align: center;
    }

    .hero-responsive-heading {
        color: var(--hero-green);
        font-size: clamp(1.75rem, 6.5vw, 2.25rem);
        font-weight: 800;
        line-height: 1.15;
        margin: 0 0 14px;
        letter-spacing: -0.5px;
    }

    .hero-heading-tablet {
        display: none;
    }

    .hero-responsive-support {
        color: var(--hero-text);
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        font-weight: 600;
        line-height: 1.45;
        margin: 0 auto;
        max-width: 34ch;
    }

    .hero-bakery-visual {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-bakery-frame {
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: #e8dcc4;
        line-height: 0;
        will-change: transform;
    }

    /* CHANGE 1: transition/will-change for filter+transform removed —
       scroll-based dimming and scaling are disabled on mobile+tablet. */
    .hero-bakery-img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 52vh;
        object-fit: contain;
        object-position: center;
        transform: none;
    }

    .hero-scroll-dots {
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .hero-scroll-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(12, 122, 62, 0.25);
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .hero-scroll-dot.is-active {
        background: var(--hero-green);
        transform: scale(1.15);
    }

    .hero-product-range-block {
        width: 100%;
    }

    .hero-product-range-title {
        color: var(--hero-green);
        font-size: 1.125rem;
        font-weight: 800;
        margin: 0 0 16px;
        text-align: center;
    }

    .hero-product-title-tablet {
        display: none;
    }

    .hero-product-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .hero-product-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        padding: 4px;
        border-radius: 12px;
        min-height: 44px;
    }

    .hero-product-item:focus-visible {
        outline: 2px solid var(--hero-green);
        outline-offset: 2px;
    }

    .hero-product-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 1;
        max-width: 72px;
        background: #fff;
        border: 1.5px solid rgba(12, 122, 62, 0.35);
        border-radius: 12px;
        color: var(--hero-green);
        box-sizing: border-box;
        padding: 14px;
    }

    .hero-product-icon svg {
        width: 100%;
        height: 100%;
    }

    .hero-product-label {
        font-size: 0.7rem;
        font-weight: 800;
        color: #111;
        text-transform: uppercase;
        text-align: center;
        letter-spacing: 0.02em;
    }

    .hero-product-item-tablet {
        display: none;
    }

    .hero-responsive-trust {
        color: #111;
        font-size: 1rem;
        font-weight: 800;
        text-align: center;
        margin: 8px 0 0;
        letter-spacing: -0.3px;
    }

    .hero-halftone-deco {
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 140px;
        height: 100px;
        pointer-events: none;
        background-image: radial-gradient(circle, var(--hero-green) 1.5px, transparent 1.5px);
        background-size: 8px 8px;
        mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 20%, transparent 75%);
        -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 20%, transparent 75%);
        opacity: 0.55;
    }
}

/* ── Tablet only (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {

    .custom-navbar-links {
        display: flex;
        gap: 16px;
        flex: 1;
        justify-content: center;
        margin: 0 12px;
    }

    .custom-navbar-links a {
        font-size: 14px;
    }

    .custom-navbar-logo-container {
        flex-grow: 1;
        margin-left: -6p0px;
        /* Adjust this if needed */
        height: 5px
    }

    .nav-logo-img {
        height: 50px;
        /* Good visible size for tablet - you can change to 120px / 160px etc. */
        margin-left: 70px;
    }

    .hero-content {
        margin-top: 96px;
        padding: 0 40px 64px;
    }

    .hero-responsive-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 40px;
        row-gap: 32px;
        align-items: start;
    }

    .hero-responsive-copy {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    .hero-heading-mobile {
        display: none;
    }

    .hero-heading-tablet {
        display: block;
        font-size: clamp(1.65rem, 3.2vw, 2.35rem);
        font-weight: 600;
        line-height: 1.2;
        max-width: none;
    }

    .hero-responsive-heading.hero-heading-tablet {
        margin-bottom: 16px;
    }

    .hero-responsive-support {
        font-size: clamp(0.95rem, 1.6vw, 1.125rem);
        font-weight: 400;
        max-width: 42ch;
        margin: 0;
    }

    .hero-bakery-visual {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: stretch;
    }

    .hero-bakery-frame {
        border-radius: 16px;
        height: 100%;
        min-height: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-bakery-img {
        max-height: none;
        min-height: 280px;
        max-height: 420px;
        object-fit: cover;
        border-radius: 16px;
    }

    .hero-scroll-dots {
        display: none;
    }

    .hero-product-range-block {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-product-title-mobile {
        display: none;
    }

    .hero-product-title-tablet {
        display: block;
        text-align: left;
        font-size: 1.125rem;
    }

    .hero-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        max-width: 100%;
    }

    .hero-product-item-tablet {
        display: flex;
    }

    .hero-product-icon {
        max-width: 64px;
        padding: 16px;
    }

    .hero-product-label {
        font-size: 0.65rem;
    }

    .hero-responsive-trust {
        grid-column: 2;
        grid-row: 3;
        text-align: right;
        align-self: end;
        font-size: 1.125rem;
        margin: 0;
        padding-right: 8px;
    }

    .hero-halftone-deco {
        width: 200px;
        height: 140px;
        right: 24px;
        bottom: 24px;
    }
}

/* ── Mobile only (0 – 767px) ── */
/* Removed scroll dot indicator from mobile hero section only.
   Now scrolls directly to second section with normal behavior. */
@media (max-width: 767px) {

    .custom-navbar {
        width: calc(100% - 24px);
        border-radius: 12px;
        padding: 8px 12px;
    }

    .navbar-cta-wrapper {
        display: none;
    }

    .custom-navbar-logo-container {
        flex-grow: 1;
        margin-left: -50px;
        height: 5px
    }

    .nav-logo-img {
        height: 50px;
        /* Clear and good size for mobile */
        margin-left: 50px;
    }

    .hero-content {
        margin-top: 80px;
        padding: 0 16px 40px;
    }

    .hero-responsive-inner {
        gap: 24px;
    }

    .hero-responsive-heading {
        text-align: center;
    }

    .hero-responsive-support {
        text-align: center;
        max-width: 32ch;
    }

    .hero-bakery-img {
        max-height: 48vh;
    }

    .hero-product-grid {
        gap: 10px;
    }

    .hero-product-icon {
        max-width: 64px;
        padding: 12px;
    }

    .hero-product-label {
        font-size: 0.62rem;
    }

    /* Hide scroll dot indicator on mobile — hero scrolls naturally to next section */
    .hero-scroll-dots {
        display: none !important;
    }
}

/* Desktop guard: never show responsive-only UI */
@media (min-width: 1025px) {

    .hero-responsive,
    .nav-hamburger,
    .mobile-nav-overlay,
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* ============================================================
   SECTION 2 (CAKES) — Mobile (0–767px) & Tablet (768–1024px) only
   Desktop (1025px+) uses rules above unchanged.
   ============================================================ */

.cakes-section-responsive {
    display: none;
}

@media (max-width: 1024px) {

    .cake-box-desktop-only {
        display: none !important;
    }

    .cakes-section-responsive {
        display: block;
        width: 100%;
        min-height: 100%;
        box-sizing: border-box;
    }

    .cake-box-container {
        background-color: #fff6d1;
        background-image: url('second-section-bg-for-responsiveness.jpeg');
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cake-box-container.active {
        overflow-y: auto;
    }

    .cakes-section-inner {
        width: 100%;
        max-width: 100%;
        padding: 88px 20px 40px;
        box-sizing: border-box;
    }

    .cakes-layout-tablet {
        display: none;
    }

    .cakes-layout-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .cakes-box-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        will-change: transform;
    }

    /* CHANGE 2: transition/will-change for transform+opacity removed —
       scroll-based lift and fade are disabled on mobile+tablet. */
    .cakes-box-img {
        display: block;
        width: min(92vw, 420px);
        height: auto;
        max-height: 52vh;
        object-fit: contain;
        object-position: center;
    }

    .cakes-copy {
        width: 100%;
    }

    .cakes-heading {
        color: #8b2e2e;
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        font-weight: 900;
        font-style: italic;
        line-height: 1;
        margin: 0 0 12px;
        letter-spacing: -1px;
        text-align: left;
    }

    .cakes-description {
        color: #0c7a3e;
        font-size: clamp(0.9rem, 3.6vw, 1rem);
        font-weight: 600;
        line-height: 1.45;
        margin: 0;
        max-width: 36ch;
        text-align: left;
    }

    .cakes-product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }

    .cakes-product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-height: 72px;
        padding: 10px 12px;
        background: rgba(255, 252, 245, 0.92);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
    }

    .cakes-product-card img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .cakes-product-card span {
        font-size: 0.62rem;
        font-weight: 800;
        color: #0c7a3e;
        text-transform: uppercase;
        line-height: 1.25;
        letter-spacing: 0.02em;
    }

    /* Section 2 tablet: full nav, no hamburger */
    body.cakes-section-active .nav-hamburger {
        display: none !important;
    }

    body.cakes-section-active .custom-navbar-links {
        display: flex !important;
        gap: 14px;
    }

    body.cakes-section-active .navbar-cta-wrapper {
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .cakes-section-inner {
        padding: 96px 36px 56px;
    }

    .cakes-layout-mobile {
        display: none;
    }

    .cakes-layout-tablet {
        display: grid;
        grid-template-columns: 55fr 45fr;
        column-gap: 32px;
        align-items: start;
        width: 100%;
    }

    .cakes-tablet-left {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .cakes-heading {
        font-size: clamp(2.25rem, 4.5vw, 3rem);
    }

    .cakes-description {
        font-size: 1rem;
        max-width: 40ch;
    }

    .cakes-product-grid--tablet {
        gap: 14px;
    }

    .cakes-product-card {
        min-height: 76px;
    }

    .cakes-product-card img {
        width: 56px;
        height: 56px;
    }

    .cakes-tablet-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cakes-tablet-branding {
        align-self: flex-end;
        text-align: center;
        margin-bottom: 4px;
    }

    .cakes-brand-logo {
        background-color: #d1122a;
        color: #fff;
        padding: 4px 18px;
        border-radius: 14px;
        border-bottom-left-radius: 4px;
        position: relative;
        font-size: 1.15rem;
        font-weight: 900;
        font-style: italic;
        display: inline-block;
        letter-spacing: -0.5px;
    }

    .cakes-brand-logo i {
        font-style: italic;
    }

    .cakes-brand-leaf {
        position: absolute;
        top: -4px;
        right: 14px;
        width: 10px;
        height: 10px;
        background-color: #8cc63f;
        border-radius: 10px 0 10px 0;
        transform: rotate(15deg);
    }

    .cakes-brand-slogan {
        color: #ab9558;
        font-weight: 800;
        font-size: 0.5rem;
        margin: 4px 0 0;
    }

    .cakes-tablet-right .cakes-box-wrap {
        width: 100%;
    }

    .cakes-box-img--tablet,
    .cakes-tablet-right .cakes-box-img {
        width: 100%;
        max-width: 100%;
        max-height: 340px;
    }

    .cakes-featured-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
    }

    .cakes-featured-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 120px;
        padding: 14px 10px;
        background: linear-gradient(145deg, #5c4d8a 0%, #3d3568 100%);
        border-radius: 14px;
        box-sizing: border-box;
    }

    .cakes-featured-card img {
        width: 100%;
        max-width: 110px;
        height: 72px;
        object-fit: contain;
    }

    .cakes-featured-card span {
        font-size: 0.58rem;
        font-weight: 800;
        color: #fff;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.25;
    }
}

@media (max-width: 767px) {

    .cakes-section-inner {
        padding: 80px 16px 36px;
    }

    .cakes-layout-mobile {
        gap: 18px;
    }

    .cakes-box-img {
        width: min(94vw, 380px);
        max-height: 46vh;
    }

    .cakes-product-grid {
        gap: 10px;
    }

    .cakes-product-card {
        min-height: 68px;
        padding: 8px 10px;
    }

    .cakes-product-card img {
        width: 48px;
        height: 48px;
    }

    .cakes-product-card--grid-only {
        display: flex;
    }

    body.cakes-section-active .navbar-cta-wrapper {
        display: none !important;
    }

    body.cakes-section-active .nav-hamburger {
        display: flex !important;
    }

    body.cakes-section-active .custom-navbar-links {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .cakes-section-responsive {
        display: none !important;
    }

    .cake-box-desktop-only {
        display: block;
    }
}

/* ============================================================
   SECTION 3 (KHARI / CREAM ROLLS / DOUGHNUTS / BUTTER)
   Mobile (0–767px) & Tablet (768–1024px) only
   Desktop (1025px+) uses rules above unchanged.
   ============================================================ */

.third-section-responsive {
    display: none;
}

@media (max-width: 1024px) {

    .third-section-desktop {
        display: none !important;
    }

    .third-section-responsive {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .third-section {
        overflow-x: hidden;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        background-color: #fff6d1;
        background-image: url('third-section-bg-for-responsiveness.jpeg');
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
        padding: 0;
        /* Natural height — no 100vh lock on mobile/tablet */
        height: auto !important;
        min-height: auto !important;
    }

    /* No overflow-y scroll needed since section flows naturally */
    .third-section.active {
        overflow-y: visible;
    }

    .third-section-inner {
        padding: 88px 16px 40px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .third-tablet-layout {
        display: none;
    }

    .third-mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
    }

    .third-category-header h2 {
        color: #cd2c31;
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        font-weight: 900;
        font-style: italic;
        margin: 0 0 8px;
        letter-spacing: -0.5px;
        text-align: left;
    }

    .third-category-header p {
        color: #111;
        font-size: clamp(0.82rem, 3.2vw, 0.95rem);
        font-weight: 700;
        line-height: 1.4;
        margin: 0 0 14px;
        text-align: left;
    }

    .third-product-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 0 16px 4px;
        scroll-behavior: smooth;
    }

    .third-product-scroll::-webkit-scrollbar {
        display: none;
    }

    .third-product-scroll:focus-visible {
        outline: 2px solid #0c7a3e;
        outline-offset: 2px;
    }

    .third-product-track {
        display: flex;
        gap: 12px;
        width: max-content;
        padding-bottom: 4px;
    }

    .third-product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 clamp(108px, 31vw, 132px);
        width: clamp(108px, 31vw, 132px);
        min-height: 132px;
        padding: 10px 8px 8px;
        box-sizing: border-box;
        background: linear-gradient(to bottom, rgba(239, 196, 129, 0.35), #efc481);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .third-product-card img {
        width: 100%;
        max-width: 88px;
        height: 72px;
        object-fit: contain;
        filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.12));
    }

    .third-product-card span {
        font-size: 0.58rem;
        font-weight: 800;
        color: #111;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.25;
        margin-top: 6px;
    }

    .third-scroll-buttons {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 10px;
        position: relative;
        z-index: 5;
    }

    .third-scroll-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(205, 44, 49, 0.1);
        border: 2px solid rgba(205, 44, 49, 0.3);
        color: #cd2c31;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .third-scroll-btn:active {
        background: #cd2c31;
        color: #fff;
        border-color: #cd2c31;
    }

    .third-scroll-btn svg {
        width: 18px;
        height: 18px;
    }

    .third-scroll-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: rgba(205, 44, 49, 0.05);
        color: rgba(205, 44, 49, 0.5);
        border-color: rgba(205, 44, 49, 0.15);
    }

    .third-product-static {
        display: flex;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .third-category-block--static .third-product-card {
        flex: 0 0 calc(50% - 8px);
        width: calc(100% - 8px);
        max-width: 160px;
    }

    /* On mobile/tablet, initThirdSectionAnimations() is never called because
       onScroll() returns early for responsive layouts. Starting at opacity:0
       permanently hides the content. Force visible here; the container-level
       IntersectionObserver (.third-tablet-layout / .mobile-fade-up) handles
       the section entry animation instead. */
    .third-animate-category {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        will-change: opacity, transform;
    }

    .third-animate-category.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .third-mobile-layout .third-animate-category:nth-child(1) {
        transition-delay: 0s;
    }

    .third-mobile-layout .third-animate-category:nth-child(2) {
        transition-delay: 0.1s;
    }

    .third-mobile-layout .third-animate-category:nth-child(3) {
        transition-delay: 0.2s;
    }

    .third-mobile-layout .third-animate-category:nth-child(4) {
        transition-delay: 0.3s;
    }

    /* Section 3 tablet: full nav, no hamburger */
    body.third-section-active .nav-hamburger {
        display: none !important;
    }

    body.third-section-active .custom-navbar-links {
        display: flex !important;
        gap: 14px;
    }

    body.third-section-active .navbar-cta-wrapper {
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .third-section-inner {
        padding: 96px 32px 48px;
    }

    .third-mobile-layout {
        display: none;
    }

    .third-tablet-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        width: 100%;
    }

    .third-category-card {
        background: rgba(255, 252, 245, 0.88);
        border-radius: 16px;
        padding: 20px 16px 18px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
        box-sizing: border-box;
    }

    .third-category-header h2 {
        font-size: clamp(1.5rem, 3vw, 1.85rem);
    }

    .third-category-header p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .third-tablet-products {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }

    .third-tablet-products .third-product-card {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        min-height: 118px;
        padding: 8px 4px 6px;
    }

    .third-tablet-products .third-product-card img {
        max-width: 100%;
        height: 58px;
    }

    .third-tablet-products .third-product-card span {
        font-size: 0.5rem;
    }

    .third-tablet-products--duo {
        justify-content: center;
        gap: 16px;
    }

    .third-tablet-products--duo .third-product-card {
        flex: 0 1 42%;
        max-width: 180px;
    }

    .third-tablet-products--trio .third-product-card {
        flex: 1 1 0;
    }

    .third-tablet-layout .third-animate-category {
        transform: translateY(0);
    }

    .third-tablet-layout .third-animate-category.is-visible {
        transform: translateY(0);
    }

    .third-tablet-layout .third-animate-category:nth-child(1) {
        transition-delay: 0s;
    }

    .third-tablet-layout .third-animate-category:nth-child(2) {
        transition-delay: 0.1s;
    }

    .third-tablet-layout .third-animate-category:nth-child(3) {
        transition-delay: 0.2s;
    }

    .third-tablet-layout .third-animate-category:nth-child(4) {
        transition-delay: 0.3s;
    }
}

@media (max-width: 767px) {

    .third-section-inner {
        padding: 80px 16px 36px;
    }

    .third-mobile-layout {
        gap: 24px;
    }

    /* ── Mobile-only static grid for Khari, Cream Rolls & Donuts ── */

    /* Base grid: cards flow into rows automatically */
    .third-product-grid {
        display: grid;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Override scroll-era flex sizing so CSS grid controls card widths */
    .third-product-grid .third-product-card {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-height: 128px;
        box-sizing: border-box;
    }

    /* Khari: 5 products — 3-column grid; last 2 cards auto-wrap to row 2
       The 4th & 5th cards are centered by using an inner 3-col grid
       where col 1 is empty, and cards sit in cols 2 & 3.             */
    .third-product-grid--khari {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Center the lone second row (4th & 5th cards) by placing them in
       columns 1-2 and 2-3 respectively, leaving column 3 visually empty
       via a placeholder trick using nth-child grid-column override.    */
    .third-product-grid--khari .third-product-card:nth-child(4) {
        grid-column: 1;
    }

    .third-product-grid--khari .third-product-card:nth-child(5) {
        grid-column: 2;
    }

    /* Cream Rolls: 4 products — 3-column grid; 4th card centers on row 2 */
    .third-product-grid--creamrolls {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Center the lone 4th card in the middle column */
    .third-product-grid--creamrolls .third-product-card:nth-child(4) {
        grid-column: 2;
    }

    /* Donuts: 3 products — equal 3-column single row */
    .third-product-grid--donuts {
        grid-template-columns: repeat(3, 1fr);
    }

    body.third-section-active .navbar-cta-wrapper {
        display: none !important;
    }

    body.third-section-active .nav-hamburger {
        display: flex !important;
    }

    body.third-section-active .custom-navbar-links {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .third-section-responsive {
        display: none !important;
    }

    .third-section-desktop {
        display: grid;
    }
}

/* ===== FOURTH & FIFTH SECTION RESPONSIVE ===== */
.fourth-section-responsive,
.fifth-section-responsive {
    /* On desktop these are absolute overlays; on mobile/tablet parent is relative
       so these must also be relative to flow naturally */
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    background-image: url('second-section-bg-for-responsiveness.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 90px 16px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {

    /* Desktop: restore absolute positioning for overlay effect */
    .fourth-section-responsive,
    .fifth-section-responsive {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }
}

/* Animations */
.fourth-anim-hero,
.fourth-anim-products,
.fifth-anim-hero,
.fifth-anim-products {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fourth-anim-hero.is-visible,
.fourth-anim-products.is-visible,
.fifth-anim-hero.is-visible,
.fifth-anim-products.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base styles for inner containers */
.fourth-section-inner,
.fifth-section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Fourth Section Specifics */
.fourth-heading-wrap h2 {
    color: #cd2c31;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 10px;
    margin-top: 10px;
}

.fourth-hero-visual {
    text-align: center;
    margin-bottom: 15px;
}

.fourth-hero-img {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.fourth-butter-highlight {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.fourth-butter-packet {
    max-width: 70%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.2));
}

.fourth-butter-text {
    position: absolute;
    right: 5%;
    bottom: -15%;
    max-width: 50%;
    z-index: 3;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.fourth-products-list h3 {
    color: #cd2c31;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.fourth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fourth-card {
    background: linear-gradient(to bottom, rgba(239, 196, 129, 0.4), #efc481);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.fourth-card img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.fourth-card span {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #111
}

.fourth-tagline,
.fourth-tagline-tablet {
    background-color: #0c7a3e;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 20px;
    font-weight: 700;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Fifth Section Specifics */
.fifth-heading-wrap {
    position: relative;
    margin-bottom: 20px;
}

.fifth-heading-wrap h2 {
    color: #cd2c31;
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.fifth-heading-wrap p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.fifth-badge {
    position: absolute;
    top: 0;
    right: 5%;
    background-color: #0c7a3e;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 0.7rem;
    line-height: 1.1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(10deg);
}

.fifth-hero-visual {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.fifth-hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.fifth-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fifth-card {
    background: rgba(255, 252, 245, 0.88);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fifth-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.fifth-card span {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

/* Mobile Layouts */
@media (max-width: 767px) {

    .fourth-tablet-layout,
    .fifth-tablet-layout {
        display: none;
    }

    .fourth-mobile-layout,
    .fifth-mobile-layout {
        display: flex;
        flex-direction: column;
    }

    .fourth-card-span2 {
        grid-column: span 2;
    }

    .fifth-card {
        flex-direction: row;
    }
}

/* Tablet Layouts */
@media (min-width: 768px) and (max-width: 1024px) {

    .fourth-mobile-layout,
    .fifth-mobile-layout {
        display: none;
    }

    .fourth-tablet-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .fourth-tablet-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fourth-heading-wrap h2 {
        text-align: left;
    }

    .fourth-tagline-tablet {
        grid-column: 1 / -1;
    }

    .fourth-card-span2 {
        grid-column: span 2;
    }

    .fifth-tablet-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .fifth-tablet-top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: center;
    }

    .fifth-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .fifth-hero-visual .fifth-badge {
        right: 0;
        top: -20px;
    }

    .fifth-heading-wrap .fifth-badge {
        display: none;
    }
}

/* ===== SIXTH SECTION RESPONSIVE ===== */
.sixth-section-responsive {
    /* On desktop: absolute overlay. On mobile/tablet: relative, flows naturally. */
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    background-image: url('second-section-bg-for-responsiveness.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 90px 16px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {

    /* Desktop: restore absolute positioning for overlay effect */
    .sixth-section-responsive {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }
}

/* Animations */
.sixth-anim-hero,
.sixth-anim-products,
.sixth-anim-farsan {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sixth-anim-products h4 {
    margin-top: 170px;
}

.sixth-anim-hero.is-visible,
.sixth-anim-products.is-visible,
.sixth-anim-farsan.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sixth-section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography & Base Elements */
.sixth-heading-wrap h2 {
    color: #cd2c31;
    font-size: clamp(2rem, 7vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.sixth-heading-wrap p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
    margin-bottom: 20px;
}

.sixth-hero-visual {
    text-align: center;
    margin-bottom: 20px;
}

.sixth-hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.sixth-farsan-intro {
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: right;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    display: inline-block;
    float: right;
    clear: both;
}

.sixth-farsan-intro h3 {
    color: #8c6b45;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 5px;
}

.sixth-farsan-intro p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
}

.sixth-mobile-layout::after {
    content: "";
    display: table;
    clear: both;
}

/* Section Titles */
.sixth-section-title {
    color: #cd2c31;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* Biscuit List (Mobile) */
.sixth-biscuit-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.sixth-biscuit-item {
    background: rgba(255, 252, 245, 0.88);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sixth-biscuit-img-wrap {
    width: 45px;
    height: 45px;
    background: linear-gradient(to bottom, rgba(239, 196, 129, 0.4), #efc481);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.sixth-biscuit-img-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.sixth-biscuit-item span {
    font-size: 0.85rem;
    font-weight: 800;
    flex-grow: 1;
    color: #111;
}

.sixth-arrow {
    color: #cd2c31;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Farsan Section */
.sixth-farsan-packets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sixth-farsan-img-wrap {
    background: rgba(255, 252, 245, 0.88);
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sixth-farsan-img-wrap img {
    max-width: 100%;
    height: auto;
}

.sixth-farsan-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sixth-farsan-col p {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.sixth-tagline {
    background: rgba(255, 252, 245, 0.88);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.sixth-tagline p {
    color: #cd2c31;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.4;
}

/* CHANGE 3: Mobile biscuit product layout fixed —
   wider row background, bigger images, more gap between image and text. */
@media (max-width: 767px) {
    .sixth-tablet-layout {
        display: none;
    }

    .sixth-mobile-layout {
        display: block;
    }

    /* Make each biscuit row span full available width */
    .sixth-biscuit-item {
        padding: 10px 16px 10px 12px;
        gap: 14px;
        /* stretch to full container width naturally via block/flex */
        width: 100%;
        box-sizing: border-box;
    }

    /* Larger image wrap for better visibility */
    .sixth-biscuit-img-wrap {
        width: 62px;
        height: 62px;
        flex-shrink: 0;
        margin-right: 0;
        /* gap on the parent flex handles spacing */
    }

    /* Image fills the wrap properly */
    .sixth-biscuit-img-wrap img {
        max-width: 85%;
        max-height: 85%;
    }

    /* Comfortable readable text with more breathing room */
    .sixth-biscuit-item span {
        font-size: 0.88rem;
        font-weight: 800;
        flex-grow: 1;
        padding-left: 4px;
    }

    /* Wider biscuit list — full width, no lateral constraints */
    .sixth-biscuit-list {
        gap: 10px;
        width: 100%;
    }

    .farsan-2 {
        height: 55px;
    }
}

/* Tablet Layouts */
@media (min-width: 768px) and (max-width: 1024px) {
    .sixth-mobile-layout {
        display: none;
    }

    .sixth-tablet-layout {
        display: block;
    }

    .sixth-tablet-top {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
        align-items: center;
        margin-bottom: 40px;
    }

    .sixth-heading-wrap h2 {
        font-size: 2.5rem;
    }

    .sixth-farsan-intro {
        float: none;
        margin-bottom: 0;
        text-align: left;
    }

    .sixth-tablet-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .sixth-biscuit-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .sixth-biscuit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
    }

    .sixth-biscuit-img-wrap {
        margin-right: 0;
        margin-bottom: 10px;
        width: 60px;
        height: 60px;
    }

    .sixth-biscuit-item span {
        font-size: 0.75rem;
    }

    .sixth-biscuit-item .sixth-arrow {
        display: none;
    }

    .sixth-farsan-content-box {
        background: rgba(255, 252, 245, 0.5);
        border-radius: 12px;
        padding: 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .sixth-farsan-bullets {
        grid-template-columns: 1fr 1fr;
    }

    .sixth-tagline {
        margin-top: auto;
    }

    .farsan-2 {
        height: 45px;
    }

}

/* Hide on Desktop */
@media (min-width: 1025px) {

    .fourth-section-responsive,
    .fifth-section-responsive,
    .sixth-section-responsive,
    .footer-responsive {
        display: none !important;
    }
}

/* ===== FOOTER RESPONSIVE (MOBILE & TABLET) ===== */
.footer-responsive {
    display: none;
    width: 100vw;
    height: 80vh;
    background-color: #fff;
    position: relative;
    padding: 60px 25px 30px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    overflow-y: auto;
}

.footer-mobile-layout,
.footer-tablet-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.footer-resp-slogan {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    text-align: left;
}

.gold-text {
    color: #d6a455;
}

.brown-text {
    color: #8b6440;
}

.footer-resp-logo-row {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}

/* .footer-resp-logo-img {
    
    height: 45px;
    width: auto;
} */

.footer-resp-fssai {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.footer-resp-addresses {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-resp-addr-block p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.footer-resp-addr-block strong {
    font-weight: 800;
}

.footer-resp-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
    width: 100%;
}

.footer-resp-iso {
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
    text-align: left;
}

/* MEDIA QUERIES */
@media (max-width: 767px) {
    .footer-overlay.desktop-only {
        display: none !important;
    }

    .footer-responsive {
        display: block;
    }

    .footer-mobile-layout {
        display: flex;
    }

    .footer-tablet-layout {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-overlay.desktop-only {
        display: none !important;
    }

    .footer-responsive {
        display: block;
    }

    .footer-mobile-layout {
        display: none;
    }

    .footer-tablet-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: center;
    }

    .footer-responsive {
        padding: 80px 50px 40px;
    }

    .footer-resp-slogan {
        font-size: 3.5rem;
        margin-bottom: 35px;
    }

    .footer-resp-logo-row {
        margin-bottom: 40px;
    }

    /* .footer-resp-logo-img {
        height: 60px;
    } */

    .footer-resp-fssai {
        font-size: 0.95rem;
    }

    .footer-resp-addresses-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-resp-addr-block p {
        font-size: 0.85rem;
    }

    .footer-icon-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .footer-icon-title strong {
        font-weight: 800;
    }

    .footer-icon-title .footer-icon {
        flex-shrink: 0;
    }

    .footer-resp-iso {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* ===================================================================
   MOBILE + TABLET NATURAL SCROLL ANIMATIONS  (max-width: 1024px)
   Mobile + Tablet Only: Natural scrolling with fade-in + slide-up animation
   when each section enters viewport. Removed all previous unnatural plus
   every every every existing scroll effects from both layouts.
   JS adds .is-animated via IntersectionObserver when section enters view.
=================================================================== */

/* ── Override fixed positioning: make all sections flow naturally ── */
@media (max-width: 1024px) {

    /* Remove fixed overlay stacking — sections become normal page blocks */
    .cake-box-container,
    .third-section,
    .fourth-section,
    .fifth-section,
    .sixth-section,
    .footer-section {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        overflow: visible !important;
        z-index: auto !important;
        transition: none !important;
    }

    /* Hide desktop-only elements on mobile/tablet */
    .desktop-only {
        display: none !important;
    }

    /* Fourth section: use the responsive container background, not desktop image */
    .fourth-section {
        background-image: none !important;
    }

    /* Fifth section: use the responsive container background, not desktop image */
    .fifth-section {
        background-image: none !important;
    }

    /* Sixth section: use the responsive container background, not desktop image */
    .sixth-section {
        background-image: none !important;
    }

    /* Footer section: use the responsive footer-responsive layout, not desktop image */
    .footer-section {
        background-image: none !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Canvases are desktop-only — hidden on mobile/tablet */
    #fourth-canvas,
    #fifth-canvas {
        display: none !important;
    }

    /* Responsive containers: already positioned relative, just ensure visibility */
    .fourth-section-responsive,
    .fifth-section-responsive,
    .sixth-section-responsive {
        display: flex !important;
    }

    .footer-responsive {
        display: block !important;
    }

    /* Prevent .active class transition overrides from conflicting */
    .cake-box-container.active,
    .third-section.active,
    .fourth-section.active,
    .fifth-section.active,
    .sixth-section.active,
    .footer-section.active {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Kill the parallax slide-up of section 6 on mobile/tablet */
    .sixth-section.parallaxing {
        transform: none !important;
        transition: none !important;
    }

    /* ── All anim sub-elements: reset to visible, no JS inline overrides ── */
    .fourth-anim-hero,
    .fourth-anim-products,
    .fifth-anim-hero,
    .fifth-anim-products,
    .sixth-anim-hero,
    .sixth-anim-products,
    .sixth-anim-farsan {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* ── Fade-in + slide-up: mobile (max-width: 767px) ── */
@media (max-width: 767px) {

    /* ── Initial (hidden) state ─────────────────────────────────────── */
    .mobile-fade-up {
        opacity: 0;
        transform: translateY(40px);
        transition:
            opacity 0.6s ease-out,
            transform 0.6s ease-out;
        will-change: opacity, transform;
    }

    /* ── Animated (visible) state ───────────────────────────────────── */
    .mobile-fade-up.is-animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Fade-in + slide-up: tablet (768px – 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Tablet layout containers — initial hidden state */
    .cakes-layout-tablet,
    .third-tablet-layout,
    .fourth-tablet-layout,
    .fifth-tablet-layout,
    .sixth-tablet-layout,
    .footer-tablet-layout,
    /* Also cover the mobile-fade-up elements visible on tablet */
    .mobile-fade-up {
        opacity: 0;
        transform: translateY(40px);
        transition:
            opacity 0.6s ease-out,
            transform 0.6s ease-out;
        will-change: opacity, transform;
    }

    /* ── Animated (visible) state for tablet ── */
    .cakes-layout-tablet.is-animated,
    .third-tablet-layout.is-animated,
    .fourth-tablet-layout.is-animated,
    .fifth-tablet-layout.is-animated,
    .sixth-tablet-layout.is-animated,
    .footer-tablet-layout.is-animated,
    .mobile-fade-up.is-animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================================
   COPYRIGHT BAR — below footer on ALL pages and ALL layouts.
   Technically outside <footer>; visually blends as a footer sub-strip.
   On main page desktop: fixed at bottom, revealed when footer is active.
   On contact page desktop + all mobile/tablet: normal document flow.
=================================================================== */
.allfresh-copyright {
    background-color: #0f0f0f;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    padding: 13px 20px;
    letter-spacing: 0.4px;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Desktop index.html: fixed strip, revealed when .footer-section.active.
   Height is fixed at 42px — the footer is reduced by the same amount so
   the copyright bar sits flush below the footer image with zero gap. */
@media (min-width: 1025px) {
    body:not(.contact-page) .allfresh-copyright {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
        z-index: 46;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Sibling combinator: show when footer-section gains .active class */
    .footer-section.active~.allfresh-copyright {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .allfresh-copyright {
        font-size: 0.70rem;
        padding: 12px 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .allfresh-copyright {
        font-size: 0.62rem;
        padding: 10px 14px;
        letter-spacing: 0.2px;
    }
}

/* ===================================================================
   FLOATING WHATSAPP ICON (DESKTOP ONLY)
=================================================================== */
.floating-whatsapp {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@media (min-width: 1025px) {
    .floating-whatsapp {
        display: flex;
    }
}

/* ── Mobile-only: product card selected (black border) state ──────────────
   Applied only on ≤767px. Uses outline so no layout shift occurs.
   One card per section can be selected at a time (managed by script.js).
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Section 2 — Cakes */
    .cakes-product-card.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }

    /* Section 3 — Khari / Cream Rolls / Doughnuts / Butter */
    .third-product-card.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }

    /* Section 4 — Toast & Rusk */
    .fourth-card.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }

    /* Section 5 — Breads */
    .fifth-card.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }

    /* Section 6 — Biscuits & Cookies */
    .sixth-biscuit-item.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }

    /* Section 6 — Farsan & Namkeen packets */
    .sixth-farsan-img-wrap.is-selected {
        outline: 2px solid #000;
        outline-offset: 0px;
    }
}