/* =========================================================================
   woocommerce.css — WooCommerce template overrides (MD3).
   Shop archive: header + layout (sidebar + grid) + product cards + pagination.
   ========================================================================= */

/* ── Sticky mobile add-to-cart (single product, <840px) ── */
.wc-sticky-atc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 85;
  background: var(--md-sys-color-surface);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--md-sys-elevation-level3);
  transform: translateY(100%);
  transition: transform var(--md-sys-motion-duration-medium2, 300ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2,0,0,1));
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.wc-sticky-atc.is-visible { transform: translateY(0); }
@media (min-width: 840px) { .wc-sticky-atc { display: none !important; } }
.wc-sticky-atc__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
}
.wc-sticky-atc__meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wc-sticky-atc__thumb {
  width: 44px; height: 44px;
  border-radius: var(--md-sys-shape-corner-small, 8px);
  object-fit: cover;
  background: var(--md-sys-color-surface-container-high);
  flex-shrink: 0;
}
.wc-sticky-atc__body { min-width: 0; }
.wc-sticky-atc__title {
  color: var(--md-sys-color-on-surface);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wc-sticky-atc__price {
  color: var(--md-sys-color-primary);
  font-weight: 600;
}
.wc-sticky-atc__price del, .wc-sticky-atc__price .screen-reader-text { display: none; }
.wc-sticky-atc__form { margin: 0; }
.wc-sticky-atc__btn { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .wc-sticky-atc { transition: none; }
}

/* ── Free-shipping progress bar ─────────────────────────── */
.wc-free-ship {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, var(--md-sys-color-surface));
  border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 25%, transparent);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  color: var(--md-sys-color-on-surface);
}
.wc-free-ship.is-reached {
  background: color-mix(in srgb, var(--md-sys-color-tertiary, var(--md-sys-color-primary)) 12%, var(--md-sys-color-surface));
  border-color: color-mix(in srgb, var(--md-sys-color-tertiary, var(--md-sys-color-primary)) 30%, transparent);
}
.wc-free-ship__text { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.wc-free-ship__text strong { color: var(--md-sys-color-primary); font-weight: 600; }
.wc-free-ship__icon { font-size: 20px; color: var(--md-sys-color-primary); flex-shrink: 0; }
.wc-free-ship.is-reached .wc-free-ship__icon { color: var(--md-sys-color-tertiary, var(--md-sys-color-primary)); }
.wc-free-ship__bar {
  position: relative;
  width: 100%; height: 6px;
  background: var(--md-sys-color-surface-container-high);
  border-radius: 9999px;
  overflow: hidden;
}
.wc-free-ship__fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--md-sys-color-primary), color-mix(in srgb, var(--md-sys-color-primary) 60%, var(--md-sys-color-tertiary, var(--md-sys-color-secondary))));
  border-radius: 9999px;
  transition: width var(--md-sys-motion-duration-medium2, 300ms) var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2,0,0,1));
}
.wc-free-ship.is-reached .wc-free-ship__fill {
  background: var(--md-sys-color-tertiary, var(--md-sys-color-primary));
}
@media (prefers-reduced-motion: reduce) {
  .wc-free-ship__fill { transition: none; }
}

/* ── Shop shell ─────────────────────────────────────────── */
.wc-shop { padding-block: 16px 48px; }

.wc-shop__header {
  display: flex; flex-direction: column; gap: 10px;
  padding-block: 8px 20px;
}
.wc-shop__title { margin: 0; color: var(--md-sys-color-on-surface); }
.wc-shop__description { color: var(--md-sys-color-on-surface-variant); max-width: 72ch; }
.wc-breadcrumb {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.5;
  padding-block: 4px 4px;
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
}
.wc-breadcrumb a { color: inherit; }
.wc-breadcrumb a:hover { color: var(--md-sys-color-primary); }
.wc-breadcrumb .breadcrumb-separator,
.wc-breadcrumb > span[aria-current],
.wc-breadcrumb > a { padding-inline: 2px; }
@media (min-width: 840px) {
  .wc-breadcrumb { padding-block: 6px 6px; font-size: 1rem; }
}
/* Single-product: breadcrumb stands alone (no header gap), keep modest spacing. */
.wc-single .wc-breadcrumb { padding-block: 6px 12px; }
@media (min-width: 840px) {
  .wc-single .wc-breadcrumb { padding-block: 8px 16px; }
}

