/* GENERATED by redesign-taste/v4/tools/sync-theme-css.mjs from redesign-taste/v4/canvas/src/V4-sklep/extra.css - do not edit here, edit the source and run the tool. */
/* DBIJOU v4 - shop listing and category archive (/sklep/, /kategoria/<slug>/). Shared components live in system/system.css.
   Page head, door, product grid, sheet and the phone-gold action are system components (system.css, section 15).
   Blocks still marked PROMOTE are candidates that only this page uses today. */

/* Entry doors: five system doors (.card.door) in one row. */
.doors{padding-top:var(--sp-7)}
.doors__list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap)}
.doors__list > li{display:flex}

/* ------------------------------------------------------------------ listing */
.shop{padding-block:var(--sp-7) var(--sp-9)}

/* Toolbar: filters left, result count and sort right, one row of 44 px controls. */
.shop__bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-5);margin-bottom:var(--sp-6)}
.shop__open{display:none}
.shop__count{font-size:var(--fs-small);line-height:1.3;color:var(--fg-2)}
.shop__count .num{font-weight:500;color:var(--fg)}
.shop__sort{flex:none}

/* PROMOTE: select--pill - a select as tall as a pill (44 px), for the sort control in a row of pills */
.select--pill .select__el{height:var(--tap);padding:0 var(--sp-7) 0 var(--sp-4);font-size:var(--fs-ui);font-weight:500}
.select--pill::after{right:18px;width:7px;height:7px;margin-top:-6px}

/* PROMOTE: fmenu - a filter group: on desktop and tablet a menu pill with a popover of option pills, on the phone a titled group inside the sheet */
.filters{flex:1 1 auto;min-width:0}
.filters__groups{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
.fmenu{position:relative}
.fmenu__pop{display:none;position:absolute;left:0;top:calc(100% + var(--sp-2));z-index:var(--z-raise);width:max-content;max-width:560px;padding:var(--sp-4);background:var(--bg);box-shadow:0 0 0 1px var(--fg-3)}
.fmenu.is-open .fmenu__pop{display:block}
.fmenu.is-open .fmenu__btn,
.fmenu__btn.is-set{border-color:var(--fg)}
.fmenu.is-open .fmenu__btn .ico{transform:rotate(180deg)}

/* Sort form: the select fills the form; the no-script submit button sits beside it. */
.shop__sort{display:flex;gap:var(--sp-2)}
.shop__sort .select{flex:1 1 auto;min-width:0}

/* States the board does not draw (theme): chosen filters as removable pills under the toolbar, WooCommerce notices,
   the empty result, child categories as doors on a category page (as many as there are, no lead door). */
.shop__active{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-4);margin-top:calc(var(--sp-3) - var(--sp-6));margin-bottom:var(--sp-6)}
.shop__active .pill .ico{width:14px;height:14px}
.shop__notice{margin-bottom:var(--sp-5)}
.shop__empty{margin-bottom:var(--sp-2)}

/* Product grid: the system .pgrid (4 / 3 / 2 columns). */

.shop__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-3) var(--sp-5);margin-top:var(--sp-8)}
.shop__page{font-size:var(--fs-small);line-height:1.3;color:var(--fg-2)}

/* Payment, pickup, returns: what the checkout really offers, one quiet row on a system panel (tone step). */
.shop__terms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--gap);row-gap:var(--sp-4);margin-top:var(--sp-7);font-size:var(--fs-small);line-height:1.5}
.shop__term dt{font-weight:500;color:var(--fg)}
.shop__term dd{margin-top:var(--sp-1);color:var(--fg-2);max-width:40ch}

/* ------------------------------------------------------------------ category text
   Under the grid of a category with v4/cat-content/<slug>.php, plain first page only (v4/wc-archive.php): the heading
   left, the text column right with the blog's text parts inside (pages/blog.css: summary box, tables, pictures, FAQ). */
.ccat{padding-bottom:var(--sp-9)}
.ccat__split{padding-top:var(--sp-8);border-top:1px solid var(--line)}
.ccat__h{position:sticky;top:calc(var(--h-hdr) + var(--sp-6));align-self:start;max-width:14ch}
.ccat__body{min-width:0}

