.product-order { border-top: 1px solid var(--line); display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; }
.cart-flying-product { position: fixed; inset: auto; z-index: 100; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 2px #11110f80); }
.cart-flying-product svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-flying-product::backdrop { background: transparent; pointer-events: none; }
.cart-arrival-puff svg { overflow: visible; stroke-width: 1; }
.cart-arrival-puff circle:not(:first-child) { fill: var(--yellow); stroke: none; }
.product-add-button.is-adding-to-cart .product-add-hover svg { opacity: 0; }
.product-order-price { font-size: 12px; font-weight: 800; }
.product-order-controls { align-items: end; display: flex; gap: 10px; }
.product-order-controls label { color: var(--muted); display: grid; flex: 1; font-size: 10px; font-weight: 700; gap: 5px; }
.product-order-controls input { background: #fff; border: 1px solid var(--line); color: var(--ink); font: inherit; min-height: 40px; min-width: 0; padding: 8px; width: 100%; }
.product-order-controls .button { align-items: center; border: 0; cursor: pointer; gap: 12px; justify-content: center; min-height: 40px; padding: 0 12px; white-space: nowrap; }
.product-order-controls .button:disabled { cursor: not-allowed; opacity: .5; }
.product-order-controls .product-add-button { display: grid; gap: 0; }
.product-add-button .product-add-default, .product-add-button .product-add-hover { grid-area: 1 / 1; font-size: inherit; line-height: 1.4; }
.product-add-button .product-add-hover { display: inline-flex; align-items: center; justify-content: center; gap: 8px; visibility: hidden; }
.product-add-hover svg { width: 20px; height: 20px; fill: none; stroke: var(--yellow); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-add-button:focus-visible .product-add-default { visibility: hidden; }
.product-add-button:focus-visible .product-add-hover { visibility: visible; }
@media (hover: hover) {
  .product-add-button:hover .product-add-default { visibility: hidden; }
  .product-add-button:hover .product-add-hover { visibility: visible; }
}
.product-unavailable { color: var(--muted); font-size: 11px; font-weight: 700; }
.shop-cart-section { background: var(--paper); }
.shop-cart-layout { display: grid; align-items: start; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 36px; }
.shop-cart-layout .checkout-form { margin-top: 0; }
.shop-cart-content { position: relative; isolation: isolate; background: radial-gradient(ellipse at 20% 10%, #ffffff09, transparent 65%), radial-gradient(ellipse at 85% 80%, #ffffff06, transparent 55%), #171918; color: #fff; border: 2px solid #fff; border-radius: 12px 10px 14px 9px; box-shadow: 0 8px 24px #11110f1a; padding: clamp(24px, 3vw, 36px); min-width: 0; }
.shop-cart-content::before { content: ''; position: absolute; inset: 7px; border: 1px solid #ffffffb3; border-radius: 7px 5px 9px 4px; pointer-events: none; z-index: -1; }
.market-label-heading { text-align: center; margin-bottom: 24px; }
.market-label-brand { margin: 0 0 12px; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.shop-cart-content h2 { font-family: 'Segoe Print', 'Bradley Hand', cursive; font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; margin: 0; }
.market-label-flourish { display: block; width: 180px; max-width: 100%; height: 16px; margin: 14px auto 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.shop-cart-content .cart-lines { border-top: 0; }
.shop-cart-content .cart-line { border-bottom-style: dashed; border-bottom-color: #ffffff66; }
.shop-cart-content .cart-line-name { font-family: 'Segoe Print', 'Bradley Hand', cursive; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-cart-content .cart-line-price { font-family: var(--serif); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-cart-content .cart-total-row { border-top: 3px double #fff; border-bottom: 0; margin-top: 6px; font-family: 'Segoe Print', 'Bradley Hand', cursive; font-size: 20px; }
.shop-cart-content .cart-total-row strong { font-family: var(--serif); font-size: 32px; font-weight: 400; font-variant-numeric: tabular-nums; }
.shop-cart-content .cart-lines, .shop-cart-content .cart-line, .shop-cart-content .cart-total-row { border-color: #fff; }
.shop-cart-content .cart-empty, .shop-cart-content .cart-line-price, .shop-cart-content .shop-status { color: #fff; }
.shop-cart-content .shop-status[data-state="error"] { color: #ffb4ab; }
.shop-cart-content .cart-line-quantity { background: #ffffff0d; border: 1px solid #ffffff40; border-radius: 8px; color: #fff; color-scheme: dark; min-height: 40px; padding: 8px 6px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; transition: background .2s ease, border-color .2s ease; }
.shop-cart-content .cart-line-quantity:hover { background: #ffffff17; border-color: #ffffff80; }
.shop-cart-content .cart-line-quantity:focus { background: #ffffff17; border-color: var(--yellow); }
.shop-cart-content .cart-remove { background: transparent; border: 0; color: #ffffffb3; font-size: 25px; transition: color .2s ease; }
.shop-cart-content .cart-remove:hover { background: transparent; color: var(--yellow); }
.shop-cart-content input:focus-visible, .shop-cart-content button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.shop-cart-heading h1 { font-size: clamp(40px, 5vw, 58px); letter-spacing: 0; margin-bottom: 18px; }
.shop-cart-heading > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 270px; }
.shop-status { color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 1.5em; }
.shop-status[data-state="error"] { color: #9b241c; }
.shop-status[data-state="success"] { color: #24633c; }
.cart-lines { border-top: 1px solid var(--ink); }
.cart-empty { color: var(--muted); font-size: 13px; padding: 18px 0; }
.cart-line { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 72px 38px; padding: 14px 0; }
.cart-line-details { min-width: 0; }
.cart-line-amount { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.cart-line-amount .cart-line-quantity { width: 78px; }
.cart-line-name { font-family: var(--heading); font-size: 18px; margin: 0; }
.cart-line-price { color: var(--muted); font-size: 11px; text-align: right; }
.cart-line-quantity { background: #fff; border: 1px solid var(--line); font: inherit; min-height: 38px; min-width: 0; padding: 6px 8px; width: 100%; }
.cart-remove { align-items: center; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; display: inline-flex; font-size: 18px; height: 38px; justify-content: center; width: 38px; }
.cart-remove:hover { background: var(--yellow); }
.cart-total-row { align-items: center; border-bottom: 1px solid var(--ink); display: flex; font-size: 13px; justify-content: space-between; padding: 18px 0; }
.cart-total-row strong { font-size: 19px; }
.checkout-form { display: grid; gap: 22px; margin-top: 24px; }
.checkout-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.checkout-actions .button { justify-content: center; gap: 12px; min-width: 0; padding: 14px 12px; letter-spacing: .04em; }
.checkout-actions + .shop-status { margin: -10px 0 0; }
.pickup-information { margin-top: 20px; }
.pickup-information > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.pickup-information .shop-status[data-state="error"] { color: #9b241c; }
.checkout-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; min-width: 0; padding: 16px 0 0; }
.checkout-form legend { font-family: var(--heading); font-size: 19px; padding: 0 12px 0 0; }
.checkout-fields { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-customer-fields { grid-template-columns: 1fr; }
.checkout-fields label { color: var(--muted); display: grid; font-size: 10px; font-weight: 800; gap: 7px; }
.checkout-fields input, .checkout-fields select { background: #fff; border: 1px solid var(--line); border-radius: 0; color: var(--ink); font: inherit; min-height: 44px; min-width: 0; padding: 9px 10px; width: 100%; }
.checkout-fields input:focus, .checkout-fields select:focus { border-color: var(--ink); outline: 2px solid var(--yellow); outline-offset: 1px; }
.checkout-button { border: 0; cursor: pointer; justify-content: space-between; justify-self: start; min-width: 205px; }
.checkout-button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.checkout-button:disabled:hover { transform: none; }
.confirmation-page { background: #fff; min-height: 100vh; }
.confirmation-main { margin: 0 auto; max-width: 760px; padding: 90px 32px; }
.confirmation-main h1 { font-size: clamp(42px, 7vw, 72px); letter-spacing: 0; line-height: 1; }
.confirmation-summary { border-top: 1px solid var(--ink); margin: 30px 0; padding-top: 20px; }
.confirmation-summary p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.confirmation-items { list-style: none; margin: 0; padding: 0; }
.confirmation-items li { border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 12px 0; }
.confirmation-total { border-top: 1px solid var(--ink); display: flex; justify-content: space-between; margin-top: 18px; padding-top: 18px; }

@media (max-width: 760px) {
  .shop-cart-layout { grid-template-columns: 1fr; }
  .shop-cart-heading > p:not(.eyebrow) { max-width: 420px; }
}

@media (max-width: 520px) {
  .product-order-controls { align-items: stretch; flex-direction: column; }
  .cart-line { gap: 8px; grid-template-columns: minmax(0, 1fr) 72px 32px; }
  .cart-remove { width: 32px; }
  .checkout-fields { grid-template-columns: 1fr; }
}
.cheeses-page .cheese-card { position: relative; }
.cheeses-page > .container { width: min(1600px, calc(100% - 64px)); }
.cheese-shop-layout { display: grid; align-items: start; gap: 32px; }
.cheese-shop-catalog { min-width: 0; }
.cart-preview[hidden] { display: none; }
.cart-preview { padding: 24px; }
@keyframes cart-preview-appear {
  from { opacity: 0; transform: translateX(16px) scale(.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .cart-preview:not([hidden]) { animation: cart-preview-appear 480ms cubic-bezier(.22, 1, .36, 1) both; }
}
.cart-preview .cart-lines { max-height: 40dvh; overflow-y: auto; scrollbar-width: thin; }
.cart-preview .cart-line { gap: 8px; grid-template-columns: minmax(0, 1fr) 72px 32px; }
.cart-preview .cart-line-name { font-size: 15px; }
.cart-preview .cart-remove { width: 32px; }
.cart-preview-link { display: flex; justify-content: space-between; gap: 12px; }
@media (min-width: 1001px) {
  .cheese-shop-layout.has-cart { grid-template-columns: minmax(0, 1fr) 340px; }
  .cheese-shop-layout.has-cart .cheese-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-preview { position: sticky; top: 110px; max-height: calc(100dvh - 130px); overflow-y: auto; }
}
@media (max-width: 1000px) {
  .cart-preview { grid-row: 1; }
}
@media (min-width: 1001px) and (max-width: 1350px) {
  .cheese-shop-layout.has-cart .product-order-controls { align-items: stretch; flex-direction: column; }
}
@media (max-width: 760px) {
  .cheeses-page > .container { width: calc(100% - 36px); }
  .cart-preview { display: none; }
}
.cheese-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-bottom: 32px; }
.cheese-filters .cheese-search { flex: 1 1 420px; min-width: 0; margin-bottom: 0; }
.pregnancy-filter { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; cursor: pointer; }
.pregnancy-filter input { accent-color: #24633c; width: 18px; height: 18px; }
.pregnancy-info { margin: 18px 0; padding: 14px; border: 1px solid #24633c33; border-radius: 8px; background: #edf5ee; }
.pregnancy-badge { display: flex; align-items: center; gap: 8px; color: #24633c; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.pregnancy-badge svg { flex-shrink: 0; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pregnancy-info > p:not(.pregnancy-badge), .pregnancy-info a { font-size: 11px; line-height: 1.6; }
.pregnancy-info a { text-decoration: underline; text-underline-offset: 3px; }
.cheese-details-trigger { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.cheese-details-trigger:hover { background: #11110f04; }
.cheese-details-trigger:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.cheeses-page .product-order { position: relative; z-index: 1; }
html.cheese-dialog-open { overflow: hidden; }
.cheese-dialog { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 52px 28px 28px; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; box-shadow: 0 24px 90px #11110f40; }
.cheese-dialog::backdrop { background: #11110f59; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cheese-dialog-close { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 26px; cursor: pointer; }
.cheese-dialog-close:hover { background: var(--yellow); }
.cheese-dialog-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cheese-dialog-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.cheese-dialog .product-visual { margin: 0; height: auto; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.cheese-dialog .product-visual img { width: 100%; height: 100%; object-fit: cover; }
.cheese-dialog .product-meta { min-width: 0; overflow-wrap: anywhere; }
.cheese-dialog .product-meta h2 { font-size: clamp(28px, 5vw, 40px); }
.cheese-dialog .product-order-controls { align-items: stretch; flex-direction: column; }
.cheese-dialog .shop-status { margin: 12px 0 0; }
.cheese-dialog .product-meta > p:last-child { max-width: none; font-size: 14px; }
@media (max-width: 520px) {
  .cheese-dialog { padding: 52px 20px 24px; }
  .cheese-dialog-content { grid-template-columns: 1fr; gap: 22px; }
  .cheese-dialog .product-visual { max-height: 32dvh; aspect-ratio: auto; }
}
