/* --- ==== VIBE TREATS CSS - MOBILE OPTIMIZED EDITION ==== --- */
/* --- CONSOLIDATED & FIXED - With Geolocation & Geocoder --- */
/* --- TikTok Embed Fixed - 2023-10-27 --- */
/* --- Mobile Responsiveness Tweaks - 2024-XX-XX --- */ /* <-- Add Date */
/* --- Location Features Added - 2024-XX-XX --- */ /* <-- Add Date */


/* --- CSS Variables (Brand Palette) --- */
:root {
    --brand-teal: #1DB9A3;
    --brand-pink: #FF3399;
    --brand-yellow: #FFF000;
    --brand-bg-light-pink: #FFF5F9;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-grey: #555555;
    --border-color: #eeeeee;
    --heading-font: 'Luckiest Guy', cursive;
    --body-font: 'Poppins', sans-serif;
    --radius-main: 12px;
    --radius-small: 6px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    --primary-color: var(--brand-teal); /* Alias for general use */
    --error-color: var(--brand-pink); /* Alias for errors */
}

/* --- Basic Reset & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}
body {
    font-family: var(--body-font);
    color: var(--text-dark);
    background-color: var(--brand-bg-light-pink);
    line-height: 1.7; /* Base line height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
body.overlay-active {
    overflow: hidden;
}
main {
    flex-grow: 1;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}
a {
    color: var(--brand-pink);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--brand-teal);
}
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    line-height: 1.2;
    letter-spacing: 1px;
}
h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--brand-teal);
    text-align: center;
    margin-bottom: 2rem;
}
p {
    margin-bottom: 1rem;
    /* Base font size inherited or can be set here */
}

/* --- Utility Classes --- */
.container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}
.dark-section {
    background-color: var(--brand-teal);
    color: var(--text-light);
}
.dark-section h2 { color: var(--text-light); }
.dark-section a { color: var(--brand-yellow); }
.dark-section a:hover { color: var(--text-light); }
.section-title { margin-bottom: 1rem; }
.section-subtitle {
    font-size: 1rem;
    color: var(--text-grey);
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.dark-section .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.highlight { color: var(--brand-pink); font-weight: 700; }
.banter { /* Kept for potential future use, but not used in current HTML */
    font-size: 0.85em;
    color: var(--text-grey);
    font-style: italic;
}

/* --- Buttons --- */
.cta-button, .button-style-primary, .button-style-secondary {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--body-font); /* Switched to body font for more button types */
    font-size: 0.95rem;
    font-weight: 600; /* Added weight */
    letter-spacing: 0.5px; /* Slightly reduced spacing */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease-out, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.4; /* Ensure text fits well */
    white-space: nowrap; /* Prevent wrapping */
}
.cta-button { /* Main actions */
    background-color: var(--brand-pink);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(255, 51, 153, 0.3);
    font-family: var(--heading-font); /* Keep heading for primary CTAs */
    letter-spacing: 1px; /* Restore spacing for heading font */
}
.button-style-primary { /* e.g., Cart button */
     background-color: var(--brand-teal);
     color: var(--text-light);
     box-shadow: 0 3px 8px rgba(29, 185, 163, 0.2);
}
.button-style-secondary { /* e.g., Find Me button */
    background-color: #f0f0f0;
    color: var(--text-dark);
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.button-style-secondary:hover:not(:disabled) {
    background-color: #e5e5e5;
    border-color: #bbb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.cta-button:hover:not(:disabled) {
    background-color: #e60073;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 51, 153, 0.4);
}
.button-style-primary:hover:not(:disabled) {
    background-color: #17a791;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(29, 185, 163, 0.3);
}
.cta-button:active:not(:disabled),
.button-style-primary:active:not(:disabled),
.button-style-secondary:active:not(:disabled) {
    transform: translateY(0) scale(1);
}
.cta-button:disabled,
.button-style-primary:disabled,
.button-style-secondary:disabled {
    background-color: #cccccc !important;
    color: #888888 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    border-color: #ccc !important;
    transform: none !important;
}
.cta-button.main-cta { /* Specific high-visibility CTA */
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(255, 240, 0, 0.4);
}
.cta-button.main-cta:hover:not(:disabled) {
    background-color: #e6d300;
    box-shadow: 0 6px 15px rgba(255, 240, 0, 0.5);
}
.small-button { /* Modifier for smaller buttons */
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-small);
}