/* ── Layout: sidebar + grid ─────────────────────────────── */
.wc-shop__layout {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .wc-shop__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (min-width: 1200px) {
  .wc-shop__layout { gap: 32px; }
}

.wc-shop__filters {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.wc-shop__filters .widget { padding: 16px; }
.wc-shop__filters-empty {
  padding: 14px;
  border: 1px dashed var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  color: var(--md-sys-color-on-surface-variant);
}

.wc-shop__grid { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.wc-shop__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 10px 12px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  color: var(--md-sys-color-on-surface-variant);
}
.wc-shop__toolbar .woocommerce-result-count { margin: 0; }
.wc-shop__toolbar .woocommerce-ordering { margin: 0 0 0 auto; }
.wc-shop__toolbar .woocommerce-ordering select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small, 4px);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
}

/* ── Product grid ───────────────────────────────────────── */
.md-grid--products {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .md-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 840px)  { .md-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .md-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* ── Product card ───────────────────────────────────────── */
.wc-product-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-width: 0;
}
.wc-product-card__link {
  display: flex; flex-direction: column; gap: 0;
  color: inherit; text-decoration: none;
  flex: 1 1 auto;
}
.wc-product-card__link:hover { text-decoration: none; color: inherit; }

.wc-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--md-sys-color-surface-container-low);
  overflow: hidden;
}
.wc-product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: transform var(--md-sys-motion-duration-long2) var(--md-sys-motion-easing-emphasized),
              filter    var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}
.wc-cat-card .wc-product-card__media img { object-fit: cover; padding: 0; }
.wc-product-card:hover .wc-product-card__media img { transform: scale(1.06); }
.wc-product-card:hover .wc-product-card__media::after { opacity: 1; }
.wc-product-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, color-mix(in srgb, var(--md-sys-color-on-surface) 10%, transparent) 100%);
  opacity: 0; pointer-events: none;
  transition: opacity var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard);
}
.wc-product-card__media .md-badge {
  position: absolute; top: 8px; left: 8px;
  pointer-events: none;
  transform: translateY(-2px);
  opacity: 0;
  animation: tkBadgeIn var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate) 120ms forwards;
}
.wc-product-card__media .md-badge--out { left: auto; right: 8px; }

@keyframes tkBadgeIn {
  to { transform: translateY(0); opacity: 1; }
}

.wc-product-card__body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.wc-product-card__title {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-size: 0.9375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: calc(1.3em * 2);
}
.wc-product-card__sku {
  color: var(--md-sys-color-on-surface-variant);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.wc-product-card__price {
  margin-top: auto;
  color: var(--md-sys-color-primary);
  font-weight: 600;
}
.wc-product-card__price del {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.75em;
  font-weight: 400;
  margin-right: 6px;
}
.wc-product-card__price ins {
  background: transparent;
  text-decoration: none;
}

.wc-product-card__actions {
  padding: 8px 12px 12px;
  display: flex; gap: 8px;
}
.wc-product-card__actions .wc-loop-add-to-cart { flex: 1 1 auto; justify-content: center; }
.wc-product-card__actions .added_to_cart {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

/* ── Pagination ─────────────────────────────────────────── */
.woocommerce-pagination {
  margin-top: 24px;
  display: flex; justify-content: center;
}
.woocommerce-pagination ul.page-numbers {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
  border: 0;
}
.woocommerce-pagination ul.page-numbers li { border: 0; }
.woocommerce-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  color: var(--md-sys-color-on-surface);
  background: transparent;
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.2, 0, 0, 1);
}
.woocommerce-pagination .page-numbers:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
.woocommerce-pagination .page-numbers.current {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-weight: 600;
}

/* ── No products found ──────────────────────────────────── */
.woocommerce-info,
.woocommerce-no-products-found {
  padding: 16px;
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
}

/* =========================================================================
   Single product page
   ========================================================================= */
.wc-single { padding-block: 16px 48px; }
.wc-single__product { display: flex; flex-direction: column; gap: 32px; }

.wc-single__grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .wc-single__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (min-width: 1200px) {
  .wc-single__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; }
}

