/**
 * Hawksbury Timber — WooCommerce visual layer
 *
 * CSS variable aliases map the non-prefixed names used in WooCommerce templates
 * to the --ht-* design token system defined in main.css.
 *
 * Component classes mirror the main.css architecture (BEM-ish, grouped by page).
 *
 * @package hawkesbury-timber
 */

/* ─────────────────────────────────────────────────────────────────────────────
   0. KEYFRAMES (referenced by main.js IntersectionObserver)
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS VARIABLE ALIASES
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --warm-white:  var(--ht-warm);
  --cream:      var(--ht-cream);
  --sand:       var(--ht-stone);
  --sand-light: var(--ht-biscuit);
  --oak:        var(--ht-timber);
  --bark:       var(--ht-charcoal);
  --moss:       var(--ht-sage);
  --text-body:  var(--ht-charcoal);
  --text-muted: var(--ht-mid);
  --text-light: var(--ht-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. BUTTON VARIANTS
   ───────────────────────────────────────────────────────────────────────────── */

.btn--ghost {
  background: transparent;
  color: var(--ht-charcoal);
  border-color: var(--ht-stone);
}

.btn--ghost:hover {
  background: var(--ht-cream);
  border-color: var(--ht-stone-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. SHOP HEADER + CATEGORY PAGES
   ───────────────────────────────────────────────────────────────────────────── */

.shop-header {
  background: var(--ht-warm);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--ht-stone);
}

.shop-header h1 {
  font-family: var(--ht-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ht-charcoal);
  margin: .6rem 0 0;
  line-height: 1.15;
}

.shop-category-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

.shop-category-point {
  background: var(--ht-sage-pale);
  border: 1px solid rgba(97, 122, 92, .25);
  color: var(--ht-sage);
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem .85rem;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. SHOP TOOLBAR
   ───────────────────────────────────────────────────────────────────────────── */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ht-stone);
  margin-bottom: 2rem;
}

.shop-count {
  font-size: .78rem;
  color: var(--ht-mid);
  font-weight: 400;
  margin: 0;
  letter-spacing: .04em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. SHOP LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. SIDEBAR
   ───────────────────────────────────────────────────────────────────────────── */

.shop-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--ht-cream);
  border: 1px solid var(--ht-stone);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
}

.sidebar-widget__title {
  font-family: var(--ht-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--ht-stone);
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.filter-item a {
  display: block;
  padding: .4rem .5rem;
  font-size: .86rem;
  font-weight: 300;
  color: var(--ht-charcoal);
  transition: color .18s, background .18s;
  border-radius: 2px;
  text-decoration: none;
}

.filter-item a:hover {
  color: var(--ht-timber);
  background: var(--ht-sage-pale);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. PRODUCTS GRID
   ───────────────────────────────────────────────────────────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. PRODUCT CARD
   ───────────────────────────────────────────────────────────────────────────── */

.product-card {
  background: var(--ht-warm);
  border: 1px solid var(--ht-stone);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(44, 42, 36, .10);
  border-color: rgba(184, 92, 40, .35);
}

.product-card__image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ht-biscuit);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--ht-sage);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 2px;
}

.product-card__badge--enquire {
  background: var(--ht-sage);
}

.product-card__body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__category {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin: 0 0 .4rem;
}

.product-card__name {
  font-family: var(--ht-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ht-charcoal);
  margin: 0 0 .5rem;
  line-height: 1.3;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover {
  color: var(--ht-timber);
}

.product-card__desc {
  font-size: .82rem;
  color: var(--ht-ink);
  line-height: 1.6;
  margin: 0 0 auto;
  flex: 1;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--ht-stone);
  gap: .5rem;
}

.product-card__price {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ht-charcoal);
}

.product-card__link {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ht-timber);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s;
}

.product-card__link:hover {
  color: var(--ht-timber-mid);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. SINGLE PRODUCT LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. PRODUCT GALLERY
   ───────────────────────────────────────────────────────────────────────────── */

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ht-biscuit);
  border: 1px solid var(--ht-stone);
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__expand-hint {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(253, 250, 246, .9);
  border: 1px solid var(--ht-stone);
  color: var(--ht-charcoal);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .35rem .7rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.product-gallery__main:hover .product-gallery__expand-hint {
  opacity: 1;
}

.product-gallery__thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--ht-stone);
  background: var(--ht-biscuit);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color .18s;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
  border-color: var(--ht-timber);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10b. LIGHTBOX
   ───────────────────────────────────────────────────────────────────────────── */

