/**
 * Horizon Theme — Merch / Shop + WooCommerce overrides
 */

/* ==========================================================================
   WooCommerce base resets
   ========================================================================== */

.woocommerce,
.woocommerce-page {
  color: var(--hp-text);
}

/* Kill WC default styles we replace */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--hp-gold) !important;
  color: var(--hp-on-accent) !important;
  border: none !important;
  border-radius: var(--hp-r-sm) !important;
  font-family: var(--hp-font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  height: 48px !important;
  padding: 0 1.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background var(--hp-dur) var(--hp-ease) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--hp-gold-light) !important;
  color: var(--hp-on-accent) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--hp-gold) !important;
}

/* WC form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--hp-bg) !important;
  border: 1px solid var(--hp-border) !important;
  color: var(--hp-text) !important;
  border-radius: var(--hp-r-sm) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--hp-font-body) !important;
  transition: border-color var(--hp-dur) var(--hp-ease) !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--hp-border-strong) !important;
  box-shadow: 0 0 0 3px var(--hp-gold-muted) !important;
  outline: none !important;
}

.woocommerce form .form-row label {
  color: var(--hp-text-muted) !important;
  font-size: var(--hp-text-sm) !important;
  font-weight: 500 !important;
}

/* WooCommerce notices wrapper — fixed bottom-right toast.
   Sits clear of the hero/content area and feels premium. */
.woocommerce-notices-wrapper {
  position: fixed !important;
  bottom: var(--hp-sp-8) !important;
  right: var(--hp-sp-6) !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: calc(100% - var(--hp-sp-8)) !important;
  max-width: 26rem !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* WC notice boxes (info / message / error) — dark, gold-accented */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
  background: var(--hp-bg-raised) !important;
  border: 1px solid var(--hp-border) !important;
  border-left: 3px solid var(--hp-gold) !important;
  color: var(--hp-text-muted) !important;
  border-radius: var(--hp-r-sm) !important;
  padding: var(--hp-sp-4) var(--hp-sp-6) !important;
  list-style: none !important;
}
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-error::before {
  display: none !important;
}
/* Notice TEXT links go gold, but EXCLUDE buttons (.button): the "View cart"
   wc-forward button already has a gold background from the base button rule, so
   gold text made it invisible (gold-on-gold). :not(.button) lets the base
   .woocommerce a.button colour (--hp-on-accent, dark) win for the button. */
.woocommerce .woocommerce-info a:not(.button),
.woocommerce .woocommerce-message a:not(.button) {
  color: var(--hp-gold) !important;
}

/* ==========================================================================
   Shop archive (Merch page)
   ========================================================================== */

.hp-shop-header {
  background: var(--hp-bg-surface);
  border-bottom: 1px solid var(--hp-border);
  padding: var(--hp-sp-12) 0 var(--hp-sp-10);
  margin-top: var(--hp-header-h);
}

.hp-category-filter {
  display: flex;
  gap: var(--hp-sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--hp-sp-8);
}

.hp-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hp-sp-6);
}

/* WC product loop within our grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hp-sp-6);
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--hp-dur) var(--hp-ease),
              box-shadow var(--hp-dur) var(--hp-ease),
              transform var(--hp-dur) var(--hp-ease);
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--hp-border-strong);
  box-shadow: var(--hp-shadow-raised);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hp-font-body) !important;
  font-size: var(--hp-text-sm) !important;
  font-weight: 600 !important;
  color: var(--hp-text) !important;
  padding: var(--hp-sp-4) var(--hp-sp-4) var(--hp-sp-2) !important;
}

.woocommerce ul.products li.product .price {
  color: var(--hp-gold) !important;
  font-weight: 600 !important;
  font-size: var(--hp-text-sm) !important;
  padding: 0 var(--hp-sp-4) var(--hp-sp-4) !important;
}

/* Product card image fills the card uniformly (1:1 frame, cover). Printify
   sources arrive at 1080x1080 and hp-product is registered 800x800 cropped, so
   a square frame crops nothing; a 3:4 frame used to lose the bottom quarter.
   HORIZON-20260823-042. */
.woocommerce ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* No GP link underline on archive product cards (title / category / price). */
.woocommerce ul.products li.product a {
  text-decoration: none !important;
}

/* Archive add-to-cart: full-width CTA inside the card's 16px (sp-4) gutter.
   The title/price already use sp-4 side padding; the button was the only
   element flush to the card edge. display:flex makes it block-level so it
   fills the card width minus the side margins; justify-content centres the
   label. margin-top:auto pins the button to the card bottom (li.product is a
   flex column), so buttons share a baseline across a row even when products
   have differing title lengths. Scoped to the loop only — single-product /
   cart / checkout buttons are untouched. */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.added_to_cart {
  display: flex !important;
  justify-content: center !important;
  margin: auto var(--hp-sp-4) var(--hp-sp-4) !important;
}

/* ==========================================================================
   Cart page
   ========================================================================== */

.woocommerce-cart .woocommerce {
  max-width: var(--hp-content-max);
  margin: 0 auto;
  padding: var(--hp-sp-12) var(--hp-content-pad);
}

