/* A cart and order form on the same paper as the PIKO collection. */
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cart { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid var(--ink); border-radius: 4px; }
.header-cart:hover { background: var(--lilac); }
.header-cart svg { width: 19px; height: 19px; }
.header-cart__count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 50%; background: var(--yellow); font-size: 10px; }
.product-selection { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin: 17px 0 0; font-size: 12px; line-height: 1.6; }
.product-sku { margin: 9px 0 0; color: var(--muted); font-family: "Manrope", sans-serif; font-size: 10px; line-height: 1.6; letter-spacing: .025em; }
.product-selection .product-sku { margin: 0; }
.category-card__order { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-top: 18px; }
.category-card__order .hero__btn { white-space: nowrap; }
.category-card__order .product-selection { min-width: 0; flex-direction: column; gap: 3px; margin: 0; }
.palette-card--photo:not(.palette-card--interior) { display: flex; flex-direction: column; }
.palette-card--photo:not(.palette-card--interior) .palette-card__name { flex: 1; font-size: 12px; }
.palette-card__add { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 10px; white-space: nowrap; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 600; }
.palette-card__add:hover { background: var(--yellow); }
[data-cart-add]:disabled { opacity: .6; cursor: wait; }
.cart-toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(540px, calc(100% - 40px)); padding: 18px 22px; border: 1px solid var(--ink); border-top: 4px solid var(--yellow); border-radius: 4px; background: var(--paper); box-shadow: 0 8px 30px rgb(41 40 32 / 15%); font-size: 12px; line-height: 1.6; }
.cart-toast a { flex: 0 0 auto; font-weight: 700; }

