/**
 * Tusc Herbals — global alignment + page refinements
 *
 * One content rail for the whole site. Astra's container (1240), my inner
 * content (1152) and WooCommerce blocks all previously resolved to different
 * left edges, so nothing lined up between sections. Everything below snaps to
 * --th-container + --th-gutter.
 */

/* ========================================================================
   1. THE RAIL
   ======================================================================== */
.ast-container,
.ast-container-fluid,
#content .ast-container,
.site-content > .ast-container {
  max-width: calc(var(--th-container) + (var(--th-gutter) * 2)) !important;
  padding-inline: var(--th-gutter) !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

/* Only homepage sections provide their own full-width wrappers with .th-container. */
.home #content > .ast-container {
  max-width: none !important;
  padding-inline: 0 !important;
}

/* Generous breathing room under navbar across all content pages */
.site-content {
  padding-top: 48px !important;
  padding-bottom: 88px !important;
  box-sizing: border-box;
}
.home .site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.page-id-120 .site-content,
.page-id-121 .site-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.single-product .site-content {
  padding-top: 48px !important;
  padding-bottom: 96px !important;
}
body.page:not(.home) .site-content,
body.privacy-policy .site-content,
.woocommerce-page:not(.home) .site-content {
  padding-top: 52px !important;
  padding-bottom: 88px !important;
}
@media (max-width: 768px) {
  .site-content,
  .single-product .site-content,
  body.page:not(.home) .site-content,
  .woocommerce-page:not(.home) .site-content {
    padding-top: 28px !important;
    padding-bottom: 60px !important;
  }
}

/* Sections own their vertical rhythm; the theme should not add more. */
.ast-plain-container.ast-no-sidebar #primary,
.ast-separate-container #primary { margin: 0; padding: 0; }

/* Custom template pages (Home, About, Contact) have their own custom hero sections */
.home .ast-article-single > header.entry-header,
.page-id-120 .ast-article-single > header.entry-header,
.page-id-121 .ast-article-single > header.entry-header {
  display: none !important;
}

/* Ensure WooCommerce checkout title sits on the proper container rail with clean padding */
.woocommerce-checkout .entry-header {
  padding: 32px 0 16px !important;
  margin: 0 !important;
}
.woocommerce-checkout h1.entry-title {
  font-family: var(--th-font-display) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--th-deep-plum) !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.01em;
}

/* ========================================================================
   2. SHOP / CATEGORY / SEARCH ARCHIVES
   ======================================================================== */
.th-shop-hero { padding-block: 64px 56px; }
.th-shop-hero h1 { margin: 0 0 12px; }
.th-shop-hero p { max-width: 54ch; }

/* Breadcrumb sits cleanly on the container rail */
.woocommerce-breadcrumb {
  max-width: 100% !important;
  padding: 24px 0 0 !important;
  margin: 0 0 14px 0 !important;
  font-size: 13px !important;
  color: var(--th-text-muted);
}
.woocommerce-breadcrumb a { color: var(--th-text-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--th-purple); }

/* Toolbar: a real two-up row on the same rail as the grid. */
.th-shop-toolbar {
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding: 0 0 24px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--th-border);
  margin-bottom: 36px !important;
}
/* The notices wrapper is empty here and was eating flex space. */
.th-shop-toolbar > .woocommerce-notices-wrapper { display: none; }
.th-shop-toolbar .woocommerce-result-count { margin: 0; order: 1; font-size: 13.5px; color: var(--th-text-muted); }
.th-shop-toolbar .woocommerce-ordering { margin: 0; order: 2; }
.woocommerce-ordering select.orderby {
  height: 42px !important;
  line-height: 40px !important;
  padding: 0 36px 0 16px !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-pill) !important;
  background-color: var(--th-white) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23716B70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: var(--th-font-body) !important;
  font-size: 13.5px !important;
  color: var(--th-text) !important;
  cursor: pointer !important;
  box-shadow: var(--th-shadow-sm) !important;
  outline: none !important;
}
.woocommerce-ordering select.orderby:focus {
  border-color: var(--th-purple) !important;
  box-shadow: 0 0 0 2px rgba(133, 93, 155, 0.2) !important;
}

/* Grid + pagination share the rail. */
.woocommerce ul.products,
.woocommerce-js ul.products,
ul.products {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 0 36px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  margin-block: 56px 0 !important;
}
.woocommerce-shop .site-content,
.tax-product_cat .site-content,
.search-results .site-content { padding-bottom: 88px; }

/* ========================================================================
   3. PRODUCT DETAIL
   ======================================================================== */
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.single-product div.product .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; float: none !important; }
.single-product div.product .summary { width: 100% !important; margin: 0 !important; float: none !important; }
.single-product div.product .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 24px;
}
.single-product div.product .related,
.single-product div.product .up-sells,
.single-product .related.products,
.single-product .up-sells.products,
.single-product div.product section.related,
.single-product div.product section.up-sells,
.single-product div.product > strong,
.single-product div.product > p {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.single-product div.product .related,
.single-product div.product .up-sells,
.single-product .related.products,
.single-product .up-sells.products {
  margin-top: 48px;
  border-top: 1px solid var(--th-border);
  padding-top: 40px;
}
.single-product div.product .related > h2,
.single-product div.product .up-sells > h2,
.single-product .related.products > h2,
.single-product .up-sells.products > h2 {
  font-family: var(--th-font-display) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--th-deep-plum) !important;
  margin: 0 0 24px !important;
  letter-spacing: -0.01em;
}
.single-product .related ul.products,
.single-product .up-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 20px !important;
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 992px) {
  .single-product .related ul.products,
  .single-product .up-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  .single-product .related ul.products,
  .single-product .up-sells ul.products {
    grid-template-columns: 1fr !important;
  }
}

.single-product .woocommerce-product-gallery__wrapper img { border-radius: var(--th-radius-lg); }
.single-product div.product .product_title { margin: 4px 0 12px; }
.single-product div.product .woocommerce-product-details__short-description { margin-bottom: 20px; }
.single-product div.product p.price { margin: 0 0 18px; }
.single-product .stock { font-size: 13.5px; }
.single-product .stock.in-stock { color: var(--th-success); }

