/* Color Palette & Typography */
:root {
    --color-primary: #1F3D2F;
    --color-accent: #C4653B;
    --color-accent-hover: #B35A32;
    --color-background: #FAF8F5;
    --color-surface: #FFFFFF;
    --color-text: #2D2A26;
    --color-text-muted: #6B6560;
    --color-border: rgba(31, 61, 47, 0.15);
    --color-border-strong: rgba(31, 61, 47, 0.25);
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --shadow-soft: 0 4px 20px rgba(31, 61, 47, 0.08);
    --shadow-medium: 0 8px 30px rgba(31, 61, 47, 0.12);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}
* { box-sizing: border-box; }

/* Selection color */
::selection { background: rgba(196, 101, 59, 0.2); color: var(--color-text); }

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
    main { animation: fadeIn 0.4s var(--transition-smooth); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Navigation */
nav {
    background: rgba(250, 248, 245, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    transition: all 0.3s var(--transition-smooth);
}
nav.scrolled {
    background: rgba(250, 248, 245, 0.98);
    box-shadow: 0 2px 20px rgba(31, 61, 47, 0.08);
}
nav.scrolled h1 a img { height: 40px; }
nav > div { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }
nav h1 { margin: 0; }
nav h1 a { color: var(--color-primary); text-decoration: none; padding: 14px 0; display: flex; transition: all 0.3s var(--transition-smooth); }
nav h1 a img { height: 54px; width: auto; transition: height 0.3s var(--transition-smooth); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
nav ul li { position: relative; }
nav ul a {
    color: var(--color-primary);
    text-decoration: none;
    padding: 16px 20px;
    display: block;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
nav ul a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-bounce);
}
nav ul a:hover { color: var(--color-accent); }
nav ul a:hover::after { transform: scaleX(1); }

/* Main */
main { min-height: calc(100vh - 60px); max-width: 1100px; margin: 0 auto; padding: 40px 30px; }
.content-article { max-width: 720px; margin: 0 auto; }

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: 2.75em; margin-bottom: 24px; line-height: 1.1; }
h2 { font-size: 2em; margin: 36px 0 16px; line-height: 1.2; }
h3 { font-size: 1.4em; margin: 28px 0 12px; }
h4 { margin: 0 0 8px; color: var(--color-text); font-weight: 600; }
p { margin-bottom: 16px; }
a { color: var(--color-primary); transition: color 0.2s; }
a:hover { color: var(--color-accent); }
strong { color: var(--color-primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1em;
    transition: all 0.3s var(--transition-smooth);
}
.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 10px rgba(196, 101, 59, 0.2);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 101, 59, 0.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border-strong);
}
.btn-secondary:hover {
    background: var(--color-background);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Newsletter / next-batch signup band (full-bleed) */
.nl-band {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-top: 56px;
    margin-right: 0;
    margin-bottom: 48px;
    margin-left: -50vw;
    background: linear-gradient(115deg, oklch(0.30 0.052 155) 0%, oklch(0.27 0.054 156) 58%, oklch(0.235 0.05 156) 100%);
    color: oklch(0.945 0.014 100);
    overflow: hidden;
}
.nl-band::after {
    content: '';
    position: absolute;
    top: -32%;
    right: -10%;
    width: 58%;
    height: 164%;
    background: radial-gradient(ellipse at center, oklch(0.62 0.135 56 / 0.17) 0%, transparent 68%);
    pointer-events: none;
}
.nl-band-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 76px) clamp(24px, 5vw, 120px) clamp(36px, 5vw, 62px);
}
.nl-stamp {
    display: inline-block;
    color: oklch(0.68 0.135 56);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transform: rotate(-0.8deg);
    border-bottom: 1px solid oklch(0.68 0.135 56 / 0.45);
    padding: 0 2px 3px;
    margin: 0 0 24px;
}
.nl-title {
    font-family: var(--font-heading);
    color: oklch(0.975 0.014 95);
    font-size: clamp(1.7rem, 1.05rem + 2.7vw, 2.7rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    max-width: 17ch;
}
.nl-lede {
    color: oklch(0.88 0.015 100);
    font-size: clamp(1rem, 0.96rem + 0.3vw, 1.13rem);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 48ch;
}

/* Upcoming (planned) batches — calendar date stamps */
.upcoming-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 3vw, 44px);
    margin: 0 0 36px;
    padding: 0;
}
.upcoming-batch { display: flex; flex-direction: column; }
.upcoming-batch + .upcoming-batch {
    border-left: 1px solid oklch(0.945 0.014 100 / 0.15);
    padding-left: clamp(20px, 3vw, 44px);
}
.upcoming-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    color: oklch(0.975 0.014 100);
    line-height: 1.15;
}
@media (max-width: 560px) {
    .upcoming-list { flex-direction: column; gap: 16px; margin-bottom: 28px; }
    .upcoming-batch + .upcoming-batch {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid oklch(0.945 0.014 100 / 0.15);
        padding-top: 16px;
    }
}
.nl-field {
    display: flex;
    gap: 10px;
    max-width: 460px;
}
.nl-field input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1.5px solid oklch(0.975 0.014 100 / 0.22);
    border-radius: 9px;
    background: oklch(0.975 0.014 100);
    color: var(--color-text);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s var(--transition-smooth), box-shadow 0.2s var(--transition-smooth);
}
.nl-field input::placeholder { color: oklch(0.62 0.012 100 / 0.85); }
.nl-field input:focus {
    outline: none;
    border-color: oklch(0.68 0.135 56);
    box-shadow: 0 0 0 3px oklch(0.68 0.135 56 / 0.22);
}
.nl-submit { white-space: nowrap; }
.nl-submit.loading { opacity: 0.85; cursor: wait; }
.nl-msg {
    margin: 12px 0 0;
    min-height: 1.2em;
    font-size: 0.95rem;
    font-weight: 500;
    color: oklch(0.86 0.015 100);
}
.nl-msg.success { color: oklch(0.85 0.13 145); }
.nl-msg.error { color: oklch(0.8 0.13 32); }
.nl-fineprint {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: oklch(0.74 0.014 100 / 0.92);
    line-height: 1.55;
}
@media (max-width: 560px) {
    .nl-field { flex-direction: column; }
    .nl-submit { width: 100%; text-align: center; }
}

