@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Poppins:wght@400;500;600&display=swap');

/* --- CSS Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-pink: #e19cd2;
    --main-pink-hover: #c980b8;
    --cream: #fef6f4;
    --text: #4f323b;
    --light-gray: #f9f5f8;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--cream);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--main-pink);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-pink);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 75vh;
    background: url('https://images.unsplash.com/photo-1558961363-fa8fdf82db35?q=80&w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 50, 59, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--cream);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- Magical Cursive Styling --- */
.magic-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3em; 
    color: var(--main-pink); 
    text-shadow: 0 0 10px rgba(225, 156, 210, 0.4); 
    display: inline-block;
    transform: rotate(-3deg); 
    font-weight: 700;
}

.hero-content h1 {
    line-height: 1.4;
}

.cta-btn {
    display: inline-block;
    background-color: var(--main-pink);
    color: #fef6f4;
    padding: 15px 35px;
    border-radius: 50px;
    margin-top: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-btn:hover { background-color: var(--main-pink-hover); }

/* --- Best Sellers Carousel --- */
.section-container {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar { display: none; }

.product-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0e6ef;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--main-pink);
    margin: 10px 0;
}

.qty-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-btn {
    background: var(--light-gray);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: transparent; /* FIXED: Removes the cream box */
}

.order-btn {
    width: 100%;
    background: var(--text);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.order-btn:hover { background: var(--main-pink); }

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s;
}

.gallery-item img:hover { transform: scale(1.02); }

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#cart-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffb6c1;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

#cart-sidebar {
    position: fixed;
    right: -350px;
    top: 0;
    width: 320px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    z-index: 1001;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#cart-sidebar.open { right: 0; }

footer { background: #fafafa; padding: 40px 20px; margin-top: 50px; }
.footer-container { max-width: 800px; margin: auto; }

.quote-section form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.quote-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
}

.social-links a:hover { background: var(--main-pink); }

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--main-pink);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(225, 156, 210, 0.5);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 35px; fill: white; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .product-card { flex: 0 0 85%; }
}

.site-header {
    background-color: var(--cream);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.side-links {
    flex: 1; 
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header-nav .side-links:first-child { justify-content: flex-start; }
.header-nav .side-links:last-child { justify-content: flex-end; }

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto; 
    padding: 0 30px;
}

.logo-img {
    height: 70px; 
    width: auto;
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap; 
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-pink);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;    
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    width: 100%; 
}

.main-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: 0.3s;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1 / 1; 
    position: relative; 
    overflow: hidden;
    background: #fdfdfd;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out; 
    z-index: 1;
}

.slider-img.active {
    opacity: 1;
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgba(255, 255, 255, 0.6); 
    color: #333; 
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10; 
    border-radius: 5px;
    transition: background-color 0.2s;
    user-select: none; 
    -webkit-tap-highlight-color: transparent; 
}

@media (hover: hover) {
    .slider-arrow:hover {
        background-color: rgba(255, 182, 193, 0.9); 
        color: white;
    }
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

@media (max-width: 768px) {
    .slider-arrow {
        background-color: rgba(255, 255, 255, 0.85);
        padding: 8px 12px;
        font-size: 20px;
    }
}

.category-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--main-pink);
}

.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 12px;
    padding: 20px 5%;
    background-color: var(--cream);
    position: sticky;
    top: 95px; 
    z-index: 998;
    border-bottom: 1px solid rgba(225, 156, 210, 0.2);
}

.category-nav a {
    text-decoration: none;
    color: var(--text);
    background-color: transparent;
    border: 1.5px solid var(--main-pink);
    padding: 8px 20px;
    border-radius: 50px; 
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-nav a:hover {
    background-color: var(--main-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(225, 156, 210, 0.3);
}

.catalog-hero {
    background-color: var(--main-pink);
    color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 100px 20px 60px; 
    margin: 0; 
}

.catalog-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    width: 100%;
}

.catalog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto; 
}

.product-option, .custom-note {
    width: 90%;
    display: block;
    margin: 8px auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; 
}

.newsletter-wrapper, .quote-trigger-wrapper {
    flex: 1;
    text-align: center;
}

.inline-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    background: #fafafa;
    transition: 0.3s border;
}

.submit-btn, .quote-btn {
    background: #333;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover, .quote-btn:hover { background: #555; }
.full-width { width: 100%; margin-top: 10px; }

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px); 
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active { display: flex; }

