/* Custom CSS for Jérôme Cheesecake */
:root {
    --primary-color: #f7693e;
    --secondary-color: #0f0f0f;
    --text-main: #333;
    --text-light: #777;
    --bg-light: #ffffff;
    --bg-premium: #fcfcfc;
    --bg-cream: #faf7f2;
    --bg-plate: #f3f3f3;
    --font-main: 'Kanit', sans-serif;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    padding-top: var(--header-height);
    margin: 0;
    line-height: 1.6;
}

/* --- Header Section --- */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

        /* Slide Down Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 85vh;
    /* Increased height as requested */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
    width: 100%;
}

/* --- Hero Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    text-decoration: none;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite linear;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -4px 0;
    animation: scroll-arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll-wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes scroll-arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* --- Product details Section --- */
.product-section {
    background: var(--bg-light);
    padding: 120px 15px;
    position: relative;
    overflow: hidden;
}

/* Advanced Background Ornaments */
.bg-ornament-text {
    position: absolute;
    font-size: 15rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.ornament-1 {
    top: 5%;
    left: -5%;
}

.ornament-2 {
    bottom: 10%;
    right: -5%;
}

.ornament-locations {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12rem;
    opacity: 0.02;
}

.ornament-contact {
    bottom: 5%;
    right: -2%;
    transform: rotate(-5deg);
    font-size: 14rem;
    opacity: 0.02;
}

.section-bg-plate {
    position: absolute;
    background: var(--bg-plate);
    border-radius: 40px;
    z-index: 0;
    pointer-events: none;
}

.plate-1 {
    width: 60%;
    height: 70%;
    top: 15%;
    right: -5%;
    transform: rotate(-3deg);
    opacity: 0.6;
}

.plate-2 {
    width: 50%;
    height: 60%;
    bottom: 5%;
    left: -10%;
    transform: rotate(2deg);
    background: var(--bg-cream);
    opacity: 0.4;
}

.plate-locations {
    width: 110%;
    height: 50%;
    top: 25%;
    left: -5%;
    background: var(--bg-light);
    transform: rotate(1deg);
    opacity: 0.3;
}

.plate-contact {
    width: 40%;
    height: 80%;
    top: 10%;
    right: 5%;
    background: var(--bg-cream);
    transform: rotate(-2deg);
    opacity: 0.5;
}

.product-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 120px;
    gap: 70px;
    padding: 0 5%;
}

.product-image {
    flex: 1 1 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .product-row.row-inverted {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) {
    .product-image {
        flex: 1 1 auto !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

    .product-row {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .product-image,
    .product-info {
        flex: none;
        width: 100%;
    }

    .product-image {
        border-radius: 0;
        box-shadow: none;
    }
}

.product-row:last-child {
    margin-bottom: 0;
}



.product-image img {
    width: 100%;
    display: block;
}

.product-info {
    flex: 1 1 400px;
}

.product-title {
    font-size: 2.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: none;
    font-weight: 500;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.product-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-primary-custom {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff !important;
    padding: 12px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Modern Product Section (Clean & Airy) --- */
.product-grid-section {
    background: var(--bg-premium);
    padding: 120px 15px;
    position: relative;
    overflow: hidden;
    border-radius: 80px 80px 0 0;
    margin-top: -60px;
}

/* .product-grid-section::after {
    content: 'CHEF RECIPE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: 0;
    white-space: nowrap;
} */

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 992px) {
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-item {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.gallery-img-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 8px;
    /* Slightly softer radius */
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.gallery-caption {
    padding: 20px 0 0;
    text-align: center;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- Contact & Locations Sections (Centered Alignment) --- */
.contact-section {
    background: var(--bg-premium);
    padding: 140px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    z-index: 3;
}

.locations-section {
    background: var(--bg-cream);
    padding: 140px 15px;
    /* text-align: center; */
    position: relative;
    overflow: hidden;
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    z-index: 2;
}

.contact-cards,
.shop-locations-grid {
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-header h2 {
    font-size: 2.4rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-header h4 {
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-card {
    background: #fff;
    padding: 45px 30px;
    border-radius: 16px;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.contact-card img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

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

.contact-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card p {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0;
}

/* --- Locations Section (Restored Original Cards) --- */
.locations-section {
    background: var(--bg-light);
    padding: 100px 15px;
    border-top: 1px solid #eee;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 0 auto;
    padding: 0 5%;
}

.location-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.loc-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.loc-details h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.loc-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

.map-text {
    display: block;
    margin-top: 5px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.85rem;
}

/* --- Footer --- */
.footer-main {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 25px 15px;
}

.footer-main p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* --- Floating Action Buttons --- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.fab-btn:hover {
    transform: scale(1.1);
    color: #fff;
    text-decoration: none;
}

.fab-cart {
    background: #ffa707;
    animation: wiggle 2s linear infinite;
}

.fab-top {
    background: var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.fab-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@keyframes wiggle {

    0%,
    7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-15deg);
    }

    20% {
        transform: rotateZ(10deg);
    }

    25% {
        transform: rotateZ(-10deg);
    }

    30% {
        transform: rotateZ(6deg);
    }

    35% {
        transform: rotateZ(-4deg);
    }

    40%,
    100% {
        transform: rotateZ(0);
    }
}

/* --- Utilities & Typing Effect --- */
.typing-container {
    min-height: 40px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.typed-cursor {
    color: var(--primary-color);
}

.carousel-inner img {
    width: 100%;
    height: auto;
}