/* Gallery */
.wc-single__gallery { position: relative; min-width: 0; }
.woocommerce-product-gallery {
  position: relative;
  border-radius: var(--md-sys-shape-corner-large, 16px);
  overflow: hidden;
  background: var(--md-sys-color-surface-container-low);
}
.woocommerce-product-gallery__image a { display: block; }
.woocommerce-product-gallery__image img {
  width: 100%; height: auto; display: block;
}
.woocommerce-product-gallery .flex-control-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 8px 0 0; margin: 0; list-style: none;
}
.woocommerce-product-gallery .flex-control-thumbs li { margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs img {
  border-radius: var(--md-sys-shape-corner-small, 8px);
  cursor: pointer; opacity: 0.7;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1);
}
.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs .flex-active { opacity: 1; }
.woocommerce-product-gallery__trigger {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: var(--md-sys-elevation-level1, 0 1px 3px rgba(0,0,0,0.12));
}
.wc-single__gallery .onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px;
  background: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
  border-radius: 9999px;
  font-size: 12px; font-weight: 600;
  line-height: 1.4;
}

/* Summary */
.wc-single__summary { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wc-single__summary .product_title {
  margin: 0;
  font: var(--md-sys-typescale-display-small-font), var(--md-sys-typescale-body-large-font), sans-serif;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  line-height: 1.15;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}
.wc-single__summary .price {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--md-sys-color-primary);
}
.wc-single__summary .price del {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.65em; font-weight: 400;
  margin-right: 8px;
}
.wc-single__summary .price ins { background: transparent; text-decoration: none; }
.woocommerce-product-details__short-description {
  color: var(--md-sys-color-on-surface);
  font-size: 1rem; line-height: 1.6;
}
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Stock chip */
.wc-single__summary .stock {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 500;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.wc-single__summary .stock.out-of-stock {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

/* Add-to-cart form */
.wc-single__summary form.cart {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-end;
  padding: 16px 0;
  margin: 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
/* ── MD3 Quantity spinner (used on single product + cart) ── */
.md-qty {
  --qty-size: 48px;
  --qty-btn: 40px;
  display: inline-flex; align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  height: var(--qty-size);
  box-sizing: border-box;
  transition: background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized);
}
.md-qty:focus-within {
  background: var(--md-sys-color-surface-container-high);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--md-sys-color-primary) 45%, transparent);
}
.md-qty__btn {
  position: relative;
  flex: 0 0 auto;
  width: var(--qty-btn); height: var(--qty-btn);
  border: 0; background: transparent;
  border-radius: 50%;
  color: var(--md-sys-color-on-surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized),
              color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.md-qty__btn .md-icon { font-size: 20px; line-height: 1; pointer-events: none; }
.md-qty__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: currentColor; opacity: 0;
  transition: opacity var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
  pointer-events: none;
}
.md-qty__btn:hover::before  { opacity: 0.08; }
.md-qty__btn:focus-visible::before { opacity: 0.12; }
.md-qty__btn:active { transform: scale(0.92); }
.md-qty__btn:active::before { opacity: 0.16; }
.md-qty__btn:disabled,
.md-qty__btn[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; }
.md-qty__btn--inc { color: var(--md-sys-color-primary); }
.md-qty__btn:focus-visible { outline: none; }

.md-qty__input,
.md-qty input.qty {
  flex: 0 0 auto;
  width: 48px; height: calc(var(--qty-size) - 8px);
  padding: 0 4px;
  border: 0; background: transparent;
  color: var(--md-sys-color-on-surface);
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  transition: transform 160ms var(--md-sys-motion-easing-emphasized);
}
.md-qty__input:focus,
.md-qty input.qty:focus { outline: none; }
.md-qty__input::-webkit-outer-spin-button,
.md-qty__input::-webkit-inner-spin-button,
.md-qty input.qty::-webkit-outer-spin-button,
.md-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.md-qty__input.is-changed,
.md-qty input.qty.is-changed { animation: tkQtyPulse 240ms var(--md-sys-motion-easing-emphasized); }
@keyframes tkQtyPulse {
  0%   { transform: scale(1);    color: var(--md-sys-color-primary); }
  50%  { transform: scale(1.12); color: var(--md-sys-color-primary); }
  100% { transform: scale(1);    color: var(--md-sys-color-on-surface); }
}
@media (prefers-reduced-motion: reduce) {
  .md-qty, .md-qty__btn, .md-qty__input { transition: none; }
  .md-qty__input.is-changed { animation: none; }
}

/* Single-product context — slightly taller. */
.wc-single__summary .md-qty { --qty-size: 52px; --qty-btn: 44px; }
.wc-single__summary .md-qty__input,
.wc-single__summary .md-qty input.qty { width: 56px; font-size: 1.0625rem; }

