:root {
    /* Color Palette */
    --primary-pink: #FCE4EC;
    --secondary-pink: #F8BBD0;
    --accent-pink: #F06292;
    --cream: #FFFBF0;
    --gold: #D4AF37;
    --gold-light: #F9E79F;
    --deep-brown: #4E342E;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--deep-brown);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(212, 175, 55, 0.2));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-pink);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--deep-brown);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--deep-brown);
    opacity: 0.9;
}

.btn-primary {
    background: var(--gold);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-gold);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--deep-brown);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cake-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.btn-add:hover {
    background: var(--accent-pink) !important;
    color: white !important;
    transform: scale(1.02);
}

/* Page Views */
.view {
    padding: 100px 0;
    min-height: 80vh;
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Footer */
footer {
    background: var(--primary-pink);
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--deep-brown);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--deep-brown);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--deep-brown);
        background: none;
        margin-left: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 2000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--gold);
    color: var(--deep-brown);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 350px;
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.removing {
    animation: slideOutRight 0.5s forwards;
}

/* Ensure cake images are not cropped on smaller screens */
.cake-card img,
.featured-section img,
.about-grid img,
.blogs img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.toast i {
    font-size: 1.2rem;
    color: var(--gold);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive Grids */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 992px) {
    .cart-grid, .about-grid, .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-form {
        width: 100%;
    }
}
