/* =============================================================
   Highland Cabinetry — Shop Page
   Enqueued on is_woocommerce() / is_shop() / is_product_category()
   Bootstrap 5 handles general layout; this file overrides
   WooCommerce-generated markup that Bootstrap cannot reach.
   ============================================================= */

/* ─── 1. Shop Banner ──────────────────────────────────────────
   Warm-toned banner above the product grid.
   ──────────────────────────────────────────────────────────── */
.hc-shop-banner {
  background: var(--hc-warm);
  border-bottom: 1px solid var(--hc-border);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.hc-shop-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 100% at 80% 50%,
    color-mix(in srgb, var(--hc-accent) 8%, transparent) 0%,
    transparent 65%
  );
}
.hc-shop-banner__inner {
  position: relative;
}
.hc-shop-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--hc-accent);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}
.hc-shop-banner__eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hc-accent);
}
.hc-shop-banner__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--hc-dark);
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.hc-shop-banner__sub {
  font-size: 15px;
  color: var(--hc-muted);
  line-height: 1.65;
  max-width: 440px;
}

/* ─── 2. WooCommerce Main Content Wrapper ─────────────────────
   Constrain width and gutter on WC's #main element.
   ──────────────────────────────────────────────────────────── */
body.woocommerce-page {
  background: var(--hc-bg);
}

body.woocommerce-page main#main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─── 3. Breadcrumb ───────────────────────────────────────────
   ──────────────────────────────────────────────────────────── */
.woocommerce-breadcrumb {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  color: var(--hc-muted);
  margin-bottom: 28px !important;
}
.woocommerce-breadcrumb a {
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.woocommerce-breadcrumb a:hover {
  color: var(--hc-accent);
}

/* ─── 4. Shop Toolbar ─────────────────────────────────────────
   Result count + ordering dropdown row.
   ──────────────────────────────────────────────────────────── */
.woocommerce-result-count {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: var(--hc-muted);
  margin: 0 0 20px !important;
  line-height: 1;
}
.woocommerce-ordering {
  margin: 0 0 20px !important;
}
.woocommerce-ordering select {
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  padding: 9px 36px 9px 14px !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  color: var(--hc-body) !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e7485' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition: border-color 0.15s;
  height: auto !important;
  box-shadow: none !important;
}
.woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--hc-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 10%, transparent) !important;
}

/* ─── 5. Product Grid ─────────────────────────────────────────
   WooCommerce clearfix injects ::before { display: table } — kill it.
   ──────────────────────────────────────────────────────────── */
ul.products::before,
ul.products::after {
  display: none !important;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ─── 6. Product Card ─────────────────────────────────────────
   ──────────────────────────────────────────────────────────── */
ul.products li.product {
  border-radius: var(--hc-r-lg) !important;
  border: 1px solid var(--hc-border) !important;
  background: #fff !important;
  overflow: hidden !important;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}
ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--hc-sh-lg) !important;
}

ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
}
/* Scopes the hover-zoom clip to the image only */
ul.products li.product .hc-product-thumb-wrap {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
ul.products li.product .hc-product-thumb-wrap img {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.38s ease;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
ul.products li.product:hover .hc-product-thumb-wrap img {
  transform: scale(1.05);
}

ul.products li.product .woocommerce-loop-product__title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
  padding: 16px 20px 4px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

ul.products li.product .price {
  display: block;
  padding: 4px 20px 14px !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--hc-accent) !important;
  margin: 0 !important;
}
ul.products li.product .price del {
  color: var(--hc-muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin-right: 5px;
  opacity: 0.8;
}
ul.products li.product .price ins {
  text-decoration: none !important;
}

/* Flex row wrapping the ATC button + JS-injected "View cart" link.
   No flex-wrap — items always stay side-by-side. Link fills card above
   this row via flex:1 on .woocommerce-loop-product__link. */
ul.products li.product .hc-atc-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 0 16px 20px !important;
}

ul.products li.product .button.add_to_cart_button,
ul.products li.product a.button {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 9px 18px !important;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border: 1.5px solid var(--hc-accent) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s !important;
  text-decoration: none !important;
  line-height: 1 !important;
  letter-spacing: 0.01em;
  box-shadow: none !important;
  width: auto !important;
  white-space: nowrap;
}
ul.products li.product .button.add_to_cart_button:hover,
ul.products li.product a.button:hover {
  background: var(--hc-accent-d) !important;
  border-color: var(--hc-accent-d) !important;
  color: #fff !important;
}
ul.products li.product .button.add_to_cart_button.loading {
  opacity: 0.7;
  pointer-events: none;
}
ul.products li.product .button.add_to_cart_button.added {
  background: #2e7d32 !important;
  border-color: #2e7d32 !important;
}
/* WooCommerce injects a tick icon via ::after on .added — suppress it;
   the green background already signals success. */
ul.products li.product .button.add_to_cart_button.added::after {
  display: none !important;
  content: none !important;
}

ul.products li.product a.added_to_cart {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  background: transparent !important;
  color: var(--hc-accent) !important;
  border: 1.5px solid var(--hc-accent) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  box-shadow: none !important;
  width: auto !important;
  white-space: nowrap;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s !important;
  letter-spacing: 0.01em;
}
ul.products li.product a.added_to_cart:hover {
  background: var(--hc-accent) !important;
  color: #fff !important;
}

/* ─── 7. Pagination ───────────────────────────────────────────
   ──────────────────────────────────────────────────────────── */
.woocommerce-pagination {
  margin-top: 52px !important;
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.woocommerce-pagination ul.page-numbers li {
  display: contents;
  list-style: none !important;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hc-body) !important;
  background: #fff !important;
  border: 1.5px solid var(--hc-border) !important;
  text-decoration: none !important;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.woocommerce-pagination ul.page-numbers a:hover {
  border-color: var(--hc-accent) !important;
  color: var(--hc-accent) !important;
}
.woocommerce-pagination ul.page-numbers span.current {
  background: var(--hc-accent) !important;
  border-color: var(--hc-accent) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--hc-accent) 28%, transparent);
}
.woocommerce-pagination ul.page-numbers .prev,
.woocommerce-pagination ul.page-numbers .next {
  font-size: 16px;
}