.woocommerce-cart table.cart {
  background: var(--hp-bg-surface) !important;
  border: 1px solid var(--hp-border) !important;
  border-radius: var(--hp-r-md) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}

.woocommerce-cart table.cart thead th {
  background: var(--hp-bg-raised) !important;
  color: var(--hp-text-muted) !important;
  font-size: var(--hp-text-xs) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--hp-border) !important;
  padding: var(--hp-sp-4) var(--hp-sp-6) !important;
}

.woocommerce-cart table.cart td {
  border-bottom: 1px solid var(--hp-border) !important;
  padding: var(--hp-sp-6) !important;
  color: var(--hp-text) !important;
  background: transparent !important;
  vertical-align: middle !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-6);
}

.woocommerce-cart .cart_totals h2 {
  font-size: var(--hp-text-xl) !important;
  margin-bottom: var(--hp-sp-6) !important;
}

.woocommerce-cart .cart_totals table {
  width: 100%;
}

.woocommerce-cart .cart_totals table td,
.woocommerce-cart .cart_totals table th {
  padding: var(--hp-sp-3) 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--hp-border) !important;
  color: var(--hp-text) !important;
  background: transparent !important;
}

.woocommerce-cart .cart_totals .order-total .amount {
  color: var(--hp-gold) !important;
  font-size: var(--hp-text-xl) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   Cart page — custom 2-column layout (dark-luxury reference)
   ========================================================================== */

.hp-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--hp-sp-12);
  align-items: start;
}

/* Item list */
.hp-cart-items {
  border-top: 1px solid var(--hp-border);
}

.hp-cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--hp-sp-5);
  padding: var(--hp-sp-5) 0;
  border-bottom: 1px solid var(--hp-border);
}

.hp-cart-item__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--hp-r-sm);
  display: block;
}

.hp-cart-item__name {
  display: block;
  font-weight: 600;
  font-size: var(--hp-text-base);
  color: var(--hp-text);
  margin-bottom: var(--hp-sp-1);
}
a.hp-cart-item__name:hover {
  color: var(--hp-gold);
}

.hp-cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--hp-text-xs);
  color: var(--hp-text-muted);
  transition: color var(--hp-dur) var(--hp-ease);
}
.hp-cart-item__remove:hover {
  color: var(--hp-gold);
}

.hp-cart-item__price {
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-lg);
  color: var(--hp-gold);
  white-space: nowrap;
  text-align: right;
}
.hp-cart-item__price del {
  color: var(--hp-text-disabled);
  font-size: var(--hp-text-sm);
}

/* Quantity stepper */
.hp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-sm);
  overflow: hidden;
}
.hp-qty__btn {
  width: 36px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--hp-text-muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--hp-dur) var(--hp-ease), background var(--hp-dur) var(--hp-ease);
}
.hp-qty__btn:hover {
  color: var(--hp-gold);
  background: var(--hp-gold-muted);
}
.hp-qty__input {
  width: 44px;
  height: 40px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--hp-border);
  border-right: 1px solid var(--hp-border);
  color: var(--hp-text);
  text-align: center;
  font-family: var(--hp-font-body);
  font-size: var(--hp-text-sm);
  -moz-appearance: textfield;
  appearance: textfield;
}
.hp-qty__input::-webkit-outer-spin-button,
.hp-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.hp-qty__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--hp-gold-muted);
}
.hp-qty--static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-sm);
  color: var(--hp-text);
  font-size: var(--hp-text-sm);
}

/* Continue-shopping link under the item list */
.hp-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-sp-2);
  margin-top: var(--hp-sp-6);
  font-size: var(--hp-text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-gold);
}
.hp-cart-continue:hover {
  color: var(--hp-gold-light);
}

/* Hidden update-cart trigger (qty steppers submit the form) */
.hp-cart-update-trigger {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Summary card */
.hp-cart-summary {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-6);
  position: sticky;
  top: calc(var(--hp-header-h) + var(--hp-sp-4));
}
.hp-cart-summary__title {
  font-size: var(--hp-text-xl);
  margin-bottom: var(--hp-sp-6);
}
.hp-cart-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hp-sp-4);
  font-size: var(--hp-text-sm);
  margin-bottom: var(--hp-sp-3);
}
.hp-cart-summary__row--muted {
  color: var(--hp-text-muted);
}
.hp-cart-summary__divider {
  border-top: 1px solid var(--hp-border);
  margin: var(--hp-sp-5) 0;
}
.hp-cart-summary__row--total {
  font-size: var(--hp-text-base);
  margin-bottom: var(--hp-sp-6);
}
.hp-cart-summary__total {
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-2xl);
  color: var(--hp-gold);
}
.hp-cart-summary__checkout {
  width: 100%;
  justify-content: center;
}
.hp-cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: var(--hp-sp-4);
  font-size: var(--hp-text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-gold);
}
.hp-cart-summary__continue:hover {
  color: var(--hp-gold-light);
}
.hp-cart-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hp-sp-2);
  margin: var(--hp-sp-5) 0 0;
  font-size: var(--hp-text-xs);
  color: var(--hp-text-muted);
}