.wc-single__summary form.cart button.single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0; border-radius: var(--md-sys-shape-corner-full, 9999px);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer;
  flex: 1 1 auto;
  transition: background 180ms cubic-bezier(0.2, 0, 0, 1), box-shadow 180ms;
}
.wc-single__summary form.cart button.single_add_to_cart_button:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 90%, black);
  box-shadow: var(--md-sys-elevation-level1, 0 1px 3px rgba(0,0,0,0.15));
}

/* Variations table */
.wc-single__summary table.variations { border: 0; margin: 0; }
.wc-single__summary table.variations th,
.wc-single__summary table.variations td { padding: 6px 0; border: 0; background: transparent; }
.wc-single__summary table.variations label {
  font-weight: 500; color: var(--md-sys-color-on-surface);
}
.wc-single__summary table.variations select {
  padding: 10px 32px 10px 14px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small, 4px);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  min-height: 44px;
}

/* Product meta */
.wc-single__summary .product_meta {
  display: flex; flex-direction: column; gap: 6px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}
.wc-single__summary .product_meta > span { display: block; }
.wc-single__summary .product_meta a { color: inherit; }
.wc-single__summary .product_meta a:hover { color: var(--md-sys-color-primary); }

/* =========================================================================
   Product data tabs (MD3)
   ========================================================================= */
.woocommerce-tabs.wc-tabs-wrapper { margin-top: 8px; }

.woocommerce-tabs ul.tabs {
  display: flex; flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0; margin: 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { display: none; }

.woocommerce-tabs ul.tabs li {
  margin: 0; padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.woocommerce-tabs ul.tabs li a {
  display: inline-flex; align-items: center;
  height: 48px;
  padding: 0 16px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500; font-size: 0.875rem;
  letter-spacing: 0.1px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms, border-color 180ms;
}
.woocommerce-tabs ul.tabs li a:hover { color: var(--md-sys-color-on-surface); }
.woocommerce-tabs ul.tabs li.active a {
  color: var(--md-sys-color-primary);
  border-bottom-color: var(--md-sys-color-primary);
}

.woocommerce-tabs .panel {
  padding: 24px 0;
  color: var(--md-sys-color-on-surface);
  font-size: 1rem; line-height: 1.6;
}
.woocommerce-tabs .panel h2:first-child { margin-top: 0; }

/* WC reviews */
#reviews ol.commentlist {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 16px;
}
#reviews ol.commentlist li.comment {
  padding: 16px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  background: var(--md-sys-color-surface);
}

/* =========================================================================
   Related / up-sells
   ========================================================================= */
.related.products,
.upsells.products {
  padding-top: 32px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.related.products > h2,
.upsells.products > h2 {
  margin: 0 0 20px;
  font-size: 1.5rem; font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

/* =========================================================================
   Cart
   ========================================================================= */
.wc-cart__layout {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  padding-block: 16px 48px;
}
@media (min-width: 1024px) {
  .wc-cart__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: flex-start;
  }
}
.wc-cart__items { min-width: 0; }
.wc-cart__collaterals {
  padding: 20px;
  position: static;
}
@media (min-width: 1024px) {
  .wc-cart__collaterals { position: sticky; top: 24px; }
}

/* Cart table */
.shop_table.cart {
  width: 100%;
  border-collapse: collapse;
  background: var(--md-sys-color-surface);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  overflow: hidden;
  border: 1px solid var(--md-sys-color-outline-variant);
}
.shop_table.cart thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.shop_table.cart tbody td {
  padding: 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.shop_table.cart tbody tr:last-child td { border-bottom: 0; }
.shop_table.cart .product-thumbnail img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--md-sys-shape-corner-small, 8px);
}
.shop_table.cart .product-name a {
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 500;
}
.shop_table.cart .product-name a:hover { color: var(--md-sys-color-primary); }
.shop_table.cart .product-price,
.shop_table.cart .product-subtotal {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
}
.shop_table.cart td.actions {
  padding: 16px 14px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  background: var(--md-sys-color-surface-container-low);
}