/* ─── 8. No Products Found ────────────────────────────────────
   ──────────────────────────────────────────────────────────── */
.woocommerce-info {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  color: var(--hc-muted) !important;
  background: var(--hc-warm) !important;
  border-color: var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
}
.woocommerce-info::before {
  color: var(--hc-accent) !important;
}

/* ─── 9. Responsive ───────────────────────────────────────────
   ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .hc-shop-banner {
    padding: 36px 0 32px;
  }
  body.woocommerce-page main#main {
    padding-top: 36px;
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  ul.products {
    grid-template-columns: 1fr !important;
  }
  ul.products li.product .woocommerce-loop-product__link img {
    aspect-ratio: 3 / 2;
  }
}

/* ─── 10. Cart Page ───────────────────────────────────────────
   body.woocommerce-cart — woocommerce-general.css is dequeued
   here so every rule fully controls the output.
   ──────────────────────────────────────────────────────────── */

/* Cart table ------------------------------------------------- */
.woocommerce-cart-form .shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: var(--hc-r-lg) !important;
  overflow: hidden !important;
  background: #fff !important;
}
.woocommerce-cart-form .shop_table thead tr {
  background: var(--hc-warm) !important;
}
.woocommerce-cart-form .shop_table thead th {
  padding: 14px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--hc-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  border-bottom: 1px solid var(--hc-border) !important;
  text-align: left !important;
}
.woocommerce-cart-form .shop_table tbody tr {
  border-bottom: 1px solid var(--hc-border) !important;
}
.woocommerce-cart-form .shop_table tbody tr:last-child {
  border-bottom: none !important;
}
.woocommerce-cart-form .shop_table td {
  padding: 18px 16px !important;
  vertical-align: middle !important;
  color: var(--hc-body) !important;
  border: none !important;
}

/* Thumbnail */
.woocommerce-cart-form .product-thumbnail img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: var(--hc-r) !important;
  border: 1px solid var(--hc-border) !important;
  display: block !important;
}

/* Product name link */
.woocommerce-cart-form .product-name a {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}
.woocommerce-cart-form .product-name a:hover {
  color: var(--hc-accent) !important;
}

/* Price & subtotal */
.woocommerce-cart-form .product-price bdi,
.woocommerce-cart-form .product-subtotal bdi {
  color: var(--hc-accent) !important;
  font-weight: 600 !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
}

/* Remove button */
.woocommerce-cart-form a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: var(--hc-bg) !important;
  border: 1px solid var(--hc-border) !important;
  color: var(--hc-muted) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s !important;
}
.woocommerce-cart-form a.remove:hover {
  background: #fdecea !important;
  border-color: #e57373 !important;
  color: #c62828 !important;
}

/* Quantity input */
.woocommerce-cart-form .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
}
.woocommerce-cart-form .product-quantity input.qty {
  width: 64px !important;
  padding: 7px 10px !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
  background: #fff !important;
  text-align: center !important;
  -moz-appearance: textfield !important;
  box-shadow: none !important;
}
.woocommerce-cart-form .product-quantity input.qty:focus {
  outline: none !important;
  border-color: var(--hc-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 12%, transparent) !important;
}
.woocommerce-cart-form .product-quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart-form .product-quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
}