/* Category / breadcrumb line above the title */
.single-product .posted_in,
.single-product .product_meta { font-size: 13px; color: var(--th-text-muted); }
.single-product .product_meta {
  border-top: 1px solid var(--th-border);
  padding-top: 18px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.single-product .product_meta a { color: var(--th-purple); text-decoration: none; }
.single-product .product_meta a:hover { text-decoration: underline; }

/* Quantity + add-to-cart as one aligned control group */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.single-product form.cart .quantity { margin: 0; }
.single-product .quantity input.qty {
  height: 54px;
  width: 96px;
  padding-inline: 12px;
  font-size: 15px;
  -moz-appearance: textfield;
}
.single-product .quantity input.qty::-webkit-outer-spin-button,
.single-product .quantity input.qty::-webkit-inner-spin-button {
  opacity: 1;
  height: 26px;
  margin-right: 2px;
}
.single-product form.cart .button { min-height: 54px; margin: 0; }

@media (max-width: 921px) {
  .single-product div.product { grid-template-columns: 1fr; gap: 28px; }
}

/* ========================================================================
   4. WOOCOMMERCE NOTICES
   ======================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-top: 2px solid var(--th-purple);
  border-radius: var(--th-radius-md);
  box-shadow: var(--th-shadow-sm);
  padding: 16px 20px;
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--th-text);
  list-style: none;
  outline: none;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: '' !important;
  font-family: inherit !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  margin: 0 !important;
  position: static !important;
}
.woocommerce-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23855d9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") !important;
}
.woocommerce-message::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a7c59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") !important;
}
.woocommerce-error { border-top-color: var(--th-error); }
.woocommerce-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a34848' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
}
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  background: var(--th-purple) !important;
  color: #fff !important;
  border-radius: var(--th-radius-pill) !important;
  padding: 11px 24px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  min-height: 0 !important;
  border: 0 !important;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background: var(--th-deep-plum, #49334E) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(73, 51, 78, 0.28) !important;
}
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus { outline: none; box-shadow: var(--th-shadow-sm); }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper {
  max-width: calc(var(--th-container) + (var(--th-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--th-gutter);
  box-sizing: border-box;
}

/* ========================================================================
   5. CART (WooCommerce Blocks)
   ======================================================================== */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header { margin-bottom: 8px; }
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
  font-size: clamp(30px, 3.6vw, 44px);
  margin: 0 0 6px;
}
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content { padding-block: 48px 88px; }

.wp-block-woocommerce-cart { margin-top: 20px; }
.wc-block-cart__sidebar.wc-block-components-sidebar {
  background: var(--th-white) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  padding: 28px 24px !important;
  box-shadow: var(--th-shadow-sm) !important;
  box-sizing: border-box !important;
}
.wc-block-cart-items { border-color: var(--th-border) !important; }
.wc-block-cart-items__header {
  font-family: var(--th-font-body);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--th-sage-dark);
  border-bottom: 1px solid var(--th-border);
}
.wc-block-cart-items__row { border-bottom: 1px solid var(--th-border); padding-block: 22px; }
.wc-block-cart-item__image img { border-radius: var(--th-radius-md); }
.wc-block-components-product-name {
  font-family: var(--th-font-display) !important;
  font-size: 17px !important;
  color: var(--th-purple-dark) !important;
  text-decoration: none !important;
}
.wc-block-components-product-name:hover { color: var(--th-purple) !important; }
.wc-block-components-totals-item__label { font-size: 14px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-item__value { font-family: var(--th-font-display); }
.wc-block-components-totals-footer-item { border-top: 1px solid var(--th-border); }
.wc-block-cart__submit-button,
.wc-block-components-button:not(.is-link) {
  background: var(--th-purple) !important;
  color: #fff !important;
  border-radius: var(--th-radius-pill) !important;
  min-height: 54px !important;
  font-family: var(--th-font-body) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: .02em;
  border: 0 !important;
  box-shadow: none !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-button:not(.is-link):hover {
  background: var(--th-deep-plum, #49334E) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(73, 51, 78, 0.28) !important;
}
.wc-block-components-quantity-selector {
  border-radius: var(--th-radius-pill);
  border-color: var(--th-border);
}
.wc-block-components-quantity-selector__input { font-family: var(--th-font-body); }
.wc-block-components-panel__button,
.wc-block-components-totals-coupon__form .wc-block-components-text-input input {
  font-family: var(--th-font-body);
}

/* Cart trust row injected after the cart block. */
.th-cart-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: center;
  padding: 26px var(--th-gutter);
  margin-top: 8px;
  border-top: 1px solid var(--th-border);
}
.th-cart-trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--th-text-muted);
}
.th-cart-trust svg { width: 16px; height: 16px; color: var(--th-sage); }

/* Free-shipping progress on the cart page */
.th-cart-ship {
  max-width: calc(var(--th-container) + (var(--th-gutter) * 2));
  margin: 0 auto 26px;
  padding-inline: var(--th-gutter);
  box-sizing: border-box;
}
.th-cart-ship__inner {
  background: var(--th-lavender);
  border-radius: var(--th-radius-md);
  padding: 15px 20px;
}
.th-cart-ship__msg { margin: 0 0 10px; font-size: 13.5px; color: var(--th-purple-dark); }
.th-cart-ship__track { height: 5px; background: rgba(133,93,155,.18); border-radius: 999px; overflow: hidden; }
.th-cart-ship__fill { height: 100%; background: var(--th-purple); border-radius: 999px; }

/* ========================================================================
   6. MY ACCOUNT
   ======================================================================== */
.woocommerce-account .site-content {
  padding-block: 44px 88px;
}

/* Header & Title — unified with site container rail */
.woocommerce-account .entry-header {
  max-width: var(--th-container, 1200px) !important;
  width: 100% !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
}
.woocommerce-account .entry-title {
  font-family: var(--th-font-display) !important;
  font-size: clamp(32px, 3.8vw, 42px) !important;
  color: var(--th-purple-dark) !important;
  margin: 0 0 6px !important;
  line-height: 1.2 !important;
}
.woocommerce-account.logged-in .entry-header::before {
  content: 'ACCOUNT DASHBOARD';
  display: block;
  font-family: var(--th-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-sage);
  margin-bottom: 8px;
}

/* Container & Grid layout */
.woocommerce-account .entry-content {
  max-width: var(--th-container, 1200px) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.woocommerce-account.logged-in .entry-content > .woocommerce,
.woocommerce-account.logged-in .woocommerce {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 36px !important;
  align-items: start !important;
  max-width: var(--th-container, 1200px) !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none !important; }

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--th-shadow-sm);
  box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  color: var(--th-purple-dark) !important;
  text-decoration: none !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 180ms ease !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--th-lavender) !important;
  color: var(--th-purple-dark) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--th-purple) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(133, 93, 155, 0.22) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid var(--th-border) !important;
  margin-top: 8px !important;
  padding-top: 8px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #A34848 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(163, 72, 72, 0.08) !important;
}

/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: var(--th-shadow-sm);
  box-sizing: border-box;
}
.woocommerce-account .woocommerce-MyAccount-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--th-text);
  margin-top: 0;
}
.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--th-purple);
  font-weight: 500;
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--th-purple-dark);
  text-decoration: underline;
}

/* Dashboard Greeting */
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
  font-size: 15px;
  line-height: 1.7;
  color: var(--th-purple-dark);
  padding: 18px 24px;
  background: var(--th-cream-soft);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-purple);
  border-radius: 12px;
  margin-bottom: 20px;
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type strong {
  color: var(--th-purple);
  font-weight: 600;
}