/* Newsletter / dedicated signup page (QR destination, full-bleed split) */
.nl-page {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-top: -40px;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: -50vw;
    min-height: calc(100dvh - 82px);
    background: linear-gradient(120deg, oklch(0.30 0.052 155) 0%, oklch(0.26 0.054 156) 60%, oklch(0.22 0.05 156) 100%);
    color: oklch(0.945 0.014 100);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    overflow: hidden;
}
.nl-page-photo {
    position: relative;
    overflow: hidden;
}
.nl-page-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Blend the photo into the green panel so the split reads intentional */
.nl-page-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, oklch(0.26 0.054 156 / 0.12) 0%, transparent 35%, oklch(0.26 0.054 156) 100%);
}
.nl-page-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
}
/* Warm accent glow, depth without hedging the committed green */
.nl-page-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -25%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse at center, oklch(0.62 0.135 56 / 0.16) 0%, transparent 68%);
    pointer-events: none;
}
.nl-page-panel > * { position: relative; z-index: 1; }
.nl-page-stamp {
    color: oklch(0.7 0.135 56);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transform: rotate(-0.8deg);
    border-bottom: 1px solid oklch(0.7 0.135 56 / 0.45);
    padding: 0 2px 3px;
    margin: 0 0 22px;
    align-self: flex-start;
}
.nl-page-title {
    font-family: var(--font-heading);
    color: oklch(0.975 0.014 95);
    font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    max-width: 14ch;
}
.nl-page-lede {
    color: oklch(0.88 0.015 100);
    font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 42ch;
}
.nl-page .nl-field { max-width: 460px; }
.nl-page-fineprint {
    margin: 20px 0 0;
    font-size: 0.82rem;
    color: oklch(0.74 0.014 100 / 0.92);
    line-height: 1.55;
    max-width: 42ch;
}
.nl-page-back {
    display: inline-block;
    margin-top: 36px;
    color: oklch(0.82 0.014 100);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s var(--transition-smooth);
}
.nl-page-back:hover { color: oklch(0.7 0.135 56); }
@media (max-width: 820px) {
    .nl-page {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 1fr;
        min-height: auto;
    }
    .nl-page-photo::after {
        background: linear-gradient(180deg, transparent 55%, oklch(0.26 0.054 156) 100%);
    }
    .nl-page-panel { padding: clamp(32px, 7vw, 56px) clamp(24px, 6vw, 40px) 56px; }
    .nl-page-title { max-width: 18ch; }
}
@media (max-width: 560px) {
    .nl-page { grid-template-rows: 32vh 1fr; }
}

