:root {
    /* Pastry Palette - Imperial Purple Theme */
    /* Primary: Deep Royal Purple (Matching Logo) */
    --primary-color: #7B2CBF;
    --primary-dark: #5A189A;

    /* Secondary: Warm Gold (Complementary) */
    --secondary-color: #FFB703;

    /* Accent: Vibrant Pink */
    --accent-color: #F72585;

    /* Text Colors */
    --text-dark: #240046;
    /* Deep Purple Black */
    --text-light: #5a5a5a;

    /* Backgrounds */
    --bg-light: #F8F7FF;
    /* Light Lavender */
    --bg-pink-light: #F3E5F5;
    /* Soft Purple Tint */
    --bg-white: #FFFFFF;
    --bg-dark: #10002B;
    /* Deepest Purple */
    /* Dark Coffee Bean */

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows (Warm tinted) */
    --shadow-sm: 0 2px 4px rgba(230, 57, 70, 0.1);
    --shadow-md: 0 4px 6px rgba(230, 57, 70, 0.15);
    --shadow-lg: 0 10px 15px rgba(230, 57, 70, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg-pink-light) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: var(--font-main);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-pink-light);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo .dot {
    color: var(--primary-color);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--bg-white);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: #FFD700;
    /* Premium Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
    color: #FFD700;
    /* Premium Gold */
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: #FFD700;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Menu Section */
.menu-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-pink-light);
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

.category-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 500;
    transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

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

.menu-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.menu-item-image {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.menu-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.menu-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.menu-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: auto;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--spacing-md);
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Logo Styles */
.logo-container {
    display: block;
    width: 120px;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Menu Item Actions */
.menu-item-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--bg-pink-light);
    padding: 0.2rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
}

.btn-qty {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    line-height: 1;
}

.btn-qty:hover {
    background-color: var(--primary-dark);
}

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

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    transition: var(--transition);
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* Above everything */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.order-summary-box {
    background-color: var(--bg-pink-light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.order-summary-list {
    margin: 1rem 0;
    max-height: 150px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 0.5rem;
}

.summary-item-details {
    display: flex;
    flex-direction: column;
}

.summary-item-name {
    font-weight: 500;
}

.summary-item-price {
    font-size: 0.85rem;
    color: #666;
}

.modal-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    padding: 2px;
    border-radius: 15px;
    border: 1px solid #ddd;
}

.btn-modal-qty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.btn-modal-qty:hover {
    background-color: var(--primary-dark);
}

.modal-qty-display {
    font-weight: 600;
    min-width: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
    border-top: 2px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Order Form */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
}