/* Dashboard Quick Actions Grid */
.th-account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.th-account-card {
  display: flex;
  flex-direction: column;
  background: var(--th-cream-soft);
  border: 1px solid var(--th-border);
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none !important;
  transition: all 220ms ease;
  position: relative;
}
.th-account-card:hover {
  background: var(--th-white);
  border-color: var(--th-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(133, 93, 155, 0.12);
  text-decoration: none !important;
}
.th-account-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--th-lavender);
  color: var(--th-purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 220ms ease;
}
.th-account-card:hover .th-account-card__icon {
  background: var(--th-purple);
  color: #fff;
  transform: scale(1.05);
}
.th-account-card h4 {
  font-family: var(--th-font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--th-purple-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}
.th-account-card p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--th-text-muted) !important;
  margin: 0 !important;
}

/* Subpage Headings inside Content Card */
.woocommerce-account .woocommerce-MyAccount-content > form > h3,
.woocommerce-account .woocommerce-MyAccount-content > h3 {
  font-family: var(--th-font-display) !important;
  font-size: 24px !important;
  color: var(--th-purple-dark) !important;
  margin: 0 0 24px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

/* Addresses Overview — Neutralize Astra double-borders & style luxury cards */
.woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-top: 24px !important;
  width: 100% !important;
}
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
  display: none !important;
}
.woocommerce-account .woocommerce-Address,
.woocommerce .woocommerce-Addresses .woocommerce-Address {
  background: var(--th-cream-soft) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title,
.woocommerce .woocommerce-Addresses .woocommerce-Address-title {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--th-border) !important;
  padding: 0 0 14px 0 !important;
  margin: 0 0 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3,
.woocommerce .woocommerce-Addresses .woocommerce-Address-title h2,
.woocommerce .woocommerce-Addresses .woocommerce-Address-title h3 {
  font-family: var(--th-font-display) !important;
  font-size: 18.5px !important;
  font-weight: 500 !important;
  color: var(--th-purple-dark) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
.woocommerce-account .woocommerce-Address-title .edit {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--th-purple) !important;
  text-decoration: none !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: var(--th-white) !important;
  border: 1px solid var(--th-border) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  transition: all 180ms ease !important;
}
.woocommerce-account .woocommerce-Address-title .edit:hover {
  background: var(--th-purple) !important;
  color: #fff !important;
  border-color: var(--th-purple) !important;
  transform: translateY(-1px) !important;
}
.woocommerce-account .woocommerce-Addresses address,
.woocommerce .woocommerce-Addresses address,
.woocommerce-account .woocommerce-MyAccount-content address {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-style: normal !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--th-text-muted) !important;
  margin: 0 !important;
}

/* My Account Same as Billing Address Actions */
.th-same-address-action {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--th-border);
}
.th-same-address-action .th-btn-pill-sm {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 16px !important;
  background: var(--th-white) !important;
  color: var(--th-purple-dark) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 999px !important;
  font-family: var(--th-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: all 180ms ease !important;
}
.th-same-address-action .th-btn-pill-sm svg {
  width: 14px !important;
  height: 14px !important;
  color: var(--th-sage) !important;
  transition: color 180ms ease !important;
}
.th-same-address-action .th-btn-pill-sm:hover {
  background: var(--th-purple) !important;
  color: #ffffff !important;
  border-color: var(--th-purple) !important;
  transform: translateY(-1px) !important;
}
.th-same-address-action .th-btn-pill-sm:hover svg {
  color: #ffffff !important;
}
.th-same-address-action .th-btn-pill-sm:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
.th-copy-address-msg {
  font-size: 13px !important;
  color: var(--th-deep-plum, #49334E) !important;
  margin-top: 8px !important;
  font-weight: 600 !important;
}

/* Edit Address Form: Same as Billing Box */
.th-same-address-box {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
}
.th-same-address-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  color: var(--th-purple-dark) !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.th-same-address-checkbox {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--th-purple) !important;
  cursor: pointer !important;
  margin: 0 !important;
}
.th-same-address-desc {
  margin: 4px 0 0 28px !important;
  font-size: 13px !important;
  color: var(--th-text-muted) !important;
  line-height: 1.5 !important;
}

/* Edit Address Form Field Alignment (Billing & Shipping) */
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px 24px !important;
  margin-bottom: 24px !important;
}
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper .form-row {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
/* Names: 50% side-by-side */
#billing_first_name_field,
#shipping_first_name_field {
  grid-column: 1 / 2 !important;
}
#billing_last_name_field,
#shipping_last_name_field {
  grid-column: 2 / 3 !important;
}
/* Company, Country, Street Lines, City: 100% Full Width */
#billing_company_field,
#shipping_company_field,
#billing_country_field,
#shipping_country_field,
#billing_address_1_field,
#shipping_address_1_field,
#billing_address_2_field,
#shipping_address_2_field,
#billing_city_field,
#shipping_city_field {
  grid-column: 1 / -1 !important;
}
/* State & PIN Code: 50% side-by-side */
#billing_state_field,
#shipping_state_field {
  grid-column: 1 / 2 !important;
}
#billing_postcode_field,
#shipping_postcode_field {
  grid-column: 2 / 3 !important;
}
/* Billing Contact info: Phone & Email 50% side-by-side */
#billing_phone_field {
  grid-column: 1 / 2 !important;
}
#billing_email_field {
  grid-column: 2 / 3 !important;
}
/* Shipping Phone: Full Width */
#shipping_phone_field {
  grid-column: 1 / -1 !important;
}

