/*
Theme Name: VARP Swift
Theme URI: https://store.varp.cz/
Author: VARP
Description: A lean, fast WooCommerce theme for store.varp.cz. Matches the existing VARP storefront design with no page-builder, product-table or slider plugin dependencies. Built for low Time to First Byte and a fast cart and checkout.
Version: 1.18.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: varp-swift
Tags: e-commerce, custom-logo, custom-menu, translation-ready
WC requires at least: 8.0
WC tested up to: 11.1
*/

/* ==========================================================================
   Tokens - sampled from the current store.varp.cz design
   ========================================================================== */
:root{
  --varp-red:#F20505;
  --varp-red-dark:#C90404;
  --varp-red-tint:#FEF3F2;
  --ink:#33302E;
  --ink-2:#404040;
  --muted:#777777;
  --line:#E4E4E4;
  --line-2:#D0D0D0;
  --ground:#F1F1F1;
  --surface:#FFFFFF;
  --btn-dark:#2B2B2B;
  --btn-dark-hover:#000000;
  --ok:#00B734;
  /* #00B734 sits at roughly 2.5:1 on white - fine as a border, not as text. */
  --ok-text:#1B7A38;
  --info:#0084B7;
  --wrap:1320px;
  --gap:24px;
  --radius:3px;
  /* The hero card and product tiles are rounded; the small controls that came
     from the original storefront stay square on --radius. */
  --radius-lg:16px;
  --shadow-card:0 1px 2px rgba(30,25,22,.05), 0 8px 24px rgba(30,25,22,.06);
  --shadow-card-hover:0 2px 6px rgba(30,25,22,.08), 0 16px 40px rgba(30,25,22,.10);
  /* Sampled from the guidebook covers - muted brick, not the signal red. */
  --brand-deep:#A9575A;
  --brand-deep-dark:#8E4649;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* ==========================================================================
   Reset and base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--surface); color:var(--ink-2);
  font-family:var(--font); font-size:16px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
  display:flex; flex-direction:column; min-height:100vh;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--ink); text-decoration:none}
a:hover{color:var(--varp-red)}
h1,h2,h3,h4{color:var(--ink); line-height:1.2; margin:0 0 .5em; font-weight:700}
h1{font-size:clamp(26px,3.4vw,36px)}
h2{font-size:clamp(21px,2.4vw,27px)}
h3{font-size:19px}
p{margin:0 0 1em}

/* Focus rings belong on things you can operate. WooCommerce moves focus to
   notices and headings with tabindex="-1" after an add-to-cart, and a blanket
   :focus-visible paints a red box around them. */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible,summary:focus-visible,
[tabindex="0"]:focus-visible{outline:2px solid var(--varp-red); outline-offset:2px}
[tabindex="-1"]:focus{outline:none}
.screen-reader-text{
  position:absolute!important; width:1px; height:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--varp-red); color:#fff; padding:10px 16px;
}
.skip-link:focus{left:0; color:#fff}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 20px; width:100%}

/* ==========================================================================
   Header - logo bar over uppercase nav rail
   ========================================================================== */
.site-header{background:var(--surface); border-bottom:1px solid var(--line)}
.header-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:14px 0;
}
.site-branding img,.site-branding svg{max-height:38px; width:auto}
.site-title{font-size:22px; font-weight:700; letter-spacing:-.02em; margin:0}

.header-actions{display:flex; align-items:center; gap:14px}
.cart-link{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--varp-red); color:#fff!important;
  font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  padding:9px 20px; border-radius:100px; transition:background .15s;
}
.cart-link:hover{background:var(--varp-red-dark); color:#fff!important}
.cart-link .cart-count{
  background:#fff; color:var(--varp-red); border-radius:100px;
  min-width:19px; height:19px; display:grid; place-content:center;
  font-size:11px; font-weight:700; padding:0 5px; letter-spacing:0;
}
.cart-icon{width:17px; height:17px; fill:currentColor; flex:none}

.header-nav{border-top:1px solid var(--line)}
.header-nav .wrap{display:flex; align-items:center; justify-content:space-between; gap:20px}
.main-nav ul{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:26px}
.main-nav li{margin:0}
.main-nav a{
  display:block; padding:13px 0;
  font-size:13px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink); border-bottom:2px solid transparent;
}
.main-nav a:hover,.main-nav .current-menu-item > a{color:var(--varp-red); border-bottom-color:var(--varp-red)}
.account-link{
  font-size:13px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  white-space:nowrap;
}

.nav-toggle{
  display:none; background:none; border:1px solid var(--line-2);
  border-radius:var(--radius); padding:8px 12px; cursor:pointer;
  font-size:13px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink); font-family:inherit;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-main{padding:36px 0 64px; flex:1}