/* --- Header --- */
.site-header {
    background-color: var(--text-light);
    padding: 0.5rem 4%;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 0.25rem 0;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-main { height: 40px; width: auto; }
.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: white;
    box-shadow: var(--shadow-medium);
    flex-direction: column;
    padding: 1rem 0;
    z-index: 899;
}
.main-nav.active { display: flex; }
.nav-link {
    font-weight: 600; color: var(--text-dark);
    margin: 0.5rem 0;
    transition: color 0.2s ease;
    display: block;
    padding: 0.75rem 5%;
    text-align: center;
    font-size: 1.1rem;
}
.nav-link:hover, .nav-link.active { color: var(--brand-pink); }
.cart-toggle-button {
    /* background-color: var(--brand-teal); color: var(--text-light); */ /* Inherits from primary style */
    padding: 8px 15px; font-weight: 600; font-size: 0.9rem;
    white-space: nowrap; border-radius: var(--radius-small);
    /* border: none; cursor: pointer; */ /* Inherits */
}
/* .cart-toggle-button:hover:not(:disabled) { background-color: #17a791; } */ /* Inherits */
.mobile-menu-toggle {
    display: block; background: none; border: none;
    font-size: 1.6rem; cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--brand-bg-light-pink) 60%, #ffddee 100%);
    padding: 1.5rem 0;
    overflow: hidden;
}
.hero-container {
    display: flex; align-items: center; gap: 1rem;
    flex-direction: column; /* Mobile stack */
}
.hero-text { flex: 1 1 100%; text-align: center; padding: 0 0.5rem; }
.hero-headline {
    /* === FIX: Adjusted clamp() for better mobile size === */
    font-size: clamp(2.8rem, 10vw, 4rem); /* Larger minimum, stronger vw scaling */
    color: var(--brand-pink); line-height: 1; margin-bottom: 0.5rem;
    transform: rotate(-2deg);
}
.hero-headline span { display: block; }
.hero-subheadline {
    font-family: var(--body-font);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--brand-teal); margin-bottom: 1rem; font-weight: 700;
}
.hero-description {
    color: var(--text-grey); margin-bottom: 1rem; font-size: 1rem;
    max-width: 90%; margin-left: auto; margin-right: auto;
}
.hero-visual { flex: 1 1 100%; text-align: center; display: flex; justify-content: center; align-items: center; }
.hero-main-image {
    border-radius: var(--radius-main); box-shadow: var(--shadow-heavy);
    width: clamp(280px, 85vw, 450px); max-width: 95%;
    transform: rotate(1deg) scale(1); transition: transform 0.3s ease;
    margin: 0 auto;
}
.hero-main-image:hover { transform: rotate(0deg) scale(1.05); }

/* --- TikTok Feature Section --- */
.tiktok-feature-section {
    padding: 2rem 0; position: relative;
    background-color: var(--brand-teal); color: var(--text-light); z-index: 1;
}
.tiktok-embed-wrapper {
    position: relative; overflow: hidden; max-width: 450px; width: 95%;
    margin: 2rem auto; box-shadow: var(--shadow-medium);
    border-radius: var(--radius-main); background-color: #000;
}
.tiktok-embed-wrapper iframe, .tiktok-embed-wrapper blockquote {
    display: block; width: 100%; border: none; margin: 0 auto;
    background: #fff; min-height: 500px; /* Let script define height */
}
.follow-link {
    margin-top: 0.5rem; margin-bottom: 0.5rem; font-size: 1.1rem;
    font-weight: 600; text-align: center; color: rgba(255, 255, 255, 0.85);
}
.dark-section .follow-link a { color: var(--brand-yellow); }
.dark-section .follow-link a:hover { color: var(--text-light); }

/* --- Product Section --- */
.product-section { padding: 2rem 0; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem; margin-top: 1rem;
}
.product-card {
    background-color: var(--text-light); border-radius: var(--radius-main);
    overflow: hidden; box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow-heavy); }
.product-image-container { background-color: #f0f0f0; position: relative; height: 160px; overflow: hidden; }
.product-main-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-main-image { transform: scale(1.05); }
.product-details { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1.1rem; color: var(--brand-pink); margin-bottom: 0.5rem; }
.product-description { color: var(--text-grey); font-size: 0.85rem; margin-bottom: 1rem; flex-grow: 1; line-height: 1.6; }
.product-price { font-weight: 800; font-size: 1.3rem; color: var(--brand-teal); margin-bottom: 1rem; }
.add-to-cart-btn { width: 100%; padding: 10px; font-size: 0.9rem; }

/* --- Info Panel Section --- */
.info-panel-section {
    padding: 2rem 0 0 0; background-image: url('cookiess.webp');
    background-size: 200% auto; background-position: center top;
    background-repeat: no-repeat; background-attachment: scroll;
    position: relative; overflow: hidden;
}
.info-panel-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; align-items: stretch; margin-bottom: 0;
    position: relative; z-index: 2; padding: 0 4%;
}
.info-panel {
    background-color: rgba(255, 255, 255, 0.95); padding: 0.75rem;
    border-radius: var(--radius-main); box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}