/* Actions row — coupon + update cart */
.woocommerce-cart-form td.actions {
  background: var(--hc-bg) !important;
  padding: 16px 16px !important;
}
.woocommerce-cart-form .actions .coupon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.woocommerce-cart-form .actions .coupon input#coupon_code {
  padding: 9px 14px !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  color: var(--hc-dark) !important;
  background: #fff !important;
  width: 180px !important;
  box-shadow: none !important;
}
.woocommerce-cart-form .actions .coupon input#coupon_code:focus {
  outline: none !important;
  border-color: var(--hc-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 12%, transparent) !important;
}
.woocommerce-cart-form .actions .coupon .button {
  padding: 9px 18px !important;
  background: transparent !important;
  color: var(--hc-accent) !important;
  border: 1.5px solid var(--hc-accent) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition:
    background 0.15s,
    color 0.15s !important;
  box-shadow: none !important;
}
.woocommerce-cart-form .actions .coupon .button:hover {
  background: var(--hc-accent) !important;
  color: #fff !important;
}
.woocommerce-cart-form .actions button[name="update_cart"] {
  float: right !important;
  padding: 9px 18px !important;
  background: #fff !important;
  color: var(--hc-muted) !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition:
    border-color 0.15s,
    color 0.15s !important;
  box-shadow: none !important;
}
.woocommerce-cart-form .actions button[name="update_cart"]:hover {
  border-color: var(--hc-accent) !important;
  color: var(--hc-accent) !important;
}

/* Collaterals — totals panel right-aligned */
.cart-collaterals {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 32px !important;
}
.cart_totals {
  width: 100% !important;
  max-width: 400px !important;
  background: #fff !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: var(--hc-r-lg) !important;
  padding: 28px !important;
}
.cart_totals h2 {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
  margin: 0 0 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid var(--hc-border) !important;
}
.cart_totals .shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
  background: transparent !important;
  border: none !important;
}
.cart_totals .shop_table th,
.cart_totals .shop_table td {
  padding: 10px 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--hc-border) !important;
  vertical-align: middle !important;
}
.cart_totals .shop_table tr:last-child th,
.cart_totals .shop_table tr:last-child td {
  border-bottom: none !important;
}
.cart_totals .shop_table th {
  font-weight: 500 !important;
  color: var(--hc-muted) !important;
  width: 40% !important;
  text-align: left !important;
}
.cart_totals .shop_table td {
  text-align: right !important;
  color: var(--hc-body) !important;
  font-weight: 500 !important;
}
.cart_totals .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cart_totals .order-total th,
.cart_totals .order-total td {
  padding-top: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hc-dark) !important;
}
.cart_totals .order-total td {
  color: var(--hc-accent) !important;
}

/* Checkout button */
.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.button {
  display: block !important;
  width: 100% !important;
  padding: 13px 24px !important;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.18s !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
}
.wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout a.button:hover {
  background: var(--hc-accent-d) !important;
  color: #fff !important;
}

/* Cart notices (wc-general dequeued, we own these) */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
  list-style: none !important;
  border: 1px solid var(--hc-border) !important;
  background: var(--hc-warm) !important;
  color: var(--hc-body) !important;
}
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-cart .woocommerce-info::before {
  display: none !important;
}
body.woocommerce-cart .woocommerce-message .button {
  margin-left: auto !important;
  padding: 7px 14px !important;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border-radius: var(--hc-r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* ─── Checkout Page ────────────────────────────────────────────
   body.woocommerce-checkout — unlike Cart/Account, WooCommerce's
   own CSS is NOT dequeued here (Stripe's payment UI depends on
   it), so every rule needs !important to win the specificity
   fight against woocommerce-general.css.
   ──────────────────────────────────────────────────────────── */

/* Returning-customer / coupon notice boxes — same treatment as cart notices */
body.woocommerce-checkout .woocommerce-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  margin-bottom: 20px !important;
  list-style: none !important;
  border: 1px solid var(--hc-border) !important;
  background: var(--hc-warm) !important;
  color: var(--hc-body) !important;
}
body.woocommerce-checkout .woocommerce-info::before {
  display: none !important;
}
body.woocommerce-checkout .woocommerce-info a {
  color: var(--hc-accent) !important;
  font-weight: 600 !important;
}

/* Section headings */
#customer_details h3,
#order_review_heading {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
  margin: 0 0 20px !important;
}
#ship-to-different-address {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
}
#ship-to-different-address label {
  margin: 0 !important;
}

/* Form fields */
.woocommerce-checkout .form-row label {
  font-size: var(--hc-text-sm) !important;
  font-weight: 500 !important;
  color: var(--hc-body) !important;
  margin-bottom: 6px !important;
  display: block !important;
}
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  color: var(--hc-dark) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  outline: none !important;
  border-color: var(--hc-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 12%, transparent) !important;
}
.woocommerce-checkout .form-row.woocommerce-invalid .input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: #e57373 !important;
}
.woocommerce-checkout input[type="checkbox"] {
  accent-color: var(--hc-accent) !important;
  width: 16px !important;
  height: 16px !important;
}

/* Country/state selects — Select2 replaces the native <select> with its own widget */
.woocommerce-checkout .select2-container {
  width: 100% !important;
}
.woocommerce-checkout .select2-container .select2-selection--single {
  height: auto !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  padding: 9px 14px !important;
}
.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.5 !important;
  color: var(--hc-dark) !important;
  padding: 0 !important;
}
.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}

