/*
Theme Name: J&W belegde broodjes
Description: One-page bestelsite voor J&W belegde broodjes. Broodjes, drankjes, reviews en bestellingen als berichttypes; alle teksten en opties via Website-instellingen.
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jenw
*/

body { margin: 0; background: #17140f; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: #e8207f; text-decoration: none; }
a:hover { color: #f5a55f; }
::selection { background: #e8207f; color: #fff; }

.jw-site { font-family: Barlow, system-ui, sans-serif; color: #f4efe6; background: #17140f; min-height: 100vh; overflow-x: clip; }

/* Hover states */
a.jw-nav-link:hover { background: rgba(244,239,230,0.09); color: #f4efe6 !important; }
.jw-pink:hover { background: #ff2d92 !important; color: #fff; }
.jw-pink-dark:hover { background: #c4136a !important; }
.jw-ghost:hover { border-color: #e8207f !important; color: #e8207f !important; }
.jw-outline:hover { border-color: #f5a55f !important; color: #f5a55f !important; }
.jw-x:hover { color: #e8207f !important; }
.jw-menu-row.jw-hov:hover { background: rgba(245,165,95,0.08); }

/* Cart lines (rendered by site.js) */
.jw-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(244,239,230,0.1); }
.jw-line-img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.jw-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.jw-line-title { font-size: 14px; line-height: 1.3; color: #f4efe6; font-weight: 600; }
.jw-line-note { font-size: 12px; line-height: 1.35; color: rgba(244,239,230,0.6); }
.jw-line-step { display: flex; align-items: center; gap: 8px; }
.jw-line-step button { width: 32px; height: 32px; border-radius: 999px; cursor: pointer; line-height: 1; padding: 0; }
.jw-line-dec { border: 1.5px solid rgba(244,239,230,0.3); background: transparent; color: #f4efe6; font-size: 17px; }
.jw-line-inc { border: none; background: #e8207f; color: #fff; font-size: 18px; }
.jw-line-qty { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; color: #f4efe6; }
.jw-line-total { font-weight: 600; font-size: 14px; color: #f5a55f; white-space: nowrap; align-self: flex-start; padding-top: 2px; }

/* Checkout form */
.jw-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: rgba(244,239,230,0.7); min-width: 0; }
.jw-input { background: rgba(0,0,0,0.35); border: 1px solid rgba(244,239,230,0.2); border-radius: 12px; padding: 13px 14px; color: #f4efe6; font-family: Barlow, sans-serif; font-size: 15px; width: 100%; }
.jw-input.is-bad { border: 1.5px solid #e8207f; }
.jw-input.is-ok { border: 1.5px solid #5cc285; }
.jw-pc-msg { margin: -6px 0 0; font-size: 13px; line-height: 1.5; color: #ff8cc0; }
.jw-pc-msg.is-ok { color: #8fdca8; }
.jw-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jw-choice { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 14px; min-height: 46px; border-radius: 12px; cursor: pointer; font-family: Barlow, sans-serif; font-size: 14px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(244,239,230,0.22); background: rgba(0,0,0,0.35); color: #f4efe6; }
.jw-choice.is-on { border: 1.5px solid #e8207f; background: #e8207f; color: #fff; }
.jw-choice--wide { grid-column: 1 / -1; }
.jw-choice--pay { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; text-align: left; padding: 13px 14px; min-height: 64px; white-space: normal; font-weight: 400; }
.jw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.jw-note-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 0; min-height: 28px; border: none; background: transparent; color: #f5a55f; font-family: Barlow, sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }
.jw-note-link.is-off { visibility: hidden; }

/* Plain pages (index.php) */
.jw-page { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 24px); font-size: 17px; line-height: 1.7; color: rgba(244,239,230,0.85); }
.jw-page h1, .jw-page h2, .jw-page h3 { font-family: 'Shantell Sans', cursive; color: #f4efe6; line-height: 1.15; }
.jw-page h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 20px; }

/* jw-mobile-tweaks */
@media (max-width: 860px) {
  .jw-cart-word { display: none !important; }
  .jw-bar button[aria-label="Winkelwagen"], .jw-bar .jw-cart-btn { padding: 11px 13px !important; gap: 7px !important; }
}
@media (max-width: 720px) {
  .jw-fab { left: 16px !important; right: 16px !important; justify-content: center !important; }
}
.jw-burger, .jw-mnav { display: none !important; }
.jw-mnav a { color: #f4efe6; }
.jw-mnav-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(244,239,230,0.1); }
.jw-mnav-link:last-child { border-bottom: none; }
.jw-mnav-link:hover, .jw-mnav-link:focus-visible { color: #f5a55f; }
.jw-mnav-link span { color: rgba(244,239,230,0.35); }
@keyframes jw-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .jw-hero-grid { display: none !important; }
  .jw-nav-link { display: none !important; }
  .jw-burger { display: inline-flex !important; }
  .jw-mnav { display: block !important; animation: jw-drop .25s cubic-bezier(.22,.8,.3,1); }
  .jw-logo { height: 78px !important; margin: -12px -4px -32px -6px !important; }
  .jw-bar { padding: 8px 10px 8px 12px !important; }
}
@keyframes jw-fab-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.jw-fab { display: flex !important; animation: jw-fab-in .28s cubic-bezier(.22,.8,.3,1); }
.jw-checkout { display: none !important; }
.jw-checkout.is-open { display: block !important; position: fixed !important; inset: 0 !important; z-index: 80 !important; max-width: none !important; margin: 0 !important; background: #17140f !important; overflow-y: auto !important; padding: 0 max(16px, calc((100vw - 1100px) / 2)) 40px !important; -webkit-overflow-scrolling: touch; }
.jw-checkout.is-open .jw-checkout-head { display: flex !important; }
@media (min-width: 721px) {
  .jw-fab { right: 24px !important; bottom: 24px !important; }
  .jw-checkout.is-open .jw-checkout-head { padding: 18px 0 !important; margin-bottom: 20px !important; }
}
@media (max-width: 380px) {
  .jw-cart-word { display: none !important; }
}
@media (max-width: 560px) {
  #aanbieding.jw-menu-row { padding: 26px 14px 18px !important; margin: 8px -10px 14px !important; border-radius: 16px !important; }
  .jw-offer-spacer { display: block !important; }
  .jw-menu-row { grid-template-columns: minmax(0, 1fr) 112px !important; grid-template-areas: 'text img' 'note img' !important; grid-template-rows: auto 1fr !important; column-gap: 14px !important; row-gap: 0 !important; padding: 20px 4px 22px !important; align-items: start !important; border-radius: 0 !important; }
  .jw-menu-row .jw-row-img { grid-area: img !important; align-self: start !important; }
  .jw-menu-row .jw-row-img img { width: 112px !important; height: 112px !important; border-radius: 14px !important; }
  .jw-menu-row .jw-row-img > span { display: none !important; }
  .jw-row-text { align-self: start !important; }
  .jw-title { font-size: 18px !important; line-height: 1.2 !important; }
  .jw-price-m { display: flex !important; font-size: 16px !important; }
  .jw-desc { font-size: 13px !important; line-height: 1.45 !important; margin-top: 6px !important; display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
  .jw-price-d { display: none !important; }
  .jw-row-act { grid-area: img !important; align-self: start !important; justify-self: end !important; margin: 94px -6px 0 0 !important; z-index: 1; }
  .jw-stepper { background: #17140f; border: 1px solid rgba(244,239,230,0.18); border-radius: 999px; padding: 3px; gap: 4px !important; box-shadow: 0 6px 16px rgba(0,0,0,0.45); }
  #aanbieding .jw-stepper { background: #fff; border-color: rgba(42,26,32,0.15); }
  .jw-stepper button { width: 36px !important; height: 36px !important; font-size: 20px !important; }
  .jw-row-note label { max-width: none !important; }
  .jw-row-note button { margin-top: 12px !important; }
  .jw-row-note { align-self: end !important; }
}

[data-reveal] { transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1); }
[data-reveal].jw-off { opacity: 0; transform: translateY(26px); }
@keyframes jw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].jw-off { opacity: 1 !important; transform: none !important; transition: none !important; }
  .jw-marquee-track { animation: none !important; }
}

/* Must stay last: beats the display !important rules above. */
[hidden] { display: none !important; }

/* Footer credit */
.jw-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 9px 10px 9px 18px; border: 1px solid rgba(244,239,230,0.16); border-radius: 999px; background: rgba(244,239,230,0.04); text-decoration: none; transform: rotate(-1deg); transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.jw-credit-q { font-family: 'Shantell Sans', cursive; font-size: 15px; color: rgba(244,239,230,0.75); }
.jw-credit-name { display: inline-flex; align-items: center; gap: 8px; background: #e8207f; color: #fff; font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.jw-credit-arrow { display: inline-block; transition: transform 0.25s ease; }
.jw-credit:hover, .jw-credit:focus-visible { transform: rotate(0deg) translateY(-2px); border-color: rgba(232,32,127,0.6); background: rgba(232,32,127,0.08); }
.jw-credit:hover .jw-credit-arrow, .jw-credit:focus-visible .jw-credit-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .jw-credit, .jw-credit-arrow { transition: none; } }

/* Cart dropdown: on small screens it spans the header bar, so it always fits. */
@media (max-width: 860px) {
  .jw-bar { position: relative; }
  .jw-cart-wrap { position: static !important; }
  #jw-cart { left: 0 !important; right: 0 !important; width: auto !important; }
}