.info-panel-graphic { width: 100%; height: auto; border-radius: var(--radius-small); margin-bottom: 1rem; }
.panel-title { font-family: var(--heading-font); font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--brand-pink); }
.nutritional-facts-panel { border: 2px solid var(--text-dark); padding: 1.5rem 1rem; max-width: 100%; overflow-x: hidden; font-size: 0.9rem; }
.serving-info { font-size: 0.75rem; font-weight: 600; text-align: center; margin-bottom: 0.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.facts-table { margin: 0.75rem 0; font-size: 0.9rem; }
.fact-row { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dotted #ccc; }
.fact-row.header span { font-size: 0.75rem; text-transform: uppercase; color: var(--text-grey); }
.fact-row:last-child { border-bottom: 2px solid var(--text-dark); }
.fact-row span:first-child { padding-right: 0.5rem; }
.facts-footer { font-size: 0.7rem; color: var(--text-grey); text-align: center; margin-top: 0.75rem; line-height: 1.3; }
.side-panel h4 { margin-top: 1rem; margin-bottom: 0.5rem; font-weight: 700; color: var(--brand-teal); }
.side-panel ul { list-style: none; padding: 0; }
.side-panel li { font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--text-grey); }
.side-panel p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.5rem; }
.disclaimer { font-size: 0.7rem; font-style: italic; color: #888; margin-top: 0.75rem; }

/* --- Deets & Drama Below Panels --- */
.deets-drama-container { padding-top: 2rem; padding-bottom: 3rem; background-color: var(--brand-bg-light-pink); padding-left: 4%; padding-right: 4%; }
.deets-drama-container h2 { color: var(--brand-pink); margin-bottom: 2rem; }
.drama-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.drama-column { flex: 1 1 100%; text-align: left; padding: 0.5rem; background-color: #fafafa; border-radius: var(--radius-small); border: 1px solid var(--border-color); }
.drama-column h3 { font-size: 1.2rem; color: var(--brand-teal); margin-bottom: 0.5rem; border-bottom: 2px solid var(--brand-yellow); padding-bottom: 0.3rem; display: inline-block; }
.drama-column p { color: var(--text-grey); margin-bottom: 0.75rem; line-height: 1.6; font-size: 0.9rem; word-wrap: break-word; width: 100%; }
.drama-column ul { list-style: '🍪 '; padding-left: 1.2rem; margin-top: 0.5rem; }
.drama-column li { margin-bottom: 0.5rem; font-weight: 600; }
.storage-column ul { list-style: '🔒 '; }
.storage-column p { font-weight: 600; }
.ingredients-column .banter { /* Style removed from HTML, kept here just in case */ display: none; }
.ingredients-column ul { list-style: none; padding-left: 0; }
.ingredients-column li { margin-bottom: 0.5rem; font-weight: 600; }
.ingredients-column .detail { /* Style removed from HTML, kept here just in case */ display: none; }

/* --- Footer --- */
.site-footer { background-color: var(--text-dark); color: rgba(255, 255, 255, 0.7); text-align: center; padding: 2rem 2%; font-size: 0.85rem; margin-top: 0; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-tagline { font-weight: 600; color: var(--brand-teal); font-style: italic; opacity: 0.8; }
.footer-smallprint { font-style: italic; opacity: 0.8; font-size: 0.75rem; }
.admin-secret-link { display: inline-block; margin-top: 1rem; color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; opacity: 0.6; text-decoration: none; }
.admin-secret-link:hover { opacity: 1; color: var(--brand-yellow); }

/* --- Cart Sidebar & Overlay --- */
.cart-overlay, .checkout-overlay { position: fixed; inset: 0; background-color: rgba(34, 34, 34, 0.7); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.cart-overlay.active, .checkout-overlay.active { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.checkout-overlay { display: flex; justify-content: center; align-items: center; padding: 1rem; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 85%; max-width: 400px; height: 100%; background-color: white; box-shadow: -6px 0 20px rgba(0,0,0,0.15); z-index: 999; padding: 1rem 0.75rem; transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1); overflow-y: auto; display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.sidebar-title { font-family: var(--heading-font); color: var(--brand-pink); margin-bottom: 1rem; text-align: center; font-size: 1.8rem; border-bottom: 3px solid var(--brand-yellow); padding-bottom: 0.5rem; }
.close-cart-button { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #bbb; line-height: 1; transition: color 0.2s ease, transform 0.2s ease; z-index: 1000; }
.close-cart-button:hover { color: var(--brand-pink); transform: rotate(90deg); }
.cart-items-container { flex-grow: 1; margin-bottom: 1rem; }
.cart-item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { grid-row: 1 / 2; width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-small); }
.cart-item-info { grid-column: 2 / 3; grid-row: 1 / 2; }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 0.25rem; font-weight: 700; }
.cart-item-info p { font-size: 0.9rem; color: var(--text-grey); margin: 0; }
.cart-item-actions { grid-column: 1 / 3; grid-row: 2 / 3; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.cart-item-actions .item-quantity { font-weight: 700; font-size: 1rem; min-width: 20px; text-align: center; }
.action-button { background: var(--brand-teal); color: white; border: none; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 1.1rem; font-weight: bold; display: flex; justify-content: center; align-items: center; transition: background-color 0.2s ease, transform 0.1s ease; box-shadow: var(--shadow-light); position: relative; overflow: hidden; line-height: 1; }
.action-button:hover { background: #17a791; transform: scale(1.05); }
.action-button:active { transform: scale(0.95); }
.action-button.danger { background: #f0f0f0; color: var(--brand-pink); font-size: 1.1rem; width: 28px; height: 28px; margin-left: auto; }
.action-button.danger:hover { background: var(--brand-pink); color: white; }
.cart-summary-section { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.cart-total-text { font-weight: 800; font-size: 1.3rem; color: var(--brand-teal); text-align: right; margin-bottom: 1rem; }
.checkout-btn { width: 100%; padding: 12px; font-size: 1rem; background-color: var(--brand-yellow); color: var(--text-dark); box-shadow: 0 4px 10px rgba(255, 240, 0, 0.4); }
.checkout-btn:hover:not(:disabled) { background-color: #e6d300; transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 15px rgba(255, 240, 0, 0.5); }

/* --- Checkout Modal --- */
.checkout-modal { background: white; padding: 1.25rem 0.75rem; border-radius: var(--radius-main); max-width: 90vw; width: 550px; z-index: 1001; position: relative; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-medium); opacity: 0; visibility: hidden; transform: scale(0.9) translateY(20px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s 0.4s; }
.checkout-modal.active { opacity: 1; visibility: visible; transform: scale(1) translateY(0); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s; }
.modal-title { font-family: var(--heading-font); color: var(--brand-teal); margin-bottom: 1rem; text-align: center; font-size: 1.5rem; }
.close-modal-button { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #bbb; transition: color 0.2s ease, transform 0.2s ease; line-height: 1; }
.close-modal-button:hover { color: var(--brand-pink); transform: rotate(90deg); }
#checkout-form .form-group { margin-bottom: 0.8rem; }
#checkout-form label { display: block; margin-bottom: 0.25rem; font-weight: 600; font-size: 0.9rem; }
#checkout-form input, #checkout-form textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: var(--radius-small); font-family: var(--body-font); font-size: 0.95rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; background-color: #fff; }
#checkout-form textarea { resize: vertical; min-height: 80px; }
#checkout-form input:focus, #checkout-form textarea:focus { border-color: var(--brand-teal); outline: none; box-shadow: 0 0 0 3px rgba(29, 185, 163, 0.2); }
.form-hint { font-size: 0.8rem; color: var(--text-grey); display: block; margin-top: 0.3rem; }
.checkout-summary-box { background: #f8f9fa; padding: 1rem; border-radius: var(--radius-small); margin-bottom: 1.2rem; border: 1px solid #eee; }
.checkout-summary-box .summary-title { font-family: var(--heading-font); color: var(--brand-pink); font-size: 1.2rem; margin-bottom: 0.75rem; text-align: center; }
#checkout-summary { margin-bottom: 0.5rem; max-height: 120px; overflow-y: auto; border: 1px dashed var(--border-color); padding: 0.8rem; background: #fafafa; border-radius: var(--radius-small); }
#checkout-summary ul { list-style: none; padding: 0; }
#checkout-summary .item { margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; line-height: 1.4; border-bottom: 1px dotted #ccc; padding-bottom: 0.5rem; }
#checkout-summary .item:last-child { border-bottom: none; }
.total-title { text-align: right; font-size: 1.3rem; font-weight: bold; color: var(--brand-pink); margin-top: 0.75rem; margin-bottom: 0; }
.submit-btn { width: 100%; margin-top: 1.2rem; padding: 12px; font-size: 1rem; background-color: var(--brand-yellow); color: var(--text-dark); box-shadow: 0 4px 10px rgba(255, 240, 0, 0.4); }
.submit-btn:hover:not(:disabled) { background-color: #e6d300; transform: translateY(-3px) scale(1.02); box-shadow: 0 6px 15px rgba(255, 240, 0, 0.5); }
.checkout-message { margin-top: 1.2rem; text-align: center; font-weight: 600; padding: 10px; border-radius: var(--radius-small); line-height: 1.5; }
.checkout-message.success { color: #2e7d32; background-color: #e8f5e9; border: 1px solid #a5d6a7; }
.checkout-message.error { color: #c62828; background-color: #ffcdd2; border: 1px solid #ef9a9a; }

/* --- Loading & Empty States --- */
#loading-indicator, .empty-message, .error-message, .cart-empty-message { font-style: normal; color: var(--text-grey); font-weight: 600; text-align: center; padding: 2rem 1rem; font-size: 1.1rem; opacity: 0.8; }
.error-message { color: var(--brand-pink); font-weight: 700; }
.cart-empty-message { font-size: 1rem; padding: 1.5rem 1rem; text-align: center; }

/* --- Responsiveness --- */
/* Base (Mobile-First) Styles Applied Above */

/* Tablet & Smaller Desktop */
@media (min-width: 481px) {
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
    .product-image-container { height: 180px; }
    .product-name { font-size: 1.2rem; }
    .product-description { font-size: 0.9rem; }
}

/* Smaller Mobile Styles */
@media (max-width: 480px) {
    body { line-height: 1.6; } /* Slightly smaller line height for less vertical space */
    h2 { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.9rem; max-width: 95%; }
    /* Headline already adjusted via clamp */
     .hero-subheadline { font-size: clamp(1rem, 2.8vw, 1.3rem); }
    .hero-main-image { width: clamp(250px, 80vw, 350px); }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
     .product-image-container { height: 140px; }
    .product-details { padding: 0.75rem; }
    .product-name { font-size: 1rem; }
     .product-price { font-size: 1.1rem; }
     .add-to-cart-btn { font-size: 0.85rem; padding: 8px; }
    .cta-button, .button-style-primary, .button-style-secondary { padding: 8px 18px; font-size: 0.9rem; }
    .info-panel-container { padding: 0 2%; }
    .deets-drama-container { padding-left: 2%; padding-right: 2%; }
    .drama-columns { gap: 1rem; }
    .drama-column p, .side-panel li, .side-panel p { font-size: 0.9rem; } /* Slightly increase base text */
    .cart-sidebar { width: 90%; }
    .checkout-modal { max-width: 95vw; padding: 1rem 0.5rem; }
    .modal-title { font-size: 1.3rem; }
    #checkout-form label { font-size: 0.85rem; }
    #checkout-form input, #checkout-form textarea { padding: 8px; font-size: 0.9rem; }
    .site-footer { font-size: 0.8rem; }
    .tiktok-embed-wrapper { width: 95%; }
    /* Payment Sections on Mobile */
    .instapay-payment-instructions { padding: 0.75rem; }
    .instapay-payment-instructions h4 { font-size: 1.1rem; }
    .instapay-detail { font-size: 0.9rem; padding: 3px 8px; }
    .copy-button { font-size: 0.75rem; padding: 4px 8px; }
    .copyable-detail { gap: 0.5rem; justify-content: space-between; }
    .telda-payment-instructions { padding: 0.75rem; }
    .telda-payment-instructions h4 { font-size: 1.1rem; }
    .telda-username { font-size: 1rem; padding: 4px 12px; }
    .telda-payment-instructions p { font-size: 0.9rem; }
    .payment-method-options { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* Smallest Screens */
@media (max-width: 400px) {
    .container { width: 96%; }
    .header-container { padding: 0.1rem 0; }
    .logo-main { height: 35px; }
    .cart-toggle-button { padding: 6px 12px; font-size: 0.8rem; }
    /* Further reduce headline size if needed */
    .hero-headline { font-size: clamp(2.5rem, 9vw, 3.5rem); }
}


/* Desktop Styles */
@media (min-width: 769px) {
    html { font-size: 16px; }
    body { line-height: 1.7; } /* Restore base line height */
    .container { width: 95%; max-width: 1300px; padding: 0; }
    .cta-button, .button-style-primary, .button-style-secondary { padding: 12px 25px; font-size: 1rem; }
    .logo-main { height: 60px; }
    .site-header { padding: 0.5rem 2%; }
    .header-container { padding: 0; }
    .mobile-menu-toggle { display: none; }
    .main-nav { display: flex; position: static; width: auto; background: none; box-shadow: none; flex-direction: row; align-items: center; padding: 0; z-index: auto; }
    .nav-link { display: inline-block; margin: 0 0.8rem; padding: 0; text-align: left; font-size: 1rem; }
    .cart-toggle-button { padding: 10px 20px; font-size: 1rem; margin-left: 1rem; }
    .hero-container { flex-direction: row; text-align: left; gap: 3rem; padding: 4rem 0 5rem 0; }
    .hero-text { flex: 1 1 50%; padding: 0; text-align: left; }
    .hero-visual { flex: 1 1 50%; display: block; text-align: center; }
    .hero-headline { font-size: clamp(3.5rem, 6vw, 5rem); margin-bottom: 1rem; text-align: left; } /* Restore desktop clamp */
    .hero-subheadline { font-size: clamp(1.3rem, 2.5vw, 1.6rem); text-align: left; }
    .hero-description { font-size: 1.1rem; max-width: 550px; margin-left: 0; margin-right: 0; text-align: left; }
    .hero-main-image { width: 100%; max-width: 550px; transform: rotate(2deg) scale(1.02); margin: 0 auto; }
    .tiktok-feature-section { padding: 4rem 0; }
    .product-section { padding: 4rem 0; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
    .product-image-container { height: 280px; }
    .product-name { font-size: clamp(1.4rem, 2vw, 1.7rem); }
    .product-description { font-size: 0.95rem; }
    .product-price { font-size: 1.5rem; }
    .add-to-cart-btn { padding: 12px; font-size: 1rem; }
    .info-panel-section { padding: 3rem 0 0 0; background-size: cover; background-position: center center; }
    .info-panel-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; padding: 0; }
    .info-panel { padding: 1.5rem; }
    .panel-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
    .nutritional-facts-panel { grid-column: span 2; max-width: none; overflow-x: visible; font-size: 0.9rem; margin-bottom: 0; }
    .serving-info { font-size: 0.8rem; }
    .deets-drama-container { padding-top: 3rem; padding-left: 0; padding-right: 0; }
    .drama-columns { gap: 2rem; padding: 0; flex-wrap: nowrap; }
    .drama-column { flex: 1 1 50%; padding: 1.5rem; }
    .drama-column h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
    .drama-column p { font-size: 1rem; line-height: 1.8; word-wrap: normal; }
    .side-panel li, .side-panel p { font-size: 0.9rem; } /* Restore desktop base text */
    .drama-column ul { padding-left: 1.5rem; }
    .ingredients-column ul { padding-left: 0; }
    .cart-sidebar { width: 420px; padding: 1.5rem; right: -450px; }
    .cart-item { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 1rem; align-items: center; }
    .cart-item-img { grid-row: 1 / 3; grid-column: 1 / 2; width: 75px; height: 75px; }
    .cart-item-info { grid-column: 2 / 3; grid-row: 1 / 2; align-self: center; }
    .cart-item-actions { grid-column: 2 / 3; grid-row: 2 / 3; flex-direction: row; justify-content: flex-start; gap: 0.6rem; margin-top: 0.25rem; padding-left: 0; }
     .action-button.danger { margin-left: auto; }
    .action-button { width: 30px; height: 30px; font-size: 1.2rem; }
    .checkout-modal { padding: 2.5rem; max-width: 550px; max-height: 85vh; }
    .modal-title { font-size: 2.2rem; margin-bottom: 1.5rem; }
    #checkout-form .form-group { margin-bottom: 1.2rem; }
    #checkout-form label { margin-bottom: 0.5rem; font-size: 0.95rem; }
    #checkout-form input, #checkout-form textarea { padding: 12px; font-size: 1rem; }
    .section-subtitle { font-size: 1.1rem; margin-bottom: 2rem; max-width: 700px; }
    h2 { font-size: clamp(2.5rem, 5vw, 3rem); }
    .follow-link { margin-top: 1.5rem; margin-bottom: 0; }
    .payment-method-options { flex-direction: row; } /* Restore horizontal layout */

}
/* Large Desktops */
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
     .hero-headline { font-size: clamp(4rem, 6vw, 5.5rem); }
     .hero-subheadline { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
     .info-panel-container { gap: 2rem; }
}

/* --- Animation & Feedback Styles --- */
.fade-in { opacity: 0; animation: fadeInAnimation 0.6s ease-out forwards; }
@keyframes fadeInAnimation { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-load.slide-in-left { opacity: 0; transform: translateX(-50px); animation: slideInLeft 0.8s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1) forwards; }
@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }
.animate-on-load.fade-in { opacity: 0; animation: fadeInLoad 1s 0.4s ease-out forwards; }
@keyframes fadeInLoad { to { opacity: 1; } }
.animate-on-scroll { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.fade-in { transform: translateY(30px); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0) translateX(0) !important; }
.animate-on-scroll.delay-1 { transition-delay: 0.15s; }
.animate-on-scroll.delay-2 { transition-delay: 0.3s; }
.animate-on-scroll.delay-3 { transition-delay: 0.45s; }
.pulse { animation: pulseAnimation 0.5s ease-in-out; }
@keyframes pulseAnimation { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.pulse-quick { animation: pulseAnimation 0.3s ease-in-out; }
.shake-error { animation: shakeErrorAnimation 0.4s linear; }
@keyframes shakeErrorAnimation { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }
.shake-subtle { animation: shakeSubtleAnimation 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shakeSubtleAnimation { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(1px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-1px, 0, 0); } 40%, 60% { transform: translate3d(1px, 0, 0); } }
.button-style-primary::after, .cta-button::after, .action-button::after, .button-style-secondary::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); opacity: 0; border-radius: 50%; transform: scale(1) translate(-50%, -50%); transform-origin: 50% 50%; }
.button-style-secondary::after { background: rgba(0, 0, 0, 0.2); } /* Darker ripple for light button */
.button-clicked::after, .button-adding::after { animation: ripple 0.4s ease-out; }
@keyframes ripple { 0% { transform: scale(0) translate(-50%, -50%); opacity: 1; } 100% { transform: scale(15) translate(-50%, -50%); opacity: 0; } }
.button-success { background-color: #4CAF50 !important; animation: successPulse 0.5s ease; }
@keyframes successPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.button-adding { background-color: var(--brand-teal) !important; transform: scale(0.98); }
.animate-item-enter { opacity: 0; transform: translateX(20px); animation: itemEnterAnimation 0.3s ease-out forwards; }
@keyframes itemEnterAnimation { to { opacity: 1; transform: translateX(0); } }
.animate-item-exit { animation: itemExitAnimation 0.3s ease-in forwards; }
@keyframes itemExitAnimation { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.8); } }
.animate-card-enter { opacity: 0; transform: translateY(30px); animation: cardEnterAnimation 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; animation-delay: var(--animation-delay, 0s); }
@keyframes cardEnterAnimation { to { opacity: 1; transform: translateY(0); } }
.cart-toggle-button.has-items { animation: cartPulse 0.6s ease; border: 2px solid var(--brand-yellow); box-shadow: 0 0 10px var(--brand-yellow); }
@keyframes cartPulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
input.input-error, textarea.input-error { border-color: var(--error-color) !important; background-color: #fff5f9 !important; animation: shakeErrorAnimation 0.3s linear; }
input:focus.input-error, textarea:focus.input-error { box-shadow: 0 0 0 3px rgba(255, 51, 153, 0.3) !important; }
.notification { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); padding: 15px 25px; border-radius: var(--radius-main); background-color: var(--text-dark); color: var(--text-light); font-weight: 600; z-index: 10000; box-shadow: var(--shadow-heavy); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, visibility 0s 0.4s; max-width: 90%; text-align: center; }
.notification.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, visibility 0s; }
.notification-success { background-color: var(--brand-teal); }
.notification-error { background-color: #c62828; }
.notification-warn { background-color: #FFA000; color: var(--text-dark); }
.notification-info { background-color: #546E7A; }

/* --- Payment Method Sections --- */
.telda-payment-instructions { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: 1rem; border: 2px dashed var(--brand-teal); border-radius: var(--radius-small); background-color: var(--brand-bg-light-pink); text-align: center; }
.telda-payment-instructions .telda-logo { max-width: 60px; height: auto; display: block; margin: 0 auto 0.75rem auto; }
.telda-payment-instructions h4 { font-family: var(--heading-font); color: var(--brand-pink); font-size: 1.2rem; margin-bottom: 0.5rem; }
.telda-payment-instructions p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
.telda-username-wrapper { margin: 0.75rem 0; }
.telda-username { font-weight: 800; color: var(--text-dark); background-color: var(--brand-yellow); padding: 5px 15px; border-radius: 50px; font-size: 1.1rem; display: inline-block; letter-spacing: 1px; border: 1px solid rgba(0,0,0,0.1); }
.telda-note { font-size: 0.85rem; font-style: italic; color: var(--text-grey); margin-top: 1rem; }

.instapay-payment-instructions { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: 1rem; border: 2px dashed var(--brand-pink); border-radius: var(--radius-small); background-color: #fff0f9; text-align: center; }
.instapay-payment-instructions .instapay-logo { max-width: 80px; height: auto; display: block; margin: 0 auto 0.75rem auto; }
.instapay-payment-instructions h4 { font-family: var(--heading-font); color: var(--brand-teal); font-size: 1.2rem; margin-bottom: 0.5rem; }
.instapay-payment-instructions p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.75rem; }
.copyable-detail { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.copyable-detail label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0; flex-shrink: 0; color: var(--text-dark); }
.instapay-detail { font-weight: 700; background-color: #f0f0f0; padding: 4px 10px; border-radius: var(--radius-small); font-family: 'Courier New', Courier, monospace; font-size: 1rem; border: 1px solid #ccc; color: var(--text-dark); user-select: all; }
.copy-button { background-color: var(--brand-teal); color: white; border: none; padding: 5px 10px; font-size: 0.8rem; border-radius: var(--radius-small); cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; font-weight: 600; line-height: 1; }
.copy-button:hover { background-color: #17a791; transform: scale(1.05); }
.copy-button:active { transform: scale(0.98); }
.copy-button.copied { background-color: #4CAF50; }
.instapay-note { font-size: 0.85rem; font-style: italic; color: var(--text-grey); margin-top: 1rem; }

.payment-method-selection { margin-top: 1.5rem; margin-bottom: 1.5rem; padding: 1rem; background-color: #f8f9fa; border: 1px solid var(--border-color); border-radius: var(--radius-small); }
.payment-method-selection > label { font-family: var(--heading-font); color: var(--brand-pink); font-size: 1.1rem; margin-bottom: 0.75rem; display: block; text-align: center; }
.payment-method-options { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.payment-method-options div { display: flex; align-items: center; gap: 0.4rem; }
.payment-method-options input[type="radio"] { accent-color: var(--brand-pink); width: 18px; height: 18px; cursor: pointer; }
.payment-method-options label { font-weight: 600; font-size: 0.95rem; margin-bottom: 0; cursor: pointer; }
.payment-method-selection.input-error { border: 2px solid var(--error-color); background-color: #fff5f9; animation: shakeErrorAnimation 0.3s linear; }

/* --- Map Specific Styles --- */
#map-container.input-error {
  border: 2px solid var(--error-color); /* Use error color variable */
  box-shadow: 0 0 8px rgba(255, 51, 153, 0.5); /* Optional: add a glow */
}
#map-container.focus-highlight {
   outline: 3px solid var(--primary-color); /* Use primary color variable */
   outline-offset: 2px;
   transition: outline 0.2s ease-in-out;
}
#map-container {
    overflow: hidden; /* Prevents tiles spilling outside rounded corners if any */
    /* position: relative; already set in HTML */
}
/* Ensure Leaflet controls are clickable */
.leaflet-control-container {
    z-index: 1001 !important; /* Make sure zoom/geocoder buttons are above map tiles */
}
/* Style Geocoder Search */
.leaflet-control-geocoder { /* Target the container */
    z-index: 1002 !important; /* Above other controls if needed */
}
.leaflet-control-geocoder-form input { /* Target the input field */
    font-family: var(--body-font);
    border: 1px solid #ccc;
    border-radius: var(--radius-small);
    padding: 8px 10px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    width: 200px; /* Adjust width as needed */
    transition: width 0.3s ease;
}
.leaflet-control-geocoder-form input:focus {
    width: 230px; /* Expand on focus */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 185, 163, 0.2);
    outline: none;
}
.leaflet-control-geocoder-icon { /* The search icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px; /* Adjust size */
    height: 30px;
    border-radius: var(--radius-small);
}
.leaflet-control-geocoder-alternatives { /* The dropdown results */
    font-family: var(--body-font);
    font-size: 0.9rem;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-medium);
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
}
.leaflet-control-geocoder-alternatives a { /* Individual result */
    padding: 8px 12px;
    color: var(--text-dark);
}
.leaflet-control-geocoder-alternatives a:hover {
    background-color: var(--brand-bg-light-pink);
    color: var(--brand-pink);
}

/* Mobile specific payment styles already included in main mobile media query */
/* Adjust geocoder width on smaller screens */
@media (max-width: 480px) {
    .leaflet-control-geocoder-form input {
        width: 150px;
    }
     .leaflet-control-geocoder-form input:focus {
        width: 180px;
    }
}