/* "Your order" review table */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: var(--hc-r-lg) !important;
  overflow: hidden !important;
  background: #fff !important;
}
.woocommerce-checkout-review-order-table thead th {
  padding: 14px 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--hc-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  background: var(--hc-warm) !important;
  border-bottom: 1px solid var(--hc-border) !important;
  text-align: left !important;
}
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
  padding: 14px 16px !important;
  border: none !important;
  border-bottom: 1px solid var(--hc-border) !important;
  color: var(--hc-body) !important;
}
.woocommerce-checkout-review-order-table tr:last-child td,
.woocommerce-checkout-review-order-table tr:last-child th {
  border-bottom: none !important;
}
.woocommerce-checkout-review-order-table .product-name {
  font-weight: 500 !important;
}
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--hc-dark) !important;
}
.woocommerce-checkout-review-order-table .order-total td {
  color: var(--hc-accent) !important;
}

/* Payment box */
#payment {
  background: var(--hc-bg) !important;
  border: 1px solid var(--hc-border) !important;
  border-radius: var(--hc-r-lg) !important;
  padding: 4px !important;
  margin-top: 24px !important;
}
ul.payment_methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
ul.payment_methods li {
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--hc-border) !important;
}
ul.payment_methods li:last-child {
  border-bottom: none !important;
}
ul.payment_methods li label {
  font-weight: 500 !important;
  color: var(--hc-dark) !important;
}
.payment_box {
  background: #fff !important;
  border-radius: var(--hc-r) !important;
  margin-top: 12px !important;
  padding: 16px !important;
  font-size: 13px !important;
  color: var(--hc-muted) !important;
}
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-privacy-policy-text {
  font-size: 13px !important;
  color: var(--hc-muted) !important;
  margin-top: 16px !important;
}
.woocommerce-privacy-policy-text a {
  color: var(--hc-accent) !important;
}

/* Place order button */
#place_order {
  display: block !important;
  width: 100% !important;
  padding: 13px 24px !important;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background 0.18s !important;
  box-shadow: none !important;
  margin-top: 20px !important;
}
#place_order:hover {
  background: var(--hc-accent-d) !important;
}

/* Coupon form (revealed by "Click here to enter your code") */
body.woocommerce-checkout .checkout_coupon .form-row {
  margin-bottom: 12px !important;
}
body.woocommerce-checkout .checkout_coupon .button {
  padding: 9px 18px !important;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--hc-r) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* ─── Confirmation icon (email sent, etc.) ──────────────────── */
.hc-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hc-accent) 10%, transparent);
  color: var(--hc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── 11. My Account – Login / Register ──────────────────────
   Styles for the themed form-login.php override. All form
   controls use Bootstrap classes; these supplement only what
   Bootstrap does not cover.
   ──────────────────────────────────────────────────────────── */

/* Suppress the product-card hover lift on static auth forms */
.hc-auth-card {
  box-shadow: var(--hc-sh-md);
}
.hc-auth-card:hover {
  transform: none;
  box-shadow: var(--hc-sh-md);
}

/* Serif heading inside each card */
.hc-auth-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--hc-dark);
  line-height: 1.2;
}

/* Muted description lines */
.hc-auth-sub {
  font-size: var(--hc-text-sm);
  color: var(--hc-muted);
  line-height: 1.6;
}

/* "Lost your password?" and similar inline links */
.hc-auth-link {
  font-size: var(--hc-text-sm);
  color: var(--hc-accent);
  text-decoration: none;
  transition: color 0.15s;
}
.hc-auth-link:hover {
  color: var(--hc-accent-d);
  text-decoration: underline;
}

/* WooCommerce notices on the account page */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
  padding: 14px 18px !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
  list-style: none !important;
  border: none !important;
}
.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before {
  display: none !important;
}
.woocommerce-account .woocommerce-error {
  background: #fef2f2 !important;
  border-left: 4px solid #ef4444 !important;
  color: #991b1b !important;
}
.woocommerce-account .woocommerce-message {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e !important;
  color: #166534 !important;
}
.woocommerce-account .woocommerce-info {
  background: var(--hc-warm) !important;
  border-left: 4px solid var(--hc-accent) !important;
  color: var(--hc-dark) !important;
}

/* Dashboard overview text */
.hc-account-content .woocommerce-MyAccount-content > p:first-child {
  font-size: 15px;
  color: var(--hc-body);
  margin-bottom: 1.25rem;
}