@media (max-width: 900px) {
  .hp-cart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hp-sp-8);
  }
  .hp-cart-summary {
    position: static;
  }
}

@media (max-width: 540px) {
  .hp-cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "thumb detail"
      "qty   price";
    gap: var(--hp-sp-3) var(--hp-sp-4);
  }
  .hp-cart-item__thumb { grid-area: thumb; }
  .hp-cart-item__detail { grid-area: detail; }
  .hp-cart-item__qty { grid-area: qty; }
  .hp-cart-item__price { grid-area: price; align-self: center; }
  .hp-cart-item__thumb img { width: 56px; height: 56px; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */

/* Container (sole gutter for the shortcode checkout — keep max-width + padding) */
.woocommerce-checkout .woocommerce {
  max-width: var(--hp-content-max);
  margin: 0 auto;
  padding: var(--hp-sp-12) var(--hp-content-pad);
}

/* 2-column layout: customer details (left) + order summary (right) */
.hp-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--hp-sp-12);
  align-items: start;
}

.woocommerce-checkout #customer_details h3 {
  font-family: var(--hp-font-display) !important;
  font-size: var(--hp-text-2xl) !important;
  color: var(--hp-text) !important;
  margin-bottom: var(--hp-sp-6) !important;
}

/* Two-up first/last name row */
.woocommerce-checkout .col2-set .form-row {
  margin-bottom: var(--hp-sp-4);
}
.woocommerce-checkout .col2-set .form-row-first,
.woocommerce-checkout .col2-set .form-row-last {
  display: inline-block;
  width: calc(50% - var(--hp-sp-2));
  vertical-align: top;
}
.woocommerce-checkout .col2-set .form-row-first {
  margin-right: var(--hp-sp-3);
}

/* Uppercase small labels per reference */
.woocommerce-checkout .col2-set .form-row > label {
  display: block;
  font-size: var(--hp-text-xs) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-muted) !important;
  margin-bottom: var(--hp-sp-2);
}

/* Collapse the empty shipping wrapper (no shippable items / hidden) */
.woocommerce-shipping-fields:empty {
  display: none;
}

/* Order Summary card */
.hp-checkout-summary {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-6);
  position: sticky;
  top: calc(var(--hp-header-h) + var(--hp-sp-4));
}
.hp-checkout-summary__title {
  font-family: var(--hp-font-display) !important;
  font-size: var(--hp-text-xl) !important;
  color: var(--hp-text) !important;
  margin-bottom: var(--hp-sp-6) !important;
}
.hp-checkout-summary__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hp-sp-2);
  margin: var(--hp-sp-4) 0 0;
  font-size: var(--hp-text-xs);
  color: var(--hp-text-muted);
}

/* Review-order table → borderless summary rows */
.woocommerce-checkout table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--hp-sp-4);
}
.woocommerce-checkout table.shop_table thead {
  display: none;
}
.woocommerce-checkout table.shop_table td,
.woocommerce-checkout table.shop_table th {
  padding: var(--hp-sp-2) 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--hp-border) !important;
  background: transparent !important;
  color: var(--hp-text) !important;
  font-size: var(--hp-text-sm) !important;
}
.woocommerce-checkout table.shop_table tbody td {
  color: var(--hp-text-muted) !important;
}
.woocommerce-checkout table.shop_table .product-total,
.woocommerce-checkout table.shop_table tfoot td {
  text-align: right;
  white-space: nowrap;
}
.woocommerce-checkout table.shop_table tfoot th {
  font-weight: 500 !important;
  color: var(--hp-text-muted) !important;
}
.woocommerce-checkout table.shop_table .order-total th {
  color: var(--hp-text) !important;
  font-size: var(--hp-text-base) !important;
}
.woocommerce-checkout .order-total .amount {
  color: var(--hp-gold) !important;
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-xl) !important;
  font-weight: 600 !important;
}

/* Payment box — neutralize WC default light chrome on the dark card */
.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: var(--hp-r-md);
}
.woocommerce-checkout #payment ul.payment_methods {
  background: transparent;
  border: none;
  margin: 0 0 var(--hp-sp-4);
  padding: 0;
  list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods li {
  padding: var(--hp-sp-3) 0;
}
.woocommerce-checkout #payment ul.payment_methods li:not(:last-child) {
  border-bottom: 1px solid var(--hp-border);
}
.woocommerce-checkout #payment .payment_box {
  background: var(--hp-bg-raised);
  color: var(--hp-text-muted);
  border-radius: var(--hp-r-sm);
  padding: var(--hp-sp-3);
}
.woocommerce-checkout #payment .payment_box::before {
  display: none;
}
.woocommerce-checkout #payment .place-order {
  padding: 0;
}
.woocommerce-checkout #payment #place_order {
  width: 100% !important;
  justify-content: center !important;
  margin-top: var(--hp-sp-4);
}

/* Pulse subscribe opt-in helper text + checkbox */
.woocommerce-checkout .hp-pulse-checkout-subscribe .description {
  color: var(--hp-text-muted);
  font-size: var(--hp-text-xs);
  display: block;
  margin-top: var(--hp-sp-1);
}
.woocommerce-checkout .hp-pulse-checkout-subscribe input.input-checkbox {
  accent-color: var(--hp-gold);
}

