/* Modern Color Palette & Variables */
:root {
    /* HSL Colors */
    --primary: 24 90% 65%;
    /* Warm Orange/Peach */
    --primary-dark: 24 85% 55%;
    --secondary: 340 60% 65%;
    /* Soft Pink/Rose */
    --accent: 45 90% 60%;
    /* Warm Yellow */

    --bg-body: 30 20% 97%;
    /* Off-white/Cream */
    --bg-card: 0 0% 100%;
    /* White */

    --text-main: 220 15% 20%;
    /* Dark Charcoal */
    --text-muted: 220 10% 45%;
    /* Grey */

    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Fredoka', cursive;
    --font-body: 'Outfit', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: hsl(var(--bg-body));
    color: hsl(var(--text-main));
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    -webkit-appearance: none;
    /* Safari/iOS reset */
    appearance: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: hsl(var(--text-main));
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-muted));
}

/* Utility */
.badge {
    display: inline-block;
    background-color: hsl(var(--secondary) / 0.15);
    color: hsl(var(--secondary));
    padding: 0.5em 1em;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: hsl(var(--text-main));
    border: 2px solid hsl(var(--text-main) / 0.1);
}

.btn-secondary:hover {
    border-color: hsl(var(--text-main));
    background-color: hsl(var(--text-main));
    color: white;
}

.btn-primary-outline {
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
}

.btn-primary-outline:hover {
    background-color: hsl(var(--primary));
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: hsl(var(--bg-body) / 0.9);
    -webkit-backdrop-filter: blur(10px);
    /* Safari */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 0.75rem;
    /* Space between logo and text */
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--primary));
    display: inline-block;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link:not(.btn-primary-outline):hover {
    color: hsl(var(--primary));
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: hsl(var(--text-main));
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 6rem 0 3rem;
    min-height: 90vh;
    min-height: 90dvh;
    /* Mobile Safari fix */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s linear infinite alternate;
}

.hero-img {
    width: 100%;
    /* Fill the container defined by .slide */
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 40px;
    /* Smooth borders */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Nicer shadow */
    transition: all 0.5s ease;
}

/* Update slide wrapper to be the fluid container */
.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    width: 80%;
    /* Fluid width relative to wrapper */
    max-width: 450px;
    aspect-ratio: 1/1;
    /* Ensure container is square */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Ensure space allocation */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Legacy slide rule removed */

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Showcase Section */
.showcase {
    padding: 3rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-title {
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.cake-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cake-card {
    flex: 0 1 280px;
    width: 100%;
    background-color: hsl(var(--bg-card));
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid hsl(var(--text-main) / 0.05);
}

.cake-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: hsl(var(--primary) / 0.2);
}

.card-image {
    background-color: hsl(var(--bg-body));
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* changed to contain to avoid cropping circular plates if any */
    transition: transform 0.5s ease;
}

.cake-card:hover .card-image img {
    transform: scale(1.05) rotate(2deg);
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--text-main) / 0.05);
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
    color: hsl(var(--primary));
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: hsl(var(--text-main));
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: hsl(var(--primary));
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: hsl(var(--accent) / 0.1);
    text-align: center;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: hsl(20, 30%, 95%);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: hsl(var(--primary));
    display: block;
    margin-bottom: 1rem;
}

.footer-links,
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer h4 {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--text-main) / 0.05);
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
    }

    .nav-list.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

}

.cake-card {
    background-color: hsl(var(--bg-card));
    border-radius: var(--radius);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid hsl(var(--text-main) / 0.05);
}

.cake-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: hsl(var(--primary) / 0.2);
}

.card-image {
    background-color: hsl(var(--bg-body));
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* changed to contain to avoid cropping circular plates if any */
    transition: transform 0.5s ease;
}

.cake-card:hover .card-image img {
    transform: scale(1.05) rotate(2deg);
}

.card-content h3 {
    margin-bottom: 0.5rem;
}

.card-footer {
    display: flex;
    justify-content: center;
    /* Center the button */
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--text-main) / 0.05);
}

/* New CTA Button */
.btn.btn-sm {
    padding: 0.6rem 1.5rem;
    /* Larger touch target */
    font-size: 0.95rem;
    width: 100%;
    /* Full width for easy tapping on mobile */
    text-align: center;
    display: flex;
    justify-content: center;
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 50px;
}

.btn.btn-sm:hover,
.cake-card:hover .btn.btn-sm {
    background-color: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hide old styles in Cards ONLY */
.cake-card .price,
.cake-card .btn-icon {
    display: none;
}

/* Ensure Modal Price is Visible */
#modalPrice.price {
    display: inline-block;
    font-size: 1.5rem;
    color: hsl(var(--primary));
    font-weight: 700;
    margin-right: 1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: hsl(var(--accent) / 0.1);
    text-align: center;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background-color: hsl(20, 30%, 95%);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: hsl(var(--primary));
    display: block;
    margin-bottom: 1rem;
}

.footer-links,
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer h4 {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--text-main) / 0.05);
    font-size: 0.875rem;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease;
    }

    .nav-list.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Modal Styles - High End Motion */
:root {
    /* Custom Easing for that "GTA" feel - heavy start, smooth snap */
    --ease-gta: cubic-bezier(0.16, 1, 0.3, 1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-gta), visibility 0.5s var(--ease-gta);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker for focus */
    -webkit-backdrop-filter: blur(10px);
    /* Safari */
    backdrop-filter: blur(10px);
    transition: opacity 0.6s var(--ease-gta);
}

