/* =========================================================================
   Khyber Nawab — WooCommerce pages
   Loaded only on shop / product / category / cart / checkout / account.
   Layers on top of WooCommerce's default stylesheets; reuses the theme tokens
   and .p-card design from theme.css.
   ========================================================================= */

/* ---------- Shop / category layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 34px 0 56px;
}
.shop-layout .shop-sidebar { grid-column: 1; grid-row: 1; }
.shop-layout .shop-main    { grid-column: 2; grid-row: 1; min-width: 0; }

/* Page/category header */
.woocommerce-products-header,
.wc-single .product .entry-header { margin-bottom: 18px; }
.woocommerce-products-header__title,
.shop-main h1.page-title {
  font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px;
}
.term-description, .woocommerce-products-header .term-description p { color: var(--muted); font-size: 14.5px; max-width: 70ch; }

/* Toolbar: result count + ordering */
.woocommerce .shop-main .woocommerce-result-count,
.woocommerce-page .shop-main .woocommerce-result-count {
  float: none; margin: 0; font-size: 13.5px; color: var(--muted);
}
.shop-toolbar,
.woocommerce .shop-main > form.woocommerce-ordering { margin: 0; }
.woocommerce .shop-main::after { content: ""; display: table; clear: both; }
.shop-main .woocommerce-result-count { display: inline-block; }
.woocommerce .shop-main .woocommerce-ordering { float: right; margin-bottom: 18px; }
.woocommerce .shop-main .woocommerce-ordering select {
  font: inherit; font-size: 13.5px; padding: 9px 12px; border: 1.5px solid var(--line-2);
  border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer;
}
.woocommerce .shop-main .woocommerce-ordering select:focus { outline: none; border-color: var(--accent); }

/* ---------- Product grid: force our card grid over WC floats ---------- */
.woocommerce .shop-main ul.products,
.woocommerce-page .shop-main ul.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none; clear: both;
}
.woocommerce .shop-main ul.products::before,
.woocommerce .shop-main ul.products::after { content: none; display: none; }
.woocommerce .shop-main ul.products li.product,
.woocommerce-page .shop-main ul.products li.product {
  width: auto; margin: 0; padding: 0; float: none;
}
/* our .p-card base styling comes from theme.css; a few WC-specific bits: */
.p-card .p-media-link { display: grid; place-items: center; width: 100%; height: 100%; }
.p-card .p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-card.outofstock { opacity: .92; }
.tag.out { background: var(--muted); }
.p-rate-empty .st { color: var(--line-2); }

/* WooCommerce price markup inside our card */
.p-card .p-price { font-size: 0; margin-top: auto; padding-top: 6px; }
.p-card .p-price .woocommerce-Price-amount,
.p-card .p-price ins .woocommerce-Price-amount { font-size: 17px; font-weight: 800; color: var(--ink); text-decoration: none; }
.p-card .p-price del { margin-left: 8px; }
.p-card .p-price del .woocommerce-Price-amount { font-size: 13px; font-weight: 500; color: var(--muted); }
.p-card .p-price ins { text-decoration: none; }

/* Loop add-to-cart styled as .p-add */
.woocommerce ul.products li.product .p-body .button,
.p-card .p-body a.button,
.p-card .p-body button.button {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: #fff; color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 8px; padding: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.2;
  text-align: center; transition: background .15s, color .15s;
}
.p-card .p-body a.button:hover,
.p-card .p-body button.button:hover { background: var(--accent); color: #fff; }
.p-card .p-body a.button.loading { opacity: .7; }
.p-card .p-body a.added_to_cart {
  margin-top: 8px; display: block; text-align: center; font-size: 12.5px; font-weight: 700;
  color: var(--green); padding: 4px;
}

/* ---------- Sidebar widgets ---------- */
.shop-sidebar .shop-widget { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.shop-sidebar .shop-widget:last-child { border-bottom: none; }
.shop-widget-title { font-size: 14px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--ink); }
.shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shop-sidebar .product-categories li { padding: 5px 0; }
.shop-sidebar .product-categories a { font-size: 14px; color: var(--ink-2); }
.shop-sidebar .product-categories a:hover { color: var(--accent); }
.shop-sidebar .product-categories .count { color: var(--muted); font-size: 12.5px; }
.shop-sidebar .price_slider_wrapper .price_slider { margin: 14px 0 18px; }
.shop-sidebar .ui-slider { position: relative; height: 4px; background: var(--line-2); border-radius: 4px; }
.shop-sidebar .ui-slider .ui-slider-range { background: var(--accent); height: 4px; }
.shop-sidebar .ui-slider .ui-slider-handle { width: 15px; height: 15px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; top: -6px; cursor: pointer; }
.shop-sidebar .price_slider_amount { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.shop-sidebar .price_slider_amount .button { align-self: flex-start; background: var(--ink); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; }
.shop-sidebar .wc-layered-nav-rating a,
.shop-sidebar .star-rating { color: var(--star); }

/* ---------- Pagination ---------- */
.woocommerce nav.woocommerce-pagination { margin-top: 30px; text-align: center; }
/* Wrap: 8 pages of 40px + gaps is 420px, which scrolled the whole page
 * sideways on a 390px phone. */
.woocommerce nav.woocommerce-pagination ul {
  border: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%;
}
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Single product ---------- */
.wc-single { padding: 34px 0 56px; }
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: 48px;
}
.woocommerce div.product .woocommerce-product-gallery { width: auto; margin: 0; float: none; }
/* Summary must fill its grid track. WooCommerce's layout stylesheet ships
 * `.woocommerce div.product div.summary { float:right; width:48% }` — the
 * `div.summary` (element + class) is specificity (0,3,2), so a plain `.summary`
 * (0,3,1) loses to it and the column collapses to ~half, leaving the right side
 * empty. Match `div.summary` here to win on equal specificity + load order. */
.woocommerce div.product div.summary,
.woocommerce div.product div.entry-summary {
  width: 100%; max-width: none; min-width: 0; margin: 0; padding: 0; float: none;
}
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .up-sells,
.woocommerce div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }

