/* shop.plantaelight.com — only what the shop page has and the website
   doesn't. Everything else (tokens, fonts, header, menu, footer, buttons,
   cards, form controls, page width) is the website's own template.css +
   site.css, served by this host from www.plantaelight.com/assets/css/.
   Strict CSP (style-src 'self'): no inline styles anywhere. */

/* distributor cards: the website's product cards (.cfg .sh-card) with a
   picture instead of a product photo */
.sp-grid article h2{font-size:28px;letter-spacing:-.03em;line-height:1.1}
.sp-grid .cfg-tx>.lbl{margin-bottom:-6px}
.sp-grid .cfg-tx>.row{margin-top:auto;padding-top:6px}
.sp-grid .btn{white-space:normal;text-align:left;line-height:1.25;padding-block:12px}
/* shop picture: a 16:9 band across the full card width, the same height
   on every card. The server stores each picture on a 16:9 canvas (logo
   centred, its own background continued to the edges), so it fills the
   band; anything else is still shown whole and centred (never cropped).
   A card without a picture has no band. */
.sp-band{aspect-ratio:16/9;background:var(--panel);border-bottom:1px solid var(--line);overflow:hidden}
.sp-pic{display:block;width:100%;height:100%;object-fit:contain;object-position:center}

/* notice */
.sp-text{display:grid;gap:14px;max-width:60ch}
.sp-text p{color:var(--ink-2);font-size:clamp(17px,1.4vw,19px);line-height:1.6}
.sp-grid{list-style:none;margin:0;padding:0}
.sp-grid>li{display:flex;min-width:0}
.sp-grid>li>article{flex:1}

/* top of every shop page: no hero — heading at section size, then the
   country selector (website .form control look, one row with its button) */
.sec.sp-top{padding-block:clamp(28px,4vw,48px) var(--s6)}
.sp-h{font:700 clamp(28px,3.2vw,40px)/1.08 var(--sans);letter-spacing:-.035em;margin:0}
.sp-lead{margin-top:10px;color:var(--ink-2);max-width:60ch}
.sp-cf{display:grid;gap:8px;margin:0 0 clamp(20px,2.4vw,28px);max-width:560px}
.sp-h+.sp-lead+.sp-cf{margin-top:24px}
.sp-cf-row{display:flex;gap:8px}
.sp-cf select{flex:1;min-width:0;font:400 16px var(--sans);color:var(--ink);background:var(--surface);border:1px solid var(--field);border-radius:0;padding:0 14px;min-height:50px}
.sp-cf select:focus{outline:3px solid var(--accent);outline-offset:1px}
.sp-cf .btn{flex:none}
.sp-product{margin:-8px 0 clamp(20px,2.4vw,28px)}
.sp-product b{font-weight:700}
.sp-notice-h{margin:clamp(16px,2.4vw,28px) 0 16px}
.sp-hint{font-size:14px;color:var(--ink-3)}
@media(max-width:420px){.sp-cf-row{flex-direction:column}.sp-cf .btn{justify-content:center}}
/* with script the selector submits on pick (shop.js); the button stays the no-script fallback */
.sp-cf.sp-auto .btn{display:none}
.sp-cf.sp-auto .sp-cf-row{display:block}
.sp-cf.sp-auto select{width:100%}

/* Side-by-side distributor cards line up section by section (CSS subgrid): picture band, type,
   name, tagline, button each start on the same line in every card of a row; a card without a
   picture or tagline keeps that row empty. Without subgrid the cards keep the flex layout above. */
@supports (grid-template-rows: subgrid) {
  .sp-grid{row-gap:var(--s3,20px)}
  .sp-grid>li{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0}
  .sp-grid>li>article{grid-row:1/-1;display:grid;grid-template-rows:subgrid;row-gap:0}
  .sp-grid .sp-band{grid-row:1}
  .sp-grid .cfg-tx{grid-row:2/-1;display:grid;grid-template-rows:subgrid;row-gap:0}
  .sp-grid .cfg-tx>.lbl{grid-row:1;margin:0 0 6px}
  .sp-grid .cfg-tx>.shop-name{grid-row:2;margin:0}
  .sp-grid .cfg-tx>.sh-use{grid-row:3;margin:10px 0 0}
  .sp-grid .cfg-tx>.row{grid-row:4;margin-top:14px;align-self:end}
}