/* Images */
img { max-width: 100%; height: auto; }
.polaroid { display: block; margin: 30px auto; padding: 15px; background: var(--color-surface); border: 1px solid var(--color-border); max-width: 80%; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.polaroid img { width: 100%; }

/* Slideshow */
.slideshow-banner { position: relative; width: 100vw; left: 50%; margin-left: -50vw; margin-top: -40px; margin-bottom: 60px; }
.slideshow-container { position: relative; width: 100%; height: 75vh; min-height: 500px; max-height: 800px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--transition-smooth); }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
    .slide img { transform: scale(1.05); animation: slowZoom 20s ease-in-out infinite alternate; }
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(31, 61, 47, 0.4) 0%, rgba(31, 61, 47, 0.2) 40%, rgba(196, 101, 59, 0.15) 100%);
}
/* Decorative organic shape */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 24px;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-content { animation: heroFadeIn 1s var(--transition-smooth) 0.2s both; }
}
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5em;
    color: white;
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.hero-content p {
    font-size: 1.4em;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.01em;
}
.hero-button {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(196, 101, 59, 0.3);
    position: relative;
    overflow: hidden;
}
.hero-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}
.hero-button:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(196, 101, 59, 0.4);
}
.hero-button:hover::before { transform: translateX(100%); }
.dots-nav { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 14px; }
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    border: 2px solid rgba(255,255,255,0.5);
}
.dot:hover { background: rgba(255,255,255,0.6); transform: scale(1.1); }
.dot.active { background: white; border-color: white; transform: scale(1.3); box-shadow: 0 0 20px rgba(255,255,255,0.5); }

/* Batch Selector */
.batch-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    padding: 6px;
    background: var(--color-surface);
    border-radius: 50px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    width: fit-content;
    position: sticky;
    top: 80px;
    z-index: 90;
}
.batch-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s var(--transition-smooth);
    white-space: nowrap;
}
.batch-tab:hover {
    color: var(--color-text);
    background: var(--color-background);
}
.batch-tab.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(31, 61, 47, 0.2);
}
.batch-tab-icon { font-size: 1.1em; }

/* Product Sections */
.product-section { margin-bottom: 72px; }
.section-header {
    margin-bottom: 36px;
    position: relative;
    padding-bottom: 20px;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    border-radius: 2px;
}
.section-header h2 { margin: 0 0 8px; font-size: 2.4em; }
.section-subtitle { color: var(--color-text-muted); margin: 0; font-size: 1.05em; }

/* Pickup slots: calendar-leaf chips under the section header */
.pickup-slots {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
}
.pickup-slot {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: var(--shadow-soft);
}
.pickup-slot-weekday {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.05em;
    line-height: 1.3;
}
.pickup-slot-date { color: var(--color-text-muted); font-size: 0.82em; letter-spacing: 0.02em; }
.pickup-slot-time { font-weight: 600; font-size: 0.92em; color: var(--color-text); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* Product Cards */
.product {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.product:hover {
    border-color: transparent;
    transform: translateY(-6px);
}
.product:hover::before { opacity: 1; }
.product-image { margin: 0; overflow: hidden; position: relative; }
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}
.product-image img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.6s var(--transition-smooth); }
.product:hover .product-image img { transform: scale(1.08); }
.product-body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.product .description { flex: 1; }
.product h4 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.3em;
    font-weight: 400;
    color: var(--color-primary);
    transition: color 0.2s;
}
.product:hover h4 { color: var(--color-accent); }

/* Staggered fade-in for product cards */
@media (prefers-reduced-motion: no-preference) {
    .products .product {
        animation: productFadeIn 0.5s var(--transition-smooth) both;
    }
    .products .product:nth-child(1) { animation-delay: 0.05s; }
    .products .product:nth-child(2) { animation-delay: 0.1s; }
    .products .product:nth-child(3) { animation-delay: 0.15s; }
    .products .product:nth-child(4) { animation-delay: 0.2s; }
    .products .product:nth-child(5) { animation-delay: 0.25s; }
    .products .product:nth-child(6) { animation-delay: 0.3s; }
    .products .product:nth-child(7) { animation-delay: 0.35s; }
    .products .product:nth-child(8) { animation-delay: 0.4s; }
}
@keyframes productFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.product .description { font-size: 0.9em; color: var(--color-text-muted); margin: 0 0 16px; line-height: 1.6; }
/* Packaging: a pictogram of the vacuum pack (pieces drawn inside, a
   lump for mince) beside its caption in words. */