/* Address section columns */
.hc-account-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hc-account-content .woocommerce-Address {
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r);
  padding: 20px;
}
.hc-account-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hc-account-content .woocommerce-Address-title h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
}
.hc-account-content address {
  font-style: normal;
  font-size: 14px;
  color: var(--hc-body);
  line-height: 1.7;
}
@media (max-width: 575px) {
  .hc-account-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

/* ─── Account Dashboard (logged-in) ──────────────────────────
   Sidebar nav + content card layout.
   ──────────────────────────────────────────────────────────── */

/* Outer wrap — vertical breathing room */
.hc-account-wrap {
  padding: 56px 0 72px;
}

/* Page header row — greeting */
.hc-account-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hc-border);
  margin-bottom: 0;
}

/* Sidebar nav card */
.hc-account-nav {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 8px;
  box-shadow: var(--hc-sh);
}

/* Nav header — avatar + name/email, mirrors the header dropdown but larger */
.hc-account-nav__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-account-nav__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hc-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.hc-account-nav__head-info {
  min-width: 0;
}
.hc-account-nav__name {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--hc-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-account-nav__email {
  font-size: 12px;
  color: var(--hc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hc-account-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--hc-r);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hc-body);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}
.hc-account-nav__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--hc-muted);
  transition: color 0.15s;
}
.hc-account-nav li a:hover {
  background: var(--hc-warm);
  color: var(--hc-dark);
}
.hc-account-nav li a:hover .hc-account-nav__icon {
  color: var(--hc-accent);
}
.hc-account-nav li.is-active a {
  background: var(--hc-accent);
  color: #fff;
}
.hc-account-nav li.is-active a .hc-account-nav__icon {
  color: #fff;
}
.hc-account-nav li.is-active a:hover {
  background: var(--hc-accent-d);
  color: #fff;
}

/* Sign-out — separated + red-tinted, like the header dropdown's logout item */
.hc-account-nav__foot {
  border-top: 1px solid var(--hc-border);
  margin-top: 6px;
  padding-top: 6px;
}
.hc-account-nav__logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--hc-r);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #dc2626;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.hc-account-nav__logout .hc-account-nav__icon {
  color: #dc2626;
}
.hc-account-nav__logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* Main content card */
.hc-account-content {
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 28px 32px;
}

/* Typography inside the content card */
.hc-account-content p {
  font-size: 15px;
  color: var(--hc-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.hc-account-content a {
  color: var(--hc-accent);
  text-decoration: none;
  transition: color 0.15s;
}
.hc-account-content a:hover {
  color: var(--hc-accent-d);
  text-decoration: underline;
}
.hc-account-content h2,
.hc-account-content h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--hc-dark);
  margin-bottom: 1rem;
}
.hc-account-content h2 {
  font-size: 1.35rem;
}
.hc-account-content h3 {
  font-size: 1.1rem;
}

/* Orders table inside the content card */
.hc-account-content .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  border: 1px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  overflow: hidden;
}
.hc-account-content .woocommerce-orders-table thead tr {
  background: var(--hc-warm);
}
.hc-account-content .woocommerce-orders-table thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hc-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--hc-border);
  text-align: left;
}
.hc-account-content .woocommerce-orders-table tbody tr {
  border-bottom: 1px solid var(--hc-border);
  transition: background 0.12s;
}
.hc-account-content .woocommerce-orders-table tbody tr:last-child {
  border-bottom: none;
}
.hc-account-content .woocommerce-orders-table tbody tr:hover {
  background: var(--hc-bg);
}
.hc-account-content .woocommerce-orders-table td,
.hc-account-content .woocommerce-orders-table th[scope="row"] {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--hc-body);
  border: none;
}
.hc-account-content .woocommerce-orders-table .woocommerce-button.button {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: transparent;
  color: var(--hc-accent);
  border: 1.5px solid var(--hc-accent);
  border-radius: var(--hc-r);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.hc-account-content .woocommerce-orders-table .woocommerce-button.button:hover {
  background: var(--hc-accent);
  color: #fff;
}

/* ─── Address edit form ─────────────────────────────────────── */
.hc-address-form__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.hc-address-form__back:hover {
  color: var(--hc-accent);
}

/* Field wrapper: two-column flex grid */
.woocommerce-address-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.woocommerce-address-fields__field-wrapper .form-row {
  flex: 1 1 100%;
  margin-bottom: 1rem;
}
.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last {
  flex: 1 1 calc(50% - 10px);
  min-width: 180px;
}

/* Labels — required asterisk in amber */
.woocommerce-address-fields label .required,
.hc-account-content .woocommerce-EditAccountForm label .required {
  color: var(--hc-accent);
  text-decoration: none;
}

/* Validation states */
.woocommerce-address-fields .form-row.woocommerce-invalid input.input-text,
.woocommerce-address-fields .form-row.woocommerce-invalid select {
  border-color: #ef4444 !important;
}
.woocommerce-address-fields .form-row .woocommerce-error {
  display: block;
  font-size: 12px;
  color: #b91c1c;
  margin-top: 4px;
}

/* WooCommerce's country/state selects — hide the native select when JS enhanced */
.woocommerce-address-fields .select2-container {
  width: 100% !important;
}
.woocommerce-address-fields .select2-container .select2-selection--single {
  height: auto !important;
  border: 1.5px solid var(--hc-border) !important;
  border-radius: var(--hc-r) !important;
  padding: 9px 14px !important;
}
.woocommerce-address-fields
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.5 !important;
  color: var(--hc-dark) !important;
  padding: 0 !important;
}
.woocommerce-address-fields
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}