/* ---------- Custom product gallery ---------- */
/* Not sticky: inside the product grid its containing block is the whole product
 * (incl. tabs / related), so a sticky gallery would float down over them. */
/* min-width:0 — without it the gallery's min-content width is the *whole*
 * thumbnail strip (34 thumbs on the alphabet gift pack), which inflates the
 * product grid track and pushes the page off-screen on phones. */
.kn-gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 100%; }
.kn-gallery-main {
  position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--bg-soft-2);
}
.kn-gallery-flash {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--sale); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .02em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 6px; line-height: 1;
}
.kn-gallery-stage {
  display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in;
}
.kn-gallery-stage img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease, opacity .25s ease;
}
.kn-gallery-stage:hover img { transform: scale(1.06); }
.kn-gallery-stage.is-swapping img { opacity: 0; }
.kn-gallery-stage--empty { cursor: default; display: grid; place-items: center; padding: 24px; }
.kn-gallery-stage--empty img { width: auto; max-width: 60%; height: auto; }

/* Thumbnails: a single-row horizontal slider with edge fades + nav arrows */
.kn-gallery-thumbs-slider { position: relative; }
.kn-gallery-thumbs {
  list-style: none; margin: 0; padding: 2px;
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.kn-gallery-thumbs::-webkit-scrollbar { display: none; }
.kn-gallery-thumb-item { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.kn-gallery-thumb {
  display: block; width: 84px; height: 84px; padding: 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-soft-2);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.kn-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kn-gallery-thumb:hover { border-color: var(--line-2); transform: translateY(-2px); }
.kn-gallery-thumb:focus-visible { outline: none; border-color: var(--accent); }
.kn-gallery-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 96, 26, .14); }

/* Thumbnail slider nav arrows */
.kn-thumb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: background .15s ease, color .15s ease;
}
.kn-thumb-nav svg { width: 16px; height: 16px; }
.kn-thumb-nav.prev { left: -6px; }
.kn-thumb-nav.next { right: -6px; }
.kn-thumb-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.kn-thumb-nav[hidden] { display: none; }

/* Lightbox */
body.kn-lightbox-open { overflow: hidden; }
.kn-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 5vh 4vw;
  background: rgba(20, 14, 9, .82); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.kn-lightbox.is-open { opacity: 1; visibility: visible; }
.kn-lightbox-img {
  max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  transform: scale(.96); transition: transform .2s ease; object-fit: contain;
}
.kn-lightbox.is-open .kn-lightbox-img { transform: scale(1); }
.kn-lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; border-radius: 50%;
  display: grid; place-items: center; transition: background .15s ease;
}
.kn-lightbox-close:hover { background: rgba(255, 255, 255, .24); }

.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ink); font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.woocommerce div.product p.price del { color: var(--muted); font-weight: 500; font-size: 18px; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--sale); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 12px; margin: 8px 0 22px; flex-wrap: wrap; }
.woocommerce div.product form.cart .quantity input.qty {
  width: 70px; height: 48px; text-align: center; border: 1.5px solid var(--line-2); border-radius: 8px; font: inherit; font-weight: 700;
}
.woocommerce div.product form.cart .quantity input.qty:focus { outline: none; border-color: var(--accent); }