@media (max-width: 900px) {
  .hp-checkout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hp-sp-8);
  }
  .hp-checkout-summary {
    position: static;
  }
}

/* ==========================================================================
   Single product (CSS over WC-default markup — no template override)
   ========================================================================== */

/* The product page shows the WooCommerce gallery; suppress GeneratePress's
   redundant single featured-image header — it rendered the product image
   full-bleed and oversized ABOVE the gallery (the real "looks terrible"). */
.single-product .featured-image.page-header-image-single,
.single-product .page-header-image-single {
  display: none !important;
}

/* Category eyebrow above product title + WC breadcrumb — match theme gold */
.hp-page-header__eyebrow a,
.woocommerce-breadcrumb a {
  color: var(--hp-gold) !important;
  text-decoration: none;
}
.hp-page-header__eyebrow a:hover,
.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Product card links in the loop — use theme text colour, not browser default */
.woocommerce ul.products li.product a:not(.button) {
  color: var(--hp-text) !important;
}

.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--hp-sp-12);
  align-items: start;
  margin-top: var(--hp-header-h);
  padding: var(--hp-sp-12) 0 var(--hp-sp-16);
}

/* Gallery (left) */
.single-product .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.single-product .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
}
/* The theme drops WooCommerce's core CSS (woocommerce_enqueue_styles → []),
   which normally makes the gallery anchor + image display:block. Restore it —
   without it the gallery <a>/<img> are display:inline and the product image
   does not paint. */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image > a {
  display: block;
}
/* Square EACH image individually (NOT the wrapper). With the gallery slider
   disabled all images stack inside one wrapper, so a wrapper rule would clip
   every image after the first. 1:1 matches Printify 1080x1080 sources.
   The old `max-height:760px` cap is gone: combined with aspect-ratio it would
   silently re-crop to landscape on any column wider than 760px.
   HORIZON-20260823-042. */
.single-product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--hp-r-md);
  border: 1px solid var(--hp-border);
}
/* Space stacked images on multi-image products. */
.single-product .woocommerce-product-gallery__image + .woocommerce-product-gallery__image {
  margin-top: var(--hp-sp-4);
}
.single-product .woocommerce-product-gallery__image--placeholder {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  overflow: hidden;
}
.single-product .woocommerce-product-gallery__image--placeholder img {
  opacity: 0.22;
}

/* Summary (right) */
.single-product .summary.entry-summary {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.single-product .summary .product_title {
  font-size: var(--hp-text-4xl) !important;
  margin-bottom: var(--hp-sp-4) !important;
}
.single-product .summary .price {
  color: var(--hp-gold) !important;
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-3xl) !important;
  margin-bottom: var(--hp-sp-6) !important;
}
.single-product .summary .price del {
  color: var(--hp-text-disabled) !important;
  font-size: var(--hp-text-xl);
  opacity: 1;
}
.single-product .summary .price ins {
  text-decoration: none;
}
.single-product .woocommerce-product-details__short-description {
  color: var(--hp-text-muted);
  line-height: 1.7;
  margin-bottom: var(--hp-sp-6);
}
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: var(--hp-sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--hp-sp-6) !important;
}
.single-product form.cart .quantity input.qty {
  background: var(--hp-bg) !important;
  border: 1px solid var(--hp-border) !important;
  color: var(--hp-text) !important;
  border-radius: var(--hp-r-sm) !important;
  width: 72px;
  height: 48px;
  text-align: center;
  font-family: var(--hp-font-body) !important;
  -moz-appearance: textfield;
  appearance: textfield;
}
.single-product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.single-product form.cart .single_add_to_cart_button {
  height: 48px !important;
}
.single-product .product_meta {
  font-size: var(--hp-text-sm);
  color: var(--hp-text-muted);
  border-top: 1px solid var(--hp-border);
  padding-top: var(--hp-sp-4);
}
.single-product .product_meta > span {
  display: block;
  margin-bottom: var(--hp-sp-1);
}
.single-product .product_meta a {
  color: var(--hp-gold);
}

/* Review rating selector links (WC's star font is disabled with WC core CSS;
   keep them on-brand instead of default underlined blue). */
.single-product .comment-form-rating .stars a {
  color: var(--hp-gold) !important;
  text-decoration: none;
}

/* Sale badge */
.woocommerce span.onsale {
  background: var(--hp-gold) !important;
  color: var(--hp-on-accent) !important;
  border-radius: var(--hp-r-sm);
  font-size: var(--hp-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  min-height: 0;
  line-height: 1.5;
}

/* Tabs (span full width under the 2-col grid) */
.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: var(--hp-sp-12);
}
.single-product .woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0 0 var(--hp-sp-6);
  padding: 0;
  display: flex;
  gap: var(--hp-sp-6);
  border-bottom: 1px solid var(--hp-border);
}
.single-product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
  color: var(--hp-text-muted) !important;
  font-family: var(--hp-font-body) !important;
  font-size: var(--hp-text-xs) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0 var(--hp-sp-3) !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--hp-gold) !important;
}
.single-product .woocommerce-Tabs-panel {
  color: var(--hp-text-muted);
  line-height: 1.7;
}
.single-product .woocommerce-Tabs-panel h2 {
  font-size: var(--hp-text-xl);
  color: var(--hp-text);
  margin-bottom: var(--hp-sp-3);
}