/* Submit button (WC class .button on the save button) */
.hc-account-content .woocommerce-Button.button,
.hc-account-content button[type="submit"].button,
.hc-address-form button[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  background: var(--hc-accent) !important;
  color: #fff !important;
  border: 1.5px solid var(--hc-accent) !important;
  border-radius: var(--hc-r) !important;
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background 0.18s,
    border-color 0.18s !important;
}
.hc-account-content .woocommerce-Button.button:hover,
.hc-account-content button[type="submit"].button:hover,
.hc-address-form button[type="submit"].button:hover {
  background: var(--hc-accent-d) !important;
  border-color: var(--hc-accent-d) !important;
}

@media (max-width: 575px) {
  .woocommerce-address-fields__field-wrapper .form-row-first,
  .woocommerce-address-fields__field-wrapper .form-row-last {
    flex: 1 1 100%;
  }
}

/* ─── Add payment method form ───────────────────────────────── */
.hc-payment-form {
  max-width: 540px;
}
.hc-payment-methods {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  overflow: hidden;
}
.hc-payment-method {
  border-bottom: 1px solid var(--hc-border);
}
.hc-payment-method:last-child {
  border-bottom: none;
}
/* Radio is a sibling before the label — visually hidden but physically 1×1 so
   jQuery's :visible check (used by WC's payment-box slideDown trigger) returns true */
.hc-payment-method__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hc-payment-method__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  font-size: 15px;
  color: var(--hc-dark);
  transition: background 0.15s;
}
.hc-payment-method__label::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border: 2px solid var(--hc-border);
  border-radius: 50%;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.hc-payment-method__radio:checked + .hc-payment-method__label::before {
  border-color: var(--hc-accent);
  background: radial-gradient(circle, var(--hc-accent) 45%, transparent 46%);
}
.hc-payment-method__label:hover {
  background: var(--hc-bg);
}
.hc-payment-method__icon {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hc-payment-method__icon img {
  height: 22px;
  width: auto;
}
.hc-payment-method__fields {
  padding: 16px 18px;
  background: var(--hc-bg);
  border-top: 1px solid var(--hc-border);
}
/* Gateway-injected fields inherit HC form styles via the form-control filter */
.hc-payment-method__fields p {
  margin-bottom: 1rem;
}
.hc-payment-method__fields label {
  font-size: var(--hc-text-sm);
  font-weight: 500;
  color: var(--hc-body);
  margin-bottom: 5px;
  display: block;
}
.hc-payment-method__fields input[type="text"],
.hc-payment-method__fields input[type="tel"],
.hc-payment-method__fields input[type="number"] {
  display: block;
  width: 100%;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-r);
  font-size: 15px;
  padding: 10px 14px;
  color: var(--hc-dark);
  background: #fff;
}
.hc-payment-method__fields input:focus {
  border-color: var(--hc-accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hc-accent) 12%, transparent);
}

/* ─── Dashboard overview ───────────────────────────────────── */
.hc-dashboard__welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--hc-warm);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 20px 24px;
  margin-bottom: 4px;
}
.hc-dashboard__welcome-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--hc-accent);
  flex-shrink: 0;
}
.hc-dashboard__welcome-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--hc-dark);
  margin-bottom: 4px;
}
.hc-dashboard__welcome-sub {
  font-size: 14px;
  color: var(--hc-muted);
  margin-bottom: 0;
  line-height: 1.5;
}
@media (max-width: 575px) {
  .hc-dashboard__welcome {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
.hc-dashboard__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 20px 18px;
  text-decoration: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  height: 100%;
}
.hc-dashboard__card:hover {
  border-color: var(--hc-accent);
  box-shadow: var(--hc-sh-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.hc-dashboard__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hc-warm);
  color: var(--hc-accent);
  margin-bottom: 4px;
  flex-shrink: 0;
}
.hc-dashboard__card-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--hc-dark);
}
.hc-dashboard__card-desc {
  font-size: 13px;
  color: var(--hc-muted);
  line-height: 1.5;
}

/* ─── Sub-page section headings ────────────────────────────── */
.hc-account-section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--hc-dark);
  margin-bottom: 6px;
}
.hc-account-section-desc {
  font-size: 14px;
  color: var(--hc-muted);
  margin-bottom: 24px;
}