/* Coupon field */
.cart .coupon {
  display: inline-flex; align-items: stretch; gap: 0;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  overflow: hidden;
  min-height: 44px;
}
.cart .coupon input#coupon_code {
  border: 0; background: transparent;
  padding: 0 14px;
  min-width: 180px;
  color: var(--md-sys-color-on-surface);
  font: inherit;
}
.cart .coupon input#coupon_code::placeholder { color: var(--md-sys-color-on-surface-variant); }
.cart .coupon input#coupon_code:focus { outline: 2px solid var(--md-sys-color-primary); outline-offset: -2px; }
.cart .coupon button[name="apply_coupon"] {
  border: 0;
  border-left: 1px solid var(--md-sys-color-outline);
  border-radius: 0;
  min-height: 44px;
}

/* Cart row context — compact variant of .md-qty */
.shop_table.cart .md-qty { --qty-size: 40px; --qty-btn: 32px; }
.shop_table.cart .md-qty__input,
.shop_table.cart .md-qty input.qty { width: 44px; font-size: 0.9375rem; }

/* Remove button */
.shop_table.cart .product-remove .remove {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 20px;
  text-decoration: none;
  transition: background 180ms, color 180ms;
}
.shop_table.cart .product-remove .remove:hover {
  background: color-mix(in srgb, var(--md-sys-color-error) 12%, transparent);
  color: var(--md-sys-color-error);
}

/* Cart responsive (mobile: card-like rows) */
@media (max-width: 699px) {
  .shop_table.shop_table_responsive thead { display: none; }
  .shop_table.shop_table_responsive tbody tr {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }
  .shop_table.shop_table_responsive tbody tr.cart_item { align-items: center; }
  .shop_table.shop_table_responsive tbody td { display: block; padding: 0; border: 0; }
  .shop_table.shop_table_responsive td.product-thumbnail { grid-row: span 3; }
  .shop_table.shop_table_responsive td.product-remove { grid-row: span 3; align-self: start; }
  .shop_table.shop_table_responsive td.product-price,
  .shop_table.shop_table_responsive td.product-quantity,
  .shop_table.shop_table_responsive td.product-subtotal {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
    grid-column: 2 / span 2;
  }
  .shop_table.shop_table_responsive td[data-title]::before {
    content: attr(data-title) ': ';
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.8125rem;
    font-weight: 500;
  }
  .shop_table.cart td.actions {
    grid-template-columns: 1fr;
    display: flex; flex-direction: column; align-items: stretch;
  }
}

/* Cart totals (collaterals) */
.cart_totals h2 {
  margin: 0 0 12px;
  font-size: 1.25rem; font-weight: 500;
  color: var(--md-sys-color-on-surface);
}
.cart_totals table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  text-align: left;
  font-size: 0.9375rem;
}
.cart_totals table.shop_table th {
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
}
.cart_totals .order-total td,
.cart_totals .order-total th {
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  font-size: 1.0625rem;
  border-bottom: 0;
  padding-top: 14px;
}
.cart_totals .wc-proceed-to-checkout {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.cart_totals .wc-proceed-to-checkout .checkout-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0; border-radius: var(--md-sys-shape-corner-full, 9999px);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background 180ms cubic-bezier(0.2, 0, 0, 1);
}
.cart_totals .wc-proceed-to-checkout .checkout-button:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 90%, black);
}

.cross-sells { margin-top: 24px; }
.cross-sells > h2 { font-size: 1.125rem; font-weight: 500; margin: 0 0 12px; }

/* =========================================================================
   Checkout
   ========================================================================= */
.wc-checkout__layout {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  padding-block: 16px 48px;
}
@media (min-width: 1024px) {
  .wc-checkout__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: flex-start;
  }
}
.wc-checkout__fields { min-width: 0; }
.wc-checkout__review {
  padding: 20px;
}
@media (min-width: 1024px) {
  .wc-checkout__review { position: sticky; top: 24px; }
}

.wc-checkout__fields h3 {
  margin: 0 0 16px;
  font-size: 1.25rem; font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.col2-set {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .col2-set { grid-template-columns: 1fr 1fr; }
}

/* Form rows as MD3-ish inputs */
.woocommerce-form-row,
.form-row {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 0 16px;
}
.woocommerce-form-row label,
.form-row label {
  font-size: 0.875rem; font-weight: 500;
  color: var(--md-sys-color-on-surface);
}
.woocommerce-form-row .required,
.form-row .required {
  color: var(--md-sys-color-error);
  text-decoration: none;
  margin-left: 2px;
}
.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="tel"],
.woocommerce-form-row input[type="number"],
.woocommerce-form-row input[type="password"],
.woocommerce-form-row textarea,
.woocommerce-form-row select,
.form-row input.input-text,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small, 4px);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit; font-size: 1rem;
  transition: border-color 180ms, box-shadow 180ms;
}
.woocommerce-form-row input:focus,
.woocommerce-form-row textarea:focus,
.woocommerce-form-row select:focus,
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 0;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
.woocommerce-form-row.woocommerce-invalid input,
.form-row.woocommerce-invalid input {
  border-color: var(--md-sys-color-error);
}