/* Related / up-sells (reuse archive product cards) */
.single-product .related,
.single-product .upsells {
  margin-top: var(--hp-sp-16);
}
.single-product .related > h2,
.single-product .upsells > h2 {
  font-size: var(--hp-text-2xl);
  margin-bottom: var(--hp-sp-8);
}

@media (max-width: 860px) {
  .single-product div.product {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hp-sp-8);
  }
}

/* ==========================================================================
   My Account
   ========================================================================== */

.woocommerce-account .woocommerce {
  max-width: var(--hp-content-max);
  margin: 0 auto;
  padding: var(--hp-sp-12) var(--hp-content-pad);
}

.woocommerce-MyAccount-navigation {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: var(--hp-sp-4) var(--hp-sp-6);
  color: var(--hp-text-muted) !important;
  border-bottom: 1px solid var(--hp-border);
  font-size: var(--hp-text-sm);
  transition: color var(--hp-dur) var(--hp-ease),
              background var(--hp-dur) var(--hp-ease);
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--hp-gold) !important;
  background: var(--hp-gold-muted);
}

/* My Vault CTA card in account dashboard */
.hp-myvault-cta {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border-strong);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hp-sp-4);
  text-decoration: none;
  transition: border-color var(--hp-dur) var(--hp-ease),
              box-shadow var(--hp-dur) var(--hp-ease);
  margin-bottom: var(--hp-sp-6);
}

.hp-myvault-cta:hover {
  border-color: var(--hp-gold);
  box-shadow: var(--hp-shadow-gold);
}

.hp-myvault-cta__text {
  font-weight: 600;
  color: var(--hp-text);
  font-size: var(--hp-text-base);
}

.hp-myvault-cta__sub {
  font-size: var(--hp-text-sm);
  color: var(--hp-text-muted);
  margin-top: var(--hp-sp-1);
}

/* --------------------------------------------------------------------------
   My Account — auth forms (logged-out: login / register / lost + reset password)
   On-brand dark card treatment for the WooCommerce account auth screens.
   Standard WC markup (no template override). Scoped to the logged-out auth
   pages so it never touches the logged-in dashboard / orders / addresses views.
   -------------------------------------------------------------------------- */

/* Centered, constrained column for the auth screens (login/register share a
   row via .u-columns; lost/reset render a single form). The logged-out account
   page has no MyAccount nav sidebar, so we can safely narrow the content. */
.woocommerce-account:not(.logged-in) .woocommerce,
.woocommerce-lost-password .woocommerce,
.woocommerce-reset-password .woocommerce {
  max-width: 920px;
}

/* Two-column login + register layout (when registration is enabled) */
.woocommerce-account .woocommerce .u-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--hp-sp-8);
  align-items: start;
  margin: 0 !important;
}
.woocommerce-account .woocommerce .u-columns::before,
.woocommerce-account .woocommerce .u-columns::after {
  display: none !important;
  content: none !important;
}
.woocommerce-account .woocommerce .u-column1,
.woocommerce-account .woocommerce .u-column2,
.woocommerce-account .woocommerce .col-1,
.woocommerce-account .woocommerce .col-2 {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The auth card — dark surface, gold-edged, matches other forms in the theme.
   Targets the login, register and lost/reset forms directly so the treatment
   applies whether or not the .u-columns wrapper is present. */
.woocommerce-account .woocommerce form.woocommerce-form-login,
.woocommerce-account .woocommerce form.woocommerce-form-register,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword,
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-8);
  margin: 0;
}

/* Single-form screens (lost / reset password) — center the lone card */
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword,
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Section headings ("Login" / "Register") — display serif, gold-on-dark */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account .woocommerce .u-column1 > h2,
.woocommerce-account .woocommerce .u-column2 > h2,
.woocommerce-account .woocommerce .col-1 > h2,
.woocommerce-account .woocommerce .col-2 > h2 {
  font-family: var(--hp-font-display) !important;
  font-size: var(--hp-text-2xl) !important;
  font-weight: 600 !important;
  color: var(--hp-text) !important;
  margin: 0 0 var(--hp-sp-5) !important;
}

/* Intro copy inside the reset-request form (plain <p>, no WC class) */
.woocommerce-account .woocommerce form.woocommerce-ResetPassword > p:not([class]),
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword > p:not([class]),
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword > p:not([class]) {
  color: var(--hp-text-muted);
  font-size: var(--hp-text-sm);
  line-height: 1.7;
  margin: 0 0 var(--hp-sp-5);
}

/* Field labels (mirror the uppercase small-label treatment used elsewhere) */
.woocommerce-account .woocommerce form.woocommerce-form-login .form-row > label:not(.woocommerce-form__label-for-checkbox),
.woocommerce-account .woocommerce form.woocommerce-form-register .form-row > label,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row > label,
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword .form-row > label,
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword .form-row > label {
  display: block;
  color: var(--hp-text-muted) !important;
  font-size: var(--hp-text-xs) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--hp-sp-2);
}
.woocommerce-account .woocommerce form .form-row .required {
  color: var(--hp-gold) !important;
  border: 0;
}