.ht-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-lightbox[hidden] {
  display: none;
}

.ht-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 22, .92);
  backdrop-filter: blur(4px);
}

.ht-lightbox__window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 900px);
  max-height: 92vh;
  width: 100%;
}

.ht-lightbox__stage {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ht-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
}

.ht-lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  padding: .5rem;
  line-height: 1;
  transition: color .18s;
}

.ht-lightbox__close:hover {
  color: #fff;
}

.ht-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 250, 246, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  padding: .75rem .6rem;
  line-height: 1;
  transition: background .18s, color .18s;
  z-index: 2;
}

.ht-lightbox__nav:hover {
  background: rgba(253, 250, 246, .2);
  color: #fff;
}

.ht-lightbox__nav--prev { left: -3.5rem; }
.ht-lightbox__nav--next { right: -3.5rem; }

.ht-lightbox__counter {
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
  font-family: var(--ht-sans);
  letter-spacing: .08em;
}

.ht-lightbox__dots {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.ht-lightbox__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .18s, transform .18s;
}

.ht-lightbox__dot.active,
.ht-lightbox__dot:hover {
  background: rgba(255, 255, 255, .7);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .ht-lightbox__nav--prev { left: .5rem; }
  .ht-lightbox__nav--next { right: .5rem; }
  .ht-lightbox__window { max-width: 96vw; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. PRODUCT SUMMARY
   ───────────────────────────────────────────────────────────────────────────── */

.product-summary__cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin: 0 0 .5rem;
}

.product-summary__cat a {
  color: var(--ht-sage);
  text-decoration: none;
}

.product-summary__cat a:hover {
  text-decoration: underline;
}

.product-summary__title {
  font-family: var(--ht-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ht-charcoal);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.product-summary__price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ht-timber);
  margin-bottom: 1.2rem;
}

.product-summary__lead {
  font-family: var(--ht-serif);
  font-size: 1.05rem;
  color: var(--ht-charcoal);
  line-height: 1.65;
  margin: 0 0 1rem;
  font-style: italic;
}

.product-summary__desc {
  font-size: .88rem;
  color: var(--ht-ink);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ht-stone);
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. SPEC TABLE
   ───────────────────────────────────────────────────────────────────────────── */

.spec-table {
  border: 1px solid var(--ht-stone);
  margin-bottom: 1.5rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--ht-stone);
  font-size: .84rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:nth-child(even) {
  background: var(--ht-cream);
}

.spec-label {
  font-weight: 600;
  color: var(--ht-charcoal);
}

.spec-value {
  color: var(--ht-ink);
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. PRODUCT CHECKLIST
   ───────────────────────────────────────────────────────────────────────────── */

.product-checklist {
  background: var(--ht-sage-pale);
  border: 1px solid rgba(97, 122, 92, .2);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.product-checklist__kicker {
  display: block;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ht-sage);
  margin-bottom: .75rem;
}

.product-checklist ul {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.product-checklist li {
  font-size: .83rem;
  color: var(--ht-charcoal);
  line-height: 1.55;
  list-style: disc;
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. PRODUCT SPECIES PANEL
   ───────────────────────────────────────────────────────────────────────────── */

.product-species-panel {
  border: 1px solid var(--ht-stone);
  margin-bottom: 1.5rem;
}

.product-species-panel__head {
  background: var(--ht-cream);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ht-stone);
}

.product-species-panel__kicker {
  display: block;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin-bottom: .4rem;
}

.product-species-panel__head h2 {
  font-family: var(--ht-serif);
  font-size: 1.1rem;
  color: var(--ht-charcoal);
  margin: 0 0 .3rem;
}

.product-species-panel__head p {
  font-size: .8rem;
  color: var(--ht-mid);
  margin: 0;
  line-height: 1.5;
}

.product-species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
}

.product-species-card {
  padding: 1.1rem 1.3rem;
  border-right: 1px solid var(--ht-stone);
  border-bottom: 1px solid var(--ht-stone);
}

.product-species-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
}

.product-species-card h3 {
  font-family: var(--ht-serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ht-charcoal);
  margin: 0;
}