/* Select2 overrides (WC uses it for country/state fields) */
.select2-container .select2-selection--single {
  height: 48px;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-extra-small, 4px);
  background: var(--md-sys-color-surface);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px;
  padding-left: 14px; padding-right: 32px;
  color: var(--md-sys-color-on-surface);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.select2-dropdown {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-small, 8px);
  background: var(--md-sys-color-surface);
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

/* Order review */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
  font-weight: 600;
  font-size: 1.0625rem;
  padding-top: 14px;
  border-bottom: 0;
}

/* Payment methods */
#payment {
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  padding: 16px;
  margin-top: 16px;
}
#payment ul.payment_methods {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
#payment ul.payment_methods > li {
  padding: 12px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-small, 8px);
  background: var(--md-sys-color-surface);
}
#payment ul.payment_methods label { font-weight: 500; cursor: pointer; }
#payment .payment_box {
  margin-top: 10px;
  padding: 12px;
  background: var(--md-sys-color-surface-container-low);
  border-radius: var(--md-sys-shape-corner-small, 8px);
  font-size: 0.9375rem;
  color: var(--md-sys-color-on-surface-variant);
}

#place_order {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer;
  margin-top: 8px;
  transition: background 180ms cubic-bezier(0.2, 0, 0, 1);
}
#place_order:hover {
  background: color-mix(in srgb, var(--md-sys-color-primary) 90%, black);
}

/* =========================================================================
   My Account
   ========================================================================= */
.wc-account__layout {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  padding-block: 16px 48px;
}
@media (min-width: 840px) {
  .wc-account__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: flex-start; }
}

.wc-account__nav {
  padding: 8px;
}
.wc-account__nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.wc-account__nav-list .md-list__item { margin: 0; padding: 0; }
.wc-account__nav-list .md-list__item-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-weight: 500;
  transition: background 180ms;
}
.wc-account__nav-list .md-list__icon {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 22px; line-height: 1;
}
.wc-account__nav-list .md-list__item-link:hover {
  background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
}
.wc-account__nav-list .md-list__item.is-active .md-list__item-link,
.wc-account__nav-list .md-list__item-link[aria-current="page"] {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.wc-account__nav-list .md-list__item.is-active .md-list__icon,
.wc-account__nav-list .md-list__item-link[aria-current="page"] .md-list__icon {
  color: var(--md-sys-color-on-secondary-container);
}

.wc-account__content { min-width: 0; }
.wc-account__content h2,
.wc-account__content h3 {
  margin: 0 0 14px;
  color: var(--md-sys-color-on-surface);
}

/* Account tables (orders, downloads) */
.woocommerce-account table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  overflow: hidden;
}
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.woocommerce-account table.shop_table thead th {
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 600; font-size: 0.8125rem;
}
.woocommerce-account table.shop_table tbody tr:last-child td { border-bottom: 0; }

/* Account login/register forms */
.u-columns,
.u-column1,
.u-column2 { box-sizing: border-box; }
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce form.checkout_coupon,
.woocommerce .woocommerce-EditAccountForm,
.woocommerce .woocommerce-address-fields {
  padding: 24px;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  background: var(--md-sys-color-surface);
  max-width: 520px;
}
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-address-fields { max-width: 720px; }

.woocommerce form.login h2,
.woocommerce form.register h2,
.woocommerce-account .entry-content > h2:first-child,
.wc-account__content > h2:first-child { margin-top: 0; }

/* WC default buttons → MD3 filled */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"].button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input[type="submit"].button,
.woocommerce-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--md-sys-shape-corner-full, 9999px);
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font: inherit; font-weight: 500; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 180ms, filter 180ms;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input[type="submit"].button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input[type="submit"].button:hover,
.woocommerce-button:hover {
  filter: brightness(1.05);
  box-shadow: var(--md-sys-elevation-level1);
  color: var(--md-sys-color-on-primary);
  text-decoration: none;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input[type="submit"].button.alt {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

/* Lost password / "Забыли пароль" link */
.woocommerce .lost_password a,
.woocommerce-LostPassword a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}
.woocommerce .lost_password a:hover,
.woocommerce-LostPassword a:hover { text-decoration: underline; }

/* Login form checkbox row */
.woocommerce-form-login__rememberme {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--md-sys-color-on-surface-variant);
}
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row:last-of-type { margin-bottom: 0; }

