/* --- GLOBAL VARIABLES --- */
:root { --teal: #75C8C9; --peach: #FFA08A; --purple: #5E3A82; --cream: #FDF5E6; --coffee-brown: #3E2723; --ribbon-red: #D34E4E; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; color: var(--coffee-brown); background-color: var(--cream); line-height: 1.6; margin: 0; }

/* --- NAVIGATION (HEADER) --- */
nav { background: rgba(253, 245, 230, 0.95); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.2rem; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--coffee-brown); margin-left: 20px; font-weight: 700; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--ribbon-red); }
.menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--purple); cursor: pointer; }

/* Mobile Nav */
@media (max-width: 768px) { 
    .menu-toggle { display: block; } 
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: rgba(253, 245, 230, 0.98); flex-direction: column; padding: 1rem 0; border-top: 1px solid var(--peach); box-shadow: 0 4px 6px rgba(0,0,0,0.1); } 
    .nav-links.active { display: flex; } 
    .nav-links a { margin: 15px 0; font-size: 1.2rem; display: block; text-align: center; } 
}

/* Ecwid Cart Widget Alignment */
.ec-cart-widget { display: inline-flex !important; align-items: center; align-self: center; margin-left: 20px; transform: scale(0.9); position: relative; top: 3px; }
@media (max-width: 768px) { .ec-cart-widget { margin-left: 0; margin-right: 10px; order: 2; } }

/* --- HERO SECTION (Home) --- */
.hero { background: linear-gradient(135deg, var(--teal) 0%, var(--peach) 50%, var(--purple) 100%); min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.hero-content { background: rgba(253, 245, 230, 0.9); padding: 3rem; border-radius: 15px; max-width: 700px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: 2px solid var(--coffee-brown); }
.hero-logo { width: 285px; max-width: 100%; height: auto; border-radius: 50%; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.subtitle { font-size: 1.1rem; margin-bottom: 30px; font-weight: bold; }
.btn { display: inline-block; background-color: var(--ribbon-red); color: var(--cream); padding: 15px 30px; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.2rem; transition: transform 0.2s, background 0.2s; border: 2px solid #b03a3a; cursor: pointer; }

/* --- CONTACT PAGE STYLES --- */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1000px; margin: 4rem auto; padding: 0 20px; }
.contact-info { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.info-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--purple); margin-bottom: 1rem; }
.info-item { margin-bottom: 1.5rem; }
.info-label { font-weight: bold; color: var(--teal); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.info-text { font-size: 1.1rem; }
.payment-box { background: var(--cream); border: 2px dashed var(--peach); padding: 1.5rem; border-radius: 10px; margin-top: 2rem; }
.contact-form-wrapper { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
input, textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
button[type="submit"] { background-color: var(--purple); color: white; padding: 12px 25px; border: none; border-radius: 50px; font-weight: bold; cursor: pointer; width: 100%; transition: background 0.3s; }
@media (max-width: 768px) { .contact-container { grid-template-columns: 1fr; } }

/* --- ABOUT PAGE STYLES --- */
.page-header { background: linear-gradient(135deg, var(--teal) 0%, var(--peach) 100%); padding: 4rem 2rem; text-align: center; color: var(--coffee-brown); }
.page-title { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 10px; }
.content-container { max-width: 1400px; margin: 0 auto; padding: 3rem 2rem; background: #fff; display: flex; gap: 3rem; align-items: flex-start; }
.side-column { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.story-text { flex: 2; }
.side-img { width: 100%; height: 500px; object-fit: cover; object-position: top center; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 4px solid var(--cream); }
.highlight-box { background-color: var(--cream); border-left: 5px solid var(--purple); padding: 2rem; margin: 2rem 0; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.3rem; color: var(--purple); }
.signature { font-family: 'Dancing Script', cursive; font-size: 2rem; color: var(--ribbon-red); text-align: right; margin-top: 2rem; }
@media (max-width: 900px) { 
    .content-container { flex-direction: column; } 
    .side-column { width: 100%; } 
    .left-col { order: 1; margin-bottom: 2rem; } 
    .story-text { order: 2; } 
    .right-col { order: 3; margin-top: 2rem; } 
    .side-img { height: 350px; } 
}

/* --- FLAVOR PAGES (Shop) --- */
.header-banner { background: linear-gradient(135deg, var(--teal), var(--peach)); padding: 3rem 1rem; text-align: center; color: var(--coffee-brown); }
.flavor-nav-container { background-color: #fff; border-bottom: 1px solid #eee; padding: 1rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 2rem; position: sticky; top: 60px; z-index: 90; }
.flavor-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.flavor-link { text-decoration: none; color: var(--coffee-brown); font-weight: bold; padding: 8px 16px; border-radius: 50px; border: 1px solid #ddd; transition: all 0.2s; font-size: 0.9rem; background-color: white; white-space: nowrap; }
.flavor-link:hover { background-color: var(--cream); border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.flavor-link.active { background-color: var(--purple); color: white; border-color: var(--purple); }

/* --- PRODUCT GRIDS --- */
.best-sellers-section { padding: 3rem 0 1rem 0; background-color: #fff; text-align: center; overflow: hidden; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto 3rem; padding: 0 20px;}
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--coffee-brown); margin-bottom: 5px; }
.section-subtitle { color: var(--purple); font-weight: bold; margin-bottom: 1.5rem; font-size: 1.1rem; }

/* --- PRODUCT CARDS --- */
.top-5-grid { display: flex; overflow-x: auto; gap: 1.5rem; padding: 10px 2rem 30px 2rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; max-width: 100%; }
.product-card { min-width: 280px; max-width: 280px; scroll-snap-align: center; background: var(--cream); border: 1px solid #e0dcd0; border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
/* Override for grid pages to allow flexibility */
.product-grid .product-card { min-width: auto; max-width: none; } 

.product-image-placeholder { width: 100%; height: 200px; background-color: #ddd; display: flex; align-items: center; justify-content: center; }
.product-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.product-name, .product-info h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--purple); }
.product-info p { font-family: cursive; font-size: 1.0rem; margin-bottom: 10px; color: var(--black); }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--coffee-brown); margin-bottom: 1rem; }

/* --- OLD BUTTON STYLES (Kept for layout until you swap them) --- */
.snipcart-add-item { background: var(--teal); color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; width: 100%; margin-top: 15px; font-weight: bold; transition: background 0.2s;}
.snipcart-add-item:hover { background: #5ab1b2; }

/* --- CAROUSEL BUTTONS --- */
.carousel-wrapper { position: relative; max-width: 1200px; margin: 0 auto; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: var(--purple); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.left-btn { left: 10px; } .right-btn { right: 10px; }
@media (max-width: 768px) { .carousel-btn { display: none; } }

/* --- CATEGORY LINKS --- */
.category-nav-section { background-color: var(--cream); padding: 4rem 2rem; text-align: center; border-top: 2px dashed var(--peach); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 2rem auto 0; }
.cat-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; border: 2px solid var(--purple); padding: 2rem 1rem; border-radius: 15px; text-decoration: none; color: var(--coffee-brown); transition: all 0.3s; }
.cat-btn:hover { background: var(--purple); color: white; transform: translateY(-5px); }
.cat-icon { font-size: 3rem; margin-bottom: 10px; }

/* --- FOOTER --- */
footer { background: var(--purple); color: var(--cream); text-align: center; padding: 2rem; margin-top: 2rem; }

/* --- ECWID LOADING FIX --- */
.ec-cart-widget:empty { width: 30px; height: 30px; display: inline-block; }