/* Edit Account Form Alignment */
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 18px 24px !important;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row-first,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-form-row--first {
  width: calc(50% - 12px) !important;
  flex: 0 0 calc(50% - 12px) !important;
  margin: 0 !important;
  float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row-last,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-form-row--last {
  width: calc(50% - 12px) !important;
  flex: 0 0 calc(50% - 12px) !important;
  margin: 0 !important;
  float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row-wide,
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-form-row--wide {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
  float: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .clear {
  display: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content form em {
  display: block !important;
  font-size: 13px !important;
  font-style: normal !important;
  color: var(--th-text-muted) !important;
  margin-top: 6px !important;
}
.woocommerce-account .woocommerce-MyAccount-content form fieldset {
  width: 100% !important;
  flex: 0 0 100% !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 14px !important;
  padding: 24px 28px 20px !important;
  margin: 12px 0 0 !important;
  background: var(--th-cream-soft) !important;
  box-sizing: border-box !important;
}
.woocommerce-account .woocommerce-MyAccount-content form legend {
  font-family: var(--th-font-display) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--th-purple-dark) !important;
  background: var(--th-white) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 999px !important;
  padding: 4px 18px !important;
  margin: 0 0 0 -8px !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
.woocommerce-account .woocommerce-MyAccount-content form fieldset .form-row {
  margin-bottom: 16px !important;
}
.woocommerce-account .woocommerce-MyAccount-content form fieldset .form-row:last-child {
  margin-bottom: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content form > p:last-of-type {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin: 8px 0 0 !important;
}

/* Orders Notice & Table */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  background: var(--th-cream-soft) !important;
  border: 1px solid var(--th-border) !important;
  border-left: 4px solid var(--th-purple) !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  color: var(--th-text) !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button {
  margin: 0 0 0 auto !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 10px 22px !important;
  font-size: 13.5px !important;
}
.woocommerce-account table.my_account_orders,
.woocommerce-account table.woocommerce-orders-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin: 0 !important;
}
.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.my_account_orders th {
  background: var(--th-cream-soft) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 600 !important;
  color: var(--th-purple-dark) !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--th-border) !important;
}
.woocommerce-account table.woocommerce-orders-table td,
.woocommerce-account table.my_account_orders td {
  padding: 16px 18px !important;
  font-size: 14.5px !important;
  border-bottom: 1px solid var(--th-border) !important;
  vertical-align: middle !important;
}
.woocommerce-account table.woocommerce-orders-table tr:last-child td,
.woocommerce-account table.my_account_orders tr:last-child td {
  border-bottom: none !important;
}
.woocommerce-account table.woocommerce-orders-table .woocommerce-button,
.woocommerce-account table.my_account_orders .woocommerce-button {
  padding: 8px 18px !important;
  font-size: 13px !important;
  min-height: 0 !important;
  border-radius: 999px !important;
}

/* Select2 Harmonization for Country & State dropdowns */
.woocommerce-account .select2-container--default .select2-selection--single {
  min-height: 48px !important;
  height: 48px !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 10px !important;
  background: var(--th-warm-white) !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  transition: all 180ms ease !important;
}
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important;
  padding-left: 16px !important;
  padding-right: 32px !important;
  font-family: var(--th-font-body) !important;
  font-size: 15px !important;
  color: var(--th-text) !important;
}
.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 12px !important;
}
.woocommerce-account .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-account .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--th-purple) !important;
  background: var(--th-white) !important;
  box-shadow: 0 0 0 3px rgba(133, 93, 155, 0.15) !important;
  outline: none !important;
}
.woocommerce-account .select2-dropdown {
  border: 1px solid var(--th-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  background: var(--th-white) !important;
}
.woocommerce-account .select2-results__option {
  padding: 10px 16px !important;
  font-size: 14.5px !important;
}
.woocommerce-account .select2-container--default .select2-results__option--highlighted[aria-selected],
.woocommerce-account .select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: var(--th-purple) !important;
  color: #fff !important;
}

/* Logged-out state: Clean, balanced single card */
.woocommerce-account:not(.logged-in) .entry-header {
  max-width: 480px !important;
  margin-inline: auto !important;
  text-align: center !important;
}
.woocommerce-account:not(.logged-in) .entry-header::before {
  content: 'WELCOME BACK';
  display: block;
  font-family: var(--th-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-sage);
  margin-bottom: 8px;
}
.woocommerce-account:not(.logged-in) .entry-title {
  text-align: center !important;
}
.woocommerce-account:not(.logged-in) .entry-content {
  max-width: 480px !important;
  margin-inline: auto !important;
}
.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
  max-width: 480px !important;
  margin-inline: auto !important;
}
.woocommerce-account:not(.logged-in) .woocommerce h2 {
  display: none !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login {
  background: var(--th-white);
  border: 1px solid var(--th-border) !important;
  border-radius: 16px;
  padding: 36px 32px !important;
  box-shadow: var(--th-shadow-sm);
  margin: 0 !important;
}
.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row {
  margin-bottom: 18px;
}

/* General Account Inputs & Buttons */
.woocommerce form .form-row { padding: 0; margin: 0 0 18px; }
.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--th-purple-dark);
  margin-bottom: 7px;
  display: block;
  letter-spacing: 0.02em;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
.woocommerce-account input[type="tel"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--th-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--th-font-body);
  font-size: 15px;
  background: var(--th-warm-white);
  color: var(--th-text);
  box-sizing: border-box;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce-account input:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus {
  outline: none;
  border-color: var(--th-purple);
  background: var(--th-white);
  box-shadow: 0 0 0 3px rgba(133, 93, 155, 0.15);
}
.woocommerce form .form-row .button,
.woocommerce-account button.button,
.woocommerce-account input.button,
.woocommerce-account .woocommerce-Button,
.woocommerce button.button {
  background: var(--th-purple) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 14px 30px !important;
  min-height: 48px;
  font-family: var(--th-font-body) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border: 0 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 180ms ease;
  box-shadow: 0 4px 14px rgba(133, 93, 155, 0.22);
}
.woocommerce form .form-row .button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce button.button:hover {
  background: var(--th-deep-plum, #49334E) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(73, 51, 78, 0.32);
}
.woocommerce-form-login__rememberme { font-size: 13.5px; color: var(--th-text-muted); }
.woocommerce-LostPassword { font-size: 13.5px; margin-top: 6px; }
.woocommerce-LostPassword a { color: var(--th-purple); }

/* Account tables (orders, addresses, downloads) */
.woocommerce table.shop_table {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14.5px;
}
.woocommerce table.shop_table th {
  background: var(--th-warm-white);
  font-family: var(--th-font-body);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--th-sage-dark);
  font-weight: 500;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--th-border);
}
.woocommerce table.shop_table td { padding: 16px; border: 0; border-bottom: 1px solid var(--th-border); }
.woocommerce table.shop_table tr:last-child td { border-bottom: 0; }
.woocommerce .woocommerce-Address { margin-bottom: 22px; }
.woocommerce .woocommerce-Address-title h3 { font-size: 19px; }

@media (max-width: 921px) {
  .woocommerce-account.logged-in .entry-content > .woocommerce,
  .woocommerce-account.logged-in .woocommerce,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 10px !important;
    font-size: 13.5px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    grid-column: 1 / -1 !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 24px 20px !important;
  }
  .th-account-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .th-account-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 18px !important;
  }
  .th-account-card__icon {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  .woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper .form-row,
  #billing_first_name_field,
  #shipping_first_name_field,
  #billing_last_name_field,
  #shipping_last_name_field,
  #billing_company_field,
  #shipping_company_field,
  #billing_country_field,
  #shipping_country_field,
  #billing_address_1_field,
  #shipping_address_1_field,
  #billing_address_2_field,
  #shipping_address_2_field,
  #billing_city_field,
  #shipping_city_field,
  #billing_state_field,
  #shipping_state_field,
  #billing_postcode_field,
  #shipping_postcode_field,
  #billing_phone_field,
  #billing_email_field,
  #shipping_phone_field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row-first,
  .woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .form-row-last,
  .woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-form-row--first,
  .woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm .woocommerce-form-row--last {
    width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
  }
  .woocommerce-account .woocommerce-MyAccount-content form fieldset {
    padding: 20px 18px 16px !important;
  }
}