/* =========================================================================
   Notices — hidden (snackbar bridge picks them up)
   ========================================================================= */
.wc-notice[hidden] { display: none !important; }

/* =========================================================================
   WooCommerce blocks (Cart / Checkout block variants — 8.3+)
   Only style container tokens; keep block internal layout.
   ========================================================================= */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  --wc-block-color-brand: var(--md-sys-color-primary);
  --wc-block-color-brand-text: var(--md-sys-color-on-primary);
  --wp--preset--color--primary: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-surface);
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-button:not(.wc-block-components-button--link) {
  background: var(--md-sys-color-primary) !important;
  color: var(--md-sys-color-on-primary) !important;
  border-radius: var(--md-sys-shape-corner-full, 9999px) !important;
  min-height: 48px;
  font-weight: 600;
}
.wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-address-form input,
.wc-block-components-textarea {
  border-radius: var(--md-sys-shape-corner-extra-small, 4px) !important;
  border-color: var(--md-sys-color-outline) !important;
  color: var(--md-sys-color-on-surface) !important;
}
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label {
  color: var(--md-sys-color-primary) !important;
}
.wc-block-components-totals-item {
  color: var(--md-sys-color-on-surface);
}
.wc-block-cart-items,
.wc-block-components-order-summary__content {
  background: var(--md-sys-color-surface);
}
.wp-block-woocommerce-cart .wc-block-cart__sidebar,
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
  border-radius: var(--md-sys-shape-corner-medium, 12px);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface);
  padding: 16px;
}

/* =========================================================================
   MD3 Motion — shop polish
   ========================================================================= */

/* Staggered fade-in for product / category grid */
@keyframes tkGridItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.md-grid--products > li {
  opacity: 0;
  animation: tkGridItemIn var(--md-sys-motion-duration-medium4) var(--md-sys-motion-easing-emphasized-decelerate) both;
}
.md-grid--products > li:nth-child(1)  { animation-delay:  30ms; }
.md-grid--products > li:nth-child(2)  { animation-delay:  60ms; }
.md-grid--products > li:nth-child(3)  { animation-delay:  90ms; }
.md-grid--products > li:nth-child(4)  { animation-delay: 120ms; }
.md-grid--products > li:nth-child(5)  { animation-delay: 150ms; }
.md-grid--products > li:nth-child(6)  { animation-delay: 180ms; }
.md-grid--products > li:nth-child(7)  { animation-delay: 210ms; }
.md-grid--products > li:nth-child(8)  { animation-delay: 240ms; }
.md-grid--products > li:nth-child(n+9) { animation-delay: 270ms; }

/* Breadcrumb — animated underline reveal */
.wc-breadcrumb a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-emphasized),
              color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.wc-breadcrumb a:hover { background-size: 100% 1px; }

/* Shop title — subtle entrance */
.wc-shop__title {
  animation: tkTitleIn var(--md-sys-motion-duration-long1) var(--md-sys-motion-easing-emphasized-decelerate) both;
}
@keyframes tkTitleIn {
  from { opacity: 0; transform: translateY(-6px); letter-spacing: -0.01em; }
  to   { opacity: 1; transform: translateY(0);  letter-spacing: normal; }
}

/* Add-to-cart button — tactile press + loading pulse */
.wc-loop-add-to-cart {
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized),
              box-shadow var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              filter    var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.wc-loop-add-to-cart:hover { box-shadow: var(--md-sys-elevation-level1); filter: brightness(1.05); }
.wc-loop-add-to-cart:active { transform: scale(0.96); transition-duration: var(--md-sys-motion-duration-short2); }
.wc-loop-add-to-cart.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.wc-loop-add-to-cart.loading::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px;
  border: 2px solid color-mix(in srgb, var(--md-sys-color-on-primary) 35%, transparent);
  border-top-color: var(--md-sys-color-on-primary);
  border-radius: 50%;
  animation: tkSpin 720ms linear infinite;
}
.wc-loop-add-to-cart.added::after {
  content: "✓";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--md-sys-color-on-primary);
  animation: tkCheckPop var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-emphasized-decelerate) both;
}
@keyframes tkSpin { to { transform: rotate(360deg); } }
@keyframes tkCheckPop {
  0%   { opacity: 0; transform: scale(0.4); }
  60%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1);    }
}