/* ─── Address cards ─────────────────────────────────────────── */
.hc-address-card {
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 20px 22px;
  height: 100%;
}
.hc-address-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-address-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--hc-dark);
  margin: 0;
}
.hc-address-card__edit {
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.hc-address-card__edit:hover {
  color: var(--hc-accent-d);
  text-decoration: underline;
}
.hc-address-card__body {
  font-style: normal;
  font-size: 14px;
  color: var(--hc-body);
  line-height: 1.7;
  margin: 0;
}
.hc-address-card__empty {
  font-size: 13px;
  color: var(--hc-muted);
  font-style: italic;
}

/* ─── Account details fieldset ──────────────────────────────── */
.hc-fieldset {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r-lg);
  padding: 22px 22px 18px;
}
.hc-fieldset__legend {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px;
  float: none;
  width: auto;
}

/* ─── Orders: responsive overflow + status chips + pagination ── */
@media (max-width: 767px) {
  .hc-account-content .woocommerce-orders-table {
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }
}
.woocommerce-orders-table__cell-order-number a {
  font-weight: 600;
  color: var(--hc-dark);
}
.hc-order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.woocommerce-orders-table__row--status-completed .hc-order-status-badge {
  color: #2d7a36;
  background: #e7f5ea;
}
.woocommerce-orders-table__row--status-processing .hc-order-status-badge {
  color: #1a6fad;
  background: #e8f2fa;
}
.woocommerce-orders-table__row--status-pending .hc-order-status-badge,
.woocommerce-orders-table__row--status-on-hold .hc-order-status-badge {
  color: #8a6900;
  background: #fbf3d9;
}
.woocommerce-orders-table__row--status-cancelled .hc-order-status-badge,
.woocommerce-orders-table__row--status-failed .hc-order-status-badge {
  color: #b91c1c;
  background: #fbe9e9;
}
.hc-account-content .woocommerce-pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.hc-account-content .woocommerce-Button--previous,
.hc-account-content .woocommerce-Button--next {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-accent);
  border: 1.5px solid var(--hc-accent);
  border-radius: var(--hc-r);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.hc-account-content .woocommerce-Button--previous:hover,
.hc-account-content .woocommerce-Button--next:hover {
  background: var(--hc-accent);
  color: #fff;
}

/* ─── Single order view (view-order.php) ───────────────────────
   "Order # was placed on..." summary line, line-items table,
   and billing address — all bare/unstyled by default.
   ──────────────────────────────────────────────────────────── */
.hc-account-content mark {
  background: none;
  color: var(--hc-dark);
  font-weight: 600;
}
.hc-account-content .woocommerce-order-details__title,
.hc-account-content .woocommerce-column__title {
  margin-top: 28px;
}
.hc-account-content .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r);
  overflow: hidden;
}
.hc-account-content .woocommerce-table--order-details thead tr {
  background: var(--hc-warm);
}
.hc-account-content .woocommerce-table--order-details thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hc-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--hc-border);
  text-align: left;
}
.hc-account-content .woocommerce-table--order-details tbody td,
.hc-account-content .woocommerce-table--order-details tfoot th,
.hc-account-content .woocommerce-table--order-details tfoot td {
  padding: 14px 16px;
  color: var(--hc-body);
  border-top: 1px solid var(--hc-border);
}
.hc-account-content .woocommerce-table--order-details .product-total,
.hc-account-content .woocommerce-table--order-details tfoot td {
  text-align: right;
}
.hc-account-content .woocommerce-table--order-details tfoot th {
  text-align: left;
  font-weight: 500;
}
.hc-account-content .woocommerce-table--order-details tfoot tr:last-child th,
.hc-account-content .woocommerce-table--order-details tfoot tr:last-child td {
  font-weight: 700;
  color: var(--hc-dark);
}
.hc-account-content p.order-again {
  margin-top: 16px;
}
.hc-account-content p.order-again .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  background: var(--hc-accent);
  color: #fff;
  border: 1.5px solid var(--hc-accent);
  border-radius: var(--hc-r);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.hc-account-content p.order-again .button:hover {
  background: var(--hc-accent-d);
  border-color: var(--hc-accent-d);
}
.hc-account-content .woocommerce-customer-details {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hc-border);
}
/* Billing + shipping side-by-side layout. WooCommerce's own template
   classes here are "col-1"/"col-2" — same names Bootstrap uses for grid
   columns (width: 8.33%/16.67%), so without this override the address
   boxes get squeezed down to a sliver and the text wraps one word per line. */
.hc-account-content .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}
.hc-account-content .woocommerce-columns--addresses .woocommerce-column {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}
@media (max-width: 575px) {
  .hc-account-content .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }
}
.hc-account-content .woocommerce-customer-details address {
  background: var(--hc-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r);
  padding: 16px 18px;
}
.hc-account-content .woocommerce-customer-details--email,
.hc-account-content .woocommerce-customer-details--phone {
  margin-bottom: 0;
  margin-top: 8px;
  font-size: 13px;
  color: var(--hc-muted);
}

