/* Variables & Theme Colors based on Logo */
:root {
    /* Main brand colors extracted from Muma logo */
    --clr-primary: #b07dac;
    /* Soft Mauve / Lilac from the cake base/cherry */
    --clr-primary-light: #c89ec5;
    --clr-primary-dark: #8e5c8a;

    --clr-secondary: #3b4249;
    /* Dark charcoal from cake outline/base */
    --clr-secondary-light: #525a61;

    --clr-bg: #f7eff7;
    /* Soft lilac background inspired by the logo */
    --clr-surface: #ffffff;
    /* White for cards */

    --clr-text: #2d3136;
    --clr-text-light: #6c757d;

    /* Typography */
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Outfit', sans-serif;

    /* UI properties */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(176, 125, 172, 0.15);
    /* Tinted shadow */

    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--clr-secondary);
    line-height: 1.2;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

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

/* Typography Classes */
.hero-title {
    font-family: var(--font-heading);
    font-size: 7rem;
    color: var(--clr-primary-dark);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--clr-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    height: 1px;
    width: 40px;
    background-color: var(--clr-primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(247, 239, 247, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(176, 125, 172, 0.15);
    transition: var(--transition);
}

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

.logo-container {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-primary);
    font-weight: 700;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--clr-secondary);
    position: relative;
    padding-bottom: 5px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

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

.cart-btn {
    position: relative;
    font-size: 1.5rem;
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cart-btn:hover {
    color: var(--clr-primary);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--clr-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(25%, -25%);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: radial-gradient(circle at center, #ffffff 0%, var(--clr-bg) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--clr-secondary-light);
    margin: 0 auto 3.5rem;
    max-width: 550px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: transparent;
    color: var(--clr-primary-dark);
    padding: 1.2rem 3rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--clr-primary);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(176, 125, 172, 0.3);
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
}

/* Carousel Section */
.products-section {
    background-color: var(--clr-bg);
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    /* Space for buttons */
}

.carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 1rem 0 3rem;
    /* Space for shadow */
    scroll-behavior: smooth;
}

.carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.product-card {
    min-width: 300px;
    background-color: var(--clr-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

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

.product-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--clr-primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-secondary);
}

.add-to-cart-btn {
    background-color: var(--clr-bg);
    color: var(--clr-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(176, 125, 172, 0.2);
}

.add-to-cart-btn:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: scale(1.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--clr-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-secondary);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.carousel-btn:hover {
    color: var(--clr-primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* About Section */
.about-section {
    background-color: #f2e6f2;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    justify-content: center;
}

.info-card {
    background-color: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-left: 4px solid var(--clr-primary);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    background-color: var(--clr-bg);
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--clr-secondary);
}

.info-content p {
    color: var(--clr-text-light);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--clr-primary);
    font-size: 1.5rem;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--clr-surface);
    z-index: 1002;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-cart {
    font-size: 2rem;
    color: var(--clr-text-light);
}

.close-cart:hover {
    color: var(--clr-secondary);
    transform: rotate(90deg);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--clr-text-light);
    font-style: italic;
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--clr-primary);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: var(--clr-primary-light);
    color: white;
}

.item-qty {
    font-size: 0.9rem;
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.remove-item {
    color: #ff4757;
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.7;
}

.remove-item:hover {
    opacity: 1;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--clr-surface);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background-color: var(--clr-primary);
    color: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn:hover {
    background-color: var(--clr-secondary);
}

/* Footer */
.footer {
    background-color: var(--clr-secondary);
    color: white;
    padding: 6rem 2rem 3rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--clr-primary-light);
    font-size: 3.5rem;
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--clr-primary);
    margin: 1rem auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--clr-primary);
    box-shadow: 0 10px 20px rgba(176, 125, 172, 0.3);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--clr-secondary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    z-index: 2000;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--clr-surface);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.close-modal {
    font-size: 2rem;
    color: var(--clr-text-light);
}

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

.checkout-form .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--clr-secondary);
    font-size: 0.95rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--clr-bg);
    transition: var(--transition);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(176, 125, 172, 0.1);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
        flex-direction: column;
        align-items: flex-start; /* Aligns logo to the left */
        justify-content: center;
        gap: 0.5rem;
        position: relative;
    }

    .logo-container {
        height: 50px;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    .carousel {
        padding-left: 10vw; /* Perfect padding to allow first item to center */
        padding-right: 10vw; /* Perfect padding to allow last item to center */
        scroll-padding: 0;
    }

    .product-card {
        min-width: 80vw;
        scroll-snap-align: center; /* Snap items precisely in the center */
    }

    .footer-brand h3 {
        font-size: 2.8rem;
    }
}