/* Mini-cart badge — bump when cart updates (toggled via JS) */
.mini-cart__badge.is-bumped {
  animation: tkBadgeBump var(--md-sys-motion-duration-medium3) var(--md-sys-motion-easing-emphasized);
}
@keyframes tkBadgeBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* Pagination — number hover lift */
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
  transition: transform var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized),
              background-color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard);
}
.woocommerce-pagination a.page-numbers:hover { transform: translateY(-1px); }

/* Result count / ordering dropdown entrance */
.wc-shop__toolbar { animation: tkToolbarIn var(--md-sys-motion-duration-medium3) var(--md-sys-motion-easing-emphasized-decelerate) both; }
@keyframes tkToolbarIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Single-product gallery image fade-in on change */
.wc-single__gallery .wc-single__gallery-main img {
  animation: tkFadeIn var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard-decelerate) both;
}
@keyframes tkFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* My-account nav active indicator slide */
.wc-account__nav-list .md-list__item-link {
  position: relative;
  transition: background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              color var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard),
              padding-left var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-emphasized);
}
.wc-account__nav-list .md-list__item-link:hover { padding-left: 16px; }
.wc-account__nav-list .md-list__item.is-active .md-list__item-link { padding-left: 16px; }

/* ── Fastener archive filter ────────────────────────────────────── */
.wc-fastener-filter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.wc-fastener-filter__title {
  margin: 0;
  color: var(--md-sys-color-on-surface);
}
.wc-fastener-filter__field,
.wc-fastener-filter__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wc-fastener-filter__field > span,
.wc-fastener-filter__row > legend {
  color: var(--md-sys-color-on-surface-variant);
  padding: 0;
}
.wc-fastener-filter__input,
.wc-fastener-filter__num {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--md-sys-shape-corner-small, 8px);
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: var(--md-sys-typescale-body-medium-size);
  width: 100%;
  min-width: 0;
}
.wc-fastener-filter__input:focus,
.wc-fastener-filter__num:focus {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: -1px;
  border-color: transparent;
}
.wc-fastener-filter__range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.wc-fastener-filter__dash {
  color: var(--md-sys-color-on-surface-variant);
}
.wc-fastener-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wc-fastener-filter__chips .md-chip {
  padding-right: 12px;
  cursor: pointer;
}
.wc-fastener-filter__chips .md-chip input[type="checkbox"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.wc-fastener-filter__chips .md-chip:has(input[type="checkbox"]:checked) {
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-color: transparent;
}
.wc-fastener-filter__chips .md-chip input[type="checkbox"]:focus-visible + span {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.wc-fastener-filter__row > legend {
  font-size: var(--md-sys-typescale-title-medium-size);
  font-weight: 600;
  line-height: var(--md-sys-typescale-title-medium-line-height);
  color: var(--md-sys-color-primary);
  padding: 4px 0 8px;
  letter-spacing: 0.15px;
}
.wc-fastener-filter__row.is-disabled {
  opacity: 0.45;
}
.wc-fastener-filter__row.is-disabled > legend {
  color: var(--md-sys-color-on-surface-variant);
}
.wc-fastener-filter__row.is-disabled .md-chip {
  cursor: not-allowed;
  pointer-events: none;
}
.wc-fastener-filter__row.is-disabled legend::after {
  content: " — недоступно";
  font-style: italic;
  color: var(--md-sys-color-on-surface-variant);
}
.wc-fastener-filter__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Live search: recognized-tokens hint ────────────────────────── */
.md-search__hint {
  padding: 8px 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  background: var(--md-sys-color-surface-container-low);
}

/* ── 1C multi-shop prices/stocks table ──────────────────────────── */
.tkr-shops-table { margin: 16px 0; }
.tkr-shops-table__title { font-size: 1rem; margin-bottom: 8px; }
.tkr-shops-table__grid { width: 100%; border-collapse: collapse; }
.tkr-shops-table__grid th,
.tkr-shops-table__grid td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant, #ccc);
  text-align: left;
}
.tkr-shops-table__grid tr.is-outofstock { opacity: 0.55; }
.tkr-shops-table__outofstock { color: var(--md-sys-color-error, #b00020); }