/* Compact checkout: keep the products and contact form visible together. */
.checkout { width: var(--page-width); margin: 0 auto; padding: 25px 0 56px; }
.checkout__head { margin-bottom: 24px; }
.checkout__title { margin: 0 0 9px; font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; }
.checkout__lead { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.checkout__layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .9fr); align-items: start; gap: 32px; }
.checkout-cart { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }
.checkout-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.checkout-cart__head h2, .checkout-details h2 { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.checkout-cart__head h2 { display: flex; align-items: center; gap: 9px; }
.checkout-cart__head a { flex-shrink: 0; font-size: 11px; }
.checkout-cart__count { display: inline-grid; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 500; }
.checkout-cart__items { max-height: clamp(180px, calc(100svh - 470px), 432px); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #c7bdad transparent; }
.checkout-cart__items:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 9px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item__image-link, .cart-item > .cart-item__image { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.cart-item__image-link { display: block; border-radius: 5px; overflow: hidden; }
.cart-item__image { display: block; width: 88px; height: 88px; object-fit: cover; background: #e8dfd5; border-radius: 5px; }
.cart-item__info { grid-column: 2; grid-row: 1; min-width: 0; }
.cart-item__title { display: inline-block; font-size: 14px; line-height: 1.45; font-weight: 600; text-decoration: none; }
.cart-item__title:hover { text-decoration: underline; }
.cart-item__color { margin: 5px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.cart-item__unit-price { margin: 5px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.cart-item__actions { display: flex; grid-column: 2 / -1; grid-row: 2; align-items: center; gap: 18px; }
.cart-item__quantity { display: inline-flex; align-items: center; border: 1px solid #c5bcaf; border-radius: 4px; overflow: hidden; }
.cart-item__quantity button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 18px; }
.cart-item__quantity button:hover { background: var(--yellow); }
.cart-item__quantity button:disabled { opacity: .35; cursor: default; }
.cart-item__quantity output { min-width: 24px; text-align: center; font-size: 12px; }
.cart-item__remove { min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.cart-item__remove:hover { color: var(--ink); }
.cart-item__price { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; padding-top: 1px; font-size: 16px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.checkout-cart__total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 13px; line-height: 1.5; }
.checkout-cart__total strong { white-space: nowrap; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.checkout-cart__delivery { max-width: 48ch; margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.checkout-details { min-width: 0; padding: 2px 0 0; }
.checkout-details h2 { margin-bottom: 18px; }
.checkout-form { display: grid; gap: 13px; }
.checkout-form__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(192px, 1.2fr); align-items: start; gap: 12px; }
.checkout-field { display: flex; flex-wrap: wrap; align-content: start; align-items: baseline; gap: 0 4px; min-width: 0; color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.5; }
.checkout-field input, .checkout-field textarea { flex: 1 0 100%; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 11px 12px; border: 1px solid #b1a89a; border-radius: 4px; background: #fffdf9; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 400; line-height: 1.5; }
.checkout-phone { display: flex; flex: 1 0 100%; align-items: stretch; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; border: 1px solid #b1a89a; border-radius: 4px; background: #fffdf9; }
.checkout-phone__prefix { display: flex; flex: 0 0 40px; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-radius: 3px 0 0 3px; background: #eee9dc; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; user-select: none; }
.checkout-field .checkout-phone input { flex: 1 1 auto; width: 0; min-height: 42px; margin: 0; padding-inline: 9px; border: 0; border-radius: 0 3px 3px 0; font-variant-numeric: tabular-nums; }
.checkout-phone:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.checkout-field .checkout-phone input:focus-visible { outline: none; }
.checkout-field__error { flex: 1 0 100%; margin-top: 5px; color: #7d2c47; font-size: 11px; font-weight: 500; line-height: 1.5; }
.checkout-field input[aria-invalid="true"], .checkout-phone.is-invalid { border-color: #8c3552; }
.checkout-phone.is-invalid:focus-within, .checkout-field input[aria-invalid="true"]:focus-visible { outline-color: #8c3552; }
.checkout-field textarea { resize: vertical; min-height: 76px; }
.checkout-field input::placeholder, .checkout-field textarea::placeholder { color: #766e64; opacity: 1; font-size: 12px; }
.checkout-field input:focus-visible, .checkout-field textarea:focus-visible, .checkout-consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.checkout-comment summary { width: fit-content; min-height: 32px; padding: 6px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.checkout-comment[open] summary { color: var(--ink); }
.checkout-consent label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.65; cursor: pointer; }
.checkout-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.checkout-policy { display: inline-block; min-height: 30px; margin-left: 27px; padding: 5px 0; border: 0; background: transparent; color: var(--ink); font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-submit { width: 100%; min-height: 48px; font-size: 13px; }
.checkout-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.checkout-form__note { margin: -4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.checkout-error { margin: 0; padding: 12px 14px; border: 1px solid #8c3552; border-left: 4px solid #8c3552; border-radius: 4px; color: #7d2c47; font-size: 12px; line-height: 1.6; }
.checkout-message { padding: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.checkout-empty { max-width: 580px; padding: 30px 0; }
.checkout-empty__shape { display: block; width: 76px; height: 38px; margin-bottom: 24px; border: 1px solid var(--ink); border-radius: 76px 76px 0 0; background: var(--lilac); }
.checkout-empty h2 { margin: 0 0 16px; font-size: 38px; }
.checkout-empty p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.order-thanks { position: relative; width: var(--page-width); max-width: 880px; margin: 0 auto; padding: 55px 0 86px; text-align: center; }
.order-thanks__mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 28px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 34px; }
.order-thanks h1 { margin: 0 0 24px; font-size: clamp(56px, 7.2vw, 90px); }
.order-thanks__number { margin: 0 0 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-thanks__text { max-width: 51ch; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.85; }
.order-thanks__telegram { position: relative; max-width: 660px; margin: 44px auto 27px; padding: 36px 34px 40px; border: 1px solid var(--ink); border-top: 5px solid var(--blue); border-radius: 4px; }
.order-thanks__telegram::before { content: ""; position: absolute; right: -14px; top: -16px; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: var(--pink); }
.order-thanks__telegram h2 { margin: 0 0 18px; font-size: 40px; }
.order-thanks__telegram p { max-width: 48ch; margin: 0 auto 26px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.order-thanks__button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 14px 24px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; text-decoration: none; }
.order-thanks__button:hover { background: var(--blue); color: var(--ink); }
.order-thanks__button svg { width: 21px; height: 21px; }
.order-thanks__button > span { font-size: 20px; }
.order-thanks__back { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; }

@media (max-width: 1280px) { .header-actions { gap: 7px; } .header-actions .header-cta { padding-inline: 12px; } .header-cart { gap: 5px; padding-inline: 8px; } }
@media (max-width: 1080px) { .checkout__layout { gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); } .checkout-cart { padding: 18px; } .cart-item { grid-template-columns: 74px minmax(0, 1fr) auto; column-gap: 12px; } .cart-item__image { width: 74px; height: 74px; } .cart-item__price { font-size: 14px; } }
@media (max-width: 980px) { .header-actions { order: 2; gap: 10px; } }
@media (max-width: 900px) { .checkout { max-width: 720px; } .checkout__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .checkout-cart__items { max-height: 390px; } .checkout-details { padding-top: 0; } }
@media (max-width: 700px) { .palette:not(.palette--interiors) .palette__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .header-actions .header-cta { display: none; }
  .header-cart { min-height: 44px; padding-inline: 9px; font-size: 10px; }
  .category-card__order .hero__btn { padding-inline: 15px; }
  .checkout { padding: 18px 0 40px; }
  .checkout__head { margin-bottom: 20px; }
  .checkout__title { font-size: 30px; }
  .checkout__lead { max-width: 38ch; font-size: 11px; line-height: 1.6; }
  .checkout-cart { padding: 16px; }
  .checkout-cart__head { padding-bottom: 12px; gap: 10px; }
  .checkout-cart__head h2, .checkout-details h2 { font-size: 16px; }
  .checkout-cart__head a { font-size: 10px; }
  .checkout-cart__items { max-height: 260px; }
  .cart-item { grid-template-columns: 66px minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; }
  .cart-item__image { width: 66px; height: 66px; }
  .cart-item__info { grid-column: 2 / -1; }
  .cart-item__title { font-size: 12px; }
  .cart-item__color, .cart-item__unit-price { margin-top: 3px; font-size: 10px; }
  .cart-item__actions { grid-column: 2; gap: 10px; }
  .cart-item__image-link, .cart-item > .cart-item__image { grid-row: 1 / span 2; }
  .cart-item__quantity button { width: 38px; height: 42px; }
  .cart-item__quantity output { min-width: 24px; }
  .cart-item__remove { min-height: 44px; font-size: 10px; }
  .cart-item__price { grid-column: 3; grid-row: 2; align-self: center; font-size: 14px; }
  .checkout-cart__total { padding-top: 13px; font-size: 12px; }
  .checkout-cart__total strong { font-size: 24px; }
  .checkout-cart__delivery { font-size: 10px; }
  .checkout-form { gap: 12px; }
  .checkout-details h2 { margin-bottom: 14px; }
  .checkout-field input, .checkout-field textarea { font-size: 16px; padding: 9px 10px; }
  .checkout-field input::placeholder, .checkout-field textarea::placeholder { font-size: 11px; }
  .checkout-comment summary { min-height: 36px; padding-block: 8px; }
  .checkout-empty h2 { font-size: 34px; }
  .cart-toast { bottom: 14px; gap: 14px; padding: 15px; font-size: 11px; }
  .order-thanks { padding: 38px 0 54px; }
  .order-thanks h1 { font-size: 54px; }
  .order-thanks__text { font-size: 12px; }
  .order-thanks__telegram { margin-top: 34px; padding: 30px 20px 32px; }
  .order-thanks__telegram h2 { font-size: 34px; }
  .order-thanks__button { padding-inline: 18px; font-size: 11px; }
}
@media (max-width: 360px) { .checkout-cart { padding: 12px; } .cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 8px; } .cart-item__image { width: 56px; height: 56px; } .cart-item__actions { gap: 4px; } .cart-item__quantity button { width: 32px; } .cart-item__remove { width: 24px; font-size: 0; text-decoration: none; } .cart-item__remove::after { content: "×"; font-size: 20px; } .cart-item__price { font-size: 13px; } .checkout-form__row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hero__btn:hover { transform: none; } }
