:root {
    --bg-cream: #FDF0D5;
    --primary-orange: #FF9F1C;
    --accent-teal: #2EC4B6;
    --soft-red: #FFBFB7;
    --dark-text: #333333;
    --white: #ffffff;

    /* Mapping old vars to new palette for compat */
    --primary: var(--primary-orange);
    --accent: var(--accent-teal);
    --bg: var(--bg-cream);
    --text: var(--dark-text);
    --danger: var(--soft-red);
    --success: #2ecc71;

    --heading-font: 'Fredoka One', cursive;
    --body-font: 'Quicksand', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-cream);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Shapes */
.shape {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background-color: var(--primary-orange);
    border-radius: 50%;
}

.shape-2 {
    bottom: -5%;
    right: -5%;
    width: 300px;
    height: 300px;
    background-color: var(--soft-red);
    border-radius: 40% 60% 70% 30%;
}

/* Top Bar */
.top-bar {
    background-color: var(--soft-red);
    color: var(--dark-text);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--body-font);
    position: relative;
    z-index: 1001;
    /* Above nav */
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 240, 213, 0.9);
    backdrop-filter: blur(5px);
}

.logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-select {
    padding: 8px;
    border-radius: 20px;
    border: 2px solid var(--primary-orange);
    background: var(--white);
    font-family: var(--body-font);
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.cart-btn {
    background-color: var(--accent-teal);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(46, 196, 182, 0.3);
}

.cart-btn:hover {
    transform: translateY(-2px);
    background-color: #25a498;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    min-height: 70vh;
}

.hero-image {
    flex: 1;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* transition handled by script */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    /* For fallback if JS doesnt set bg */
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.hero-content {
    flex: 1;
    padding-left: 50px;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 100px;
    line-height: 0.9;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.hero-content h2 {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--dark-text);
    font-family: var(--body-font);
    font-weight: 700;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
    opacity: 0.8;
}

.buy-now,
.btn {
    background-color: var(--dark-text);
    color: white;
    padding: 12px 35px;
    border-radius: 25px;
    /* Rounded pill */
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.buy-now:hover,
.btn:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.4);
}

.btn.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

.btn.small-btn {
    padding: 8px 20px;
    font-size: 12px;
}

.btn.success-btn {
    background-color: var(--accent-teal);
}

.app-btn-danger {
    color: #e74c3c;
    background: none;
    border: 1px solid #e74c3c;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
}

/* Grid */
.container {
    padding: 60px 10%;
}

.section-title {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 3rem;
    color: var(--dark-text);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: var(--accent-teal);
    margin: 10px auto 0;
    border-radius: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 35px rgba(255, 159, 28, 0.15);
}

.img-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
}

.card h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.price {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 4px solid var(--bg-cream);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--soft-red);
    cursor: pointer;
    line-height: 0.5;
}

/* Forms */
input,
select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--body-font);
    outline: none;
    transition: 0.3s;
}

input:focus,
select:focus {
    border-color: var(--accent-teal);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Cart Specifics */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg-cream);
    color: var(--dark-text);
    font-weight: bold;
    cursor: pointer;
}

.qty-btn:hover {
    background: var(--primary-orange);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    /* Simplified for mobile as per ref snippet */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 60px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}