/* Variable products: the variation form needs block flow (the flex row above is
 * for simple products' inline qty + button). */
.woocommerce div.product form.variations_form.cart { display: block; }

/* Variation selector rows: label above a themed dropdown */
.woocommerce div.product form.cart table.variations {
  width: 100%; margin: 0 0 18px; border-collapse: collapse; background: none;
}
.woocommerce div.product form.cart table.variations tr { display: block; margin-bottom: 14px; }
.woocommerce div.product form.cart table.variations td { display: block; padding: 0; }
.woocommerce div.product form.cart table.variations th.label {
  display: block; padding: 0 0 6px; text-align: left; font-weight: 800; font-size: 13px;
  letter-spacing: .01em; text-transform: uppercase; color: var(--ink-2);
}

/* Themed dropdowns (variation selects + any <select> inside the summary) */
.woocommerce div.product div.summary select,
.woocommerce div.product form.cart table.variations select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; max-width: 340px; height: 48px; padding: 0 42px 0 14px;
  font: inherit; font-weight: 600; font-size: 14.5px; color: var(--ink); cursor: pointer;
  background-color: #fff; border: 1.5px solid var(--line-2); border-radius: 8px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce div.product div.summary select:hover,
.woocommerce div.product form.cart table.variations select:hover { border-color: var(--ink-2); }
.woocommerce div.product div.summary select:focus,
.woocommerce div.product form.cart table.variations select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 96, 26, .12);
}

/* "Clear" / reset-variations link */
.woocommerce div.product form.cart .reset_variations {
  display: inline-block; margin: 2px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.woocommerce div.product form.cart .reset_variations:hover { color: var(--accent); }

/* Selected-variation price + add-to-cart block */
.woocommerce div.product .woocommerce-variation-price { margin-bottom: 14px; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 24px; font-weight: 800; color: var(--ink); }
.woocommerce div.product .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Personalisation field (e.g. the Wooden Customized Alphabet gift pack) */
.kn-custom-field {
  width: 100%; max-width: 360px; margin: 4px 0 18px; padding: 16px;
  border: 1.5px dashed var(--accent); border-radius: 12px; background: rgba(226, 96, 26, .04);
}
.kn-custom-field[hidden] { display: none; }
.kn-custom-label { display: block; font-weight: 800; font-size: 13px; letter-spacing: .01em; color: var(--ink); margin-bottom: 8px; }
.kn-custom-label .req { color: var(--sale); }
.kn-custom-input {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-weight: 700; font-size: 16px;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px;
  text-transform: uppercase; letter-spacing: .08em; transition: border-color .15s ease, box-shadow .15s ease;
}
.kn-custom-input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: normal; text-transform: none; }
.kn-custom-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 96, 26, .12); }
.kn-custom-input.is-invalid { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(200, 30, 30, .1); }
.kn-custom-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.kn-custom-hint.error { color: var(--sale); font-weight: 700; }

/* Gift box contents picker — shopper fills the box's compartments */
.kn-giftbox {
  width: 100%; margin: 4px 0 18px; padding: 16px;
  border: 1.5px dashed var(--accent); border-radius: 12px; background: rgba(226, 96, 26, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kn-giftbox[hidden] { display: none; }
.kn-giftbox.is-complete { border-style: solid; }
.kn-giftbox.is-invalid { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(200, 30, 30, .1); }

.kn-giftbox-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.kn-giftbox-title { font-weight: 800; font-size: 13px; letter-spacing: .01em; color: var(--ink); }
.kn-giftbox-title .req { color: var(--sale); }
.kn-giftbox-count {
  font-size: 12.5px; font-weight: 800; color: var(--accent); white-space: nowrap;
}

.kn-giftbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px;
  max-height: 320px; overflow-y: auto; padding: 2px;
}

.kn-giftbox-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 6px; cursor: pointer; text-align: center;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.kn-giftbox-item:hover { border-color: var(--accent); }
.kn-giftbox-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kn-giftbox-item input:focus-visible ~ .kn-giftbox-tick { outline: 2px solid var(--accent); outline-offset: 2px; }

.kn-giftbox-thumb { display: block; width: 100%; }
.kn-giftbox-thumb img {
  display: block; width: 100%; height: 64px; object-fit: cover; border-radius: 6px; margin: 0;
}
.kn-giftbox-name {
  font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.kn-giftbox-tick {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: #fff;
}
.kn-giftbox-item.is-checked { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(226, 96, 26, .14); }
.kn-giftbox-item.is-checked .kn-giftbox-tick { border-color: var(--accent); background: var(--accent); }
.kn-giftbox-item.is-checked .kn-giftbox-tick::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.kn-giftbox-item.is-disabled { opacity: .45; cursor: not-allowed; }
.kn-giftbox-item.is-disabled:hover { border-color: var(--line-2); }

.kn-giftbox-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.kn-giftbox-hint.error { color: var(--sale); font-weight: 700; }

@media (max-width: 480px) {
  .kn-giftbox-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); max-height: 280px; }
  .kn-giftbox-thumb img { height: 54px; }
}