.product-species-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-species-card h3 a:hover {
  color: var(--ht-timber);
}

.product-species-card__top p {
  font-size: .75rem;
  font-style: italic;
  color: var(--ht-mid);
  margin: .2rem 0 0;
}

.product-species-card__link {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ht-timber);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-species-card__link:hover {
  text-decoration: underline;
}

.product-species-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem .75rem;
  margin: 0;
}

.product-species-facts div {
  display: contents;
}

.product-species-facts dt {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ht-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-species-facts dd {
  font-size: .8rem;
  color: var(--ht-charcoal);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. PRODUCT BUYING NOTE
   ───────────────────────────────────────────────────────────────────────────── */

.product-buying-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--ht-cream);
  border: 1px solid var(--ht-stone);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
}

.product-buying-note__kicker {
  display: block;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin-bottom: .3rem;
}

.product-buying-note p {
  font-size: .82rem;
  color: var(--ht-ink);
  line-height: 1.55;
  margin: 0;
}

.product-buying-note > a {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ht-timber);
  text-decoration: none;
  border-bottom: 1px solid var(--ht-timber);
  padding-bottom: 1px;
  transition: color .18s, border-color .18s;
}

.product-buying-note > a:hover {
  color: var(--ht-timber-mid);
  border-color: var(--ht-timber-mid);
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. PRODUCT ACTIONS (ADD TO CART PANEL)
   ───────────────────────────────────────────────────────────────────────────── */

.product-actions {
  border: 1px solid var(--ht-stone);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.product-actions__head {
  margin-bottom: 1.2rem;
}

.product-actions__head span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ht-charcoal);
}

.product-actions__head p {
  font-size: .78rem;
  color: var(--ht-mid);
  margin: .3rem 0 0;
  line-height: 1.5;
}

.product-cart-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-cart-panel__quantity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-cart-panel__label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--ht-charcoal);
}

.single_add_to_cart_button.button.alt {
  background: var(--ht-timber);
  color: #fff;
  border: none;
  font-family: var(--ht-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  cursor: pointer;
  transition: background .2s;
}

.single_add_to_cart_button.button.alt:hover {
  background: var(--ht-timber-mid);
}

.product-cart-panel--unavailable {
  background: var(--ht-sage-pale);
  border: 1px solid rgba(97, 122, 92, .2);
  padding: 1.1rem 1.3rem;
}

.product-cart-panel--unavailable p {
  font-size: .82rem;
  color: var(--ht-charcoal);
  line-height: 1.55;
  margin: 0 0 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. ENQUIRY PANEL
   ───────────────────────────────────────────────────────────────────────────── */

.enquiry-panel {
  border: 1px solid var(--ht-stone);
  background: var(--ht-warm);
  padding: 1.75rem;
}

.enquiry-panel__head {
  margin-bottom: 1.5rem;
}

.enquiry-panel__kicker {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ht-sage);
  display: block;
  margin-bottom: .4rem;
}

.enquiry-panel__title {
  font-family: var(--ht-serif);
  font-size: 1.25rem;
  color: var(--ht-charcoal);
  margin: 0 0 .5rem;
}

.enquiry-panel__head > p {
  font-size: .84rem;
  color: var(--ht-ink);
  line-height: 1.6;
  margin: 0;
}

.enquiry-panel__response {
  margin-top: 1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. CART LAYOUT
   ───────────────────────────────────────────────────────────────────────────── */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   19. CART TABLE
   ───────────────────────────────────────────────────────────────────────────── */

.cart-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ht-stone);
}

.cart-table thead tr {
  background: var(--ht-cream);
  border-bottom: 2px solid var(--ht-stone);
}

.cart-table th {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ht-mid);
  padding: .75rem 1rem;
  text-align: left;
}

.cart-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--ht-stone);
  vertical-align: middle;
  font-size: .86rem;
  color: var(--ht-charcoal);
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-info img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--ht-stone);
  flex-shrink: 0;
}

.cart-item-name {
  font-family: var(--ht-serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ht-charcoal);
  margin: 0;
}

.cart-item-name a {
  color: inherit;
  text-decoration: none;
}

.cart-item-name a:hover {
  color: var(--ht-timber);
}

.cart-item-price {
  color: var(--ht-timber);
  font-weight: 600;
  white-space: nowrap;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--ht-mid);
  cursor: pointer;
  padding: .25rem .5rem;
  line-height: 1;
  transition: color .18s;
}