.page-header{margin-bottom:28px}
.page-header h1{margin-bottom:6px}
.page-header .subtitle{color:var(--muted); margin:0}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,button,input[type="submit"],
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit{
  display:inline-block; background:var(--btn-dark); color:#fff;
  border:none; border-radius:var(--radius); cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:700;
  letter-spacing:.04em; padding:13px 24px; line-height:1.3;
  text-align:center; transition:background .15s;
}
.button:hover,button:hover,input[type="submit"]:hover,
.woocommerce a.button:hover,.woocommerce button.button:hover,
.woocommerce input.button:hover{background:var(--btn-dark-hover); color:#fff}

.woocommerce button.button.alt,.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt{background:var(--varp-red); color:#fff}
.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover{background:var(--varp-red-dark)}

/* .disabled is WooCommerce's out-of-stock state; the :disabled styling for
   inactive controls such as "Aktualizovat košík" lives in the cart section. */
.woocommerce .button.disabled{opacity:.45; cursor:not-allowed}

/* ==========================================================================
   Product grid - matches the current 5-up card with dark full-width button
   ========================================================================== */
.woocommerce ul.products,
.woocommerce ul.products[class*="columns-"]{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:var(--gap);
}
.woocommerce ul.products::before,
.woocommerce ul.products::after{content:none; display:none}

/* WooCommerce sizes cards with .columns-N rules - one class more specific
   than a plain li.product selector, so they win on specificity no matter
   the load order and pin every card to a fraction of its grid track. The
   attribute selector matches that weight; loading later wins the tie. */
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product{
  margin:0; padding:0 0 16px; width:auto; min-width:0; float:none; clear:none;
  text-align:center; display:flex; flex-direction:column; position:relative;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-lg); overflow:hidden;
  transition:border-color .15s ease, box-shadow .18s ease, transform .18s ease;
}
.woocommerce ul.products li.product:hover{
  border-color:var(--line-2); box-shadow:var(--shadow-card-hover);
  transform:translateY(-2px);
}
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce ul.products[class*="columns-"] li.product.first,
.woocommerce ul.products[class*="columns-"] li.product.last{
  clear:none; margin:0;
}
.woocommerce ul.products li.product a img{
  margin:0 0 14px; width:100%; aspect-ratio:4/3; object-fit:cover;
  background:var(--ground); border-bottom:1px solid var(--line);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:15px; font-weight:700; color:var(--ink);
  padding:0 14px; margin:0 0 8px; line-height:1.35;
}
.woocommerce ul.products li.product .price{
  color:var(--ink-2); font-size:15px; font-weight:600;
  margin:0 0 14px; padding:0 14px; display:block;
}
.woocommerce ul.products li.product .price del{color:var(--muted); font-weight:400; margin-right:6px}
.woocommerce ul.products li.product .price ins{text-decoration:none; color:var(--varp-red)}
.woocommerce ul.products li.product .button{
  margin:auto 14px 0; width:calc(100% - 28px); border-radius:var(--radius);
  font-size:13px; letter-spacing:.05em;
}
.woocommerce span.onsale{
  position:absolute; top:10px; left:10px; z-index:2; margin:0;
  background:var(--varp-red); color:#fff; font-size:11px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; padding:4px 9px;
  border-radius:var(--radius); line-height:1.4; min-height:0; min-width:0;
}

.woocommerce-result-count{color:var(--muted); font-size:14px; margin:0 0 18px}
.woocommerce .woocommerce-ordering{margin:0 0 18px}
.woocommerce .woocommerce-ordering select{
  padding:9px 12px; border:1px solid var(--line-2); border-radius:var(--radius);
  font-family:inherit; font-size:14px; background:var(--surface);
}

/* ==========================================================================
   Landing page - hero
   ========================================================================== */
.hero{
  position:relative; margin:0 0 44px;
  border-radius:var(--radius-lg); overflow:hidden;
  background:var(--brand-deep);
}
.hero-media{margin:0; line-height:0}
.hero-media .hero-image{
  width:100%; height:clamp(260px,38vw,440px); object-fit:cover; display:block;
}

/* With an image the card sits over it, so it needs its own ground to stay
   readable whatever the photo underneath is doing. Without one the block is
   the card. */
.hero.has-image .hero-card{
  position:absolute; left:26px; bottom:26px; right:auto;
  max-width:min(560px, calc(100% - 52px));
  background:var(--brand-deep); color:#fff;
  border-radius:var(--radius-lg); padding:24px 28px;
  box-shadow:var(--shadow-card);
}
.hero.no-image .hero-card{
  position:static; color:#fff; padding:40px 34px; max-width:720px;
}
.hero.no-card{background:none}

.hero-eyebrow{
  margin:0 0 6px; font-size:13px; font-weight:600;
  letter-spacing:.04em; color:rgba(255,255,255,.82);
}
.hero-title{
  margin:0; color:#fff; font-size:clamp(27px,3.6vw,42px); line-height:1.12;
  letter-spacing:-.01em;
}
.hero-text{
  margin:12px 0 0; color:rgba(255,255,255,.90);
  font-size:16px; line-height:1.55; max-width:52ch;
}
.hero-cta{
  display:inline-block; margin:20px 0 0; padding:12px 22px;
  background:#fff; color:var(--brand-deep-dark);
  border-radius:100px; font-size:14px; font-weight:700;
  letter-spacing:.03em; transition:background .15s ease, color .15s ease;
}
.hero-cta:hover{background:var(--ground); color:var(--brand-deep-dark)}
.hero-cta:focus-visible{outline:3px solid #fff; outline-offset:3px}

/* ==========================================================================
   Landing page - catalogue
   ========================================================================== */
.front-page-intro{max-width:none; margin:0 0 34px}
.front-page-intro:empty{display:none}

.front-page-products .page-header.shop-header{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px 24px; flex-wrap:wrap;
  padding-bottom:14px; border-bottom:2px solid var(--ink); margin-bottom:34px;
}
.shop-header-text{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; min-width:0}
.front-page-products .page-header h1,
.front-page-products .page-header h2{margin:0}
.front-page-products .page-header .subtitle{
  font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); margin:0; font-variant-numeric:tabular-nums;
}
/* The sort control sits in the header row now, not on a line of its own. */
.front-page-products .page-header .sort-control{margin:0}

/* ---- One section per category ---- */
.shop-section{margin:0 0 54px; scroll-margin-top:20px}
.shop-section:last-of-type{margin-bottom:20px}
/* section is display:block by default, but an explicit rule here would beat
   the hidden attribute the filter sets - so restate it. */
.shop-section[hidden]{display:none}

.shop-section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px 20px; flex-wrap:wrap;
  margin:0 0 20px; padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.shop-section-title{
  margin:0; font-size:clamp(19px,2.1vw,24px); letter-spacing:-.01em;
}
.shop-section-meta{
  display:flex; align-items:baseline; gap:16px; margin:0; flex-wrap:wrap;
}
.shop-section-count{
  font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap;
}
.shop-section-more{
  font-size:13px; font-weight:700; color:var(--varp-red); white-space:nowrap;
}
.shop-section-more::after{content:" \2192"}
.shop-section-more:hover{text-decoration:underline}

/* Category filter pills */
.category-filter{
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 26px;
}
.filter-pill{
  display:inline-block; padding:8px 16px; border-radius:100px;
  border:1px solid var(--line-2); background:var(--surface);
  font-size:13px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--ink); cursor:pointer; transition:background .15s,border-color .15s,color .15s;
}
.filter-pill:hover{border-color:var(--ink); color:var(--ink)}
.filter-pill.is-active{
  background:var(--ink); border-color:var(--ink); color:#fff;
}
.filter-pill.is-active:hover{background:var(--btn-dark-hover); color:#fff}

/* li.product is display:flex, which would beat the hidden attribute. */
.woocommerce ul.products li.product[hidden]{display:none}
.filter-empty{
  margin:0; padding:34px 0; text-align:center;
  color:var(--muted); font-size:15px;
}

/* ==========================================================================
   Single product
   ========================================================================== */
.woocommerce div.product{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px 52px; align-items:start; margin:0 0 10px;
}

/*
 * WooCommerce pins both columns to 48% and floats them, with
 * `div.product div.images` - one element more specific than a plain
 * `.woocommerce-product-gallery` selector, so it won no matter the load
 * order. Both columns rendered at 48% of an already-halved grid track: a
 * 297px cover in a 618px cell, a title wrapping onto three lines, and a
 * channel of white space down the middle. Match its weight and the grid
 * takes over.
 */
.woocommerce div.product div.images,
.woocommerce div.product div.images.woocommerce-product-gallery,
.woocommerce div.product div.summary{width:100%; float:none; margin:0}

/*
 * No position:sticky on the cover, though it is tempting. A sticky item is
 * bound by its parent's content box, and here that is the whole of
 * div.product - tabs and related products included - so the cover followed
 * the reader down and sat on top of the description. Scoping it to the first
 * grid row would need a wrapper WooCommerce's template does not emit.
 */
.woocommerce div.product div.images img{
  width:100%; height:auto; display:block;
  border:1px solid var(--line); border-radius:var(--radius-lg);
  background:var(--ground);
}
.woocommerce div.product div.images .flex-control-thumbs{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:10px;
  list-style:none; margin:10px 0 0; padding:0;
}
.woocommerce div.product div.images .flex-control-thumbs li{margin:0}
.woocommerce div.product div.images .flex-control-thumbs img{
  cursor:pointer; opacity:.6; transition:opacity .15s ease, border-color .15s ease;
}
.woocommerce div.product div.images .flex-control-thumbs img:hover,
.woocommerce div.product div.images .flex-control-thumbs img.flex-active{
  opacity:1; border-color:var(--ink);
}

.woocommerce div.product .product_title{
  margin:0 0 14px; font-size:clamp(26px,2.8vw,38px); line-height:1.14;
  letter-spacing:-.015em;
}
.woocommerce div.product p.price{
  font-size:30px; font-weight:700; color:var(--ink); margin:0 0 20px;
  font-variant-numeric:tabular-nums; line-height:1.2;
}
.woocommerce div.product p.price del{font-size:20px; color:var(--muted); font-weight:400; margin-right:8px}
.woocommerce div.product p.price ins{text-decoration:none; color:var(--varp-red)}

/* WooCommerce prints the short description as bare paragraphs. */
.woocommerce div.product .woocommerce-product-details__short-description{
  font-size:16px; line-height:1.6; color:var(--ink-2); max-width:56ch;
  margin:0 0 20px;
}
.woocommerce div.product .woocommerce-product-details__short-description p:last-child{margin-bottom:0}

.woocommerce div.product form.cart{
  margin:0 0 22px; padding:20px 0 0; border-top:1px solid var(--line);
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
}
.woocommerce div.product form.cart .button{
  flex:1 1 auto; min-width:200px; max-width:340px;
  padding:15px 28px; font-size:15px;
}
.woocommerce div.product form.cart .variations{width:100%}
.woocommerce div.product form.cart .variations select{
  width:100%; padding:11px 12px; border:1px solid var(--line-2);
  border-radius:var(--radius); font-family:inherit; font-size:15px;
}
.woocommerce .quantity input[type="number"]{
  width:74px; padding:14px 8px; text-align:center;
  border:1px solid var(--line-2); border-radius:var(--radius);
  font-family:inherit; font-size:15px;
}

/* "Kategorie: …" - reference, not headline. */
.woocommerce div.product .product_meta{
  font-size:14px; color:var(--muted); line-height:1.7;
  padding-top:18px; border-top:1px solid var(--line);
}
.woocommerce div.product .product_meta > span{display:block; margin-bottom:2px}
.woocommerce div.product .product_meta a{color:var(--ink-2); text-decoration:underline; text-underline-offset:2px}
.woocommerce div.product .product_meta a:hover{color:var(--varp-red)}
.woocommerce div.product .woocommerce-tabs{grid-column:1 / -1; margin-top:20px}
.woocommerce div.product .woocommerce-tabs ul.tabs{
  list-style:none; margin:0 0 20px; padding:0;
  display:flex; gap:26px; border-bottom:1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0; background:none; border:none}
.woocommerce div.product .woocommerce-tabs ul.tabs a{
  display:block; padding:12px 0; font-size:13px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; border-bottom:2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
  color:var(--varp-red); border-bottom-color:var(--varp-red);
}
.woocommerce div.product .woocommerce-Tabs-panel{max-width:78ch}
.woocommerce div.product .woocommerce-Tabs-panel > h2:first-child{
  font-size:20px; margin:0 0 16px;
}
.woocommerce div.product .woocommerce-Tabs-panel img{
  border:1px solid var(--line); border-radius:var(--radius-lg);
  margin:0 0 18px; background:var(--ground);
}

.related.products,.upsells.products{grid-column:1 / -1; margin-top:44px; padding-top:34px; border-top:1px solid var(--line)}
.related.products > h2,.upsells.products > h2{font-size:clamp(19px,2.1vw,24px); margin:0 0 22px}

/* ==========================================================================
   Cart and checkout - the speed-critical pages, kept plain and legible
   ========================================================================== */
.woocommerce table.shop_table{
  width:100%; border-collapse:collapse; border:1px solid var(--line);
  border-radius:0; margin:0 0 26px;
}
.woocommerce table.shop_table th{
  background:var(--ground); text-align:left; padding:13px 14px;
  font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--ink); border-bottom:1px solid var(--line);
}
.woocommerce table.shop_table td{padding:15px 14px; border-bottom:1px solid var(--line); vertical-align:middle}
.woocommerce table.shop_table tbody tr:last-child td{border-bottom:none}
.woocommerce table.shop_table img{width:62px; height:auto}
.woocommerce table.shop_table .product-name a{font-weight:600}
.woocommerce a.remove{
  display:inline-grid; place-content:center; width:22px; height:22px;
  border-radius:100px; background:var(--ground); color:var(--ink)!important;
  font-size:16px; line-height:1; text-decoration:none;
}
.woocommerce a.remove:hover{background:var(--varp-red); color:#fff!important}

.cart-collaterals{display:block; margin-top:8px}
.woocommerce .cart_totals{width:100%; float:none}
.woocommerce .cart_totals h2{font-size:16px; letter-spacing:.06em; text-transform:uppercase}
.woocommerce .cart_totals table{border:1px solid var(--line)}
.woocommerce .cart_totals .order-total .amount{font-size:20px; color:var(--ink)}
.woocommerce .wc-proceed-to-checkout{padding-top:18px}
.woocommerce .wc-proceed-to-checkout a.checkout-button{
  display:block; width:100%; background:var(--varp-red); font-size:15px; padding:16px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover{background:var(--varp-red-dark)}

/* The button belongs under the figures it confirms, not across the page. */
.woocommerce-cart .wc-proceed-to-checkout{
  display:flex; justify-content:flex-end; padding-top:20px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width:100%; max-width:440px;
}

/*
 * One centred column.
 *
 * A two-column grid across col2-set assumes col-1 holds billing and col-2
 * holds shipping. When a shop has no separate shipping fields - or a plugin
 * moves them - one side comes out empty and the form ends up pushed into
 * half the page. Stacking is both safer and easier to fill in: a checkout
 * form reads better narrow than spread across 1320px.
 */
.woocommerce-checkout form.checkout,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout form.woocommerce-form-login,
.woocommerce-checkout form.checkout_coupon,
.woocommerce-checkout .woocommerce-notices-wrapper{
  max-width:760px; margin-left:auto; margin-right:auto;
}
.woocommerce .checkout .col2-set{display:block}
.woocommerce .checkout .col2-set .col-1,
.woocommerce .checkout .col2-set .col-2{width:auto; float:none; margin:0}
.woocommerce .checkout .col2-set .col-2{margin-top:30px}
.woocommerce .checkout .col2-set .col-2:empty{display:none}
#order_review_heading{margin-top:34px}

/* Two fields that belong on one line when there is room. */
@media (min-width:560px){
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last{width:calc(50% - 8px); display:inline-flex}
  .woocommerce-checkout .form-row-first{margin-right:16px}
}
.woocommerce-checkout #payment{background:var(--ground); border-radius:var(--radius); padding:20px}
.woocommerce-checkout #payment ul.payment_methods{
  list-style:none; margin:0 0 16px; padding:0 0 16px; border-bottom:1px solid var(--line-2);
}
.woocommerce-checkout #payment ul.payment_methods li{margin:0 0 10px}
.woocommerce-checkout #payment div.payment_box{
  background:var(--surface); border-radius:var(--radius);
  padding:12px 14px; margin:8px 0 0; font-size:14px; color:var(--muted);
}
.woocommerce-checkout #payment div.payment_box::before{content:none; display:none}
.woocommerce-checkout #payment #place_order{width:100%; background:var(--varp-red); font-size:16px; padding:16px}
.woocommerce-checkout #payment #place_order:hover{background:var(--varp-red-dark)}