/* Customization shown as a line under the item in cart / checkout / order */
.woocommerce .variation .kn-custom-value,
.woocommerce dl.variation dd p { margin: 0; }

.woocommerce .product-meta,
.woocommerce div.product .product_meta { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.woocommerce div.product .product_meta a { color: var(--ink-2); }
.woocommerce div.product .product_meta a:hover { color: var(--accent); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 22px; border-bottom: 1px solid var(--line); display: flex; gap: 4px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none; border: none; border-radius: 0; margin: 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 18px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--accent); border-bottom-color: var(--accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }

/* Description / tab panel content — readable, well-spaced typography */
.woocommerce div.product .woocommerce-tabs .panel {
  max-width: 860px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75;
}
.woocommerce div.product .woocommerce-Tabs-panel--description > h2:first-child {
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.woocommerce div.product .woocommerce-tabs .panel h3 {
  font-size: 18px; font-weight: 800; color: var(--ink); margin: 28px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.woocommerce div.product .woocommerce-tabs .panel h3::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--accent); flex: 0 0 auto;
}
.woocommerce div.product .woocommerce-tabs .panel h4 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 20px 0 8px; }
.woocommerce div.product .woocommerce-tabs .panel p { margin: 0 0 14px; }
.woocommerce div.product .woocommerce-tabs .panel strong { color: var(--ink); font-weight: 800; }
.woocommerce div.product .woocommerce-tabs .panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.woocommerce div.product .woocommerce-tabs .panel ul,
.woocommerce div.product .woocommerce-tabs .panel ol { margin: 0 0 18px; padding: 0; list-style: none; }
.woocommerce div.product .woocommerce-tabs .panel ul li {
  position: relative; padding: 0 0 0 30px; margin: 0 0 10px;
}
.woocommerce div.product .woocommerce-tabs .panel ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.woocommerce div.product .woocommerce-tabs .panel ol { counter-reset: kn-li; }
.woocommerce div.product .woocommerce-tabs .panel ol li {
  position: relative; padding: 0 0 0 34px; margin: 0 0 10px; counter-increment: kn-li;
}
.woocommerce div.product .woocommerce-tabs .panel ol li::before {
  content: counter(kn-li); position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: #fff; background: var(--accent); border-radius: 50%;
}
.woocommerce div.product .woocommerce-tabs .panel > *:last-child { margin-bottom: 0; }

/* Additional information table (variation attributes) */
.woocommerce div.product .woocommerce-tabs table.shop_attributes { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.woocommerce div.product .woocommerce-tabs table.shop_attributes th { background: var(--bg-soft); font-weight: 800; color: var(--ink); width: 30%; }
.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product .woocommerce-tabs table.shop_attributes td { padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* Related / up-sell SECTIONS carry both `related`/`up-sells` AND `products`
 * classes, so the generic `.products` grid (theme.css) was turning each section
 * into a 5-col grid and squashing the heading + list together. Reset them back
 * to block flow; the grid belongs on the inner `ul.products` only. */
.woocommerce .related.products,
.woocommerce .up-sells.products,
.woocommerce .cross-sells.products { display: block; }

/* Related products heading + grid */
.woocommerce .related > h2,
.woocommerce .up-sells > h2,
.woocommerce .cross-sells > h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 40px 0 22px; }
.woocommerce .related ul.products,
.woocommerce .up-sells ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none;
}
.woocommerce .related ul.products::before,
.woocommerce .related ul.products::after,
.woocommerce .up-sells ul.products::before,
.woocommerce .up-sells ul.products::after { content: none; display: none; }
.woocommerce .related ul.products li.product,
.woocommerce .up-sells ul.products li.product { width: auto; margin: 0; float: none; }

/* ---------- Buttons — one accent treatment across classic + block WC ---------- */
/* The theme is single-accent (orange); the old two-tone (some black, some orange)
 * read as inconsistent. Every solid WC action button is now the accent. */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce .cart-collaterals a.checkout-button,