.quote-modal {
    background-image: url('img/love_bites_modal_decorated.png');
    background-size: cover;
    background-position: center;
    background-color: #ffb6c1; 
    width: 90%;
    max-width: 580px; 
    height: 100vh; 
    overflow-y: auto; 
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    text-align: left;
    border: 3px solid rgba(255, 255, 255, 0.5); 
}

.modal-header-center {
    text-align: center;
    margin-bottom: 30px;
}

.magic-font {
    font-family: 'Dancing Script', cursive; 
    color: #4a3c31; 
    font-size: 36px;
    margin: 0;
    letter-spacing: 1px;
}

.form-subtitle {
    font-family: 'Poppins', sans-serif;
    color: #6a5a4d;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 5px 0 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section {
    border: none;
    padding: 0;
    margin: 0 0 30px;
}

.form-section legend {
    font-family: 'Poppins', sans-serif;
    color: #4a3c31;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-row label {
    font-family: 'Poppins', sans-serif;
    color: #5d4a3b;
    font-weight: 500;
    width: 100px; 
    margin-right: 15px;
    text-align: right;
}

.detail-line {
    display: flex;
    align-items: center; 
    margin-bottom: 10px;
    gap: 12px;
}

.detail-line label {
    font-weight: 600; 
    color: #4a3c31;
}

.internal-options {
    display: flex;
    flex-direction: column; 
    gap: 8px;
    margin-left: 35px; 
    margin-bottom: 20px; 
}

.internal-options.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.internal-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffb6c1; 
}

.description-line, .short-answer {
    border: none;
    border-bottom: 1px solid #4a3c31; 
    background: transparent;
    padding: 2px 5px;
    margin-left: 5px;
    font-family: inherit;
    color: #333;
}

.other-opt, .type-opt, .custom-opt {
    display: flex;
    align-items: center;
    flex: 1; 
}

.request-btn {
    background: #4a3c31; 
    color: white;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-block { margin-bottom: 15px; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; 
    width: 380px;
    height: 100%;
    background-color: #FFFDF9; 
    box-shadow: -10px 0 30px rgba(93, 64, 55, 0.15); 
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 4px solid #F8D7DA; 
}

.cart-sidebar.open { right: 0; }

.cart-header {
    padding: 25px;
    background: #F8D7DA; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    color: #5D4037; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.close-cart {
    background: #FFFDF9;
    border: none;
    color: #5D4037;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #F2EBE4; 
}

.cart-footer {
    padding: 25px;
    background: #FDF8F5; 
    border-top: 2px solid #F8D7DA;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background-color: #5D4037; 
    color: #FFFDF9; 
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 64, 55, 0.4); 
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1999;
}

.cart-overlay.show { display: block; }

/* --- Consolidated Product Buttons --- */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding: 0 15px 15px;
}

.order-btn, .add-cart-btn {
    flex: 1; /* Makes buttons equal width side-by-side */
    padding: 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Primary Action: Order via WhatsApp (Dark Brown) */
.order-btn {
    background-color: var(--text);
    color: white;
}

/* Secondary Action: Add to Cart (Light Pink) */
.add-cart-btn {
    background-color: var(--main-pink);
    color: white;
}

.order-btn:hover, .add-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Consolidated Footer (Social + Newsletter + Form) --- */
.site-footer {
    background-color: var(--text); /* Restores the dark brown theme */
    color: white;
    padding: 60px 5% 30px;
    text-align: center;
    margin-top: 50px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo { 
    font-size: 1.8rem; 
    color: var(--main-pink); 
    margin-bottom: 25px; 
    font-weight: bold; 
    font-family: 'Dancing Script', cursive;
}

.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 40px; 
}

.social-links a {
    color: white;
    text-decoration: none;
    border: 1px solid var(--main-pink);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--main-pink);
}

/* Newsletter & Form Section */
.footer-actions {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.newsletter-wrapper, .quote-section {
    flex: 1;
    min-width: 300px;
}

.footer-actions h3 {
    color: var(--main-pink);
    margin-bottom: 15px;
}

.site-footer input, .site-footer textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    margin-bottom: 10px;
}

.quote-btn {
    background: var(--main-pink);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Floating Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--main-pink);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--text);
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 50%;
}

/* Sidebar Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background: white;
    z-index: 3000;
    transition: 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cart-sidebar.open {
    right: 0; /* Slides in */
}

.cart-header {
    padding: 20px;
    background: var(--main-pink);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--main-pink); 
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Individual Item Styling */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}