/* ------------------------------------------------------------------ made to order */
.made__split{align-items:center}
.made__main{display:flex;flex-direction:column;align-items:flex-start}
.made__h{margin-top:var(--sp-3)}
.made__txt{margin-top:var(--sp-5);max-width:46ch}
.made__facts{margin-top:var(--sp-6)}
.made__act{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-5);margin-top:var(--sp-6)}
.made__fig{display:flex;flex-direction:column;align-items:center}
.made__fig .fig__media{width:min(100%,540px);height:260px;aspect-ratio:auto;--fig-y:57.5%}
.made__fig .cap{padding-top:0;text-align:center}

/* ------------------------------------------------------------------ tablet */
@media (max-width:1024px){
  .doors__list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .doors__list:not(.doors__list--sub) > li:first-child{grid-column:1 / -1}
  .doors__list:not(.doors__list--sub) > li:first-child .door{flex-direction:row;align-items:center;min-height:72px;padding-inline:var(--sp-5)}
  .doors__list:not(.doors__list--sub) > li:first-child .door__name br{display:none}
  .doors__list:not(.doors__list--sub) > li:first-child .door__foot{gap:var(--sp-4);margin-top:0;padding-top:0}

  /* Two rows: the filters, then the count and the sort. A popover opens under the row, from its left edge. */
  .filters{flex-basis:100%;position:relative}
  .fmenu{position:static}
  .fmenu__pop{max-width:100%}
  .shop__count{flex:1 1 auto}

  .ccat__h{position:static;max-width:none}

  .made__fig{order:-1}
  .made__fig .fig__media{width:100%;height:240px}
}

/* ------------------------------------------------------------------ phone */
@media (max-width:640px){
  .doors{padding-top:var(--sp-6)}
  .doors__list{grid-template-columns:minmax(0,1fr);gap:var(--sp-2)}
  .doors__list:not(.doors__list--sub) > li:first-child .door{flex-direction:row;align-items:center;min-height:56px;padding:var(--sp-3) var(--sp-4)}
  .doors__list:not(.doors__list--sub) > li:first-child .door__name br{display:inline}
  .doors__list:not(.doors__list--sub) > li:first-child .door__foot{gap:var(--sp-4);margin-top:0;padding-top:0}

  .shop{padding-block:var(--sp-6) var(--sp-8)}
  .shop__bar{gap:var(--sp-3) var(--sp-2);margin-bottom:var(--sp-5)}
  .shop__open{display:inline-flex;flex:none;font-size:var(--fs-body)}
  .shop__sort{flex:1 1 0;min-width:0}
  .shop__count{order:3;flex:1 1 100%}
  .select--pill .select__el{font-size:var(--fs-body)}

  .shop__foot{margin-top:var(--sp-7)}
  .shop__page{display:none}
  .shop__terms{grid-template-columns:minmax(0,1fr)}

  .ccat{padding-bottom:var(--sp-8)}
  .ccat__split{padding-top:var(--sp-7)}
  /* A table row is a card on the phone (blog.css): each price says its column (data-label from tools/category-build.py). */
  .ccat .bpost .tw:not(.tw--num) td:not(:first-child)[data-label]::before{content:attr(data-label) ": ";font-weight:400;color:var(--fg-3)}

  /* The filters leave the row and wait in the system sheet (.sheet.is-open shows them). */
  .filters{display:none}
  .filters__groups{flex-direction:column;flex-wrap:nowrap;gap:var(--sp-5)}
  .fmenu__btn{height:auto;padding:0;border:0;font-size:var(--fs-small);pointer-events:none}
  .fmenu__btn .ico{display:none}
  .fmenu__pop{display:block;position:static;width:auto;max-width:none;margin-top:var(--sp-2);padding:0;background:none;box-shadow:none}

  /* Three facts in one row down to 360 px phones: the values step down to the h4 size, and wrap rather than cross the gutter. */
  .made__facts{justify-content:space-between;gap:var(--sp-4) var(--sp-3);width:100%}
  .made__facts .fact__v{font-size:var(--fs-h4)}
  .made__act{flex-direction:column;align-items:stretch;width:100%}
  .made__act .lnk{justify-content:center}
  .made__fig .fig__media{height:200px;--fig-zoom:130%}
}
