/*
Theme Name: Kriipsik
Description: Kriipsik OÜ e-poe uus teema (demo). Asendab Impreza + WPBakery + Elementori.
Version: 0.5.1
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: kriipsik
*/

/* ------------------------------------------------------------------ tokens
   Colours follow the live site's identity: charcoal header with the white
   logo, blue accent. System font stack — no webfont request. */
:root {
  --ink: #27282a;
  --ink-soft: #4b4e52;
  --muted: #666d70;
  --line: #e0e0e0;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --accent: #277cea;
  --accent-ink: #1a5fb9;
  --accent-deep: #154d96;
  --accent-light: #7db3f7; /* blue for text on the dark header and footer, contrast 7:1 */
  --header-bg: #27282a;
  --header-ink: #ffffff;
  --header-h: 4rem;
  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 4px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font: 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.85rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 40rem) { :root { --gutter: 1.5rem; } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 100;
  padding: .5rem 1rem; background: var(--bg); color: var(--ink); border-radius: var(--radius);
}
.skip-link:focus { top: .5rem; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); color: var(--header-ink);
}
.site-header-inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--header-h);
}
.site-header a { color: inherit; text-decoration: none; }

.site-logo { display: block; flex-shrink: 0; margin-right: auto; padding-block: .5rem; }
.site-logo svg { height: 2.25rem; width: auto; }

/* Cart: icon with a count badge. */
.site-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
}
.site-cart:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.site-cart-count {
  position: absolute; top: .2rem; right: .2rem;
  min-width: 1.15rem; height: 1.15rem; padding-inline: .25rem;
  font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center;
  background: var(--accent-ink); color: #fff; border-radius: 1rem;
}
.site-cart-count[data-count="0"] { display: none; }

/* Menu button, mobile only. */
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 2.75rem; padding-inline: .6rem; border: 0; border-radius: var(--radius);
  background: none; color: inherit; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-label { font-size: .85rem; font-weight: 600; }

/* Navigation: a panel under the header on small screens. */
.site-nav { display: none; }
.nav-open .site-nav {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--header-bg); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: .5rem var(--gutter) 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu > li > a {
  display: block; padding: .75rem 0; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-nav .sub-menu a { display: block; padding: .5rem 0 .5rem 1.25rem; opacity: .85; }
.site-nav .current-menu-item > a { color: var(--accent-light); }
.site-nav-search { margin-top: 1rem; }

.search-form { display: flex; gap: 0; }
.search-form-input {
  flex: 1; min-width: 0; padding: .5rem .75rem;
  border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  background: #fff; color: var(--ink);
}
.search-form-submit {
  display: inline-flex; align-items: center; padding-inline: .7rem;
  border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-ink); color: #fff; cursor: pointer;
}
.search-form-submit:hover { background: var(--accent-deep); }

/* Desktop: inline menu with hover dropdown, compact search, no toggle. */
@media (min-width: 60rem) {
  :root { --header-h: 4.5rem; }
  .site-logo svg { height: 2.5rem; }
  .nav-toggle { display: none; }
  .site-logo { margin-right: 0; }
  .site-nav, .nav-open .site-nav {
    display: flex; flex: 1; align-items: center; gap: 1.25rem;
    position: static; max-height: none; overflow: visible; background: none; border: 0; padding: 0;
    margin-left: 1rem;
  }
  .site-nav .menu { display: flex; gap: .25rem; margin-right: auto; }
  .site-nav .menu > li { position: relative; }
  .site-nav .menu > li > a {
    padding: .5rem .7rem; border: 0; border-radius: var(--radius); font-weight: 500;
  }
  .site-nav .menu > li > a:hover, .site-nav .menu > li:focus-within > a { background: rgba(255, 255, 255, .08); }
  .site-nav .sub-menu {
    position: absolute; left: 0; top: 100%; min-width: 15rem;
    padding: .4rem 0; background: var(--header-bg); border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
  }
  .site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav .sub-menu a { padding: .5rem 1rem; opacity: 1; white-space: nowrap; }
  .site-nav .sub-menu a:hover { background: rgba(255, 255, 255, .08); }
  .site-nav-search { margin: 0; }
  .search-form-input { width: 11rem; padding-block: .4rem; }
}

/* ---------------------------------------------------------------- content */
.site-main { padding-block: 2rem 3rem; }
@media (min-width: 60rem) { .site-main { padding-block: 3rem 4rem; } }

.page-header { margin-bottom: 1.5rem; }
.page-title { margin: 0; }

/* Readable measure for text pages; shop pages (cart, checkout, account)
   need the full width for their tables. */
