/* The boxes page (BoxesPage.astro), 9 Nov 2026. Loaded only on /boxes.
   Brand rules: red for tapping and big headings only, paper ground, chocolate text,
   cut-out food with no card behind it, pills, 12px cards, nothing tilted. */

.bx-hero{padding:28px 0 8px;}
.bx-hero-in{display:grid;gap:22px;align-items:center;}
.bx-hero h1{margin:6px 0 10px;font-size:clamp(34px,9vw,64px);line-height:1;color:var(--b-red);}
.bx-sub{margin:0 0 14px;font-size:18px;line-height:1.4;color:var(--ink);}
.bx-facts{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.bx-facts li{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid var(--hair);border-radius:999px;font-size:14px;font-weight:600;color:var(--ink);}
.bx-hero-p{max-width:460px;width:100%;justify-self:center;}
/* Nothing tilted (CLAUDE.md): the box tables straight on this page. */
.bx-hero-p .poster-table img,.bx-panel-p .poster-table img,.bx-mcard .poster-table img{transform:none;}

.bx-h2{margin:0 0 14px;font-size:clamp(28px,7vw,46px);line-height:1.02;color:var(--b-red);}
.bx-lede{margin:-4px 0 16px;color:var(--ink-2);}

/* The picker: one pill per box, scrolls sideways on a phone. */
.bx-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 -2px 6px;scrollbar-width:none;touch-action:pan-x;}
.bx-tabs::-webkit-scrollbar{display:none;}
.bx-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 16px;border-radius:12px;border:1.6px solid var(--hair);background:transparent;color:var(--ink);font:inherit;cursor:pointer;text-align:left;}
.bx-tab-w{font-size:13.5px;font-weight:600;white-space:nowrap;}
.bx-tab b{font-size:17px;}
.bx-tab[aria-selected=true]{background:var(--b-red);border-color:var(--b-red);color:var(--b-paper);}
.bx-tab:focus-visible{outline:3px solid var(--b-choc);outline-offset:2px;}

.bx-panel{display:grid;gap:16px;}
.bx-panel[hidden]{display:none;}
.bx-panel-p{max-width:440px;width:100%;justify-self:center;}
.bx-name{margin:0 0 4px;font-size:24px;color:var(--ink);}
.bx-blurb{margin:0 0 14px;color:var(--ink-2);line-height:1.45;}

/* Three numbers, the chess colours: paper, red, chocolate. */
.bx-stats{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;max-width:360px;}
.bx-stats li{border-radius:12px;padding:12px 8px;text-align:center;display:flex;flex-direction:column;gap:2px;border:1px solid var(--hair);}
.bx-stats li:nth-child(2){background:var(--b-red);border-color:var(--b-red);color:var(--b-paper);}
.bx-stats li:nth-child(3){background:var(--b-choc);border-color:var(--b-choc);color:var(--b-paper);}
.bx-stats b{font-family:var(--bristol);font-weight:400;font-size:clamp(24px,7vw,34px);line-height:1;}
.bx-stats span{font-size:12.5px;font-weight:600;line-height:1.2;}

.bx-in{margin:0 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--b-caramel);}
.bx-list{list-style:none;margin:0 0 18px;padding:0;}
.bx-list li{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--hair-2);}
.bx-list img{width:34px;height:34px;object-fit:contain;flex:0 0 34px;}
.bx-dot{width:34px;flex:0 0 34px;}
.bx-li-n{flex:1 1 auto;min-width:0;}
.bx-li-q{font-weight:700;white-space:nowrap;}

.bx-buy{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;}
.bx-price b{font-size:30px;color:var(--ink);}
.bx-price s{color:var(--ink-2);margin-left:4px;}
.bx-off{display:inline-block;margin-left:6px;padding:3px 9px;border-radius:999px;background:var(--b-choc);color:var(--b-paper);font-size:13px;font-weight:700;vertical-align:4px;}