/* Text/password/email inputs — dark field treatment.
   (The base .input-text rules above use .form-row scoping; these auth inputs
   carry the .woocommerce-Input class, so restate the dark field treatment to
   guarantee coverage on every auth screen.) */
.woocommerce-account .woocommerce form .woocommerce-Input.input-text,
.woocommerce-lost-password .woocommerce form .woocommerce-Input.input-text,
.woocommerce-reset-password .woocommerce form .woocommerce-Input.input-text {
  width: 100%;
  background: var(--hp-bg) !important;
  border: 1px solid var(--hp-border) !important;
  color: var(--hp-text) !important;
  border-radius: var(--hp-r-sm) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--hp-font-body) !important;
  transition: border-color var(--hp-dur) var(--hp-ease),
              box-shadow var(--hp-dur) var(--hp-ease) !important;
}
.woocommerce-account .woocommerce form .woocommerce-Input.input-text:focus,
.woocommerce-lost-password .woocommerce form .woocommerce-Input.input-text:focus,
.woocommerce-reset-password .woocommerce form .woocommerce-Input.input-text:focus {
  border-color: var(--hp-border-strong) !important;
  box-shadow: 0 0 0 3px var(--hp-gold-muted) !important;
  outline: none !important;
}
.woocommerce-account .woocommerce form .woocommerce-Input.input-text::placeholder,
.woocommerce-lost-password .woocommerce form .woocommerce-Input.input-text::placeholder,
.woocommerce-reset-password .woocommerce form .woocommerce-Input.input-text::placeholder {
  color: var(--hp-text-disabled);
}

/* Spacing between rows */
.woocommerce-account .woocommerce form.woocommerce-form-login .form-row,
.woocommerce-account .woocommerce form.woocommerce-form-register .form-row,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row,
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword .form-row,
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword .form-row {
  margin-bottom: var(--hp-sp-5);
}

/* "Remember me" checkbox row — inline, muted, gold accent */
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: var(--hp-sp-2);
  color: var(--hp-text-muted) !important;
  font-size: var(--hp-text-sm) !important;
  font-weight: 400 !important;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme .woocommerce-form__input-checkbox,
.woocommerce-account .woocommerce form.woocommerce-form-register input[type="checkbox"] {
  accent-color: var(--hp-gold);
  width: 1rem;
  height: 1rem;
  margin: 0;
}

/* Submit buttons — gold, full-width for a tidy auth card */
.woocommerce-account .woocommerce .woocommerce-form-login__submit,
.woocommerce-account .woocommerce form.woocommerce-form-register .woocommerce-Button,
.woocommerce-account .woocommerce form.woocommerce-form-register button.button,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword .woocommerce-Button,
.woocommerce-lost-password .woocommerce form.woocommerce-ResetPassword .woocommerce-Button,
.woocommerce-reset-password .woocommerce form.woocommerce-ResetPassword .woocommerce-Button {
  width: 100%;
  justify-content: center !important;
  margin-top: var(--hp-sp-2);
}

/* "Lost your password?" link under the login form + the request link */
.woocommerce-account .woocommerce .woocommerce-LostPassword.lost_password {
  margin: var(--hp-sp-5) 0 0;
  font-size: var(--hp-text-sm);
  text-align: center;
}
.woocommerce-account .woocommerce .woocommerce-LostPassword.lost_password a {
  color: var(--hp-text-muted);
  transition: color var(--hp-dur) var(--hp-ease);
}
.woocommerce-account .woocommerce .woocommerce-LostPassword.lost_password a:hover {
  color: var(--hp-gold);
}

/* Register helper / privacy-policy copy under the register fields */
.woocommerce-account .woocommerce form.woocommerce-form-register .woocommerce-privacy-policy-text,
.woocommerce-account .woocommerce form.woocommerce-form-register .woocommerce-privacy-policy-text p {
  color: var(--hp-text-muted);
  font-size: var(--hp-text-xs);
  line-height: 1.7;
}
.woocommerce-account .woocommerce form.woocommerce-form-register .woocommerce-privacy-policy-text a {
  color: var(--hp-gold);
}

/* ==========================================================================
   My Account — logged-in sub-views
   Orders list, view-order, downloads, edit-account, edit-address.
   CSS-only: no template overrides. Scoped to .woocommerce-account so the
   auth-screen rules above are unaffected.
   ========================================================================== */

/* ---- Shared: section heading used across sub-views ---- */
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3 {
  font-family: var(--hp-font-display);
  color: var(--hp-text);
  margin-bottom: var(--hp-sp-5);
}

/* ---- Shared: order / downloads tables ---- */
.woocommerce-account .woocommerce table.shop_table,
.woocommerce-account .woocommerce table.woocommerce-orders-table,
.woocommerce-account .woocommerce table.woocommerce-MyAccount-downloads {
  width: 100%;
  border-collapse: collapse;
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  overflow: hidden;
  font-size: var(--hp-text-sm);
}