/* ========================================================================
   7. CHECKOUT
   ======================================================================== */
/* Clean up excessive vertical gaps between Checkout title and Contact Information */
.woocommerce-checkout .entry-header {
  margin-bottom: 24px !important;
}
.woocommerce-checkout .wp-block-woocommerce-checkout {
  padding-top: 0 !important;
}
.woocommerce-checkout .wc-block-checkout__form,
.woocommerce-checkout form.checkout {
  margin-top: 0 !important;
}
.woocommerce-checkout .wc-block-checkout__contact-fields {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
}
.woocommerce-checkout .wc-block-components-checkout-step--contact-information .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-checkout__contact-fields .wc-block-components-title,
.woocommerce-checkout .wc-block-checkout__form > fieldset:first-of-type .wc-block-components-title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.wc-block-components-title,
.woocommerce-checkout h3 { font-family: var(--th-font-display); font-weight: 400; }

/* Checkout Sidebar & Order Summary Card */
.wc-block-checkout__sidebar .wc-block-components-sidebar {
  background: var(--th-white);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 26px 24px;
}
.wp-block-woocommerce-checkout-order-summary-block {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Eliminate duplicate stacked borders between subtotal and total */
.wc-block-components-totals-wrapper {
  border-top: none !important;
}
.wc-block-components-totals-item.wc-block-components-totals-footer-item {
  border-top: 1px solid var(--th-border) !important;
  margin-top: 16px !important;
  padding-top: 18px !important;
  padding-bottom: 4px !important;
}

/* ========================================================================
   8. CONTENT PAGES (about, contact, policies, 404)
   ======================================================================== */
body.page:not(.home) .entry-content,
body.woocommerce-page:not(.woocommerce-shop) .entry-content { font-size: 16px; line-height: 1.75; }

body.page:not(.home) .entry-content > *:not(.th-section):not([class*="th-"]):not(.alignwide):not(.alignfull):not(.wp-block-columns):not(.wp-block-group):not(.woocommerce):not(.woocommerce-page) {
  max-width: var(--th-measure);
}
body.page:not(.home) .entry-content > .alignwide,
body.page:not(.home) .entry-content > .alignfull,
body.page:not(.home) .entry-content > .wp-block-columns,
body.page:not(.home) .entry-content > .wp-block-group { max-width: none; }

/* Ensure custom homepage and landing page sections are never constrained */
.th-section,
.th-hero,
.th-trust,
.th-featured,
.th-pillars,
.th-concerns,
.th-certifications,
.th-story,
.th-ritual,
.th-newsletter,
.entry-content > .th-section,
.entry-content > [class*="th-"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide Astra's default duplicated page titles on custom branded pages */
.page-id-120 .entry-header,
.page-id-121 .entry-header {
  display: none !important;
}

/* Warm canvas background for About and Contact pages */
body.page-id-120,
body.page-id-121,
body.page-id-120 #page,
body.page-id-121 #page,
body.page-id-120 .site-content,
body.page-id-121 .site-content,
body.page-id-120 #primary,
body.page-id-121 #primary,
body.page-id-120 .ast-container,
body.page-id-121 .ast-container {
  background: var(--th-warm-white, #FFFFFF) !important;
}

:root {
  --th-surface: #FFFFFF;
}

.page-id-120 .entry-content div[style*="border"],
.page-id-121 .entry-content div[style*="border"] {
  background: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(46, 31, 39, 0.04) !important;
}

body.page:not(.home) .entry-header { margin-bottom: 26px; }
body.page:not(.home) .entry-title { font-size: clamp(30px, 3.6vw, 46px); margin: 0; }
body.page:not(.home) .site-content { padding-block: 56px 88px; }

body.page:not(.home) .entry-content h2 { font-size: 28px; margin: 44px 0 14px; }
body.page:not(.home) .entry-content h3 { font-size: 21px; margin: 32px 0 10px; }
body.page:not(.home) .entry-content ul,
body.page:not(.home) .entry-content ol { padding-left: 22px; }
body.page:not(.home) .entry-content li { margin-bottom: 8px; }

/* Search focus reset */
.th-search__input:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(130, 91, 150, 0.25) !important;
}

/* Mobile Header & Off-canvas / Dropdown Drawer */
.ast-mobile-header-content,
.ast-mobile-header-wrap .site-navigation,
.ast-mobile-header-wrap .main-header-bar-navigation,
.ast-mobile-header-wrap .main-navigation {
  background: var(--th-warm-white, #FFFFFF) !important;
}

.ast-mobile-header-wrap .main-header-menu.stack-on-mobile,
.ast-mobile-header-content .main-header-menu {
  background: var(--th-warm-white, #FFFFFF) !important;
  box-shadow: 0 16px 36px rgba(73, 51, 78, 0.08) !important;
  border-bottom: 1px solid var(--th-border) !important;
  padding: 12px 20px 24px !important;
}

.ast-mobile-header-wrap .main-header-menu.stack-on-mobile > li,
.ast-mobile-header-content .main-header-menu > li {
  background: transparent !important;
}

.ast-mobile-header-wrap .main-header-menu.stack-on-mobile > li > a,
.ast-mobile-header-content .main-header-menu > li > a {
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--th-text) !important;
  border-bottom: 1px solid rgba(133, 93, 155, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.ast-mobile-header-wrap .main-header-menu.stack-on-mobile > li:last-child > a,
.ast-mobile-header-content .main-header-menu > li:last-child > a {
  border-bottom: none !important;
}

button.menu-toggle,
button.menu-toggle:focus,
button.menu-toggle:active,
.menu-toggle,
.menu-toggle:focus,
.menu-toggle:active,
.main-header-menu-toggle,
.main-header-menu-toggle:focus,
.main-header-menu-toggle:active,
.ast-button-wrap .menu-toggle,
.ast-button-wrap .menu-toggle:focus,
.ast-mobile-menu-trigger-minimal:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Contact Form 7 */
.wpcf7 { max-width: 620px; }
.wpcf7 label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 13px 15px;
  font-family: var(--th-font-body);
  font-size: 15px;
  background: var(--th-warm-white);
  box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--th-purple); background: var(--th-white); }
.wpcf7 input[type="submit"] {
  background: var(--th-purple);
  color: #fff;
  border: 0;
  border-radius: var(--th-radius-pill);
  padding: 14px 32px;
  min-height: 50px;
  font-family: var(--th-font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 200ms var(--th-ease);
}
.wpcf7 input[type="submit"]:hover {
  background: var(--th-deep-plum, #49334E);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(73, 51, 78, 0.28);
}

/* 404 — Astra's .ast-404-layout-1 adds 48px of its own padding. */
.error404 .ast-404-layout-1 { padding: 0 !important; }
.error404 .page-header,
.error404 .page-content { max-width: none; text-align: center; padding-inline: 0 !important; margin-inline: 0 !important; }
.error404 .page-title { font-size: clamp(34px, 5vw, 58px); margin-bottom: 12px; }
.error404 .page-sub-title { font-size: 19px; color: var(--th-text-muted); font-family: var(--th-font-body); font-weight: 400; }
.error404 .site-content { padding-block: 88px 110px; }
.error404 .ast-404-search { margin-top: 26px; }
.error404 .search-field {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  padding: 13px 20px;
  font-family: var(--th-font-body);
  background: var(--th-white);
}

/* ========================================================================
   9. REFINEMENT PASS — measured against the live render
   ======================================================================== */

/* --- PDP: breathing room, and a calmer meta stack ---------------------- */
.single-product .site-content { padding-block: 44px 88px; }
.single-product .woocommerce-breadcrumb { padding-inline: 0; margin-bottom: 18px !important; }
/* Breadcrumb already names the categories; the duplicate link line is noise. */
.single-product .summary > .posted_in { display: none; }
.single-product .th-pdp-meta { margin: 0 0 16px; }
.single-product div.product .product_title { margin-top: 0; }
.single-product .woocommerce-product-gallery { position: relative; }

/* --- Cart: give the item column and sidebar real presence -------------- */
.th-cart-ship { max-width: none; margin: 0 0 28px; padding-inline: 0; }
/* Span the item column, not the full rail — it belongs to the line items. */
.woocommerce-cart .th-cart-ship__inner { max-width: 764px; }
.wc-block-cart-items__header th,
.wc-block-cart-items__header { font-size: 11px !important; letter-spacing: .12em; }
.wc-block-cart-item__wrap { padding-block: 4px; }
.wc-block-cart-item__image img { width: 84px !important; height: 84px; object-fit: cover; }
.wc-block-components-product-metadata__description { font-size: 13.5px; color: var(--th-text-muted); margin-top: 4px; }
.wc-block-cart-item__total { font-family: var(--th-font-display); font-size: 17px; }

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 16px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 24px; }

/* Trust row: one line at desktop. */
.th-cart-trust {
  max-width: calc(var(--th-container) + (var(--th-gutter) * 2));
  margin-inline: auto;
  gap: 12px 26px;
}
.th-cart-trust span { font-size: 11.5px; white-space: nowrap; }

/* --- Account: title and card share one axis ---------------------------- */
.woocommerce-account:not(.logged-in) .entry-header,
.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  max-width: 480px;
  margin-inline: auto;
  padding-inline: 0;
}
.woocommerce-account:not(.logged-in) .entry-title { text-align: center; }
.woocommerce-account .woocommerce-form-login__submit { width: 100%; }
.woocommerce-account .woocommerce-form-login__rememberme { display: block; margin-bottom: 16px; }
.woocommerce-account .woocommerce-form-login .form-row.form-row-first,
.woocommerce-account .woocommerce-form-login .form-row.form-row-last { width: 100% !important; float: none !important; }
.woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--th-text-muted); }
.woocommerce-account .required { color: var(--th-error); text-decoration: none; }

/* --- Archive hero: tighter measure, clearer hierarchy ------------------ */
.th-shop-hero { padding-block: 56px 48px; }
.th-shop-hero p { font-size: 15.5px; line-height: 1.7; }

/* --- Toolbar: align the count with the control ------------------------- */
.th-shop-toolbar .woocommerce-result-count { font-size: 13px; line-height: 40px; }

/* --- Content pages: centre the measure under a left-aligned title ------ */
.page:not(.home) .entry-content { max-width: none; }
.page-id-3 .entry-content > *,
.page-id-13 .entry-content > *,
.privacy-policy .entry-content > * { max-width: var(--th-measure); }

/* Policy / Informational Page Typography */
.privacy-policy-tutorial {
  display: none !important;
}
.page-id-13 .entry-header,
.page-id-3 .entry-header,
.privacy-policy .entry-header {
  margin-bottom: 28px !important;
}
.page-id-13 h1.entry-title,
.page-id-3 h1.entry-title,
.privacy-policy h1.entry-title {
  font-family: var(--th-font-display) !important;
  font-size: clamp(30px, 3.8vw, 44px) !important;
  font-weight: 700 !important;
  color: var(--th-deep-plum) !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.01em;
}
.page-id-13 .entry-content,
.page-id-3 .entry-content,
.privacy-policy .entry-content {
  font-family: var(--th-font-body) !important;
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: var(--th-text) !important;
}
.page-id-13 .entry-content h2,
.page-id-3 .entry-content h2,
.privacy-policy .entry-content h2 {
  font-family: var(--th-font-display) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--th-deep-plum) !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
}
.page-id-13 .entry-content h3,
.page-id-3 .entry-content h3,
.privacy-policy .entry-content h3 {
  font-family: var(--th-font-display) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--th-deep-plum) !important;
  margin-top: 24px !important;
  margin-bottom: 8px !important;
}
.page-id-13 .entry-content ul,
.page-id-3 .entry-content ul,
.privacy-policy .entry-content ul {
  padding-left: 24px !important;
  margin-bottom: 20px !important;
}
.page-id-13 .entry-content li,
.page-id-3 .entry-content li,
.privacy-policy .entry-content li {
  margin-bottom: 8px !important;
}