/* From the freezer: one row per dish, the cut-out on paper (no card behind it). */
.bx-cook-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.bx-cook-list li{display:flex;align-items:center;gap:14px;padding:8px 0;border-bottom:1px solid var(--hair-2);}
.bx-cook-list img{width:92px;height:auto;flex:0 0 92px;filter:drop-shadow(4px 7px 5px var(--b-shadow));}
.bx-cook-list div{display:flex;flex-direction:column;gap:2px;}
.bx-cook-n{font-size:18px;color:var(--ink);}
.bx-cook-t{font-size:16px;font-weight:800;line-height:1.2;color:var(--ink);}
.bx-cook-h{font-size:14px;color:var(--ink-2);}
.bx-serve{margin:10px 0 14px;font-size:13px;font-style:italic;color:var(--b-caramel);}
.bx-guide{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);}

/* Who makes it, and the peppers to come. */
.bx-trust-in{display:grid;gap:26px;}
.bx-trust-l{margin:0 0 18px;padding:0 0 0 1.1em;display:grid;gap:8px;line-height:1.45;color:var(--ink);}
.bx-soon{max-width:340px;width:100%;}
.bx-soon .poster{margin-bottom:10px;}
.bx-soon-k{display:inline-block;padding:3px 11px;border-radius:999px;border:1.5px solid var(--b-red);color:var(--b-red);font-size:13px;font-weight:700;}
.bx-soon b{display:block;margin:6px 0 2px;font-size:20px;color:var(--ink);}
.bx-soon p{margin:0;color:var(--ink-2);}

.bx-more-g{display:grid;gap:22px;}
.bx-mcard{scroll-margin-top:84px;}
.bx-mcard .poster{max-width:360px;margin-bottom:8px;}

.bx-q{border-bottom:1px solid var(--hair);padding:12px 0;}
.bx-q summary{cursor:pointer;font-weight:700;font-size:17px;color:var(--ink);}
.bx-q p{margin:8px 0 2px;color:var(--ink-2);line-height:1.5;}

/* Phone bar with the chosen box. Desktop keeps the button in the panel. */
.bx-bar{display:none;}
@media (max-width:899px){
  /* Shown only while no in-page order button is on screen and the basket is empty; while it
     is up, the tab bar's «Замовити» pill steps aside so one order button shows (17 Nov 2026). */
  body:not(.has-cart) .bx-bar.on{display:flex;}
  body:not(.has-cart):has(.bx-bar.on) #tab-go{display:none;}
  body:not(.has-cart):has(.bx-bar.on) .tabbar{grid-template-columns:repeat(4,minmax(0,1fr));}
  .bx-bar{position:fixed;left:0;right:0;bottom:var(--tab-h);z-index:64;display:none;align-items:center;gap:10px;padding:8px 12px;background:var(--paper);border-top:1px solid var(--hair);}
  .bx-bar-t{flex:1 1 auto;font-size:14px;color:var(--ink);white-space:nowrap;}
  .bx-bar-t b{font-size:18px;}
  .bx-bar .btn{flex:0 0 auto;height:46px;padding:0 18px;font-size:15px;white-space:nowrap;}
  body:has(.bx-bar){--pb:calc(var(--tab-h) + 70px);}
  body:has(.bx-bar) #cartbar{display:none;}
  body:has(.bx-bar) .cartnote{bottom:calc(var(--tab-h) + 70px);}
  body:has(textarea:focus,input:focus) .bx-bar{display:none;}
}

@media (min-width:860px){
  .bx-hero-in{grid-template-columns:1.1fr .9fr;gap:40px;}
  .bx-panel{grid-template-columns:.9fr 1.1fr;gap:36px;align-items:start;}
  .bx-panel-p{position:sticky;top:calc(var(--hdr-h,72px) + 16px);}
  .bx-cook-list{grid-template-columns:repeat(2,1fr);gap:6px 28px;}
  .bx-trust-in{grid-template-columns:1.3fr .7fr;align-items:start;}
  .bx-more-g{grid-template-columns:repeat(2,1fr);}
}