.wc-block-components-button.contained,
.wc-block-components-button.wp-element-button:not(.outlined) {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 13px 26px; font-weight: 700; font-size: 15px; line-height: 1.2;
  box-shadow: none; text-decoration: none; transition: background .15s ease;
}
.wc-block-cart__submit-button,
.wc-block-cart__submit-button .wc-block-components-button__text { text-decoration: none; }
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce .cart-collaterals a.checkout-button:hover,
.wc-block-components-button.contained:hover,
.wc-block-components-button.wp-element-button:not(.outlined):hover { background: var(--accent-dark); color: #fff; }
.wc-block-components-button.contained .wc-block-components-button__text { color: #fff; }
.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.wc-block-components-button:disabled { opacity: .55; cursor: not-allowed; }

/* Outline / secondary button variant */
.wc-block-components-button.outlined {
  background: #fff; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 8px; box-shadow: none;
}
.wc-block-components-button.outlined:hover { background: var(--accent); color: #fff; }

.woocommerce .onsale {
  background: var(--sale); color: #fff; border: none; font-weight: 800; font-size: 11px;
  min-height: auto; min-width: auto; line-height: 1; padding: 5px 9px; border-radius: 5px;
}

/* ---------- Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: none; border-radius: 8px; padding: 14px 18px; font-size: 14px; background: var(--bg-soft);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--accent); }
.woocommerce-message { border-left: 3px solid var(--green); }
.woocommerce-info { border-left: 3px solid var(--accent); }

/* ---------- Cart / checkout / account ---------- */
.woocommerce table.shop_table { border-radius: 10px; border-color: var(--line); overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 800; color: var(--ink); }
.woocommerce table.shop_table td { border-top-color: var(--line); }
.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce .cart_totals h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }

/* --- Classic form fields (login, address book, coupon, reset password) --- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-account form input.input-text,
.woocommerce-account form input[type="text"],
.woocommerce-account form input[type="email"],
.woocommerce-account form input[type="password"],
.woocommerce-account form input[type="tel"],
.woocommerce .woocommerce-form-row input.input-text {
  min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; box-shadow: none;
}
.woocommerce form .form-row textarea { min-height: 120px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-account form input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226, 96, 26, .12);
}
.woocommerce form .form-row label { font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.woocommerce .required, .woocommerce .woocommerce-input-wrapper .required { color: var(--sale); }
/* select2 (country / state) */
.select2-container--default .select2-selection--single {
  height: 48px; border: 1.5px solid var(--line-2); border-radius: 8px; display: flex; align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding-left: 12px; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-dropdown { border-color: var(--line-2); border-radius: 8px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent); }

/* --- Block form fields (cart & checkout blocks) --- */
.wc-block-components-text-input input,
.wc-blocks-components-select__select,
.wc-block-components-combobox .components-form-token-field__input,
.wc-block-components-address-form input,
.wc-block-components-quantity-selector { border-radius: 8px; }
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus,
.wc-block-components-address-form input:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(226, 96, 26, .18) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-checkout-step__heading-content a,
.wc-block-components-address-card a { color: var(--accent); }
.wc-block-components-totals-item__value,
.wc-block-components-order-summary-item__total-price { color: var(--ink); font-weight: 700; }
.wc-block-components-panel__button { color: var(--ink); font-weight: 700; }
.wc-block-checkout__sidebar .wc-block-components-panel,
.wc-block-components-order-summary { border-color: var(--line); }
.wc-block-components-quantity-selector { border: 1.5px solid var(--line-2); border-radius: 8px; }
.wc-block-components-quantity-selector__button:hover { color: var(--accent); }

/* --- My Account (logged in) --- */
.woocommerce-account.logged-in .woocommerce {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start;
}
/* WooCommerce clearfixes `.woocommerce` with ::before/::after `display:table`.
 * In a grid container each pseudo becomes a grid ITEM and eats a cell, which
 * pushed the nav into column 2 and squeezed the content into the 250px track on
 * the next row. Same trap as `.col2-set` and `ul.products`. */
.woocommerce-account.logged-in .woocommerce::before,
.woocommerce-account.logged-in .woocommerce::after { content: none; display: none; }
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* WooCommerce sizes these as floated 30% / 68% columns. As grid items those
 * percentages resolve against the grid *track*, so the nav rendered 75px wide
 * (30% of 250px) with clipped labels. Match WC's specificity to win. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
/* `.page-content a:not(.btn)` (0,2,1) would make these orange + underlined. */
.page-content .woocommerce-MyAccount-navigation li a,
.woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  font-weight: 700; font-size: 14px; color: var(--ink-2); text-decoration: none;
}
.page-content .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:hover { background: var(--bg-soft); color: var(--accent); }
.page-content .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a { background: var(--accent); color: #fff; }
/* Endpoint icons: an SVG mask painted with the link's own colour, so it flips to
 * white on the active row without a second set of assets. */
.woocommerce-MyAccount-navigation li a::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--kn-nav-ic, none) center / contain no-repeat;
  mask: var(--kn-nav-ic, none) center / contain no-repeat;
}
.woocommerce-MyAccount-navigation-link--dashboard a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 4h7v7H4zM13 4h7v7h-7zM4 13h7v7H4zM13 13h7v7h-7z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--orders a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M9 12h7M9 16h7'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--downloads a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10M8 11l4 4 4-4M5 20h14'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--edit-address a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6-7-11a7 7 0 0 1 14 0c0 5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--edit-account a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--payment-methods a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
  --kn-nav-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3M10 8l-4 4 4 4M6 12h9'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-content { color: var(--ink-2); font-size: 15px; line-height: 1.7; min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

