/* CSS Variables */
:root {
    /* Updated Color Palette */
    --primary-pink: #F4C2C2;
    --coral-pink: #E8A5A5;
    --matcha-green: #A8C4A2;
    --soft-matcha: #C4D3BF;
    --dark-brown: #4A3429;
    --warm-cocoa: #6B4E3D;
    --cream: #FFF8F3;
    --light-pink: #FCF0F0;
    --warm-white: #FEFEFE;
    --white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Dancing Script', cursive;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-brown);
    background-color: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-brown);
}

.section-subtitle {
    text-align: center;
    color: var(--warm-cocoa);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-logo a {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--coral-pink);
    text-decoration: none;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral-pink);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--coral-pink);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-brown);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-pink) 100%);
    padding-top: 80px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--coral-pink);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--matcha-green);
    bottom: 10%;
    right: -5%;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--soft-matcha);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--coral-pink);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--warm-cocoa);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--coral-pink);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--coral-pink);
    border: 2px solid var(--coral-pink);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--warm-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--warm-cocoa);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 2rem;
}

.floral-decoration {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M50 200 Q 100 100, 200 150 T 350 200' stroke='%23E8A5A5' stroke-width='2' fill='none' opacity='0.3'/%3E%3Cpath d='M100 300 Q 150 200, 250 250 T 400 300' stroke='%23A8C4A2' stroke-width='2' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.logo-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-pink), var(--cream));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.about-logo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

/* Menu Section */
.menu {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral-pink), var(--matcha-green));
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card.featured {
    background: linear-gradient(135deg, white, var(--light-pink));
}

.product-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
}

.product-price {
    display: inline-block;
    background: var(--soft-matcha);
    color: var(--dark-brown);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-sizes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.size-option {
    background: var(--soft-matcha);
    color: var(--dark-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.size-option:hover {
    background: var(--matcha-green);
    transform: translateY(-1px);
}

.size-option.active {
    background: var(--matcha-green);
    color: white;
    border-color: var(--matcha-green);
}

.product-description {
    color: var(--warm-cocoa);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--coral-pink);
    background: white;
    color: var(--coral-pink);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--coral-pink);
    color: white;
    transform: scale(1.1);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.btn-add {
    background: var(--coral-pink);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add:hover {
    background: #d89595;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--warm-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral-pink);
}

.contact-info {
    position: relative;
    padding: 2rem;
}

.floral-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--soft-matcha) 0%, var(--light-pink) 100%);
    opacity: 0.2;
    border-radius: 20px;
}

.info-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.info-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.info-item {
    margin-bottom: 1rem;
    color: var(--warm-cocoa);
}

.info-item strong {
    color: var(--dark-brown);
}

.info-item a {
    color: var(--coral-pink);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

.pre-order-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.pre-order-note h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-brown);
}

.pre-order-note ol {
    margin-left: 1.5rem;
    color: var(--warm-cocoa);
}

.pre-order-note li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--warm-cocoa) 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--coral-pink);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: white;
    margin-left: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Critical mobile fixes for width and layout */
    html {
        width: 100%;
        overflow-x: hidden;
    }
    
    body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Fix all containers to prevent overflow */
    section {
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Disable ALL animations on mobile to prevent flickering */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
    }
    
    .fade-in {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .hero-content * {
        animation: none !important;
    }
    
    .product-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        animation: none !important;
    }
    
    /* Navigation fixes */
    .nav-container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero section mobile optimization */
    .hero {
        width: 100%;
        min-height: 100vh;
        padding: 100px 0 40px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    /* Hide blobs completely on mobile */
    .blob {
        display: none !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .btn {
        width: 90%;
        max-width: 250px;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        box-sizing: border-box;
    }

    /* About section mobile fixes */
    .about {
        width: 100%;
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        padding: 0;
    }
    
    .about-text {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .about-image {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    /* Menu section complete mobile overhaul */
    .menu {
        width: 100%;
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .menu-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .product-card {
        width: calc(100% - 30px);
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
        opacity: 1 !important;
    }
    
    .product-image {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-sizes {
        gap: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .size-option {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 80px;
    }

    /* Contact section mobile fixes */
    .contact {
        width: 100%;
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        padding: 0;
    }
    
    .contact-form-wrapper {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .contact-info {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .info-content {
        padding: 2rem 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Form inputs - prevent zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Footer mobile optimization */
    .footer {
        width: 100%;
        overflow: hidden;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-links {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0;
    }
    
    /* Typography adjustments for mobile */
    .section-title {
        font-size: 1.75rem;
        padding: 0;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    /* Fix any potential overflow from decorative elements */
    .floral-decoration,
    .floral-bg {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .quantity-selector {
        gap: 1rem;
    }
}