/* ─── Downloads table ───────────────────────────────────────── */
.hc-account-content .woocommerce-table--downloads {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r);
  overflow: hidden;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hc-account-content .woocommerce-table--downloads thead tr {
  background: var(--hc-warm);
}
.hc-account-content .woocommerce-table--downloads thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hc-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--hc-border);
  text-align: left;
  white-space: nowrap;
}
.hc-account-content .woocommerce-table--downloads tbody tr {
  border-bottom: 1px solid var(--hc-border);
}
.hc-account-content .woocommerce-table--downloads tbody tr:last-child {
  border-bottom: none;
}
.hc-account-content .woocommerce-table--downloads td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--hc-body);
}
.hc-account-content
  .woocommerce-table--downloads
  .woocommerce-MyAccount-downloads-file
  a {
  font-weight: 500;
  color: var(--hc-accent);
}

/* ─── Payment methods table ─────────────────────────────────── */
.hc-account-content .woocommerce-MyAccount-paymentMethods {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-r);
  overflow: hidden;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hc-account-content .woocommerce-MyAccount-paymentMethods thead tr {
  background: var(--hc-warm);
}
.hc-account-content .woocommerce-MyAccount-paymentMethods thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hc-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--hc-border);
  text-align: left;
  white-space: nowrap;
}
.hc-account-content .woocommerce-MyAccount-paymentMethods tbody tr {
  border-bottom: 1px solid var(--hc-border);
  transition: background 0.12s;
}
.hc-account-content .woocommerce-MyAccount-paymentMethods tbody tr:last-child {
  border-bottom: none;
}
.hc-account-content .woocommerce-MyAccount-paymentMethods tbody tr:hover {
  background: var(--hc-bg);
}
.hc-account-content
  .woocommerce-MyAccount-paymentMethods
  tbody
  tr.default-payment-method {
  background: color-mix(in srgb, var(--hc-accent) 6%, #fff);
}
.hc-account-content .woocommerce-MyAccount-paymentMethods td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--hc-body);
}
/* WC generic .button — used for payment method actions + add-payment link */
.hc-account-content a.button,
.hc-account-content .woocommerce-MyAccount-paymentMethods .button {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--hc-accent);
  background: transparent;
  border: 1.5px solid var(--hc-accent);
  border-radius: var(--hc-r);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  margin-right: 4px;
}
.hc-account-content a.button:hover,
.hc-account-content .woocommerce-MyAccount-paymentMethods .button:hover {
  background: var(--hc-accent);
  color: #fff;
}
.hc-account-content a.button.delete {
  color: #b91c1c;
  border-color: #b91c1c;
}
.hc-account-content a.button.delete:hover {
  background: #b91c1c;
  color: #fff;
}
.hc-account-content .add-payment-method-wrap {
  margin-top: 16px;
}

/* Mobile: stack nav on top, horizontal scrollable pill row */
@media (max-width: 767px) {
  .hc-account-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding-bottom: 2px;
  }
  .hc-account-nav ul::-webkit-scrollbar {
    display: none;
  }
  .hc-account-nav li a {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .hc-account-content {
    padding: 20px;
  }
}

/* Cart-page responsive */
@media (max-width: 640px) {
  .cart-collaterals {
    justify-content: stretch !important;
  }
  .cart_totals {
    max-width: 100% !important;
  }

  .woocommerce-cart-form .shop_table thead {
    display: none !important;
  }
  .woocommerce-cart-form .shop_table tbody tr {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-template-areas:
      "thumb name"
      "thumb price"
      "thumb qty"
      "thumb sub"
      ". remove" !important;
    gap: 6px 12px !important;
    padding: 16px !important;
  }
  .woocommerce-cart-form .shop_table td {
    padding: 0 !important;
    border: none !important;
  }
  .woocommerce-cart-form td.product-remove {
    grid-area: remove !important;
  }
  .woocommerce-cart-form td.product-thumbnail {
    grid-area: thumb !important;
    align-self: start !important;
  }
  .woocommerce-cart-form td.product-name {
    grid-area: name !important;
  }
  .woocommerce-cart-form td.product-price {
    grid-area: price !important;
  }
  .woocommerce-cart-form td.product-quantity {
    grid-area: qty !important;
  }
  .woocommerce-cart-form td.product-subtotal {
    grid-area: sub !important;
  }
  .woocommerce-cart-form td[data-title]::before {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--hc-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 2px !important;
    content: attr(data-title) !important;
  }
  .woocommerce-cart-form td.product-remove::before,
  .woocommerce-cart-form td.product-thumbnail::before {
    display: none !important;
  }
  .woocommerce-cart-form .actions .coupon {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .woocommerce-cart-form .actions .coupon input#coupon_code {
    width: 100% !important;
  }
  .woocommerce-cart-form .actions button[name="update_cart"] {
    float: none !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
}

/* Checkout-page responsive */
@media (max-width: 767px) {
  .col2-set#customer_details .col-1,
  .col2-set#customer_details .col-2 {
    float: none !important;
    width: 100% !important;
  }
  .woocommerce-checkout-review-order-table thead {
    display: none !important;
  }
}