/* Dashboard: greeting + quick-action cards (woocommerce/myaccount/dashboard.php) */
.kn-dash-hello {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft-2);
}
.page-content .kn-dash-greet {
  margin: 0; flex: 1 1 auto; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.25;
}
.page-content .kn-dash-greet strong { font-weight: 800; }
.page-content .kn-dash-sub { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--ink-2); }
.page-content a.kn-dash-logout {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none;
}
.page-content a.kn-dash-logout:hover { border-color: var(--accent); color: var(--accent); }
.kn-dash-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; margin-top: 16px;
}
.page-content a.kn-dash-card {
  display: flex; align-items: center; gap: 13px; padding: 16px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff;
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.page-content a.kn-dash-card:hover {
  border-color: var(--line-2); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); transform: translateY(-2px);
}
.kn-dash-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--accent);
}
.kn-dash-ic svg { width: 20px; height: 20px; }
.kn-dash-body { min-width: 0; }
.kn-dash-body b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.kn-dash-body span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.kn-dash-go { flex: none; margin-left: auto; color: var(--muted); }
.kn-dash-go svg { width: 16px; height: 16px; }
.page-content a.kn-dash-card:hover .kn-dash-go { color: var(--accent); }

/* Orders / downloads tables + the "no orders yet" state */
.woocommerce-MyAccount-content .woocommerce-orders-table { margin: 0; }
.woocommerce-MyAccount-content .woocommerce-orders-table th { font-size: 12.5px; }
.woocommerce-MyAccount-content .woocommerce-Message,
.woocommerce-MyAccount-content .woocommerce-info {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin: 0; padding: 26px; background: var(--bg-soft-2);
  border: 1px solid var(--line); border-left-width: 1px; border-radius: 14px;
  font-size: 15px; color: var(--ink-2);
}
.woocommerce-MyAccount-content .woocommerce-Message::before,
.woocommerce-MyAccount-content .woocommerce-info::before { display: none; }
.woocommerce-MyAccount-content .woocommerce-Message .button { margin: 0; }

/* Addresses + account details forms */
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-MyAccount-content .woocommerce-Address {
  border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: #fff;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.page-content .woocommerce-MyAccount-content .woocommerce-Address-title h2,
.page-content .woocommerce-MyAccount-content .woocommerce-Address-title h3,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.page-content .woocommerce-MyAccount-content .woocommerce-Address-title a {
  flex: none; font-size: 13px; font-weight: 700; text-decoration: none;
}
.page-content .woocommerce-MyAccount-content .woocommerce-Address-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-MyAccount-content .woocommerce-Address address { font-style: normal; font-size: 14.5px; line-height: 1.65; }
.woocommerce-MyAccount-content form.edit-account,
.woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; max-width: 640px;
}
.woocommerce-MyAccount-content fieldset {
  margin: 22px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
}
.woocommerce-MyAccount-content fieldset legend {
  padding: 0 8px; font-size: 14px; font-weight: 800; color: var(--ink);
}
/* First / last name keep WooCommerce's 47% pair — it reads well in the card. */
.woocommerce-MyAccount-content em,
.woocommerce-MyAccount-content span.description { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: normal; }
.woocommerce-MyAccount-content button.woocommerce-Button { margin-top: 20px; }

/* Login / register / coupon / reset-password cards */
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce .woocommerce-ResetPassword {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin: 0;
}
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 { float: none; width: auto; }
.woocommerce-account .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* WooCommerce clearfixes `.col2-set` with ::before/::after `display:table`.
 * Harmless while the columns float, but in a grid container each pseudo becomes
 * a grid ITEM and eats a cell — Login landed in column 2 and Register wrapped to
 * the next row. Same trap as `ul.products` (reset near the top of this file):
 * drop the pseudos wherever we turn a WC container into a grid. */