/* Forms */
.woocommerce form .form-row{display:flex; flex-direction:column; gap:6px; margin:0 0 16px; padding:0}
.woocommerce form .form-row label{font-size:13px; font-weight:600; color:var(--ink)}
.woocommerce form .form-row .required{color:var(--varp-red); text-decoration:none}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single{
  width:100%; padding:12px 13px; border:1px solid var(--line-2);
  border-radius:var(--radius); font-family:inherit; font-size:15px;
  background:var(--surface); color:var(--ink-2);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{border-color:var(--varp-red); outline:none}
.woocommerce form .form-row-first,.woocommerce form .form-row-last{width:100%; float:none}
.woocommerce form.login,.woocommerce form.checkout_coupon,.woocommerce form.register{
  border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin:0 0 22px;
}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  list-style:none; margin:0 0 22px; padding:14px 18px;
  border-left:3px solid var(--info); background:var(--ground);
  font-size:14px; border-radius:0 var(--radius) var(--radius) 0;
}
.woocommerce-message{border-left-color:var(--ok)}
.woocommerce-error{border-left-color:var(--varp-red)}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{content:none; display:none}
.woocommerce-message .button,.woocommerce-info .button{float:right; padding:7px 14px; font-size:13px}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{background:var(--ground); border-top:1px solid var(--line); padding:40px 0}
.footer-inner{display:flex; flex-wrap:wrap; gap:26px; justify-content:space-between; align-items:flex-start}
.footer-nav ul{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:20px}
.footer-nav a{font-size:14px; color:var(--ink-2)}
.site-info{font-size:13px; color:var(--muted); margin:0}
.footer-social{display:flex; gap:12px; align-items:center}
.footer-social a{
  display:grid; place-content:center; width:32px; height:32px;
  border-radius:100px; background:var(--ink); color:#fff!important;
}
.footer-social a:hover{background:var(--varp-red)}
.footer-social svg{width:16px; height:16px; fill:currentColor}