.cart-remove:hover {
  color: var(--ht-timber);
}

/* Quantity input inside cart */
.woocommerce .quantity .qty {
  width: 70px;
  padding: .45rem .5rem;
  border: 1px solid var(--ht-stone);
  font-family: var(--ht-sans);
  font-size: .86rem;
  color: var(--ht-charcoal);
  background: var(--ht-warm);
  text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. ORDER SUMMARY
   ───────────────────────────────────────────────────────────────────────────── */

.order-summary {
  background: var(--ht-cream);
  border: 1px solid var(--ht-stone);
  padding: 1.6rem 1.75rem;
  position: sticky;
  top: 100px;
}

.order-summary__title {
  font-family: var(--ht-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ht-stone);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  font-size: .86rem;
  color: var(--ht-charcoal);
  border-bottom: 1px solid rgba(212, 201, 181, .5);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row--total {
  font-weight: 700;
  font-size: .95rem;
  padding-top: .85rem;
  margin-top: .25rem;
  border-top: 2px solid var(--ht-stone);
  border-bottom: none;
}

.summary-total-price {
  color: var(--ht-timber);
}

/* ─────────────────────────────────────────────────────────────────────────────
   21. CHECKOUT
   ───────────────────────────────────────────────────────────────────────────── */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
  padding: 2.5rem 0 4.5rem;
}

.checkout-section-title {
  font-family: var(--ht-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ht-mid);
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ht-stone);
}

/* ─────────────────────────────────────────────────────────────────────────────
   22. WOOCOMMERCE FORM OVERRIDES
   ───────────────────────────────────────────────────────────────────────────── */

/* Ensure WooCommerce-generated form inputs respect theme styling */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--ht-stone);
  background: var(--ht-warm);
  font-family: var(--ht-sans);
  font-size: .88rem;
  color: var(--ht-charcoal);
  outline: none;
  transition: border-color .18s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--ht-timber);
}

.woocommerce form .form-row label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ht-charcoal);
  letter-spacing: .02em;
}

.woocommerce-checkout #payment {
  background: transparent;
  padding: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  background: transparent;
  border: none;
  padding: 0;
}

.woocommerce-checkout #payment div.payment_box {
  background: var(--ht-cream);
  border: 1px solid var(--ht-stone);
  padding: 1rem 1.2rem;
  margin-top: .75rem;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   23. MY ACCOUNT
   ───────────────────────────────────────────────────────────────────────────── */

.woocommerce-MyAccount-navigation ul {
  border: 1px solid var(--ht-stone);
}

.woocommerce-MyAccount-navigation ul li a {
  transition: background .18s, color .18s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--ht-sage-pale);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--ht-sage-pale);
  color: var(--ht-sage);
}

/* ─────────────────────────────────────────────────────────────────────────────
   24. RELATED PRODUCTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Uses .products-grid defined above */

/* ─────────────────────────────────────────────────────────────────────────────
   25. PAGINATION (glossary/archive style)
   ───────────────────────────────────────────────────────────────────────────── */

.woocommerce-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid var(--ht-stone);
  font-size: .82rem;
  color: var(--ht-charcoal);
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}

.woocommerce-pagination .page-numbers li a:hover,
.woocommerce-pagination .page-numbers li span.current {
  background: var(--ht-timber);
  color: #fff;
  border-color: var(--ht-timber);
}

/* ─────────────────────────────────────────────────────────────────────────────
   26. MINI CART
   ───────────────────────────────────────────────────────────────────────────── */

.mini-cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-cart-item {
  display: flex;
  gap: .85rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--ht-stone);
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--ht-stone);
  flex-shrink: 0;
}

.mini-cart-item__info {
  flex: 1;
}

.mini-cart-item__name {
  font-family: var(--ht-serif);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ht-charcoal);
  margin: 0 0 .2rem;
  line-height: 1.3;
}

.mini-cart-item__name a {
  color: inherit;
  text-decoration: none;
}

.mini-cart-item__name a:hover {
  color: var(--ht-timber);
}

.mini-cart-item__price {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ht-timber);
}

/* ─────────────────────────────────────────────────────────────────────────────
   27. RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .single-product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .shop-sidebar {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .product-buying-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-species-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