.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.woocommerce-orders-table th,
.woocommerce-account .woocommerce table.woocommerce-MyAccount-downloads th {
  padding: var(--hp-sp-3) var(--hp-sp-5);
  text-align: left;
  font-size: var(--hp-text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-gold);
  border-bottom: 1px solid var(--hp-border-strong);
  background: var(--hp-bg-raised);
}

.woocommerce-account .woocommerce table.shop_table td,
.woocommerce-account .woocommerce table.woocommerce-orders-table td,
.woocommerce-account .woocommerce table.woocommerce-MyAccount-downloads td {
  padding: var(--hp-sp-4) var(--hp-sp-5);
  color: var(--hp-text-muted);
  border-bottom: 1px solid var(--hp-border);
  vertical-align: middle;
}

.woocommerce-account .woocommerce table.shop_table tr:last-child td,
.woocommerce-account .woocommerce table.woocommerce-orders-table tr:last-child td,
.woocommerce-account .woocommerce table.woocommerce-MyAccount-downloads tr:last-child td {
  border-bottom: none;
}

.woocommerce-account .woocommerce table.shop_table tfoot th,
.woocommerce-account .woocommerce table.shop_table tfoot td {
  color: var(--hp-text);
  font-weight: 600;
}

.woocommerce-account .woocommerce table.shop_table .order-total th,
.woocommerce-account .woocommerce table.shop_table .order-total td {
  color: var(--hp-gold);
  font-size: var(--hp-text-base);
}

/* ---- Order status badges ---- */
.woocommerce-account mark.order-status {
  background: var(--hp-bg-raised);
  color: var(--hp-text-muted);
  border-radius: var(--hp-r-sm);
  padding: 2px 10px;
  font-size: var(--hp-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-account mark.order-status.status-completed {
  color: var(--hp-gold);
  background: var(--hp-gold-muted);
}

.woocommerce-account mark.order-status.status-processing,
.woocommerce-account mark.order-status.status-on-hold {
  color: #a3c9ff;
  background: rgba(163,201,255,.08);
}

.woocommerce-account mark.order-status.status-failed,
.woocommerce-account mark.order-status.status-cancelled {
  color: #ff8a8a;
  background: rgba(255,138,138,.08);
}

/* ---- Table action buttons (View Order, etc.) ---- */
.woocommerce-account .woocommerce td.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce td .button {
  display: inline-block;
  padding: var(--hp-sp-2) var(--hp-sp-4);
  border: 1px solid var(--hp-gold);
  border-radius: var(--hp-r-sm);
  background: transparent;
  color: var(--hp-gold) !important;
  font-size: var(--hp-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--hp-dur) var(--hp-ease),
              color var(--hp-dur) var(--hp-ease);
}

.woocommerce-account .woocommerce td.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-account .woocommerce td .button:hover {
  background: var(--hp-gold);
  color: var(--hp-on-accent) !important;
}

/* ---- View order: order summary sections ---- */
.woocommerce-account .woocommerce .woocommerce-order-details,
.woocommerce-account .woocommerce .woocommerce-customer-details {
  margin-bottom: var(--hp-sp-8);
}

.woocommerce-account .woocommerce .woocommerce-order-details__title,
.woocommerce-account .woocommerce .woocommerce-column__title {
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-xl);
  color: var(--hp-text);
  border-bottom: 1px solid var(--hp-border);
  padding-bottom: var(--hp-sp-3);
  margin-bottom: var(--hp-sp-5);
}

.woocommerce-account .woocommerce .woocommerce-customer-details address {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-5) var(--hp-sp-6);
  color: var(--hp-text-muted);
  font-size: var(--hp-text-sm);
  line-height: 1.8;
  font-style: normal;
}

/* ---- Address book ---- */
.woocommerce-account .woocommerce .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--hp-sp-6);
  margin-bottom: var(--hp-sp-8);
}

.woocommerce-account .woocommerce .woocommerce-Address {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-6);
}

.woocommerce-account .woocommerce .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--hp-sp-4);
  padding-bottom: var(--hp-sp-3);
  border-bottom: 1px solid var(--hp-border);
}

.woocommerce-account .woocommerce .woocommerce-Address-title h2,
.woocommerce-account .woocommerce .woocommerce-Address-title h3 {
  font-size: var(--hp-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-gold);
  margin: 0;
}

.woocommerce-account .woocommerce .woocommerce-Address-title .edit {
  font-size: var(--hp-text-xs);
  color: var(--hp-text-muted);
  text-decoration: none;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-sm);
  padding: 2px 10px;
  transition: color var(--hp-dur) var(--hp-ease),
              border-color var(--hp-dur) var(--hp-ease);
}

.woocommerce-account .woocommerce .woocommerce-Address-title .edit:hover {
  color: var(--hp-gold);
  border-color: var(--hp-gold);
}

.woocommerce-account .woocommerce .woocommerce-Address address {
  color: var(--hp-text-muted);
  font-size: var(--hp-text-sm);
  line-height: 1.8;
  font-style: normal;
}