/* --- Checkout parity with cart ----------------------------------------- */
.woocommerce-checkout .wc-block-components-title {
  font-family: var(--th-font-display) !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

@media (max-width: 921px) {
  .th-cart-trust span { white-space: normal; }
  .single-product .site-content { padding-block: 24px 64px; }
}

/* ========================================================================
   10. CART & CHECKOUT BLOCKS — 2-pane balanced layout
   ======================================================================== */
.woocommerce-checkout .wc-block-components-sidebar-layout,
.woocommerce-cart .wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 48px !important;
  max-width: calc(var(--th-container) + (var(--th-gutter) * 2)) !important;
  margin-inline: auto !important;
}

.wc-block-components-sidebar-layout .wc-block-cart__main,
.wc-block-components-sidebar-layout .wc-block-checkout__main {
  flex: 1 1 0% !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}

.wc-block-components-sidebar-layout .wc-block-cart__sidebar,
.wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
  flex: 0 0 420px !important;
  width: 420px !important;
  max-width: 420px !important;
  padding: 0 !important;
  position: sticky !important;
  top: 96px !important;
}

/* Checkout Sidebar Card */
.wc-block-checkout__sidebar.wc-block-components-sidebar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
  background: var(--th-white) !important;
  border: 1px solid var(--th-border) !important;
  border-radius: var(--th-radius-lg) !important;
  box-shadow: var(--th-shadow-sm) !important;
  padding: 26px 24px 22px !important;
  margin: 0 !important;
}