.modal-wrapper {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 1000px;
    height: auto;
    min-height: 500px;
    border-radius: 24px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateZ(0);
    /* Safari fix */
    /* Important for the image zoom effect to stay contained */
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s var(--ease-gta);
    z-index: 2001;
    display: flex;
    /* Changed to flex for side-by-side layout enforcement */
}

@media (max-width: 768px) {
    .modal-wrapper {
        flex-direction: column;
        overflow-y: auto;
        max-height: 90vh;
    }
}

.modal.active .modal-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: hsl(var(--text-main));
    transition: transform 0.3s var(--ease-gta), background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: hsl(var(--primary));
    color: white;
    transform: rotate(90deg);
}

.modal-content {
    display: contents;
    /* Allows children to participate in flex container of wrapper */
}

.modal-image {
    background-color: #f8f8f8;
    flex: 1.2;
    /* Takes slightly more space */
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Start slightly zoomed in */
    transition: transform 1.2s var(--ease-gta);
    max-height: none;
    /* override previous max-height */
}

.modal.active .modal-image img {
    transform: scale(1);
    /* Smoothly zoom out to normal */
}

/* Staggered Content Animation */
.modal-info {
    flex: 0.8;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    background: white;
}

.modal-info>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-gta);
}

.modal.active .modal-info>* {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for Stagger Effect */
.modal.active .modal-info h3 {
    transition-delay: 0.1s;
}

.modal.active .modal-info p {
    transition-delay: 0.2s;
}

.modal.active .ingredients-section {
    transition-delay: 0.3s;
}

.modal.active .modal-footer {
    transition-delay: 0.4s;
}


.modal-info h3 {
    font-size: 2.5rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
    line-height: 1.1;
}

.modal-info>p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: hsl(var(--text-muted));
}

.ingredients-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: hsl(var(--text-main));
    font-weight: 700;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Column layout for ingredients */
    gap: 0.75rem 1.5rem;
    margin-bottom: 3rem;
}

.ingredients-list li {
    padding-left: 0;
    font-size: 1rem;
    color: hsl(var(--text-main));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list li::before {
    content: "";
    /* Remove old bullet */
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    position: static;
}

.modal-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.price {
    font-size: 2rem;
}

.modal-footer .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-image {
        min-height: 300px;
        flex: none;
        width: 100%;
        padding: 0;
        height: 300px;
    }

    .modal-info {
        padding: 2rem;
    }

    .ingredients-list {
        grid-template-columns: 1fr;
    }
}

/* Popular Item Highlight */
.cake-card.popular {
    position: relative;
    border: 2px solid hsl(var(--primary));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    /* Gentle permanent lift */
    z-index: 5;
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: hsl(var(--primary));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Testimonials Section */
.testimonials {
    padding: 2rem 0;
    /* Compact vertical padding */
    background-color: hsl(var(--bg-body));
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

/* Marquee / Testimonial Section */
.testimonial-container {
    width: 100%;
    /* Revert to marquee wrapper role if needed, or keeping container name is fine as long as we style track */
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-wrapper {
    /* Ensure wrapper compatibility if class names mixed */
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}



/* The actual moving track */
.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 60s linear infinite;
}

/* User Control: Pause on Hover (PC) & Touch (Mobile) */
.marquee-track:hover,
.marquee-track:active,
.marquee-track:focus-within {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move half the width (since we duplicated contents) */
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background-color: white;
    border-radius: 16px 16px 16px 0;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    /* Fixed width for consistent marquee items */
    flex: 0 0 320px;
    height: auto;
    display: flex;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Scroll Buttons Removed */
.scroll-btn {
    display: none;
}

/* Remove Marquee Animation specific overrides */

.testimonial-card {
    background-color: white;
    border-radius: 16px 16px 16px 0;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    /* Fixed width for consistent marquee items */
    flex: 0 0 320px;
    height: auto;
    display: flex;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.msg-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(var(--text-main));
    font-style: italic;
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Adjust Testimonial Cards for smaller screens */
    .testimonial-card {
        flex: 0 0 280px;
        /* Slightly smaller fixed width */
        padding: 1.25rem;
    }

    /* Ensure Marquee container doesn't force width issues */
    .marquee-wrapper {
        width: 100vw;
        margin-left: -1rem;
        /* Pull back to edge if there's parent padding */
        padding-left: 1rem;
        /* Note: simple overflowing marquee usually works best if full width */
    }

    /* Tighter padding for sections */
    .hero {
        padding: 4rem 0 2rem;
    }

    .section-header {
        padding: 0 1rem;
    }

    .cake-grid {
        gap: 2rem;
    }

    .cake-card {
        flex: 0 1 100%;
        /* Full width on mobile for better focus */
        max-width: 360px;
        /* But don't get too crazy huge */
    }
}

@media (max-width: 480px) {

    /* Even smaller screens */
    .testimonial-card {
        flex: 0 0 75vw;
        /* Responsive width */
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Cart & Drawer Styles */
.cart-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: hsl(var(--primary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: hsl(var(--secondary));
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background-color: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 3001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(var(--bg-body));
}

.cart-header h3 {
    margin: 0;
    color: hsl(var(--primary));
}

.close-cart {
    font-size: 2rem;
    color: hsl(var(--text-muted));
    line-height: 0.5;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: hsl(var(--text-muted));
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.item-price {
    font-size: 0.9rem;
    color: hsl(var(--primary));
    font-weight: 600;
}

.remove-item {
    color: hsl(var(--secondary));
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: hsl(var(--bg-body));
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}