.woocommerce-account .col2-set::before,
.woocommerce-account .col2-set::after { content: none; display: none; }

/* ---------- My Account, logged out (sign-in screen) ---------- */
.kn-auth {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px;
  align-items: start; max-width: 1000px; margin: 4px auto 8px;
}
.kn-auth--stacked { grid-template-columns: minmax(0, 1fr); max-width: 1080px; }
.kn-auth-forms { min-width: 0; }
/* Sign-in reads as a centred screen: page title + intro over the card pair. */
.woocommerce-account:not(.logged-in) .page-head { text-align: center; }
.page-content .kn-auth-intro {
  max-width: 620px; margin: 0 auto 26px; text-align: center;
  font-size: 15.5px; color: var(--ink-2);
}
/* WooCommerce's own "Login" / "Register" headings become the card titles. With
 * registration off there is only one form, and the page title already says it —
 * keep the heading for assistive tech but drop it visually. */
.page-content .kn-auth-forms h2 {
  margin: 0 0 14px; font-size: 21px; font-weight: 800; color: var(--ink);
}
.kn-auth:not(.kn-auth--stacked) .kn-auth-forms > h2 {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.woocommerce-account:not(.logged-in) form.login,
.woocommerce-account:not(.logged-in) form.register { padding: 28px; background: #fff; }
.woocommerce-account:not(.logged-in) form.login .form-row,
.woocommerce-account:not(.logged-in) form.register .form-row { margin: 0 0 16px; padding: 0; }
/* Full-width primary action, then the secondary link under it. */
.woocommerce-account:not(.logged-in) form.login button.woocommerce-form-login__submit,
.woocommerce-account:not(.logged-in) form.register button.woocommerce-form-register__submit {
  width: 100%; justify-content: center; margin: 4px 0 0; float: none;
}
.woocommerce-account:not(.logged-in) form.login .woocommerce-form-login__rememberme,
.woocommerce-account:not(.logged-in) form.login label.woocommerce-form__label-for-checkbox {
  display: flex; align-items: center; gap: 9px; margin: 0 0 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.woocommerce-account:not(.logged-in) form.login .woocommerce-form-login__rememberme input,
.woocommerce-account:not(.logged-in) form.login label.woocommerce-form__label-for-checkbox input {
  width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--accent);
}
.woocommerce-account:not(.logged-in) .lost_password {
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; text-align: center;
}
.page-content .woocommerce-account:not(.logged-in) .lost_password a,
.woocommerce-account:not(.logged-in) .lost_password a { font-weight: 700; }
/* WC's password field wraps the input + reveal button in a flex row. */
.woocommerce-account:not(.logged-in) .woocommerce-password-input { position: relative; display: block; }
.woocommerce-account:not(.logged-in) .show-password-input {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  padding: 0; color: var(--muted); cursor: pointer;
}
.woocommerce-account:not(.logged-in) .show-password-input:hover { color: var(--accent); }

/* Lost / reset password: same centred single-card treatment as sign-in. */
.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword {
  max-width: 520px; margin: 0 auto; padding: 28px;
}
.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword > p:first-child {
  margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2);
}
/* WC gives these rows 47% and a float — pointless in a 520px card. */
.woocommerce-account:not(.logged-in) form .form-row-first,
.woocommerce-account:not(.logged-in) form .form-row-last,
.woocommerce-account:not(.logged-in) form .form-row-wide {
  float: none; width: 100%; margin: 0 0 16px;
}
.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword button {
  width: 100%; justify-content: center;
}

/* Side panel */
.kn-auth-side {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  background: var(--bg-soft-2);
}
.page-content .kn-auth-side-title {
  margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--ink);
}
.kn-auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.kn-auth-perks li { display: flex; gap: 12px; margin: 0; }
.kn-auth-perk-ic {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
}
.kn-auth-perk-ic svg { width: 18px; height: 18px; }
.kn-auth-perks b { display: block; font-size: 14px; color: var(--ink); line-height: 1.35; }
.kn-auth-perks b + span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.kn-auth-guest { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
/* Registration on → the panel sits under two form cards, so it runs wide. */
.kn-auth--stacked .kn-auth-side {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 28px; align-items: start; margin-top: 6px;
}
.kn-auth--stacked .kn-auth-side-title { grid-column: 1 / -1; }
.kn-auth--stacked .kn-auth-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kn-auth--stacked .kn-auth-guest {
  margin: 0; padding: 0 0 0 26px; border-top: none; border-left: 1px solid var(--line);
}
.page-content .kn-auth-guest h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.page-content .kn-auth-guest p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.kn-auth-links { display: grid; gap: 8px; }
.page-content .kn-auth-links a {
  font-size: 13.5px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.page-content .kn-auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Order-received / overview */
.woocommerce ul.order_details.woocommerce-order-overview {
  display: flex; flex-wrap: wrap; margin: 24px 0; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.woocommerce ul.order_details li {
  flex: 1 1 auto; margin: 0; padding: 16px 22px; border: none; border-right: 1px solid var(--line);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
}
.woocommerce ul.order_details li:last-child { border-right: none; }
.woocommerce ul.order_details li strong { display: block; margin-top: 5px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }

/* --- Empty-cart "New in store" suggestions (WC block grid → theme card look) --- */
/* WC Blocks sets `.has-N-columns .wc-block-grid__product { width: … }` (0,2,0),
 * so match that specificity to reset the width and let the grid track drive it. */
ul.wc-block-grid__products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.wc-block-grid__products::before, .wc-block-grid__products::after { content: none; display: none; }
.wc-block-grid__products .wc-block-grid__product {
  /* WC Blocks core caps each card at `flex:1 0 25%; max-width:25%` with higher
   * specificity — inside our grid that shrinks it to 25% of its own track. */
  width: auto !important; max-width: none !important; flex: none !important;
  margin: 0; padding: 14px; float: none; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease;
}
.wc-block-grid__product:hover { border-color: var(--line-2); box-shadow: 0 12px 26px rgba(60, 40, 23, .1); transform: translateY(-3px); }
.wc-block-grid__product-link { display: block; text-decoration: none; }
.wc-block-grid__product-image {
  aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft-2); margin: 0 0 12px;
}
.wc-block-grid__product-image img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.wc-block-grid__product-title {
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0 0 6px; text-decoration: none;
}
.wc-block-grid__product-link:hover .wc-block-grid__product-title { color: var(--accent); }
.wc-block-grid__product-price { font-size: 0; margin: 0 0 12px; }
.wc-block-grid__product-price .woocommerce-Price-amount { font-size: 17px; font-weight: 800; color: var(--ink); }
.wc-block-grid__product-price del .woocommerce-Price-amount { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.wc-block-grid__product-add-to-cart { margin-top: auto; }
.wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: block; width: 100%; text-align: center; background: #fff; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 8px; padding: 10px; font-size: 13.5px; font-weight: 700;
  line-height: 1.2; text-decoration: none; transition: background .15s ease, color .15s ease;
}
.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart .wp-block-button__link.added { background: var(--accent); color: #fff; }
.wc-block-grid__product-onsale { background: var(--sale); color: #fff; border: none; border-radius: 5px; font-weight: 800; }

/* Empty-cart block: heading + icon */
.wc-block-cart__empty-cart__title,
.wp-block-woocommerce-cart-order-summary-block + * .wc-block-grid > h2,
.is-large.wc-block-cart .cart-empty { color: var(--ink); font-weight: 800; }

.woocommerce .star-rating span { color: var(--star); }

/* Quick view modal styles now live in theme.css (loaded on every page, incl.
 * the homepage carousels that also trigger quick view). */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .woocommerce .shop-main ul.products,
  .woocommerce-page .shop-main ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce .related ul.products,
  .woocommerce .up-sells ul.products { grid-template-columns: repeat(2, 1fr); }
  .wc-block-grid__products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 22px; }
  .shop-layout .shop-sidebar { grid-column: 1; grid-row: 2; }
  .shop-layout .shop-main { grid-column: 1; grid-row: 1; }
  /* minmax(0, …), not 1fr: a bare `1fr` track is floored at the item's
   * min-content width, so a long thumbnail strip would widen the whole page. */
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .woocommerce-account.logged-in .woocommerce { grid-template-columns: 1fr; gap: 22px; }
  .woocommerce-account .col2-set { grid-template-columns: 1fr; }
  .kn-auth { grid-template-columns: 1fr; gap: 22px; }
  .kn-auth--stacked .kn-auth-side { grid-template-columns: 1fr; gap: 20px; }
  .kn-auth--stacked .kn-auth-perks { grid-template-columns: 1fr; }
  .kn-auth--stacked .kn-auth-guest {
    padding: 20px 0 0; border-left: none; border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .woocommerce .shop-main ul.products,
  .woocommerce-page .shop-main ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .woocommerce .shop-main .woocommerce-ordering { float: none; }
  .woocommerce .related ul.products,
  .woocommerce .up-sells ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kn-gallery-thumb { width: 72px; height: 72px; }
}