.product .packaging { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.pack {
    --meat: #DDA092;
    --fat: #F6E2DA;
    position: relative;
    flex: none;
    width: 64px;
    height: 46px;
    box-sizing: border-box;
    padding: 6px 12px 6px 6px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 3px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 10px;
    background:
        linear-gradient(125deg, rgba(255,255,255,0.85) 0 22%, transparent 22% 100%),
        rgba(31, 61, 47, 0.04);
}
/* the sealed end of the bag */
.pack::after {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    right: 3px;
    width: 5px;
    border-radius: 2px;
    background: repeating-linear-gradient(to bottom, var(--color-border-strong) 0 1px, transparent 1px 3px);
}
.pack i {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--meat);
    box-shadow: inset 0 0 0 2px var(--fat);
}
.pack-one i { width: 34px; height: 24px; border-radius: 46% 54% 40% 60% / 55% 50% 50% 45%; box-shadow: inset 0 0 0 3px var(--fat); }
.pack-2 i { width: 17px; height: 26px; border-radius: 45%; }
.pack-4 i { width: 18px; height: 13px; border-radius: 4px; }
.pack-blob i {
    width: 38px;
    height: 26px;
    border-radius: 48% 52% 42% 58% / 56% 44% 60% 40%;
    box-shadow: none;
    background:
        radial-gradient(circle, var(--fat) 0 1.2px, transparent 1.6px) 0 0 / 6px 6px,
        var(--meat);
}
.pack-caption { margin: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.pack-caption b { font-weight: 600; font-size: 0.95em; color: var(--color-primary); }
.pack-caption span { font-size: 0.85em; color: var(--color-text-muted); }
.card-price { margin-top: auto; margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.kg-discount {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(196, 101, 59, 0.12);
    color: var(--color-accent);
    font-weight: 600;
}
.weight-note { margin: 8px 0 0; font-size: 0.85em; color: var(--color-text-muted); }

/* Reduced motion: globally disable all animations and transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
.price {
    font-weight: 700;
    font-size: 1.4em;
    color: var(--color-accent);
    font-family: var(--font-heading);
}
.price-per-kg { font-size: 0.85em; color: var(--color-text-muted); }
.weight { color: var(--color-text-muted); font-size: 0.9em; }
.expected-price {
    font-weight: 700;
    font-size: 1.3em;
    color: var(--color-accent);
    font-family: var(--font-heading);
    white-space: nowrap;
}
.expected-price small {
    font-family: var(--font-body);
    font-size: 0.62em;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Sold-out product */
.product.sold-out {
    opacity: 0.65;
    pointer-events: none;
}
.product.sold-out .quantity-controls {
    pointer-events: auto;
}
.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(250, 248, 245, 0.65);
    z-index: 3;
    border-radius: 16px;
}
.sold-out-badge {
    background: var(--color-text-muted);
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Live stock info (from the stock API) */
.stock-info {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
    color: var(--color-text-muted);
}
.stock-info.low {
    color: var(--color-accent);
    font-weight: 600;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
}
.qty-btn {
    width: 42px;
    height: 42px;
    border: 2px solid var(--color-primary);
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--transition-bounce);
    position: relative;
}
.qty-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}
.qty-btn:active {
    transform: scale(0.95);
}
.qty-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 61, 47, 0.3);
}
.qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.qty-btn:disabled:hover {
    background: var(--color-surface);
    color: var(--color-primary);
    transform: none;
}
.qty-unit {
    margin-left: -4px;
    font-size: 0.85em;
    color: var(--color-text-muted);
}
.qty-display {
    font-weight: 700;
    font-size: 1.3em;
    min-width: 40px;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-primary);
}
/* Animate quantity when it changes */
.qty-display.bump {
    animation: qtyBump 0.3s var(--transition-bounce);
}
@keyframes qtyBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 16px 24px;
    z-index: 100;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-bounce);
}
.cart-bar.visible { transform: translateY(0); }
.cart-bar-content { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.cart-bar-info { font-weight: 600; color: rgba(255,255,255,0.9); font-size: 1.05em; }
.cart-bar-info span { color: white; }
.cart-bar-btn {
    background: var(--color-accent);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(196, 101, 59, 0.3);
}
.cart-bar-btn:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(196, 101, 59, 0.4);
}