/* ==========================================================================
   Pagination
   ========================================================================== */
.woocommerce nav.woocommerce-pagination ul{
  display:flex; gap:6px; list-style:none; margin:30px 0 0; padding:0;
  border:none; justify-content:center;
}
.woocommerce nav.woocommerce-pagination ul li{border:none; margin:0; overflow:visible}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  display:grid; place-content:center; min-width:38px; height:38px; padding:0 10px;
  border:1px solid var(--line-2); border-radius:var(--radius); font-size:14px; font-weight:600;
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--varp-red); color:#fff; border-color:var(--varp-red);
}

/* ==========================================================================
   Entry content
   ========================================================================== */
.entry-content{max-width:70ch}
.entry-content img{margin:1.4em 0}
.entry-content ul,.entry-content ol{padding-left:1.3em}
.entry-content blockquote{
  margin:1.5em 0; padding:2px 0 2px 20px;
  border-left:3px solid var(--varp-red); color:var(--muted);
}

/* ==========================================================================
   Shop pages - width
   The 70ch measure is right for prose and wrong for a cart table.
   ========================================================================== */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content,
.woocommerce-page .entry-content{max-width:none}

/* ==========================================================================
   Notices - one border, not three
   WooCommerce ships its own border-top and a ::before glyph; both are
   overridden above, this keeps the result from drifting back.
   ========================================================================== */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error{
  border-top:none; border-right:none; border-bottom:none;
  border-left:3px solid var(--info);
  padding:15px 18px; background:var(--ground); color:var(--ink-2);
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message{border-left-color:var(--ok)}
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error{border-left-color:var(--varp-red)}
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button{float:none; margin-left:auto; flex:none}
.woocommerce-notices-wrapper:empty{display:none}

/* ==========================================================================
   Cart - totals stack under the table.

   A side column only earns its place when both halves fill; here the table
   is short and the totals are tall, so it left a large hole down the page.
   ========================================================================== */
.woocommerce-cart .woocommerce{display:block}
.woocommerce-cart .woocommerce-cart-form{margin:0 0 34px}
.woocommerce-cart .cart-collaterals{display:block; margin:0; width:100%}

/*
 * WooCommerce lays the collaterals out as 48%-wide floats:
 *
 *   .woocommerce .cart-collaterals .cart_totals { width:48%; float:right }
 *   .woocommerce .cart-collaterals .cross-sells { width:48%; float:left  }
 *
 * Three classes each - one more than a .woocommerce-cart .cart_totals
 * selector carries - so they win on specificity however late this file
 * loads. Matching their depth is the only thing that unsticks them.
 */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-cart .cart-collaterals .shipping_calculator,
.woocommerce-cart .cart-collaterals .related,
.woocommerce-page .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cross-sells,
.woocommerce-page .cart-collaterals .shipping_calculator{
  width:100%; max-width:none; float:none; clear:none; margin:0;
}
.woocommerce-cart .cart-collaterals .cross-sells{margin:0 0 40px}
.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product{width:auto}

.woocommerce-cart table.shop_table{margin-bottom:0}

/* Column widths. Without these the browser hands all the slack to the empty
   remove column and shoves the real content to the right. The trick is
   width:100% on the name cell to absorb the slack, and width:1% + nowrap on
   the numeric ones to shrink them to their content. */
.woocommerce table.cart th.product-remove,
.woocommerce table.cart td.product-remove{
  width:46px; padding:15px 0 15px 14px; text-align:center;
}
.woocommerce table.cart th.product-thumbnail,
.woocommerce table.cart td.product-thumbnail{width:84px; padding-left:12px}

/* WooCommerce pins cart thumbnails to 32px with a selector one class more
   specific than a plain shop_table img rule, so it has to be matched here. */
.woocommerce table.cart td.product-thumbnail img,
.woocommerce-cart table.cart img,
.woocommerce-page table.cart img{width:62px; height:auto; max-width:none}
.woocommerce table.cart th.product-name,
.woocommerce table.cart td.product-name{width:100%; text-align:left}
.woocommerce table.cart td.product-name{font-size:15px}

.woocommerce table.cart th.product-price,
.woocommerce table.cart td.product-price,
.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity,
.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-subtotal{
  width:1%; white-space:nowrap; text-align:right;
  font-variant-numeric:tabular-nums;
}
.woocommerce table.cart th.product-quantity,
.woocommerce table.cart td.product-quantity{text-align:center}
.woocommerce table.cart td.product-subtotal{font-weight:700; color:var(--ink)}

/* Coupon + update row.
   This cell carries a colspan across the whole table, and display:flex would
   drop it out of table layout and collapse that span - so it stays a table
   cell and the children are floated instead. */
.woocommerce table.cart td.actions{
  display:table-cell; background:var(--ground);
  padding:14px; text-align:left; overflow:hidden;
}
.woocommerce table.cart td.actions .coupon{
  display:inline-flex; align-items:center; gap:8px; margin:0; float:left;
}
.woocommerce table.cart td.actions .coupon label{display:none}
.woocommerce table.cart td.actions .coupon input#coupon_code{
  width:210px; padding:12px 13px; border:1px solid var(--line-2);
  border-radius:var(--radius); font-family:inherit; font-size:14px;
  background:var(--surface);
}
.woocommerce table.cart td.actions .button{white-space:nowrap}
.woocommerce table.cart td.actions > .button,
.woocommerce table.cart td.actions > button[name="update_cart"],
.woocommerce table.cart td.actions > input[name="update_cart"]{float:right}