/* Psychology pass (9 Nov 2026): reviews by the button, the family, the deadline, the card. */
.bx-season:empty{display:none;}
.bx-season .xs-shop{margin-top:12px;}
.bx-when{display:flex;align-items:center;gap:7px;margin:14px 0 4px;font-weight:700;color:var(--ink);}
.bx-card{margin:0;font-size:14px;color:var(--ink-2);line-height:1.4;}
.bx-family{margin:0 0 16px;}
.bx-family img,.xm-trustb img{display:block;width:100%;height:auto;border:1px solid var(--hair);}
.rv-strip{margin:28px 0 0;}
.rv-head{margin:0 0 10px;color:var(--ink);}
.rv-head .stars{color:var(--b-red);letter-spacing:1px;}
.rv-strip ul{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.rv-strip li{border:1px solid var(--hair);border-radius:12px;padding:12px 14px;}
.rv-strip li p{margin:0 0 6px;line-height:1.45;color:var(--ink);white-space:pre-line;}
.rv-strip li small{color:var(--ink-2);font-weight:600;}
@media (min-width:860px){ .rv-strip ul{grid-template-columns:repeat(3,1fr);} }

/* Less text pass (owner, 11 Nov 2026): on a phone the page opens on the headline and
   goes straight into the boxes. The red poster and the jump button only repeat it. */
@media (max-width:859px){
  .bx-hero{padding-bottom:0;}
  .bx-hero-p,.bx-hero .btn{display:none;}
  .bx-facts{margin-bottom:4px;}
  .bx-pick{padding-top:18px;}
  .bx-pick,.bx-cook,.bx-trust,.bx-more,.bx-faq{padding-bottom:12px;}
  .bx-cook,.bx-trust,.bx-more,.bx-faq{padding-top:28px;}
}
@media (min-width:860px){ .bx-trust-in{grid-template-columns:minmax(0,640px);} }

/* Minimal boxes page (owner, 17 Nov 2026): a list of plain cards, contents folded. */
.bx-hero-min{padding:22px 0 0;}
.bx-hero-min .bx-sub{margin:0 0 8px;}
.bx-facts-min{margin:0;font-size:14px;color:var(--ink-2);}
.bx-list-sect{padding-top:26px;}
.bx-cards{display:grid;gap:44px 34px;}
@media (min-width:700px){.bx-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (min-width:1100px){.bx-cards{grid-template-columns:repeat(3,minmax(0,1fr));}}
.bx-card{display:flex;flex-direction:column;scroll-margin-top:84px;}
.bx-card .poster{margin-bottom:12px;}
.bx-card .poster-table img{transform:none;}
.bx-card .bx-name{margin:0 0 2px;font-size:24px;}
.bx-meta{margin:0 0 12px;font-size:14.5px;color:var(--ink-2);}
.bx-card .bx-buy{justify-content:space-between;flex-wrap:nowrap;gap:12px;}
.bx-card .bx-price{display:flex;flex-direction:column;gap:2px;}
.bx-card .bx-price b{font-size:28px;line-height:1;}
.bx-card .bx-add{flex:0 0 auto;}
.bx-what{margin-top:12px;}
.bx-what summary{cursor:pointer;font-weight:700;font-size:15px;color:var(--ink);list-style:none;}
.bx-what summary::-webkit-details-marker{display:none;}
.bx-what summary::after{content:'';display:inline-block;width:7px;height:7px;margin-left:8px;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-3px) rotate(45deg);}
.bx-what[open] summary::after{transform:translateY(1px) rotate(-135deg);}
.bx-what .bx-list{margin:8px 0 4px;}
.bx-what .bx-list img{width:30px;height:30px;flex-basis:30px;}
.bx-what .box-swap{text-align:left;width:auto;}
/* The FAQ markers: a plain chevron, not the browser's black triangle. */
.bx-q summary{list-style:none;}
.bx-q summary::-webkit-details-marker{display:none;}
.bx-q summary::after{content:'+';float:right;font-weight:600;color:var(--b-red);}
.bx-q[open] summary::after{content:'−';}
/* The card picture takes the shape of its plates (no empty band above or below). */
.bx-card .bx-pic .poster{aspect-ratio:var(--pic-ar,1.25) !important;}
.bx-pic .poster.plain .poster-in{padding:0;}
.rv-head{white-space:nowrap;font-size:15px;}
/* Reviews sit evenly between the last box and the questions. */
.bx-list-sect{padding-bottom:28px;}
.bx-list-sect .rv-strip{margin-top:56px;}
.bx-faq{padding-top:28px;}
.bx-hero-min h1{margin-bottom:12px;}
/* A thin line between boxes on a phone (one column). */
@media (max-width:699px){.bx-card + .bx-card{border-top:1px solid var(--hair);padding-top:30px;}.bx-cards{gap:30px;}}