/* Cart Page */
.cart-page { max-width: 900px; margin: 0 auto; }
.cart-empty { text-align: center; padding: 60px 20px; }
.empty-cart-icon { font-size: 4em; margin-bottom: 16px; }
.cart-section { margin-bottom: 30px; }
.cart-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-border); }
.cart-section-header h2 { margin: 0; font-size: 1.3em; }
.pickup-info { color: var(--color-text-muted); font-size: 0.9em; }
.pickup-slots { white-space: pre-line; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px; background: var(--color-surface); border-radius: 8px; border: 1px solid var(--color-border); }
/* Track page: the ordered lines grouped per batch (one heading per
   batch instead of the batch name on every line). */
.track-batch { margin-bottom: 22px; }
.track-batch:last-of-type { margin-bottom: 0; }
.track-batch h3 { margin: 0 0 10px; font-size: 1.05em; font-weight: 700; }
.cart-item-name { font-weight: 600; }
.cart-item-price { color: var(--color-text-muted); font-size: 0.9em; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-item-subtotal { font-weight: 700; color: var(--color-accent); text-align: right; min-width: 70px; }
.cart-summary {
    margin: 36px 0;
    padding: 28px;
    background: linear-gradient(135deg, rgba(31, 61, 47, 0.03) 0%, rgba(31, 61, 47, 0.08) 100%);
    border-radius: 16px;
    border: 2px solid var(--color-primary);
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}
.cart-summary-count { color: var(--color-text-muted); margin-top: 8px; }
.cart-actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Checkout Page */
.checkout-page { max-width: 1000px; margin: 0 auto; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.checkout-left, .checkout-right { display: flex; flex-direction: column; gap: 20px; }
.checkout-summary { background: var(--color-surface); padding: 24px; border-radius: 10px; border: 1px solid var(--color-border); }
.checkout-summary h2 { margin: 0 0 16px; font-size: 1.2em; }
.summary-section { margin-bottom: 12px; }
.summary-section h3 { margin: 0 0 6px; font-size: 1em; }
.summary-items { list-style: none; padding: 0; margin: 0; }
.summary-item { display: flex; align-items: baseline; padding: 6px 0; font-size: 0.95em; }
.item-label { flex-shrink: 0; }
.item-qty { font-weight: 600; }
.item-leader { flex: 1 1 auto; margin: 0 8px; border-bottom: 1px dotted var(--color-border); transform: translateY(-4px); }
.item-price { flex-shrink: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-total { display: flex; justify-content: space-between; font-size: 1.3em; font-weight: 700; color: var(--color-primary); padding-top: 12px; margin-top: 12px; border-top: 2px solid var(--color-border); }
.edit-cart-link { display: block; text-align: center; margin-top: 16px; font-size: 0.9em; }
.checkout-section { background: var(--color-surface); padding: 24px; border-radius: 10px; border: 1px solid var(--color-border); }
.checkout-section h2 { margin: 0 0 16px; font-size: 1.2em; }
.section-description { color: var(--color-text-muted); margin-bottom: 16px; font-size: 0.95em; }
.radio-group { display: flex; flex-direction: column; gap: 12px; }
.radio-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--color-background); border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.radio-option:hover { background: rgba(31, 61, 47, 0.06); }
.radio-option input { margin-top: 4px; accent-color: var(--color-primary); }
.radio-label strong { display: block; margin-bottom: 4px; }
.radio-description { font-size: 0.9em; color: var(--color-text-muted); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95em; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--color-border-strong); border-radius: 6px; font-size: 16px; font-family: inherit; background: var(--color-surface); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(31, 61, 47, 0.1); }
.field-error { display: none; color: #c0392b; font-size: 0.85em; margin-top: 4px; }
.field-invalid { border-color: #c0392b !important; }
.checkbox-group { margin-top: 20px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; line-height: 1.4; }
.checkbox-label input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--color-primary); }
.checkbox-label span { flex: 1; }
.form-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.checkout-loading, .checkout-error { grid-column: 1 / -1; text-align: center; padding: 40px; }
.spinner { width: 40px; height: 40px; border: 4px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-error { background: #fdf2f2; border-radius: 10px; }
.error-actions { display: flex; justify-content: center; gap: 16px; margin-top: 16px; }

/* Confirmation Page */
.confirmation-page { max-width: 600px; margin: 0 auto; padding: 20px; }
.confirmation-success { text-align: center; margin-bottom: 32px; }
.success-icon { font-size: 4em; margin-bottom: 16px; }
.confirmation-success h1 { color: var(--color-primary); margin: 0 0 12px; }
.order-id { font-size: 1.1em; color: var(--color-text-muted); }
.confirmation-message { background: rgba(31, 61, 47, 0.08); padding: 24px; border-radius: 10px; margin-bottom: 32px; text-align: center; }
.confirmation-next-steps { background: var(--color-surface); padding: 28px; border-radius: 10px; margin-bottom: 32px; border: 1px solid var(--color-border); }
.confirmation-next-steps h2 { margin: 0 0 16px; font-size: 1.2em; }
.confirmation-next-steps ol { margin: 0; padding-left: 20px; }
.confirmation-next-steps li { margin-bottom: 16px; }
.confirmation-next-steps li:last-child { margin-bottom: 0; }
.confirmation-next-steps li strong { display: block; margin-bottom: 4px; }
.confirmation-next-steps li p { margin: 0; color: var(--color-text-muted); font-size: 0.95em; }
.confirmation-contact { text-align: center; margin-bottom: 32px; }
.confirmation-contact h2 { margin: 0 0 12px; font-size: 1.1em; }
.confirmation-contact p { margin: 0 0 8px; }
.confirmation-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Product Detail Page */
.product-detail { max-width: 900px; margin: 0 auto; padding: 20px; }
.breadcrumb { margin-bottom: 24px; font-size: 0.9em; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-primary); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail-image img { width: 100%; border-radius: 10px; }
.product-detail-info h1 { margin: 0 0 16px; color: var(--color-text); }
.product-detail-price { margin-bottom: 20px; }
.price-expected { display: block; font-size: 2em; font-weight: bold; color: var(--color-accent); }
.price-main { display: block; font-size: 2em; font-weight: bold; color: var(--color-accent); }
.price-weight { display: block; font-size: 0.95em; color: var(--color-text-muted); }
.product-detail-packaging { background: var(--color-background); padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9em; color: var(--color-text-muted); }
.product-detail-packaging span { display: inline-block; margin-right: 16px; }
.product-detail-description { line-height: 1.7; margin-bottom: 24px; }
.product-detail-actions { margin-top: 24px; }
.product-detail-extra { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.not-found { text-align: center; padding: 60px 20px; }
@media (max-width: 768px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Footer */
footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.9);
    padding: 64px 24px 32px;
    margin-top: 100px;
    position: relative;
}
/* Decorative wavy top border */
footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--color-primary);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,0 600,30 900,10 C1050,0 1150,15 1200,5 L1200,30 Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C300,0 600,30 900,10 C1050,0 1150,15 1200,5 L1200,30 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
}
.footer-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.footer-section h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.35em;
    margin: 0 0 20px;
    font-weight: 400;
    position: relative;
    display: inline-block;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}
