/* 
  Modern Vanilla CSS Design System 
  Colors: 
    Background: #FAF8F5 (Soft Cream)
    Text: #362A24 (Deep Espresso / Brown)
    Accent: #D4A373 (Warm Wheat)
    Accent Hover: #bc8f60
    Card Bg: #FFFFFF
*/

:root {
    --bg-color: #FAF8F5;
    --text-color: #561269;
    --text-light: #824f8d;
    --accent-color: #a55cd9;
    --accent-hover: #8842b8;
    --card-bg: #FFFFFF;
    --border-radius: 12px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px rgba(86, 18, 105, 0.05);
    --shadow-hover: 0 15px 40px rgba(86, 18, 105, 0.1);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: rgba(255,255,255,0.7);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

/* Payment Bar (footer) */
.payment-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.payment-label {
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.75;
    white-space: nowrap;
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.payment-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.payment-badge.square  { background: #333333; color: #fff; }
.payment-badge.zelle   { background: #6D1ED4; color: #fff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(86, 18, 105, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.logo span {
    color: var(--accent-color);
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--accent-color);
}

/* Buttons */
.cart-btn {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-btn:hover {
    background: var(--accent-color);
}

.cart-count {
    background: white;
    color: var(--text-color);
    padding: 0.1rem 0.6rem;
    border-radius: 50%;
    font-size: 0.85rem;
}

.cta-button, .primary-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 1rem;
}
.cta-button:hover, .primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.outline-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(165, 92, 217, 0.15), rgba(86, 18, 105, 0.4)), url('assets/images/sourdough_sandwich_loaf.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(165, 92, 217, 0.25) 0%, rgba(250, 248, 245, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.25rem;
    color: #F0EAD6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    text-align: left;
}

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

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, #f3eaf5, #a55cd9);
    box-shadow: var(--shadow-soft);
}

/* Menu Section */
.menu-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent-color);
    background-color: rgba(165, 92, 217, 0.1);
    border: 1px solid rgba(165, 92, 217, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    width: max-content;
    margin: 0 auto -0.5rem;
    text-align: center;
}

.category-heading {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--text-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center !important;
}

/* Animated SVG Icons */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}
@keyframes wobble {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.animated-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    flex-shrink: 0;
}
.icon-float { animation: float 3s ease-in-out infinite; }
.icon-wobble { animation: wobble 2.5s ease-in-out infinite; }
.icon-pulse { animation: pulse 2s ease-in-out infinite; }

.category-grid {
    margin-bottom: 1rem;
}

.products-grid {
    display: flex;
    flex-direction: column;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.category-slider {
    display: flex;
    flex-direction: row; /* Override .products-grid column layout */
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    padding-top: 1rem;
    scroll-snap-type: x mandatory;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f5eff7;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: calc(50vw - 130px);
    padding-right: calc(50vw - 130px);
}

@media (min-width: 1200px) {
    .category-slider {
        padding-left: calc(50% - 130px);
        padding-right: calc(50% - 130px);
    }
}

.category-slider::-webkit-scrollbar {
    height: 8px;
}
.category-slider::-webkit-scrollbar-track {
    background: #f5eff7;
    border-radius: 10px;
}
.category-slider::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.category-slider .product-card {
    min-width: 240px;
    max-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

/* Stock Badges */
.product-img {
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.stock-badge.in-stock  { background: rgba(16,185,129,0.85); color: #fff; }
.stock-badge.low-stock { background: rgba(245,158,11,0.9);  color: #fff; }
.stock-badge.sold-out  { background: rgba(100,100,100,0.85); color: #fff; }

.add-to-cart-btn.sold-out-btn {
    background: #ccc;
    color: #777;
    cursor: not-allowed;
    pointer-events: none;
}

.product-img {
    height: 180px;
    width: 100%;
    background-color: #f3eaf5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

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

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info p.product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.product-desc.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
    display: block;
    text-align: left;
}

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

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.add-to-cart-btn {
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}
footer .socials {
    margin-top: 1rem;
    color: #a3978e;
}

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

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart, .close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.cart-items {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

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

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.cart-item-price {
    font-weight: 600;
    color: var(--accent-color);
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.qty-btn {
    background: #f3eaf5;
    border: none;
    width: 24px; height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.remove-btn {
    color: #e63946;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background: var(--text-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.checkout-btn:hover:not(:disabled) {
    background: var(--accent-color);
}

.continue-shopping-btn {
    width: 100%;
    background: transparent;
    color: var(--text-color);
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: var(--transition);
}
.continue-shopping-btn:hover {
    background: #f5f5f5;
    border-color: var(--text-color);
}

@keyframes blinkBrown {
    0% { color: var(--text-color); }
    50% { color: var(--accent-color); }
    100% { color: var(--text-color); }
}

.blinking-arrow {
    display: inline-block;
    animation: blinkBrown 1.5s infinite;
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal.open {
    opacity: 1;
    visibility: visible;
}

.checkout-content {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.checkout-modal.open .checkout-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
}

.checkout-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.success-icon {
    width: 60px; height: 60px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.zelle-instructions {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px dashed var(--accent-color);
}

.zelle-handle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f3eaf5;
    border-radius: 4px;
    display: inline-block;
}

.zelle-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .about-text {
        text-align: center;
    }
    .checkout-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
    }
    .product-info, .premier-content {
        text-align: center !important;
        align-items: center;
    }
    .product-footer {
        justify-content: center !important;
        width: 100%;
        gap: 1rem;
    }
    .hero {
        padding: 8rem 1rem 4rem;
    }
    .navbar {
        padding: 0.6rem 0; /* Shrink vertical footprint */
    }
    .nav-container {
        padding: 0 1rem;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo span {
        font-size: 0.8rem;
        white-space: nowrap; /* Prevent 3-line wrap */
    }
    .nav-links {
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.85rem;
        white-space: nowrap; /* Prevent Our Story wrap */
    }
    .nav-links a.hide-mobile {
        display: none;
    }
    .cart-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        width: 70%;
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.floating-cta-inner {
    background: #0b1120;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.cta-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    width: 160px;
    transition: background 0.3s;
}
.cta-call:hover {
    background: #6a1a82;
}
.cta-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 6px 0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    width: 160px;
    transition: background 0.3s;
    white-space: nowrap;
}
.cta-order:hover {
    background: #6a1a82;
}
.cta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-speaker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e2433;
    border: 2px solid var(--accent-color);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}
.cta-speaker:hover {
    color: white;
}
}

/* ==========================================================================
   Flour Dust Particle System
   ========================================================================== */

#particle-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none; /* Let clicks pass through */
    z-index: 9999;
    overflow: hidden;
}

.flour-particle {
    position: absolute;
    bottom: -10%; /* Start slightly below screen */
    background-color: #ffffff;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: driftUp linear infinite;
    will-change: transform, opacity;
}

@keyframes driftUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: var(--max-opacity);
    }
    90% {
        opacity: var(--max-opacity);
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift-x)) scale(1.2);
        opacity: 0;
    }
}