.page-content { max-width: 70ch; }
.woocommerce-page .page-content, .woocommerce .page-content { max-width: none; }

.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content th, .entry-content td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
.entry-content blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--ink-soft); }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--header-bg); color: #d9dadc; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer-inner {
  display: grid; gap: 2rem; padding-block: 2.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 40rem) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60rem) { .site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 3rem; padding-block: 3.5rem 2.5rem; } }
.site-footer-logo { display: inline-block; color: #fff; }
.site-footer-logo svg { height: 2rem; width: auto; }
.site-footer-tagline { margin: 1rem 0 0; max-width: 28ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer-nav li, .site-footer-social li { margin-bottom: .4rem; }
.site-footer-contact { font-style: normal; line-height: 1.8; }
.site-footer-legal { padding-block: 1rem; font-size: .85rem; color: #a9adb2; }
.site-footer-legal p { margin: 0; }

/* ---------------------------------------------------------- shared parts
   Buttons and form fields are shared by the theme and every WooCommerce
   screen, so they are defined once here. */
.button, button.button, .single_add_to_cart_button, .checkout-button, #place_order,
.woocommerce-button, .woocommerce-Button, .wc-backward, input[type="submit"], .added_to_cart {
  display: inline-block; padding: .65rem 1.25rem; border: 1px solid var(--accent-ink);
  border-radius: var(--radius); background: var(--accent-ink); color: #fff !important;
  font-weight: 600; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.button:hover, button.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover,
#place_order:hover, .woocommerce-button:hover, .woocommerce-Button:hover, .wc-backward:hover,
input[type="submit"]:hover, .added_to_cart:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.button:disabled, button:disabled, .button.disabled { opacity: .5; cursor: not-allowed; }
.button.alt { background: var(--ink); border-color: var(--ink); }
.button.alt:hover { background: #000; border-color: #000; }
.added_to_cart, .wc-backward { background: transparent; color: var(--accent-ink) !important; }
.added_to_cart:hover, .wc-backward:hover { background: var(--accent-ink); color: #fff !important; }

.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #c9cbcf; border-radius: var(--radius);
  background: #fff; color: var(--ink); line-height: 1.4;
}
textarea { min-height: 7rem; resize: vertical; }
.input-text:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent); }
label { display: block; font-weight: 500; margin-bottom: .3rem; }
label .required { color: #c0392b; text-decoration: none; }
label .optional { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Notices: "lisati korvi", errors, info. */
.woocommerce-message, .woocommerce-error, .woocommerce-info, .woocommerce-notice, .cart-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  margin: 0 0 1.5rem; padding: .85rem 1rem; list-style: none;
  border-left: 4px solid var(--accent); border-radius: var(--radius); background: #eef4fd;
}
.woocommerce-error { border-color: #c0392b; background: #fdf1ef; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { margin: 0; }
.woocommerce-notices-wrapper:empty { display: none; }

/* --------------------------------------------------------- product grid */
ul.products {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 1.5rem 1rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { ul.products { grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; } }
ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; }
ul.products li.product .woocommerce-LoopProduct-link { color: inherit; text-decoration: none; flex: 1; }
ul.products li.product img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
  transition: opacity .15s;
}
ul.products li.product a:hover img { opacity: .9; }
ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem; font-weight: 500; margin: .75rem 0 .25rem; line-height: 1.35;
}
ul.products li.product .price { display: block; font-weight: 600; margin-bottom: .6rem; }
.price del { color: var(--muted); font-weight: 400; margin-right: .35rem; }
.price ins { text-decoration: none; }
ul.products li.product .button { padding: .5rem 1rem; font-size: .9rem; align-self: flex-start; }
ul.products li.product .button.loading { opacity: .6; }
ul.products li.product .added_to_cart { margin-left: .5rem; padding: .5rem .75rem; font-size: .9rem; }
.onsale {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  padding: .2rem .55rem; border-radius: var(--radius);
  background: var(--accent-ink); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
/* Star ratings are not used in this shop. */
.star-rating { display: none; }

/* ------------------------------------------------------- shop / category */
.woocommerce-breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.woocommerce-breadcrumb a { color: inherit; }
.woocommerce-products-header { margin-bottom: 1.25rem; }
.woocommerce-products-header__title { margin: 0; }
.term-description { max-width: 70ch; color: var(--ink-soft); }

.category-chips { margin: 0 0 1.5rem; }
.category-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.category-chips a {
  display: inline-block; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 2rem;
  color: var(--ink); text-decoration: none; font-size: .9rem;
}
.category-chips a:hover { border-color: var(--ink); }
.category-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.woocommerce-result-count, .woocommerce-ordering { margin: 0 0 1.25rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 40rem) {
  .woocommerce-result-count { float: left; line-height: 2.4rem; }
  .woocommerce-ordering { float: right; }
  ul.products, .woocommerce-no-products-found { clear: both; }
}
.woocommerce-ordering select { width: auto; padding: .45rem 2rem .45rem .75rem; }
.woocommerce-no-products-found { margin-bottom: 2rem; }

.woocommerce-pagination { text-align: center; margin: 1rem 0 0; }
.woocommerce-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination span.page-numbers {
  display: inline-block; min-width: 2.4rem; padding: .45rem .6rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.woocommerce-pagination .page-numbers a:hover { border-color: var(--ink); }
.woocommerce-pagination span.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --------------------------------------------------------- single product */
.single-product div.product { display: grid; gap: 2rem; }
@media (min-width: 50rem) {
  .single-product div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .single-product div.product > .woocommerce-notices-wrapper,
  .single-product div.product > .related, .single-product div.product > .upsells { grid-column: 1 / -1; }
}
.single-product .woocommerce-product-gallery { position: relative; }
/* Server-rendered gallery: first image full width, the rest as a 5-up grid.
   WooCommerce hides the gallery (opacity 0) until its script runs; without the
   slider that script never runs, so the inline style is overridden. */
.single-product .woocommerce-product-gallery { opacity: 1 !important; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.single-product .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }
.single-product .woocommerce-product-gallery__image img { width: 100%; border-radius: var(--radius); background: var(--bg-soft); }
.single-product .woocommerce-product-gallery__image:not(:first-child) img { aspect-ratio: 1 / 1; object-fit: cover; }
.single-product .woocommerce-product-gallery__image a { display: block; }
.single-product .woocommerce-product-gallery__trigger {
  position: absolute; top: .75rem; right: .75rem; z-index: 2; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; font-size: 0;
}
.single-product .woocommerce-product-gallery__trigger::before {
  content: ""; width: .8rem; height: .8rem; border: 2px solid var(--ink); border-radius: 50%;
}
.single-product .woocommerce-product-gallery__trigger::after {
  content: ""; position: absolute; width: .45rem; height: 2px; background: var(--ink);
  transform: rotate(45deg) translate(.55rem, .1rem);
}

.single-product .summary .product_title { margin-bottom: .5rem; }
.single-product .summary .price { font-size: 1.4rem; font-weight: 600; margin: 0 0 1rem; }
.single-product .summary .woocommerce-product-details__short-description,
.single-product .summary .product-description { color: var(--ink-soft); margin-bottom: 1.25rem; }
.single-product .summary .stock { font-weight: 500; }
.single-product .summary .out-of-stock { color: #c0392b; }
.single-product .summary form.cart { margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.single-product .summary form.cart .quantity { display: inline-flex; }
.single-product .summary form.cart .qty { width: 4.5rem; text-align: center; }
.single-product .summary .single_add_to_cart_button { flex: 1 1 12rem; padding-block: .75rem; }
.single-product .summary form.cart.grouped_form { display: block; }
.single-product .summary .product_meta { font-size: .9rem; color: var(--muted); }
.single-product .summary .product_meta > span { display: block; }

/* Product Add-Ons fields (name/text on the product) live inside form.cart. */
.single-product .summary form.cart .wc-pao-addons-container,
.single-product .summary form.cart .wc-pao-addon-container { flex: 1 1 100%; }
.wc-pao-addon-container { margin-bottom: 1rem; }
.wc-pao-addon-name { display: block; font-weight: 500; margin-bottom: .3rem; }
.wc-pao-addon-description { font-size: .9rem; color: var(--muted); margin: .25rem 0 0; }
.wc-pao-addon-field { width: 100%; }
#product-addons-total { flex: 1 1 100%; }
.product-addon-totals ul { list-style: none; margin: 0; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-addon-totals li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.product-addon-totals .wc-pao-subtotal-line .price { margin: .5rem 0 0; font-size: 1.1rem; }

.woocommerce-grouped-product-list { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.woocommerce-grouped-product-list td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.woocommerce-grouped-product-list .qty { width: 4.5rem; }

.related.products, .upsells.products { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related.products > h2, .upsells.products > h2 { margin-bottom: 1.25rem; }

/* ------------------------------------------------------------------ cart */
table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
table.shop_table th, table.shop_table td { padding: .75rem .5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table th { font-weight: 600; font-size: .9rem; color: var(--muted); }
table.shop_table tfoot th, table.shop_table tfoot td { border-bottom: 0; }
table.shop_table .product-thumbnail img { width: 4.5rem; border-radius: var(--radius); }
table.shop_table .product-remove a.remove {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  color: var(--muted); font-size: 1.2rem; line-height: 1; text-decoration: none;
}
table.shop_table .product-remove a.remove:hover { background: #c0392b; color: #fff; }
table.shop_table .product-quantity .qty { width: 4.2rem; text-align: center; }
table.shop_table .variation, table.shop_table dl { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
table.shop_table dt, table.shop_table dd { display: inline; margin: 0; }
table.shop_table .actions { padding-top: 1rem; }
table.shop_table .actions .coupon { display: flex; gap: .5rem; margin-bottom: .75rem; }
table.shop_table .actions .coupon .input-text { width: auto; flex: 1; max-width: 16rem; }
table.shop_table .actions .coupon label { display: none; }
table.shop_table .actions > .button { background: var(--bg-soft); border-color: var(--line); color: var(--ink) !important; }

/* Phones: each cart row becomes a card. */
@media (max-width: 40rem) {
  table.shop_table.cart thead { display: none; }
  table.shop_table.cart tr { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .25rem .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  table.shop_table.cart td { display: block; padding: 0; border: 0; }
  table.shop_table.cart .product-thumbnail { grid-row: 1 / 4; }
  table.shop_table.cart .product-remove { grid-column: 3; grid-row: 1; text-align: right; }
  table.shop_table.cart .product-name { grid-column: 2; grid-row: 1; }
  table.shop_table.cart .product-price { grid-column: 2; grid-row: 2; color: var(--muted); }
  table.shop_table.cart .product-quantity { grid-column: 2; grid-row: 3; }
  table.shop_table.cart .product-subtotal { grid-column: 3; grid-row: 3; font-weight: 600; align-self: end; }
  table.shop_table.cart td.actions { grid-column: 1 / -1; }
}

.cart-collaterals { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .cart-collaterals { grid-template-columns: 1fr minmax(20rem, 26rem); } .cart_totals { grid-column: 2; } }
.cart_totals h2 { font-size: 1.25rem; }
.cart_totals table.shop_table th { width: 40%; color: var(--ink); }
.cart_totals .order-total td { font-size: 1.2rem; font-weight: 700; }
.wc-proceed-to-checkout .checkout-button { display: block; width: 100%; padding-block: .85rem; font-size: 1.05rem; }
.woocommerce-shipping-methods { list-style: none; margin: 0 0 .5rem; padding: 0; }
.woocommerce-shipping-methods li { margin-bottom: .35rem; }
.woocommerce-shipping-methods label { display: inline; font-weight: 400; }
.woocommerce-shipping-destination { font-size: .9rem; color: var(--muted); }
.shipping-calculator-button { font-size: .9rem; }
.cart-empty { display: block; }
.return-to-shop { margin: 0; }

/* -------------------------------------------------------------- checkout */
.woocommerce-checkout #customer_details { display: grid; gap: 1rem 2rem; margin-bottom: 2rem; }
@media (min-width: 60rem) { .woocommerce-checkout #customer_details { grid-template-columns: 1fr 1fr; } }
.woocommerce-checkout h3 { font-size: 1.2rem; margin: 0 0 1rem; }
.woocommerce-checkout .form-row { margin: 0 0 1rem; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.woocommerce-checkout .form-row-wide, .woocommerce-checkout .form-row.notes { grid-column: 1 / -1; }
.woocommerce-checkout .form-row.woocommerce-invalid .input-text { border-color: #c0392b; }
.woocommerce-checkout .form-row.woocommerce-validated .input-text { border-color: #2e8b57; }
#ship-to-different-address label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; }
.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }
.checkout_coupon { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.checkout_coupon .form-row { flex: 1; margin: 0; }

.woocommerce-checkout-review-order { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.woocommerce-checkout-review-order-table .product-name { width: 60%; }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 1.15rem; font-weight: 700; }
#payment .wc_payment_methods { list-style: none; margin: 0 0 1.25rem; padding: 0; }
#payment .wc_payment_method { padding: .75rem 0; border-bottom: 1px solid var(--line); }
#payment .wc_payment_method > label { display: inline; font-weight: 500; }
#payment .wc_payment_method input[type="radio"] { margin-right: .5rem; }
#payment .payment_box { margin: .5rem 0 0; padding: .75rem 1rem; border-radius: var(--radius); background: #fff; font-size: .95rem; color: var(--ink-soft); }
#payment .payment_box p:last-child { margin-bottom: 0; }
#payment .woocommerce-privacy-policy-text { font-size: .85rem; color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 1rem 0; }
.woocommerce-terms-and-conditions-wrapper label { display: inline; font-weight: 400; }
.woocommerce-terms-and-conditions { max-height: 12rem; overflow: auto; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
#place_order { width: 100%; padding-block: .9rem; font-size: 1.05rem; }

/* WooCommerce's selectWoo country/region dropdown. */
.select2-container .select2-selection--single { height: auto; padding: .6rem .75rem; border: 1px solid #c9cbcf; border-radius: var(--radius); }
.select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--ink); }
.select2-container .select2-selection--single .select2-selection__arrow { top: 50%; right: .5rem; transform: translateY(-50%); }
.select2-dropdown { border-color: #c9cbcf; border-radius: var(--radius); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent); }
.select2-container--default .select2-search--dropdown .select2-search__field { border-color: #c9cbcf; border-radius: var(--radius); }

/* -------------------------------------------------- order received page */
.woocommerce-thankyou-order-received { font-size: 1.2rem; font-weight: 600; }
.woocommerce-order-overview { list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.woocommerce-order-overview li { margin: 0; font-size: .9rem; color: var(--muted); }
.woocommerce-order-overview strong { display: block; color: var(--ink); font-size: 1rem; }
.woocommerce-bacs-bank-details { margin-bottom: 1.5rem; }
.wc-bacs-bank-details { list-style: none; margin: 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; }
.woocommerce-column--billing-address, .woocommerce-column--shipping-address { margin-bottom: 1.5rem; }
@media (min-width: 50rem) { .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* --------------------------------------------------------------- account */
.woocommerce-account .woocommerce { display: grid; gap: 2rem; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
@media (min-width: 50rem) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 14rem 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: .5rem .75rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.woocommerce-MyAccount-navigation a:hover { background: var(--bg-soft); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-EditAccountForm { max-width: 28rem; }
.woocommerce-form-login .form-row, .woocommerce-form-register .form-row, .woocommerce-EditAccountForm .form-row, .woocommerce-ResetPassword .form-row { margin: 0 0 1rem; }
.woocommerce-form-login__rememberme { display: inline-flex; gap: .5rem; align-items: center; font-weight: 400; }
.woocommerce-form-login__submit { margin-top: .5rem; }
.u-columns { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-orders-table__cell-order-actions .button { padding: .4rem .75rem; font-size: .85rem; }
.woocommerce-address-fields__field-wrapper .form-row { margin: 0 0 1rem; }
.show-password-input { display: none; }

/* ------------------------------------------------------------ front page */
.home-intro { padding: 1rem 0 2.5rem; max-width: 40rem; }
.home-intro-title { margin-bottom: .75rem; }
.home-intro-text { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
@media (min-width: 60rem) { .home-intro { padding: 1.5rem 0 3.5rem; } .home-intro-text { font-size: 1.2rem; } }

.home-section { margin-bottom: 3rem; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.home-section-head h2 { margin: 0; }
.home-section-head a { white-space: nowrap; text-decoration: none; font-weight: 500; }
.home-section-head a:hover { text-decoration: underline; }
.home-section ul.products { margin-bottom: 0; }

.category-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .category-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .category-tiles { gap: 1.5rem; } }
.category-tile a { display: block; color: inherit; text-decoration: none; }
.category-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); transition: opacity .15s; }
.category-tile a:hover img { opacity: .9; }
.category-tile-name { display: block; margin-top: .6rem; font-weight: 600; }
.category-tile-count { display: block; font-size: .85rem; color: var(--muted); }

.home-thanks { margin: 0 0 3rem; padding: 1.5rem; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: var(--radius); font-size: 1.1rem; }
.home-thanks p { margin: 0; max-width: 60ch; }

.testimonials { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.testimonial-title { font-size: 1.05rem; margin-bottom: .5rem; }
.testimonial-text { flex: 1; margin: 0 0 .75rem; padding: 0; border: 0; color: var(--ink-soft); }
.testimonial-text p:last-child { margin-bottom: 0; }
.testimonial-name { margin: 0; font-weight: 600; font-size: .9rem; }
.testimonial img.emoji { display: inline; width: 1em; height: 1em; vertical-align: -.1em; }

/* ----------------------------------------------------------- contact form */
.contact-form-section { max-width: 32rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-form p { margin: 0 0 1rem; }
.contact-form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