/* An inactive control should read as "not yet", not as broken. */
.woocommerce .button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled{
  background:transparent; color:var(--muted);
  border:1px solid var(--line-2); opacity:1; cursor:default;
}
.woocommerce button.button:disabled:hover{background:transparent; color:var(--muted)}

/* Totals.
 *
 * The summary holds two different kinds of thing, and stretching a table
 * across the page serves neither: the shipping chooser wants the width,
 * while a label and a figure separated by 1700px of nothing reads as a
 * mistake. So the table stops behaving as a table - the chooser spans the
 * panel, the figures sit as a compact block at the right, and the tbody
 * becomes a flex column so the chooser can come first regardless of the
 * order WooCommerce prints the rows in.
 */
.woocommerce-cart .cart_totals h2{
  font-size:15px; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:16px;
}
.woocommerce-cart .cart_totals table{display:block; border:none; margin:0}
.woocommerce-cart .cart_totals tbody{display:flex; flex-direction:column}

/* Delivery: full width, first. */
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals{
  order:-1; display:block; width:100%; max-width:none; margin:0 0 28px;
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
}
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals th{
  display:block; width:auto; text-align:left; padding:12px 16px;
  background:var(--ground); border-bottom:1px solid var(--line);
}
.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td{
  display:block; width:auto; text-align:left; padding:16px;
  background:var(--surface); border:none;
}