/* ---- Edit account + edit address forms ---- */
.woocommerce-account .woocommerce .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce .woocommerce-address-fields {
  background: var(--hp-bg-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-md);
  padding: var(--hp-sp-8);
  max-width: 640px;
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--hp-sp-6);
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm fieldset legend {
  font-family: var(--hp-font-display);
  font-size: var(--hp-text-lg);
  color: var(--hp-text);
  margin-bottom: var(--hp-sp-4);
  padding-bottom: var(--hp-sp-3);
  border-bottom: 1px solid var(--hp-border);
  width: 100%;
}

.woocommerce-account .woocommerce .form-row label,
.woocommerce-account .woocommerce .woocommerce-EditAccountForm label {
  display: block;
  font-size: var(--hp-text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-text-muted);
  margin-bottom: var(--hp-sp-2);
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce .woocommerce-EditAccountForm input[type="password"],
.woocommerce-account .woocommerce .woocommerce-EditAccountForm input[type="tel"],
.woocommerce-account .woocommerce .woocommerce-address-fields input[type="text"],
.woocommerce-account .woocommerce .woocommerce-address-fields input[type="email"],
.woocommerce-account .woocommerce .woocommerce-address-fields input[type="tel"],
.woocommerce-account .woocommerce .woocommerce-address-fields select {
  width: 100%;
  background: var(--hp-bg-raised);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-sm);
  color: var(--hp-text);
  padding: var(--hp-sp-3) var(--hp-sp-4);
  font-size: var(--hp-text-sm);
  outline: none;
  transition: border-color var(--hp-dur) var(--hp-ease);
  -webkit-appearance: none;
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm input:focus,
.woocommerce-account .woocommerce .woocommerce-address-fields input:focus,
.woocommerce-account .woocommerce .woocommerce-address-fields select:focus {
  border-color: var(--hp-gold);
  box-shadow: 0 0 0 2px var(--hp-gold-muted);
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account .woocommerce .woocommerce-address-fields + p > button,
.woocommerce-account .woocommerce p > button[name="save_address"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hp-sp-3) var(--hp-sp-8);
  background: var(--hp-gold);
  color: var(--hp-on-accent);
  border: none;
  border-radius: var(--hp-r-sm);
  font-size: var(--hp-text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--hp-sp-4);
  transition: opacity var(--hp-dur) var(--hp-ease);
}

.woocommerce-account .woocommerce .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-account .woocommerce p > button[name="save_address"]:hover {
  opacity: 0.85;
}

/* ---- Password strength meter ---- */
.woocommerce-account .woocommerce #password-strength {
  background: var(--hp-bg-raised);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-r-sm);
  color: var(--hp-text-muted);
  font-size: var(--hp-text-xs);
  padding: var(--hp-sp-2) var(--hp-sp-4);
  margin-top: var(--hp-sp-2);
}

/* ---- WC notices inside account area ---- */
.woocommerce-account .woocommerce .woocommerce-message,
.woocommerce-account .woocommerce .woocommerce-info,
.woocommerce-account .woocommerce .woocommerce-error {
  border-radius: var(--hp-r-sm);
  font-size: var(--hp-text-sm);
  margin-bottom: var(--hp-sp-5);
}

/* ---- Responsive: stack columns on mobile ---- */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce table.shop_table,
  .woocommerce-account .woocommerce table.woocommerce-orders-table,
  .woocommerce-account .woocommerce table.woocommerce-MyAccount-downloads {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-account .woocommerce .woocommerce-EditAccountForm,
  .woocommerce-account .woocommerce .woocommerce-address-fields {
    padding: var(--hp-sp-5);
  }
}

/* ==========================================================================
   Shipping teaser banner
   ========================================================================== */

.hp-shipping-teaser {
  background: var(--hp-bg-raised);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
  text-align: center;
  padding: var(--hp-sp-4) 0;
  font-size: var(--hp-text-sm);
  color: var(--hp-text-muted);
}

.hp-shipping-teaser a {
  color: var(--hp-gold);
}

/* ==========================================================================
   Category filter tabs (merch archive header)
   ========================================================================== */

.hp-category-filter__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--hp-border);
  font-size: var(--hp-text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-muted);
  text-decoration: none;
  transition: border-color var(--hp-dur) var(--hp-ease),
              color var(--hp-dur) var(--hp-ease);
}

.hp-category-filter__tab--active,
.hp-category-filter__tab:hover {
  border-color: var(--hp-gold);
  color: var(--hp-gold);
}

/* ==========================================================================
   Product loop — category eyebrow + LIMITED badge
   ========================================================================== */

/* Enable badge overlay: make the anchor the positioning parent */
.woocommerce ul.products li.product > a:first-child {
  position: relative;
  display: block;
}

.hp-product-category-eyebrow {
  display: block;
  font-family: var(--hp-font-body);
  font-size: var(--hp-text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-text-muted);
  padding: var(--hp-sp-4) var(--hp-sp-4) 0;
}

.hp-limited-badge {
  position: absolute;
  top: var(--hp-sp-3);
  left: var(--hp-sp-3);
  background: var(--hp-gold);
  color: var(--hp-on-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--hp-r-sm);
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .woocommerce ul.products,
  .hp-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  .hp-shop-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