/* Cart Sidebar: Ensure inner summary block is unstyled so the outer card is the only card */
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.wc-block-cart__sidebar .wp-block-woocommerce-proceed-to-checkout-block {
  margin: 20px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.wc-block-cart__sidebar .wc-block-cart__submit-button {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Eliminate empty checkout notice container and fixed snackbar bottom bar */
.wc-block-checkout__sidebar .wc-block-components-notices:empty,
.wc-block-checkout__sidebar .wc-block-components-notices__snackbar:empty,
.wc-block-components-notices:empty,
.wc-block-components-notices__snackbar:empty,
.wc-block-components-notice-snackbar-list:empty,
.wc-block-components-notices__snackbar > div:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.wc-block-components-notices__snackbar,
.wc-block-components-notice-snackbar-list {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#force-footer, .force-footer, #mymw-footer { display: none !important; }

/* Checkout Order Summary: Alignment & Cleanliness */
.wc-block-components-order-summary-item .wc-block-components-product-metadata,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description {
  display: none !important;
}

.wc-block-components-order-summary-item .wc-block-cart-item__prices {
  display: none !important;
}

.wc-block-components-order-summary-item {
  display: flex !important;
  align-items: flex-start !important;
  padding: 16px 0 !important;
  gap: 0 !important;
}

.wc-block-components-order-summary-item__image {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  width: 56px !important;
  height: 56px !important;
  position: relative !important;
}

.wc-block-components-order-summary-item__image img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: var(--th-radius-md, 8px) !important;
  display: block !important;
}

.wc-block-components-order-summary-item__description {
  margin: 0 !important;
  padding: 0 14px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-block-components-order-summary-item .wc-block-components-product-name,
.wc-block-components-order-summary-item h3 {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  font-family: var(--th-font-display) !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  color: var(--th-text) !important;
}

.wc-block-components-order-summary-item__total-price {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  font-family: var(--th-font-display) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--th-text) !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

/* Checkout Order Summary interactive quantity controls (defended against theme rules) */
.th-checkout-qty-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
}
.th-checkout-qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--th-border) !important;
  border-radius: 999px !important;
  background: var(--th-white) !important;
  height: 28px !important;
  padding: 0 4px !important;
  box-shadow: 0 1px 3px rgba(63, 58, 61, 0.04) !important;
}
[class*="wc-block"] .th-checkout-qty-control button.th-checkout-qty-btn,
.wc-block-components-order-summary-item .th-checkout-qty-control button.th-checkout-qty-btn,
button.th-checkout-qty-btn {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  color: var(--th-deep-plum, #49334E) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
[class*="wc-block"] .th-checkout-qty-control button.th-checkout-qty-btn:hover,
button.th-checkout-qty-btn:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
}
.th-checkout-qty-val {
  min-width: 20px !important;
  text-align: center !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--th-text) !important;
  font-family: var(--th-font-body) !important;
}
[class*="wc-block"] .th-checkout-qty-control button.th-checkout-qty-remove,
.wc-block-components-order-summary-item .th-checkout-qty-control button.th-checkout-qty-remove,
button.th-checkout-qty-remove {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  color: var(--th-plum-muted, #77677B) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.18s ease !important;
}
[class*="wc-block"] .th-checkout-qty-control button.th-checkout-qty-remove:hover,
button.th-checkout-qty-remove:hover {
  color: #D32F2F !important;
  background: #FDF2F2 !important;
  transform: scale(1.15) !important;
}


/* Cart Table quantity stepper & remove button clean alignment */
.wc-block-cart-item__quantity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
.wc-block-components-quantity-selector {
  height: 38px !important;
  border-radius: 999px !important;
  border: 1px solid var(--th-border) !important;
  background: var(--th-white) !important;
  padding: 0 4px !important;
}
.wc-block-components-quantity-selector__button {
  width: 28px !important;
  height: 28px !important;
  color: var(--th-deep-plum, #49334E) !important;
  border-radius: 50% !important;
  transition: all 180ms ease !important;
}
.wc-block-components-quantity-selector__button:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
}
.wc-block-cart-item__remove-link {
  color: var(--th-plum-muted, #77677B) !important;
  transition: all 0.18s ease !important;
  padding: 4px !important;
  border-radius: 50% !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
.wc-block-cart-item__remove-link:hover {
  color: #D32F2F !important;
  background: #FDF2F2 !important;
  transform: scale(1.15) !important;
}

/* Classic WooCommerce Cart Table Remove Button */
.woocommerce a.remove,
.woocommerce-cart table.cart a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 26px !important;
  border-radius: 50% !important;
  color: var(--th-deep-plum, #49334E) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  border: 1px solid var(--th-slate-blue, #657E8D) !important;
  background: #FFFFFF !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
}
.woocommerce a.remove:hover,
.woocommerce-cart table.cart a.remove:hover {
  color: #FFFFFF !important;
  background: #D32F2F !important;
  border-color: #D32F2F !important;
  transform: scale(1.12) !important;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25) !important;
}

/* Astra / Drawer / Notice Dismiss & Close Buttons */
.astra-cart-drawer-close,
.wc-block-components-notice-banner__dismiss-button,
.woocommerce-message .close,
.woocommerce-error .close,
.woocommerce-info .close {
  transition: all 180ms ease !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}
.astra-cart-drawer-close:hover,
.wc-block-components-notice-banner__dismiss-button:hover,
.woocommerce-message .close:hover,
.woocommerce-error .close:hover,
.woocommerce-info .close:hover {
  background: var(--th-lilac-mist, #F4EFF7) !important;
  color: var(--th-purple, #825B96) !important;
  transform: rotate(90deg) scale(1.1) !important;
}

/* Heading in the brand voice. */
h2.wc-block-cart__totals-title,
.wc-block-cart__totals-title,
h2.wc-block-checkout__totals-title,
.wc-block-checkout__totals-title {
  font-family: var(--th-font-display) !important;
  font-weight: 400 !important;
  font-size: 21px !important;
  text-transform: none !important;
  letter-spacing: -.01em !important;
  color: var(--th-purple-dark) !important;
  text-align: left !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}
.wc-block-cart-items { width: 100%; }
.wc-block-cart__main .wc-block-cart-items { margin-top: 0; }

@media (max-width: 921px) {
  .woocommerce-checkout .wc-block-components-sidebar-layout,
  .woocommerce-cart .wc-block-components-sidebar-layout,
  .wc-block-components-sidebar-layout {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
  }
  .wc-block-components-sidebar-layout .wc-block-cart__sidebar,
  .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
    flex: 1 1 auto !important;
    max-width: none !important;
    width: 100% !important;
    position: static !important;
  }
}

/* Smooth anchor scrolling & category section target offset */
html {
  scroll-behavior: smooth;
}

#categories {
  scroll-margin-top: 100px;
}

/* Never display quantity controls on skeleton placeholder items */
.wc-block-components-skeleton .th-checkout-qty-control,
.wc-block-components-order-summary-item:has(.wc-block-components-skeleton__element) .th-checkout-qty-control {
  display: none !important;
}

.th-checkout-qty-control.is-removing .th-checkout-qty-btn,
.th-checkout-qty-control.is-removing .th-checkout-qty-remove {
  cursor: wait !important;
  pointer-events: none !important;
  opacity: 0.4 !important;
}

.th-checkout-qty-control.is-syncing .th-checkout-qty-val {
  color: var(--th-purple) !important;
  transition: color 0.15s ease;
}

/* Sticky Header Guarantee across all viewports */
body.th-sticky-on #masthead {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

/* Remove interactive shipping selection block from checkout */
.wc-block-checkout__shipping-option,
.wc-block-checkout__shipping-methods,
.wc-block-checkout__shipping-method,
.wp-block-woocommerce-checkout-shipping-method-block,
.wp-block-woocommerce-checkout-shipping-methods-block,
.wc-block-components-shipping-rates-control,
.wc-block-components-shipping-rates-control__packages,
.wc-block-checkout__shipping-method-options,
.woocommerce-shipping-methods,
#shipping_method {
  display: none !important;
}

/* ========================================================================
   PREMIUM CHECKOUT UI: CONTACT INFO, EMAIL & ADDRESS CARD
   ======================================================================== */

/* Section Headings */
.wc-block-checkout__contact-information .wc-block-components-title,
.wc-block-checkout__shipping-address .wc-block-components-title,
.wc-block-checkout__billing-address .wc-block-components-title,
.wc-block-checkout__payment-method .wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-block-checkout h2,
.wc-block-checkout h3 {
  font-family: var(--th-font-display, "Playfair Display", Georgia, serif) !important;
  font-size: clamp(20px, 2.4vw, 24px) !important;
  font-weight: 500 !important;
  color: var(--th-charcoal, #2C2A29) !important;
  letter-spacing: -0.015em !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  line-height: 1.3 !important;
}

/* Floating Text Inputs (Email, Name, Street, etc.) */
.wc-block-components-text-input {
  position: relative !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input input[type="number"] {
  width: 100% !important;
  height: 58px !important;
  padding: 24px 16px 8px 16px !important;
  border: 1px solid var(--th-border, #E4DFD7) !important;
  border-radius: 12px !important;
  background-color: var(--th-warm-white, #FAF8F5) !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 15px !important;
  color: var(--th-charcoal, #2C2A29) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset !important;
  transition: all 200ms ease-in-out !important;
  box-sizing: border-box !important;
}

.wc-block-components-text-input input:focus {
  background-color: #FFFFFF !important;
  border-color: var(--th-purple, #7D4F6D) !important;
  box-shadow: 0 0 0 3px rgba(125, 79, 109, 0.12), 0 1px 2px rgba(0, 0, 0, 0.02) inset !important;
  outline: none !important;
}

.wc-block-components-text-input label {
  position: absolute !important;
  left: 16px !important;
  top: 19px !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 14.5px !important;
  color: var(--th-text-muted, #78736E) !important;
  pointer-events: none !important;
  transform-origin: left top !important;
  transition: all 180ms ease !important;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus + label,
.wc-block-components-text-input input:not(:placeholder-shown) + label {
  top: 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--th-purple, #7D4F6D) !important;
  transform: none !important;
}

/* Dropdown Selects (Country/Region, State, etc.) */
.wc-blocks-components-select,
.wc-blocks-components-select__container,
.wc-block-components-country-input,
.wc-block-components-state-input,
.wc-block-components-select-input {
  position: relative !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

.wc-blocks-components-select__select,
.wc-blocks-components-select__container select,
.wc-block-components-country-input select,
.wc-block-components-state-input select,
.wc-blocks-components-select select,
select.wc-blocks-components-select__select {
  width: 100% !important;
  height: 58px !important;
  padding: 24px 38px 8px 16px !important;
  border: 1px solid var(--th-border, #E4DFD7) !important;
  border-radius: 12px !important;
  background-color: var(--th-warm-white, #FAF8F5) !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 15px !important;
  color: var(--th-charcoal, #2C2A29) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) inset !important;
  transition: all 200ms ease-in-out !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

.wc-blocks-components-select__select:focus,
.wc-blocks-components-select select:focus {
  background-color: #FFFFFF !important;
  border-color: var(--th-purple, #7D4F6D) !important;
  box-shadow: 0 0 0 3px rgba(125, 79, 109, 0.12), 0 1px 2px rgba(0, 0, 0, 0.02) inset !important;
  outline: none !important;
}

.wc-blocks-components-select__label,
.wc-blocks-components-select label {
  position: absolute !important;
  left: 16px !important;
  top: 9px !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--th-purple, #7D4F6D) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.wc-blocks-components-select__expand {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  color: var(--th-text-muted, #78736E) !important;
}

/* Premium Address Card */
.wc-block-components-address-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  background: #FFFFFF !important;
  border: 1px solid var(--th-border, #E4DFD7) !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 200ms ease, box-shadow 200ms ease !important;
  position: relative !important;
}

.wc-block-components-address-card:hover {
  border-color: rgba(125, 79, 109, 0.3) !important;
  box-shadow: 0 4px 14px rgba(125, 79, 109, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.wc-block-components-address-card address {
  font-style: normal !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  color: #4A4643 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  padding-right: 16px !important;
}

.wc-block-components-address-card address .wc-block-components-address-card__address-section--primary {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--th-charcoal, #2C2A29) !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.01em !important;
  display: block !important;
}

/* Edit Address Pill Button */
.wc-block-components-address-card__edit {
  background: var(--th-warm-white, #FAF8F5) !important;
  border: 1px solid var(--th-border, #DDD8D1) !important;
  border-radius: 999px !important;
  padding: 6px 16px !important;
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--th-charcoal, #2C2A29) !important;
  cursor: pointer !important;
  transition: all 180ms ease !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  line-height: 1.4 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  text-decoration: none !important;
}

.wc-block-components-address-card__edit:hover {
  background: var(--th-purple, #7D4F6D) !important;
  color: #FFFFFF !important;
  border-color: var(--th-purple, #7D4F6D) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(125, 79, 109, 0.22) !important;
  text-decoration: none !important;
}

/* Checkbox "Use same address for billing" */
.wc-block-checkout__use-address-for-billing,
.wc-block-components-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  cursor: pointer !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
input#use_same_address_for_billing {
  accent-color: var(--th-purple, #7D4F6D) !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
  font-family: var(--th-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--th-charcoal, #2C2A29) !important;
  cursor: pointer !important;
  user-select: none !important;
}

.th-address-phone {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  color: var(--th-text-muted, #78736E) !important;
  font-weight: 500 !important;
}