/* Figures: a compact block at the right. */
.woocommerce-cart .cart_totals tr:not(.woocommerce-shipping-totals){
  display:flex; align-items:baseline; justify-content:space-between; gap:24px;
  width:100%; max-width:440px; margin-left:auto;
  padding:13px 0; border-bottom:1px solid var(--line);
}
.woocommerce-cart .cart_totals tr:not(.woocommerce-shipping-totals) th,
.woocommerce-cart .cart_totals tr:not(.woocommerce-shipping-totals) td{
  display:block; width:auto; padding:0; border:none;
  background:transparent; text-align:right;
}
.woocommerce-cart .cart_totals tr:not(.woocommerce-shipping-totals) th{text-align:left}
.woocommerce-cart .cart_totals td{font-variant-numeric:tabular-nums}
.woocommerce-cart .cart_totals tr.order-total{
  border-bottom:none; border-top:2px solid var(--ink);
  padding-top:16px; margin-top:2px;
}
.woocommerce-cart .cart_totals tr.order-total th{font-size:12.5px}
.woocommerce-cart .cart_totals tr.order-total .amount{font-size:23px; font-weight:700; color:var(--ink)}

/* Shipping method chooser.
   Five carriers with long Czech labels wrap badly in a narrow column, so
   they are laid out as cards that reflow to the available width - one per
   row inside a narrow checkout summary, several across a full-width cart. */
.woocommerce ul#shipping_method,
.woocommerce ul.woocommerce-shipping-methods{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px;
}
.woocommerce ul#shipping_method li{
  margin:0; padding:15px 16px; text-indent:0; line-height:1.45;
  display:flex; gap:11px; align-items:flex-start;
  border:1px solid var(--line-2); border-radius:var(--radius);
  background:var(--surface); cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.woocommerce ul#shipping_method li:hover{border-color:var(--ink)}
.woocommerce ul#shipping_method li:has(input:checked){
  border-color:var(--varp-red); background:var(--varp-red-tint);
  box-shadow:inset 0 0 0 1px var(--varp-red);
}
.woocommerce ul#shipping_method li input[type="radio"]{margin:3px 0 0; flex:none}
.woocommerce ul#shipping_method li label{margin:0; font-size:14px; cursor:pointer; flex:1}
.woocommerce ul#shipping_method .amount{font-weight:700; color:var(--ink); white-space:nowrap}
.woocommerce p.woocommerce-shipping-destination{
  margin:14px 0 0; padding-top:12px; border-top:1px solid var(--line);
  font-size:13px; color:var(--muted); line-height:1.5;
}
.woocommerce .shipping-calculator-button{
  display:inline-block; margin-top:6px; font-size:13px; font-weight:600;
  text-decoration:underline; text-underline-offset:2px;
}
.woocommerce form.woocommerce-shipping-calculator{margin:12px 0 0}

/* Empty cart */
.woocommerce .cart-empty{
  font-size:19px; font-weight:700; color:var(--ink);
  margin:0 0 8px; padding:0; border:none; background:none;
}
.woocommerce .return-to-shop{margin:18px 0 0}

/* ==========================================================================
   Checkout
   ========================================================================== */