.footer-section p { margin: 0 0 10px; font-size: 0.95em; line-height: 1.7; }
.footer-tagline { white-space: pre-line; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 10px; }
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}
.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}
.footer-section a:hover { color: white; }
.footer-section a:hover::after { width: 100%; }
.footer-bottom {
    max-width: 1100px;
    margin: 48px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9em;
    color: rgba(255,255,255,0.6);
}

/* POS - High Contrast White */
.pos-body { background: #fff; margin: 0; min-height: 100vh; color: #000; }
.pos-container { max-width: 1600px; margin: 0 auto; padding: 8px; height: 100vh; }
.pos-grid { display: grid; grid-template-columns: 1fr 340px; gap: 8px; align-items: start; height: 100%; }
.products-section { height: calc(100vh - 16px); overflow: hidden; display: flex; }
.product-grid { flex: 1; align-content: start; height: 100%; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; grid-auto-rows: minmax(140px, 1fr); align-items: stretch; }
.product-card { background: #fff; border: 3px solid #000; padding: 16px 10px; cursor: pointer; text-align: center; touch-action: manipulation; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.product-card:hover, .product-card:active { background: #eee; }
.product-name { font-weight: 700; margin-bottom: 6px; font-size: 1.05em; color: #000; }
.product-price { color: #000; font-weight: 700; font-size: 1.6em; }
.product-weight { color: #666; font-size: 0.9em; margin-top: 4px; }

/* Sale Panel */
.sale-panel { background: #f5f5f5; border: 3px solid #000; padding: 10px; position: sticky; top: 8px; height: calc(100vh - 16px); display: flex; flex-direction: column; }
.sale-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 3px solid #000; }
.sale-header h2 { margin: 0; font-size: 1em; color: #000; }
.header-buttons { display: flex; gap: 6px; align-items: center; }
.btn-prijslijst { font-size: 1.2em; text-decoration: none; padding: 4px; }
.btn-new-sale { background: #c00; color: white; border: none; padding: 8px 10px; font-weight: 700; cursor: pointer; font-size: 0.85em; }
.sale-items { min-height: 60px; margin-bottom: 8px; overflow: auto; flex: 1; border-bottom: 2px solid #ccc; padding-bottom: 6px; }
.empty-sale { color: #666; text-align: center; padding: 18px 8px; }
.sale-item { padding: 8px 0; border-bottom: 2px solid #ccc; }
.sale-item-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.sale-item-name { font-weight: 600; color: #000; font-size: 1em; }
.sale-item-details { display: flex; gap: 6px; align-items: center; font-size: 0.9em; color: #666; }
.sale-item-quantity { min-width: 50px; }
.sale-item-price { color: #666; }
.sale-item-subtotal { font-weight: 700; color: #000; margin-left: auto; }
.btn-remove { background: #c00; border: none; color: #fff; cursor: pointer; font-size: 1.1em; padding: 6px 10px; font-weight: 700; }
.sale-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.4em; font-weight: 700; color: #000; padding: 10px 0; border-top: 4px solid #000; margin-top: 6px; }
.sale-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.btn-payment, .btn-print { padding: 14px; border: none; font-size: 1em; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-payment { background: #000; color: #fff; }
.btn-print { background: #666; color: #fff; }

/* POS Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 1000; }
.modal.active { display: flex; }
.modal-content { background: #fff; border: 4px solid #000; padding: 24px; width: 90%; max-width: 340px; }
.modal-content h3 { margin: 0 0 8px; color: #000; font-size: 1.4em; }
.modal-content p { margin: 0 0 16px; color: #666; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #000; }
.input-group input { width: 100%; padding: 16px; border: 3px solid #000; background: #fff; color: #000; font-size: 2em; text-align: center; font-family: monospace; }
.input-group input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.2); }
.modal-subtotal { text-align: center; font-size: 1.5em; font-weight: 700; color: #000; margin: 16px 0; padding: 12px; background: #f5f5f5; border: 3px solid #000; }
.modal-buttons { display: flex; gap: 10px; }
.modal-buttons button { flex: 1; padding: 18px; border: none; font-size: 1.1em; font-weight: 700; cursor: pointer; }
.btn-cancel { background: #ccc; color: #000; }
.btn-add { background: #000; color: #fff; }

/* Payment Modal */
.payment-modal .modal-content { max-width: 380px; text-align: center; position: relative; }
.btn-close-payment { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.8em; cursor: pointer; color: #666; }
.payment-buttons { margin-top: 12px; }
.btn-payment-done { width: 100%; padding: 18px; background: #000; color: #fff; border: none; font-size: 1.2em; font-weight: 700; cursor: pointer; }

/* Label Modal */
.label-modal .modal-content { max-width: 350px; position: relative; }
.btn-close-label { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.8em; cursor: pointer; color: #666; }
.label-form { margin: 16px 0; }
.label-field { margin-bottom: 12px; }
.label-field label { display: block; margin-bottom: 4px; font-weight: 600; color: #333; }
.label-field span { font-size: 1.1em; color: #000; }
.label-field input { width: 100%; padding: 10px; border: 2px solid #000; font-size: 1em; }
.label-buttons { margin-top: 16px; }
.btn-print-label { width: 100%; padding: 16px; background: #000; color: #fff; border: none; font-size: 1.1em; font-weight: 700; cursor: pointer; }

/* Label Print (hidden, used for browser print fallback) */
.label-print { display: none; }

/* Receipt (hidden, for printing) */
@media print {
  /* Label printing (62x29mm) */
  body.printing-label * { visibility: hidden; }
  body.printing-label .label-print, body.printing-label .label-print * { visibility: visible; }
  body.printing-label .label-print { display: block; position: absolute; left: 0; top: 0; width: 62mm; height: 29mm; padding: 2mm; font-family: Arial, sans-serif; font-size: 7pt; line-height: 1.2; color: #000; overflow: hidden; }
  .label-content { height: 100%; display: flex; flex-direction: column; }
  .label-header { text-align: center; margin-bottom: 1mm; }
  .label-header img { height: 5mm; width: auto; }
  .label-product { font-weight: bold; font-size: 9pt; text-align: center; margin-bottom: 1mm; }
  .label-price { font-weight: bold; font-size: 8pt; text-align: center; margin-bottom: 1mm; }
  .label-info { font-size: 6pt; margin-bottom: 1mm; flex: 1; overflow: hidden; }
  .label-meta { display: flex; justify-content: space-between; font-size: 6pt; color: #333; }
  .label-storage { font-size: 6pt; font-style: italic; margin-top: 1mm; }
}

/* Mobile */
@media (max-width: 768px) {
  nav > div { flex-direction: column; padding: 0 15px; }
  nav h1 a { padding: 10px 0; }
  nav h1 a img { height: 42px; }
  nav.scrolled h1 a img { height: 36px; }
  nav ul { width: 100%; justify-content: space-around; flex-wrap: wrap; }
  nav ul a { padding: 10px 12px; font-size: 0.9em; }
  nav ul a::after { display: none; }
  main { padding: 30px 16px; }
  h1 { font-size: 2.2em; }
  h2 { font-size: 1.6em; }
  .slideshow-container { height: 60vh; min-height: 350px; }
  .hero-content h1 { font-size: 2.4em; }
  .hero-content p { font-size: 1.05em; }
  .hero-button { padding: 14px 28px; font-size: 1em; }
  .batch-selector {
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
    top: 115px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
  }
  .batch-tab { padding: 10px 20px; font-size: 0.9em; }
  .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .product { border-radius: 12px; }
  .product-body { padding: 14px 14px 12px; }
  .product h4 { font-size: 1.1em; }
  .product-image img { height: 140px; }
  .quantity-controls { padding: 12px 14px; gap: 12px; }
  .qty-btn { width: 38px; height: 38px; }
  .cart-bar { padding: 14px 16px; }
  .cart-bar-content { flex-direction: column; gap: 12px; }
  .cart-bar-btn { width: 100%; text-align: center; }
  .cart-item { grid-template-columns: 1fr; gap: 10px; }
  .cart-item-subtotal { text-align: left; }
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; text-align: center; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; text-align: center; }
  footer { padding: 48px 20px 28px; margin-top: 60px; }
  footer::before { top: -20px; height: 20px; }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .footer-section h3::after { left: 50%; transform: translateX(-50%); }
  .pos-grid { grid-template-columns: 1fr; }
  .sale-panel { position: static; }
}

@media (max-width: 480px) {
  main { padding: 20px 12px; }
  h1 { font-size: 1.9em; }
  .hero-content h1 { font-size: 2em; }
  .hero-content p { font-size: 0.95em; margin-bottom: 24px; }
  .hero-button { padding: 12px 24px; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .product { border-radius: 10px; }
  .product-body { padding: 14px 14px 10px; }
  .product .description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .product-image img { height: 160px; }
  .quantity-controls { padding: 10px 14px; }
  .section-header h2 { font-size: 1.6em; }
}

/* POS Tablet (landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
  .pos-grid { grid-template-columns: 1fr 280px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* POS Mobile/Tablet Portrait */
@media (max-width: 768px) {
  .pos-container { padding: 6px; height: auto; }
  .pos-grid { grid-template-columns: 1fr; height: auto; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .product-card { padding: 10px 6px; }
  .product-name { font-size: 0.9em; }
  .product-price { font-size: 1.3em; }
  .sale-panel { position: fixed; bottom: 0; left: 0; right: 0; max-height: 45vh; overflow-y: auto; z-index: 100; border-top: 4px solid #000; height: auto; }
  .products-section { padding-bottom: 220px; height: auto; }
}