.woocommerce-checkout .woocommerce{max-width:none}
.woocommerce-checkout h3{
  font-size:16px; letter-spacing:.06em; text-transform:uppercase;
  padding-bottom:10px; border-bottom:2px solid var(--ink); margin-bottom:18px;
}
.woocommerce-checkout #order_review_heading{
  font-size:16px; letter-spacing:.06em; text-transform:uppercase;
  padding-bottom:10px; border-bottom:2px solid var(--ink);
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th{
  background:transparent; border-bottom:1px solid var(--line);
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td{
  text-align:right; font-variant-numeric:tabular-nums;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot .order-total td{
  border-top:2px solid var(--ink); border-bottom:none; font-size:17px; color:var(--ink);
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{margin:0 0 16px; font-size:13.5px}
.woocommerce-checkout .woocommerce-privacy-policy-text{font-size:13px; color:var(--muted)}
.woocommerce form .form-row.woocommerce-validated input.input-text{border-color:var(--ok)}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:var(--varp-red)}
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle{margin-bottom:18px}

/* ==========================================================================
   My account
   ========================================================================== */
/* The nav only renders when logged in, so .logged-in is a reliable proxy and
   avoids depending on :has(). Selectors are deliberately one step more
   specific than WooCommerce's own, which target the same elements. */
body.woocommerce-account.logged-in .woocommerce{
  display:grid; grid-template-columns:210px minmax(0,1fr);
  gap:40px; align-items:start;
}
body.woocommerce-account .woocommerce-MyAccount-navigation{
  width:auto; float:none; margin:0;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none; margin:0; padding:0; display:flex; flex-direction:column;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin:0; padding:0; border-bottom:1px solid var(--line); list-style:none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display:block; padding:11px 0; font-size:14px; font-weight:600; color:var(--ink);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{color:var(--varp-red)}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{color:var(--varp-red)}
body.woocommerce-account .woocommerce-MyAccount-content{
  width:auto; float:none; min-width:0; margin:0;
}
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child{margin-top:0}
.woocommerce-account:not(.logged-in) form.login,
.woocommerce-account:not(.logged-in) form.register{max-width:440px; margin-left:auto; margin-right:auto}

/* ==========================================================================
   Order received / order detail
   ========================================================================== */
.woocommerce ul.order_details{
  list-style:none; margin:0 0 30px; padding:20px; background:var(--ground);
  border-radius:var(--radius); display:flex; flex-wrap:wrap; gap:26px;
}
.woocommerce ul.order_details li{
  margin:0; padding:0; border:none; float:none;
  font-size:11.5px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--muted);
  display:flex; flex-direction:column; gap:4px;
}
.woocommerce ul.order_details li strong{
  font-size:16px; letter-spacing:0; text-transform:none; color:var(--ink);
}
.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details{margin-top:30px}
.woocommerce .woocommerce-column__title,
.woocommerce .woocommerce-order-details__title{
  font-size:16px; letter-spacing:.06em; text-transform:uppercase;
  padding-bottom:10px; border-bottom:2px solid var(--ink); margin-bottom:16px;
}
.woocommerce .woocommerce-customer-details address{
  border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; font-style:normal; line-height:1.7;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.woocommerce .woocommerce-breadcrumb{
  font-size:13px; color:var(--muted); margin:0 0 20px;
}
.woocommerce .woocommerce-breadcrumb a{color:var(--muted)}
.woocommerce .woocommerce-breadcrumb a:hover{color:var(--varp-red)}

/* ==========================================================================
   Variations, quantity, reviews
   ========================================================================== */
.woocommerce div.product form.cart table.variations{border:none; margin:0 0 14px}
.woocommerce div.product form.cart table.variations td,
.woocommerce div.product form.cart table.variations th{
  border:none; padding:0 0 12px; background:none; display:block; text-align:left;
}
.woocommerce div.product form.cart table.variations th{
  font-size:13px; letter-spacing:0; text-transform:none; padding-bottom:6px;
}
.woocommerce div.product form.cart .reset_variations{
  font-size:13px; text-decoration:underline; text-underline-offset:2px;
}
.woocommerce div.product .woocommerce-variation-price{margin:0 0 14px}

.woocommerce #reviews #comments ol.commentlist{list-style:none; margin:0; padding:0}
.woocommerce #reviews #comments ol.commentlist li{
  margin:0 0 20px; padding:0 0 20px; border-bottom:1px solid var(--line);
}
.woocommerce #reviews .comment-text{margin:0; padding:0; border:none}
.woocommerce p.stars a{color:var(--varp-red)}
.woocommerce .star-rating span{color:var(--varp-red)}

/* ==========================================================================
   Header search
   ========================================================================== */
.header-search{
  display:flex; align-items:center; background:var(--surface);
  border:1px solid var(--line-2); border-radius:100px; overflow:hidden;
}
.header-search:focus-within{border-color:var(--ink)}
.header-search input[type="search"]{
  width:180px; padding:8px 4px 8px 16px; border:none; outline:none;
  background:transparent; color:var(--ink-2);
  font-family:inherit; font-size:14px;
}
.header-search input[type="search"]::-webkit-search-cancel-button{display:none}
.header-search button{
  background:transparent; border:none; cursor:pointer;
  padding:8px 14px 8px 6px; color:var(--ink);
  display:grid; place-content:center;
}
.header-search button:hover{background:transparent; color:var(--varp-red)}
.header-search svg{width:17px; height:17px; display:block}

/* ==========================================================================
   Category navigation - the landing-page filter, promoted into the header
   ========================================================================== */
.main-nav ul.nav-categories{list-style:none; margin:0; padding:0}
.main-nav a.is-active{color:var(--varp-red); border-bottom-color:var(--varp-red)}

/* ==========================================================================
   Sort control
   ========================================================================== */
.sort-control{display:flex; justify-content:flex-end; margin:0 0 22px}
.sort-control select{
  padding:9px 13px; border:1px solid var(--line-2); border-radius:var(--radius);
  background:var(--surface); color:var(--ink-2);
  font-family:inherit; font-size:14px; cursor:pointer;
}
.sort-control select:focus{border-color:var(--varp-red); outline:none}

/* ==========================================================================
   Product card hover
   ========================================================================== */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product a img{transition:color .15s ease, opacity .15s ease}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title{color:var(--varp-red)}
.woocommerce ul.products li.product:hover a img{opacity:.94}

/* ==========================================================================
   Stock
   ========================================================================== */
.woocommerce ul.products li.product .stock-badge{
  position:absolute; top:10px; right:10px; z-index:2;
  background:var(--ink); color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 9px; border-radius:var(--radius); line-height:1.4;
}
.woocommerce ul.products li.product.outofstock a img{opacity:.55}
.woocommerce ul.products li.product.outofstock:hover a img{opacity:.55}

.woocommerce div.product .stock{font-size:14px; font-weight:600; margin:0 0 12px}
.woocommerce div.product .stock.in-stock{color:var(--ok-text)}
.woocommerce div.product .stock.out-of-stock{color:var(--varp-red)}

/* ==========================================================================
   Cross-sells - full width, above the totals
   ========================================================================== */
.woocommerce-cart .cross-sells{margin:0 0 40px}
.woocommerce-cart .cross-sells h2{
  font-size:15px; letter-spacing:.06em; text-transform:uppercase;
  padding-bottom:10px; border-bottom:2px solid var(--ink); margin-bottom:20px;
}
.woocommerce-cart .cross-sells ul.products,
.woocommerce-cart .cross-sells ul.products[class*="columns-"]{
  grid-template-columns:repeat(4,1fr); gap:var(--gap);
}

/* ==========================================================================
   Review form
   Comments are disabled theme-wide, but WooCommerce builds product reviews
   on the same system and its form carries .comment-form - so these rules
   style reviews, not comments.
   ========================================================================== */
.comment-form p{margin:0 0 14px}
.comment-form label{display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:5px}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{
  width:100%; padding:12px 13px; border:1px solid var(--line-2);
  border-radius:var(--radius); font-family:inherit; font-size:15px;
  background:var(--surface); color:var(--ink-2);
}
.comment-form textarea:focus,
.comment-form input:focus{border-color:var(--varp-red); outline:none}

/* ==========================================================================
   Search form
   ========================================================================== */
.search-form{display:flex; gap:8px; max-width:460px; margin:0 0 24px}
.search-form input[type="search"]{
  flex:1 1 auto; min-width:0; padding:12px 13px;
  border:1px solid var(--line-2); border-radius:var(--radius);
  font-family:inherit; font-size:15px; background:var(--surface); color:var(--ink-2);
}
.search-form input[type="search"]:focus{border-color:var(--varp-red); outline:none}
.search-form button{flex:none}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1100px){
  /* Both selectors, or WooCommerce's own columns-N rule outweighs this. */
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-"]{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:900px){
  .hero.has-image .hero-card{left:18px; bottom:18px; padding:20px 22px}
  .woocommerce-cart .cross-sells ul.products,
  .woocommerce-cart .cross-sells ul.products[class*="columns-"]{
    grid-template-columns:repeat(3,1fr);
  }
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-"]{grid-template-columns:repeat(3,1fr)}
  .woocommerce div.product{grid-template-columns:1fr; gap:26px}
  /* Stacked, there is nothing left to scroll past, and a cover at the full
     width of a tablet is bigger than it needs to be. */
  .woocommerce div.product div.images{max-width:520px}
  .woocommerce div.product form.cart .button{min-width:0}
  body.woocommerce-account.logged-in .woocommerce{
    grid-template-columns:minmax(0,1fr); gap:26px;
  }
}
@media (max-width:680px){
  .woocommerce ul.products,
  .woocommerce ul.products[class*="columns-"]{grid-template-columns:repeat(2,1fr); gap:16px}
  /* Below this the card cannot hold a readable overlay, so it drops under
     the image and the block reads as photo-then-text. */
  .hero{margin-bottom:32px}
  .hero-media .hero-image{height:clamp(190px,52vw,280px)}
  .hero.has-image .hero-card{
    position:static; max-width:none; border-radius:0;
    padding:22px 20px; box-shadow:none;
  }
  .hero.no-image .hero-card{padding:28px 20px}
  .hero-cta{display:block; text-align:center}
  .front-page-products .page-header.shop-header{align-items:stretch}
  .shop-section{margin-bottom:40px}
  .shop-section-head{margin-bottom:16px}
  .nav-toggle{display:block; margin:10px 0}
  .header-nav .wrap{flex-direction:column; align-items:stretch; gap:0}
  .main-nav{display:none; padding-bottom:10px}
  .main-nav.is-open{display:block}
  .main-nav ul{flex-direction:column; gap:0}
  .main-nav a{padding:11px 0; border-bottom:1px solid var(--line)}
  .account-link{padding-bottom:12px}
  .cart-collaterals{justify-content:stretch}
  .woocommerce .cart_totals,
  .woocommerce-cart .cart_totals{max-width:none; margin-left:0}
  /* No room to keep the figures in a right-hand block. */
  .woocommerce-cart .cart_totals tr:not(.woocommerce-shipping-totals){
    max-width:none; margin-left:0;
  }
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button{max-width:none}
  .woocommerce table.shop_table img{width:46px}

  /* Stacked cart rows - a four-column table does not survive 360px. */
  .woocommerce table.cart thead{display:none}
  .woocommerce table.cart tbody tr.woocommerce-cart-form__cart-item{
    display:grid; grid-template-columns:52px minmax(0,1fr);
    gap:4px 12px; padding:14px 36px 14px 14px;
    border-bottom:1px solid var(--line); position:relative;
  }
  .woocommerce table.cart tbody tr.woocommerce-cart-form__cart-item td{
    border:none; padding:0; display:block;
  }
  .woocommerce table.cart td.product-thumbnail{
    grid-column:1; grid-row:1 / -1; width:auto; padding:0;
  }
  .woocommerce table.cart td.product-thumbnail img{width:52px}
  .woocommerce table.cart td.product-remove{
    position:absolute; top:12px; right:10px; width:auto; padding:0;
  }
  .woocommerce table.cart td.product-name{width:auto; font-weight:600}
  .woocommerce table.cart td.product-price,
  .woocommerce table.cart td.product-quantity,
  .woocommerce table.cart td.product-subtotal{width:auto; text-align:left}
  .woocommerce table.cart td.product-price{font-size:14px; color:var(--muted)}
  .woocommerce table.cart td.product-subtotal{font-weight:700}

  .woocommerce table.cart td.actions{display:block; text-align:left}
  .woocommerce table.cart td.actions .coupon{
    float:none; display:flex; width:100%; margin:0 0 10px;
  }
  .woocommerce table.cart td.actions .coupon input#coupon_code{
    flex:1 1 auto; width:auto; min-width:0;
  }
  .woocommerce table.cart td.actions > .button,
  .woocommerce table.cart td.actions > button[name="update_cart"],
  .woocommerce table.cart td.actions > input[name="update_cart"]{float:none; width:100%}

  /* Keep the buy button reachable without scrolling back up the page. */
  .single-product div.product form.cart{
    position:sticky; bottom:0; z-index:5;
    margin:22px -20px 0; padding:12px 20px;
    background:var(--surface); border-top:1px solid var(--line);
  }
  .single-product div.product form.cart .single_add_to_cart_button{flex:1 1 auto}
  .single-product div.product form.cart .variations{position:static}

  .woocommerce-cart .cross-sells ul.products,
  .woocommerce-cart .cross-sells ul.products[class*="columns-"]{
    grid-template-columns:repeat(2,1fr);
  }

  .woocommerce ul.order_details{flex-direction:column; gap:16px}
  .woocommerce .woocommerce-message,
  .woocommerce .woocommerce-info{gap:12px}
  .woocommerce .woocommerce-message .button,
  .woocommerce .woocommerce-info .button{margin-left:0; width:100%}
}
@media (max-width:820px){
  .header-search input[type="search"]{width:130px}
}
@media (max-width:560px){
  .header-search input[type="search"]{width:100px; padding-left:13px}
  .header-search button{padding:8px 11px 8px 4px}
  .sort-control{justify-content:stretch}
  .sort-control select{width:100%}
}
@media (max-width:420px){
  .cart-link{padding:9px 14px}
  .cart-link .cart-label{display:none}
  .header-search{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important; animation:none!important}
  /* The lift is motion too, not just a transition. */
  .woocommerce ul.products li.product:hover{transform:none}
}