/*
 * WooCommerce storefront
 * Scope: custom shop/category and single-product templates, plus shared WC controls.
 */
:root {
  --az-woo-ink: var(--az-color-heading, #222);
  --az-woo-muted: var(--az-color-muted, #777);
  --az-woo-line: var(--az-color-border, #e5e5e5);
  --az-woo-page: var(--az-color-page, #f4f6f8);
  --az-woo-green: var(--az-color-primary, #f7941d);
  --az-woo-green-dark: var(--az-color-primary-dark, #d97706);
  --az-woo-green-soft: color-mix(in srgb, var(--az-color-primary, #f7941d) 12%, var(--az-color-surface, #fff));
  --az-woo-orange: var(--az-color-accent, var(--az-color-primary, #f7941d));
  --az-woo-radius: var(--az-radius-lg, 14px);
}

body.woocommerce,
body.woocommerce-page,
body.single-product {
  background: var(--az-woo-page);
  color: var(--az-woo-ink);
}

body.woocommerce .az-main,
body.single-product .az-main {
  min-height: 60vh;
}

.az-shop-notices,
.az-product-breadcrumb {
  padding-top: 22px;
}

.az-shop-notices:empty {
  display: none;
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-warning,
.woocommerce-notice--success,
.woocommerce-notice--error,
.woocommerce-notice--warning {
  margin: 0 0 18px;
}

.woocommerce-message,
.woocommerce-notice--success {
  --az-notice-color: var(--az-color-success, #2e7d32);
}

.woocommerce-info {
  --az-notice-color: var(--az-color-info, #0288d1);
}

.woocommerce-error,
.woocommerce-notice--error {
  --az-notice-color: var(--az-color-error, #d32f2f);
}

.woocommerce-warning,
.woocommerce-notice--warning {
  --az-notice-color: var(--az-color-warning, #ed6c02);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-warning,
.woocommerce-notice--success,
.woocommerce-notice--error,
.woocommerce-notice--warning {
  position: relative;
  padding: 14px 18px;
  border: 1px solid var(--az-woo-line);
  border-left: 4px solid var(--az-notice-color, var(--az-color-info, #0288d1));
  border-radius: 12px;
  background: color-mix(in srgb, var(--az-notice-color, var(--az-color-info, #0288d1)) 5%, var(--az-color-surface, #fff));
  color: var(--az-notice-text, var(--az-notice-color, var(--az-color-info, #0288d1)));
  box-shadow: 0 8px 22px rgba(29, 64, 44, .05);
}

/* Checkout prompts are neutral actions, not status messages. Their border
 * follows Brand Primary while copy follows the configured Text color. */
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
  --az-notice-color: var(--az-color-primary, #f7941d);
  --az-notice-text: var(--az-color-text, #424242);
  background: var(--az-color-surface, #fff);
}

.woocommerce-message,
.woocommerce-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.woocommerce-message::before,
.woocommerce-info::before {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  color: var(--az-notice-color, var(--az-color-info, #0288d1));
  line-height: 1;
  text-indent: 0;
}

.woocommerce-error::before,
.woocommerce-warning::before {
  color: var(--az-notice-color, var(--az-color-info, #0288d1));
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce-warning a:not(.button) {
  color: inherit;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-warning .button {
  --az-button-background: var(--az-notice-color, var(--az-color-info, #0288d1));
  --az-button-hover-background: color-mix(in srgb, var(--az-notice-color, var(--az-color-info, #0288d1)) 84%, #000);
}

/* Keep Woo's generated notice icon inside the message flow. WooCommerce
 * positions it absolutely by default, which overlaps the first character in
 * AZ's compact notice layout. */
body.woocommerce .az-shop-notices .woocommerce-message,
body.woocommerce .az-shop-notices .woocommerce-info,
body.woocommerce .az-shop-notices .woocommerce-error,
body.woocommerce-page .az-shop-notices .woocommerce-message,
body.woocommerce-page .az-shop-notices .woocommerce-info,
body.woocommerce-page .az-shop-notices .woocommerce-error {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--az-woo-line);
  border-left: 4px solid var(--az-notice-color, var(--az-color-info, #0288d1));
  border-radius: 12px;
}

body.woocommerce .az-shop-notices .woocommerce-message::before,
body.woocommerce .az-shop-notices .woocommerce-info::before,
body.woocommerce .az-shop-notices .woocommerce-error::before,
body.woocommerce-page .az-shop-notices .woocommerce-message::before,
body.woocommerce-page .az-shop-notices .woocommerce-info::before,
body.woocommerce-page .az-shop-notices .woocommerce-error::before {
  position: static;
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin: 0;
  line-height: 1;
  text-indent: 0;
}

body.woocommerce .az-shop-notices .woocommerce-message .button,
body.woocommerce .az-shop-notices .woocommerce-info .button,
body.woocommerce .az-shop-notices .woocommerce-error .button,
body.woocommerce-page .az-shop-notices .woocommerce-message .button,
body.woocommerce-page .az-shop-notices .woocommerce-info .button,
body.woocommerce-page .az-shop-notices .woocommerce-error .button {
  float: none;
  flex: 0 0 auto;
  order: 2;
  min-width: 188px;
  margin: 0 0 0 auto;
  --az-button-background: var(--az-notice-color, var(--az-color-info, #0288d1));
  --az-button-hover-background: color-mix(in srgb, var(--az-notice-color, var(--az-color-info, #0288d1)) 84%, #000);
  text-align: center;
  white-space: nowrap;
}

/* WooCommerce Blocks uses notice banners instead of the classic notice
 * classes. Map both APIs to the same Status Colors tokens. */
.wc-block-components-notice-banner.is-success {
  --az-notice-color: var(--az-color-success, #2e7d32);
}

.wc-block-components-notice-banner.is-info {
  --az-notice-color: var(--az-color-info, #0288d1);
}

.wc-block-components-notice-banner.is-error {
  --az-notice-color: var(--az-color-error, #d32f2f);
}

.wc-block-components-notice-banner.is-warning {
  --az-notice-color: var(--az-color-warning, #ed6c02);
}

.wc-block-components-notice-banner:is(.is-success, .is-info, .is-error, .is-warning) {
  border-color: var(--az-notice-color);
  background: color-mix(in srgb, var(--az-notice-color) 5%, var(--az-color-surface, #fff));
  color: var(--az-notice-color);
}

.wc-block-components-notice-banner:is(.is-success, .is-info, .is-error, .is-warning) > svg {
  background: var(--az-notice-color);
}

@media (max-width: 640px) {
  body.woocommerce .az-shop-notices .woocommerce-message,
  body.woocommerce .az-shop-notices .woocommerce-info,
  body.woocommerce .az-shop-notices .woocommerce-error,
  body.woocommerce-page .az-shop-notices .woocommerce-message,
  body.woocommerce-page .az-shop-notices .woocommerce-info,
  body.woocommerce-page .az-shop-notices .woocommerce-error {
    min-height: 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.woocommerce .az-shop-notices .woocommerce-message .button,
  body.woocommerce .az-shop-notices .woocommerce-info .button,
  body.woocommerce .az-shop-notices .woocommerce-error .button,
  body.woocommerce-page .az-shop-notices .woocommerce-message .button,
  body.woocommerce-page .az-shop-notices .woocommerce-info .button,
  body.woocommerce-page .az-shop-notices .woocommerce-error .button {
    width: 100%;
    min-width: 0;
    margin-top: 2px;
  }
}

/* Product archives and category landing pages. */
.az-shop-titlebar {
  padding: 14px 0;
  border-bottom: 1px solid var(--az-woo-line);
  background: #fff;
}

.az-shop-titlebar .az-container {
  display: flex;
  align-items: center;
}

.az-shop-title-main { width: 100%; }

.az-shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--az-woo-muted);
  font-size: 12px;
}

.az-shop-breadcrumb a {
  color: var(--az-color-primary, #d21f3c);
  text-decoration: none;
}

.az-shop-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 72px;
}

.az-shop-layout--no-sidebar { grid-template-columns: minmax(0, 1fr); }
.az-shop-results { min-width: 0; }
.az-shop-layout--category .az-shop-results { display: contents; }

.az-shop-category-overview {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-bottom: 2px;
}

.az-shop-title-desc-wrap {
  width: 100%;
  max-width: none;
}

.az-shop-title-desc {
  color: var(--az-woo-ink);
  font-size: 15px;
  line-height: 1.72;
}

.az-shop-title-desc > :first-child { margin-top: 0; }
.az-shop-title-desc > :last-child { margin-bottom: 0; }
.az-shop-title-desc p,
.az-shop-title-desc ul,
.az-shop-title-desc ol { margin: 0 0 14px; }

.az-shop-title-desc img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 12px;
}

.az-shop-title-desc.is-collapsed {
  position: relative;
  max-height: 6.8em;
  overflow: hidden;
}

.az-shop-title-desc.is-collapsed img,
.az-shop-title-desc.is-collapsed figure,
.az-shop-title-desc.is-collapsed iframe { display: none; }

.az-shop-title-desc.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35%;
  height: 1.8em;
  background: linear-gradient(90deg, transparent, var(--az-woo-page) 82%);
  content: "";
  pointer-events: none;
}

.az-shop-title-desc-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--az-color-primary, #d21f3c) 35%, #fff);
  border-radius: 8px;
  background: #fff;
  color: var(--az-color-primary, #d21f3c);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.az-shop-title-desc-toggle:hover {
  border-color: var(--az-color-primary, #d21f3c);
  background: var(--az-color-primary, #d21f3c);
  color: #fff;
}

.az-shop-title-desc-toggle-less { display: none; }
.az-shop-title-desc-toggle[aria-expanded="true"] .az-shop-title-desc-toggle-more { display: none; }
.az-shop-title-desc-toggle[aria-expanded="true"] .az-shop-title-desc-toggle-less { display: inline; }

.az-shop-title-desc-toggle-icon {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.az-shop-title-desc-toggle[aria-expanded="true"] .az-shop-title-desc-toggle-icon {
  margin-top: 3px;
  transform: rotate(225deg);
}

.az-shop-child-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px 12px;
  margin-top: 18px;
}

.az-shop-child-category {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--az-woo-line);
  border-radius: 999px;
  background: #fff;
  color: var(--az-woo-ink);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.az-shop-child-category:hover {
  border-color: color-mix(in srgb, var(--az-color-primary, #d21f3c) 42%, #fff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  color: var(--az-color-primary, #d21f3c);
  transform: translateY(-1px);
}

.az-shop-child-category__media {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f4f5f7;
  color: var(--az-color-primary, #d21f3c);
  font-weight: 800;
}

.az-shop-child-category__media img { width: 100%; height: 100%; object-fit: contain; }
.az-shop-child-category strong { min-width: 0; font-size: 12px; line-height: 1.3; }

.az-shop-top-filters {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--az-woo-line);
  border-radius: 14px;
  background: #fff;
}

.az-shop-top-filters__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.az-shop-top-filters__header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.az-shop-top-filters__header > div > span { display: none; }

.az-shop-top-filters__header h2 {
  margin: 0;
  color: var(--az-woo-ink);
  font-size: 16px;
}

.az-shop-filters__clear {
  color: var(--az-color-primary, #d21f3c);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.az-shop-top-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  align-items: start;
}

.az-shop-filter-dropdown {
  position: relative;
  min-width: 0;
}

.az-shop-filter-dropdown summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--az-woo-line);
  border-radius: 8px;
  background: #fff;
  color: var(--az-woo-ink);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}

.az-shop-filter-dropdown summary::-webkit-details-marker { display: none; }

.az-shop-filter-dropdown summary > span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.az-shop-filter-dropdown[open] summary > span { transform: rotate(225deg); }

.az-shop-filter-dropdown > ul,
.az-shop-filter-dropdown__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 240px);
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--az-woo-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .15);
  list-style: none;
}

.az-shop-filter-dropdown--price .az-shop-filter-dropdown__panel {
  width: min(430px, calc(100vw - 40px));
  overflow: visible;
}

.az-shop-filter-link {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 7px;
  color: var(--az-woo-ink);
  font-size: 13px;
  text-decoration: none;
}

.az-shop-filter-link:hover,
.az-shop-filter-link.is-selected {
  background: color-mix(in srgb, var(--az-color-primary, #d21f3c) 8%, #fff);
  color: var(--az-color-primary, #d21f3c);
}

.az-shop-filter-check {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid var(--az-woo-line);
  border-radius: 4px;
  background: #fff;
}

.az-shop-filter-link.is-selected .az-shop-filter-check {
  border-color: var(--az-color-primary, #d21f3c);
  background: var(--az-color-primary, #d21f3c);
}

.az-shop-filter-name { min-width: 0; flex: 1; }
.az-shop-filter-link small { color: var(--az-woo-muted); }

.az-shop-price-filter {
  display: grid;
  gap: 10px;
}

.az-shop-price-filter__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 7px;
}

.az-shop-price-filter__fields label {
  display: grid;
  gap: 4px;
  color: var(--az-woo-muted);
  font-size: 11px;
}

.az-shop-price-filter__fields input {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--az-woo-line);
  border-radius: 7px;
  background: #fff;
}

.az-shop-price-filter > button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: var(--az-color-primary, #d21f3c);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.az-shop-catalog-toolbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 6px 0;
}

.az-shop-catalog-toolbar .woocommerce-result-count,
.az-shop-catalog-toolbar .woocommerce-ordering { margin: 0; }

.az-shop-catalog-toolbar select {
  min-height: 40px;
  padding: 7px 34px 7px 13px;
  border: 1px solid var(--az-woo-line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--az-woo-ink);
}

.az-shop-sidebar {
  grid-column: 1;
  position: sticky;
  top: 24px;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.az-shop-sidebar__panel {
  overflow: hidden;
  border: 1px solid var(--az-woo-line);
  border-radius: 12px;
  background: #fff;
}

.az-shop-sidebar__title {
  padding: 16px 17px;
  border-bottom: 1px solid var(--az-woo-line);
  background: var(--az-woo-ink);
}

.az-shop-sidebar__title h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.az-shop-cat-tree { padding: 9px; }

.az-shop-cat-all {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f4f5f7;
  color: var(--az-woo-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.az-shop-cat-all b {
  color: var(--az-color-primary, #d21f3c);
  font-size: 14px;
}

.az-shop-cat-list {
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.az-shop-cat-row {
  display: flex;
  align-items: center;
  min-height: 39px;
  border-top: 1px solid color-mix(in srgb, var(--az-woo-line) 76%, #fff);
}

.az-shop-cat-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  padding: 8px 8px;
  border-radius: 6px;
  color: var(--az-woo-ink);
  font-size: 13px;
  text-decoration: none;
}

.az-shop-cat-name { min-width: 0; flex: 1; }
.az-shop-cat-name i { display: none; }

.az-shop-cat-link b {
  min-width: 23px;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f0f1f3;
  color: var(--az-woo-muted);
  font-size: 10px;
  text-align: center;
}

.az-shop-cat-link:hover {
  background: #f6f7f8;
  color: var(--az-color-primary, #d21f3c);
}

.az-shop-cat-item.is-active > .az-shop-cat-row > .az-shop-cat-link {
  background: var(--az-color-primary, #d21f3c);
  color: #fff;
  font-weight: 700;
}

.az-shop-cat-item.is-active > .az-shop-cat-row > .az-shop-cat-link b {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.az-shop-cat-item--level-1 > .az-shop-cat-row > .az-shop-cat-link { padding-left: 20px; }
.az-shop-cat-item--level-2 > .az-shop-cat-row > .az-shop-cat-link { padding-left: 32px; }

.az-shop-cat-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--az-woo-muted);
  cursor: pointer;
}

.az-shop-cat-toggle span {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.az-shop-cat-toggle[aria-expanded="true"] span { transform: rotate(225deg); }
.az-shop-cat-children[hidden] { display: none; }

.az-shop-grid {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(var(--az-shop-columns-desktop, 3), minmax(0, 1fr));
  gap: 20px;
}

.az-shop-layout--category > .az-shop-sidebar,
.az-shop-layout--category .az-shop-grid,
.az-shop-layout--category .az-shop-empty { grid-row: 4; }

.az-shop-layout--no-sidebar .az-shop-grid { grid-column: 1; }
.az-shop-empty { grid-column: 2; padding: 56px 24px; text-align: center; }
.az-shop-layout--no-sidebar .az-shop-empty { grid-column: 1; }

.woocommerce nav.woocommerce-pagination {
  grid-column: 2;
  margin-top: 32px;
}

.az-shop-layout--category nav.woocommerce-pagination { grid-row: 5; }

.az-shop-layout--no-sidebar nav.woocommerce-pagination { grid-column: 1; }

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li { border: 0; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--az-woo-line);
  border-radius: 8px;
  background: #fff;
  color: var(--az-woo-ink);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: var(--az-color-primary, #d21f3c);
  background: var(--az-color-primary, #d21f3c);
  color: #fff;
}

@media (max-width: 960px) {
  .az-shop-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
  }

  .az-shop-grid { grid-template-columns: repeat(var(--az-shop-columns-tablet, 2), minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .az-shop-layout,
  .az-shop-layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }

  .az-shop-category-overview,
  .az-shop-top-filters,
  .az-shop-catalog-toolbar,
  .az-shop-sidebar,
  .az-shop-grid,
  .az-shop-empty,
  .woocommerce nav.woocommerce-pagination {
    grid-column: 1;
  }

  .az-shop-sidebar { position: static; }
  .az-shop-child-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .az-shop-top-filters__grid { grid-template-columns: 1fr; }
  .az-shop-filter-dropdown > ul,
  .az-shop-filter-dropdown__panel { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
  .az-shop-catalog-toolbar { align-items: stretch; flex-direction: column; }
  .az-shop-grid { grid-template-columns: repeat(var(--az-shop-columns-mobile, 2), minmax(0, 1fr)); gap: 12px; }
}
.az-product-breadcrumb {
  padding-bottom: 20px;
}

.az-product-breadcrumb .woocommerce-breadcrumb {
  margin: 0;
  color: var(--az-woo-muted);
  font-size: 13px;
}

.az-product-breadcrumb .woocommerce-breadcrumb a {
  color: var(--az-woo-green);
  text-decoration: none;
}

.az-product-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: 16px;
  align-items: start;
  padding-bottom: 34px;
}

.az-product-summary--gallery-hidden {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.az-product-summary--gallery-hidden .az-product-info {
  max-width: 860px;
  margin-inline: auto;
}

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

.az-product-main-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 1px solid var(--az-woo-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(29, 64, 44, .07);
}

.az-product-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  cursor: zoom-in;
  transition: opacity .16s ease, transform .35s ease;
}

.az-product-main-img:hover {
  transform: scale(1.025);
}

.az-product-main-img.is-switching {
  opacity: .3;
}

.az-product-gallery-nav,
.az-product-gallery-zoom {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--az-woo-ink);
  box-shadow: 0 5px 16px rgba(29, 64, 44, .14);
}

.az-product-gallery-nav {
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
}

.az-product-gallery-prev { left: 14px; }
.az-product-gallery-next { right: 14px; }

.az-product-gallery-zoom {
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  font-size: 21px;
}

.az-product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px 2px;
}

.az-product-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
}

.az-product-thumb.is-active,
.az-product-thumb:hover {
  border-color: var(--az-woo-green);
}

.az-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.az-product-info {
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--az-woo-line);
  border-radius: 16px;
  background: var(--az-color-surface, #fff);
  box-shadow: 0 12px 28px rgba(16, 35, 63, .06);
}

.az-product-brand {
  display: inline-flex;
  margin-bottom: 13px;
  color: var(--az-woo-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.az-product-info h1 {
  margin-bottom: 12px;
  color: var(--az-woo-ink);
  font-size: clamp(30px, 3.5vw, 42px);
  letter-spacing: -.035em;
}

.az-product-meta-row {
  display: flex;
  gap: 10px;
  color: var(--az-woo-muted);
  font-size: 13px;
}

.az-product-meta-row b {
  color: var(--az-woo-ink);
}

.az-product-short {
  padding: 14px 0;
  border-top: 1px solid var(--az-woo-line);
  border-bottom: 1px solid var(--az-woo-line);
  color: var(--az-woo-muted);
  line-height: 1.62;
}

.az-product-short p:last-child { margin-bottom: 0; }

.az-product-actions {
  margin: 18px 0;
}

.az-product-actions form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.az-product-actions .quantity .qty,
.woocommerce .quantity .qty {
  width: 76px;
  min-height: 50px;
  border: 1px solid var(--az-woo-line);
  border-radius: 11px;
  background: #fff;
  color: var(--az-woo-ink);
  text-align: center;
}

.az-product-contact-box,
.az-product-facts {
  margin-top: 18px;
  padding: 19px;
  border: 1px solid var(--az-woo-line);
  border-radius: 15px;
  background: #fff;
}

.az-product-contact-box {
  background: linear-gradient(135deg, #eff9f1, #fff);
}

.az-product-contact-box h2 {
  margin-bottom: 6px;
  color: var(--az-woo-ink);
  font-size: 18px;
}

.az-product-contact-box p {
  margin-bottom: 14px;
  color: var(--az-woo-muted);
  font-size: 14px;
}

.az-product-contact-list {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.az-product-contact-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.az-product-contact-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--az-woo-green);
}

.az-product-contact-main-info {
  display: grid;
  gap: 1px;
}

.az-product-phone {
  color: var(--az-woo-green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.az-product-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #087be8;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.az-product-zalo b { font-size: 12px; }

.az-product-facts p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #edf2ee;
  color: var(--az-woo-muted);
  font-size: 14px;
}

.az-product-facts p:last-child { border-bottom: 0; }
.az-product-facts b { color: var(--az-woo-ink); }

.az-market-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.az-market-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.az-market-links .is-shopee { background: #ee4d2d; }
.az-market-links .is-sendo { background: #e85d0f; }
.az-market-links .is-lazada { background: #1f65d6; }

.az-product-content {
  padding-bottom: 72px;
}

.az-product-tab-panel {
  overflow: hidden;
  border: 1px solid var(--az-woo-line);
  border-radius: var(--az-woo-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 64, 44, .05);
}

.az-product-tab-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--az-woo-line);
  background: #fbfdfb;
}

.az-product-tab-nav [data-az-product-tab] {
  appearance: none;
  display: inline-flex;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--az-woo-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
}

.az-product-tab-nav [data-az-product-tab].is-active,
.az-product-tab-nav [data-az-product-tab]:hover {
  border-bottom-color: var(--az-woo-green);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--az-woo-green);
  transform: none;
}

.az-product-tab-nav [data-az-product-tab]:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--az-color-primary, #d21f3c);
  outline-offset: -3px;
}

.az-product-tab-content {
  padding: 26px clamp(18px, 4vw, 42px) 30px;
}

.az-product-tab-body.is-collapsed {
  max-height: 290px;
  overflow: hidden;
  position: relative;
}

.az-product-tab-body.is-collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--az-color-surface, #fff));
  pointer-events: none;
}

.az-product-tab-pane {
  display: none;
}

.az-product-tab-pane.is-active {
  display: block;
}

.az-product-tab-more {
  display: flex;
  width: max-content;
  margin: 16px auto 0;
  padding: 8px 13px;
  border: 1px solid var(--az-woo-line);
  border-radius: 999px;
  background: #fff;
  color: var(--az-woo-green);
  font-size: 13px;
  font-weight: 600;
}

.az-product-tab-more:hover {
  border-color: var(--az-woo-green);
  background: var(--az-woo-green);
  color: #fff;
}

.az-product-tab-more[hidden] {
  display: none;
}

.az-product-related {
  padding-bottom: 48px;
}

.az-product-related .az-section-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--az-woo-line);
}

.az-product-related .az-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--az-color-secondary, var(--az-woo-ink));
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.az-product-related .az-section-head h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--az-woo-green);
  transform: translateY(-50%);
}

.az-product-related .az-section-head h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 14px;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--az-woo-green);
}

.az-product-related .az-shop-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@supports not (background: color-mix(in srgb, red 50%, white)) {
  :root { --az-woo-green-soft: #fff3e3; }
}

.az-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(10, 24, 17, .9);
}

.az-gallery-lightbox img {
  max-width: min(92vw, 1080px);
  max-height: 88vh;
  object-fit: contain;
}

.az-gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--az-woo-ink);
  font-size: 28px;
}

body.az-gallery-lightbox-open { overflow: hidden; }

@media (max-width: 960px) {
  .az-product-summary { gap: 28px; }
}

@media (max-width: 720px) {
  .az-product-summary { grid-template-columns: 1fr; }
  .az-product-gallery { position: static; }
  .az-product-info h1 { font-size: 32px; }
  .az-product-main-frame { aspect-ratio: 1 / 1; }
  .az-product-related .az-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Shared WooCommerce system pages: checkout, account and order tracking. */
.az-checkout-page,
.az-account-page,
.az-order-tracking-page {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  margin-bottom: 48px;
}

.az-checkout-page {
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  align-items: start;
  width: 100%;
}

.az-checkout-page__customer,
.az-checkout-page__review,
.az-account-page__navigation,
.az-account-page__content,
.az-order-tracking-form {
  padding: 24px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-surface, #fff);
}

.az-checkout-page__review {
  position: sticky;
  top: 24px;
}

.woocommerce .az-checkout-page #customer_details.az-checkout-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
}

.az-account-page {
  display: grid;
  gap: 24px;
}

/* WooCommerce ships float-based checkout columns. Reset them before using
 * the theme grid, otherwise the billing form collapses into a narrow column. */
.az-woocommerce-system-page .az-checkout-form,
.az-woocommerce-system-page .az-checkout-page,
.woocommerce .az-checkout-page #customer_details,
.woocommerce .az-checkout-page #customer_details .col-1,
.woocommerce .az-checkout-page #customer_details .col-2 {
  float: none;
  width: 100%;
  max-width: none;
}

.woocommerce .az-checkout-page #customer_details .col-1,
.woocommerce .az-checkout-page #customer_details .col-2 {
  margin: 0;
}

.az-checkout-page .woocommerce-billing-fields h3,
.az-checkout-page .woocommerce-additional-fields h3,
.az-checkout-page__review > h2 {
  margin: 0 0 20px;
  color: var(--az-color-secondary, var(--az-color-heading, #222));
  font-size: 22px;
  font-weight: var(--az-heading-weight, 600);
}

.woocommerce .az-checkout-page .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.woocommerce .az-checkout-page .form-row,
.woocommerce .az-checkout-page .form-row-first,
.woocommerce .az-checkout-page .form-row-last {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.woocommerce .az-checkout-page .form-row-wide,
.az-checkout-page .woocommerce-additional-fields {
  grid-column: 1 / -1;
}

.woocommerce .az-checkout-page .form-row .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

.az-checkout-page .form-row label {
  display: block;
  margin: 0 0 7px;
  color: var(--az-color-heading, #222);
  font-size: 14px;
  font-weight: 600;
}

.az-checkout-page .form-row .optional {
  color: var(--az-color-muted, #777);
  font-weight: 400;
}

.az-checkout-page input.input-text,
.az-checkout-page select,
.az-account-page__content .woocommerce-EditAccountForm input.input-text,
.az-order-tracking-form input.input-text {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
  background: #fff;
  color: var(--az-color-text, #424242);
}

.az-checkout-page input.input-text:focus,
.az-checkout-page select:focus,
.az-account-page__content .woocommerce-EditAccountForm input.input-text:focus,
.az-order-tracking-form input.input-text:focus {
  border-color: var(--az-color-primary, #1f6f43);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--az-color-primary, #1f6f43) 14%, transparent);
  outline: 0;
}

.az-checkout-page textarea.input-text {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
  resize: vertical;
}

.az-checkout-page .select2-container {
  width: 100%;
}

.az-checkout-page .select2-container .select2-selection--single {
  min-height: 44px;
  border-color: var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
}

.az-checkout-page .select2-selection--single .select2-selection__rendered {
  padding-left: 12px;
  color: var(--az-color-text, #424242);
  line-height: 42px;
}

.az-checkout-page .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--az-radius-sm, 4px);
  overflow: hidden;
  color: var(--az-color-text, #424242);
  font-size: 14px;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table th,
.az-checkout-page__review .woocommerce-checkout-review-order-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  color: var(--az-color-text, #424242);
  text-align: left;
  vertical-align: middle;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table td {
  text-align: right;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table .product-name {
  width: 64%;
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  text-align: left;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table .product-total {
  width: 36%;
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  text-align: right;
  white-space: nowrap;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table .product-quantity {
  color: var(--az-color-muted, #777);
  font-weight: 500;
  white-space: nowrap;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table thead th {
  background: var(--az-color-page, #f4f6f8);
  color: var(--az-color-secondary, var(--az-color-heading, #222));
  font-weight: 600;
}

.az-checkout-page__review .woocommerce-checkout-review-order-table tfoot th,
.az-checkout-page__review .woocommerce-checkout-review-order-table tfoot td {
  color: var(--az-color-secondary, var(--az-color-text, #424242));
}

.az-checkout-page__review .woocommerce-checkout-review-order-table tr:last-child th,
.az-checkout-page__review .woocommerce-checkout-review-order-table tr:last-child td {
  border-bottom: 0;
}

.az-checkout-page__review .order-total th,
.az-checkout-page__review .order-total td {
  color: var(--az-color-secondary, #222);
  font-size: 17px;
  font-weight: 600;
}

.az-checkout-page__review #payment {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
  background: var(--az-color-surface, #fff);
}

.az-checkout-page__review .wc_payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.az-checkout-page__review .wc_payment_methods label {
  color: var(--az-color-secondary, var(--az-color-heading, #222));
  font-weight: 600;
}

.az-checkout-page__review .payment_box {
  margin: 10px 0 0;
  color: var(--az-color-muted, #777);
  font-size: 14px;
}

.az-checkout-page__review .payment_box p {
  margin: 0;
}

.az-checkout-page__review #place_order {
  width: 100%;
  margin-top: 18px;
  font-size: 16px;
}

.az-woocommerce-system-page .woocommerce-form-coupon-toggle,
.az-woocommerce-system-page .checkout_coupon {
  max-width: 720px;
  margin: 0 0 16px;
}

.az-woocommerce-system-page .checkout_coupon {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: #fff;
}

.az-woocommerce-system-page .checkout_coupon .form-row {
  float: none;
  width: auto;
  margin: 0;
}

.az-woocommerce-system-page .checkout_coupon .form-row-first {
  flex: 1;
}

.az-account-page {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: start;
}

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

.az-account-page .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  color: var(--az-color-text, #424242);
  text-decoration: none;
}

.az-account-page .woocommerce-MyAccount-navigation .is-active a,
.az-account-page .woocommerce-MyAccount-navigation a:hover {
  color: var(--az-color-primary, #f7941d);
  font-weight: 600;
}

.az-order-tracking-page {
  width: min(100%, 960px);
  margin: clamp(12px, 3vw, 34px) auto clamp(32px, 5vw, 64px);
}

.az-order-tracking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--az-color-primary, #d21f3c) 16%, var(--az-color-border, #e5e5e5));
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--az-color-primary, #d21f3c) 5%, #fff), #fff 42%);
  box-shadow: 0 16px 36px rgba(17, 24, 39, .08);
}

.az-order-tracking-form > h2,
.az-order-tracking-form > p:not(.form-row) {
  grid-column: 1 / -1;
}

.az-order-tracking-form > h2 {
  margin: 0 -2px -10px;
  color: var(--az-color-heading, #222);
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
}

.az-order-tracking-form > p:not(.form-row) {
  max-width: 650px;
  margin: 0;
  color: var(--az-color-muted, #667085);
  font-size: 15px;
  line-height: 1.65;
}

.woocommerce .az-order-tracking-form .form-row,
.woocommerce .az-order-tracking-form .form-row-first,
.woocommerce .az-order-tracking-form .form-row-last {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.az-order-tracking-form .form-row label {
  display: block;
  margin: 0 0 8px;
  color: var(--az-color-heading, #222);
  font-size: 14px;
  font-weight: 700;
}

.az-order-tracking-form input.input-text {
  min-height: 50px;
  padding: 12px 14px;
  border-color: color-mix(in srgb, var(--az-color-border, #e5e5e5) 82%, var(--az-color-secondary, #222));
  border-radius: 10px;
  font-size: 15px;
}

.az-order-tracking-form input.input-text::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.az-order-tracking-form .clear {
  display: none;
}

.az-order-tracking-form .form-row:last-of-type {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.az-order-tracking-form .form-row:last-of-type .button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 25px;
  border: 1px solid var(--az-color-primary, #d21f3c);
  border-radius: 10px;
  background: var(--az-color-primary, #d21f3c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.az-order-tracking-form .form-row:last-of-type .button:hover,
.az-order-tracking-form .form-row:last-of-type .button:focus-visible {
  border-color: color-mix(in srgb, var(--az-color-primary, #d21f3c) 82%, #000);
  background: color-mix(in srgb, var(--az-color-primary, #d21f3c) 82%, #000);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .az-order-tracking-page {
    margin-block: 18px 40px;
  }

  .az-order-tracking-form {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px;
    border-radius: 15px;
  }

  .az-order-tracking-form .form-row:last-of-type .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .az-checkout-page,
  .az-checkout-page .col2-set,
  .az-account-page {
    grid-template-columns: 1fr;
  }

  .az-checkout-page__review {
    position: static;
  }

  .woocommerce .az-checkout-page .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .az-checkout-page__review .woocommerce-checkout-review-order-table .product-name {
    width: 62%;
  }

  .az-checkout-page__review .woocommerce-checkout-review-order-table .product-total {
    width: 38%;
  }

  .az-woocommerce-system-page .checkout_coupon {
    align-items: stretch;
    flex-direction: column;
  }

  .az-woocommerce-system-page .checkout_coupon .button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .az-shop-title-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .az-shop-title-actions .woocommerce-ordering,
  .az-shop-title-actions select { width: 100%; }
  .az-product-actions form.cart { align-items: stretch; }
  .az-product-actions .single_add_to_cart_button { flex: 1; }
}

/* -------------------------------------------------------------------------
 * Product detail final layout
 * Fixed structure: gallery left / product information right / content below.
 * All visual colors intentionally use the theme color tokens.
 * ------------------------------------------------------------------------- */
.single-product .az-product-detail {
  background: var(--az-color-page, #f4f6f8);
}

.single-product .az-product-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
  padding-bottom: 30px;
}

.single-product .az-product-gallery,
.single-product .az-product-info,
.single-product .az-product-tab-panel {
  border: 1px solid var(--az-color-border, #e5e5e5);
  background: var(--az-color-surface, #fff);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--az-color-secondary, #222) 8%, transparent);
}

.single-product .az-product-gallery {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--az-radius-lg, 14px);
}

.single-product .az-product-main-frame {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 0;
  border-radius: var(--az-radius-md, 8px);
  background: color-mix(in srgb, var(--az-color-page, #f4f6f8) 55%, var(--az-color-surface, #fff));
  box-shadow: none;
}

.single-product .az-product-main-img {
  padding: 10px;
}

.single-product .az-product-gallery-nav,
.single-product .az-product-gallery-zoom {
  width: 36px;
  height: 36px;
  background: var(--az-color-surface, #fff);
  color: var(--az-color-primary, #f7941d);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--az-color-secondary, #222) 15%, transparent);
}

.single-product .az-product-gallery-prev { left: 10px; }
.single-product .az-product-gallery-next { right: 10px; }
.single-product .az-product-gallery-zoom { right: 12px; bottom: 12px; }

.single-product .az-product-thumbs {
  gap: 8px;
  padding: 10px 0 0;
}

.single-product .az-product-thumb {
  flex-basis: 62px;
  width: 62px;
  height: 62px;
  border-color: var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
}

.single-product .az-product-thumb.is-active,
.single-product .az-product-thumb:hover {
  border-color: var(--az-color-primary, #f7941d);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--az-color-primary, #f7941d) 16%, transparent);
}

.single-product .az-product-info {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--az-radius-lg, 14px);
}

.single-product .az-product-info h1 {
  margin: 0 0 13px;
  color: var(--az-color-heading, #222);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.single-product .az-product-brand {
  margin-bottom: 10px;
  color: var(--az-color-primary, #f7941d);
}

.single-product .az-product-detail-price {
  margin: 0 0 18px;
}

.single-product .az-product-short {
  margin-top: 18px;
  padding: 17px 0;
  border-top: 1px solid var(--az-color-border, #e5e5e5);
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  color: var(--az-color-text, #424242);
  line-height: 1.65;
}

.single-product .az-product-actions {
  margin: 19px 0 0;
}

.single-product .az-product-content {
  padding-bottom: 36px;
}

.single-product .az-product-tab-panel {
  overflow: hidden;
  border-radius: var(--az-radius-lg, 14px);
}

.single-product .az-product-tab-nav {
  background: color-mix(in srgb, var(--az-color-page, #f4f6f8) 68%, var(--az-color-surface, #fff));
  border-bottom-color: var(--az-color-border, #e5e5e5);
}

.single-product .az-product-tab-nav [data-az-product-tab] {
  color: var(--az-color-muted, #777);
}

.single-product .az-product-tab-nav [data-az-product-tab].is-active,
.single-product .az-product-tab-nav [data-az-product-tab]:hover {
  border-bottom-color: var(--az-color-primary, #f7941d);
  background: transparent;
  color: var(--az-color-primary, #f7941d);
}

.single-product .single_variation > :empty,
.single-product .single_variation:not(:has(> :not(:empty))) {
  display: none;
}

.single-product .single_variation[hidden],
.single-product .single_variation > [hidden] {
  display: none !important;
}

.single-product .az-product-tab-more {
  border-color: var(--az-color-primary, #f7941d);
  color: var(--az-color-primary, #f7941d);
}

.single-product .az-product-tab-more:hover {
  background: var(--az-color-primary, #f7941d);
  color: var(--az-color-surface, #fff);
}

.single-product .az-product-related {
  padding-bottom: 38px;
}

@media (max-width: 640px) {
  .az-product-tab-nav [data-az-product-tab] {
    min-height: 46px;
    padding: 0 15px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  .single-product .az-product-summary {
    grid-template-columns: 1fr;
  }

  .single-product .az-product-gallery {
    position: static;
  }

  .single-product .az-product-info {
    padding: 22px 18px;
  }

  .single-product .az-product-info h1 {
    font-size: 30px;
  }

}

/* Keep related-section headings quiet and consistent with the product card UI. */
.single-product .az-product-related .az-section-head {
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 0 0 20px;
  padding: 0 0 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--az-color-border, #e5e5e5) 78%, transparent);
}

.single-product .az-product-related .az-section-head h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 9px 16px 9px 34px;
  border: 1px solid color-mix(in srgb, var(--az-color-primary, #f7941d) 18%, var(--az-color-border, #e5e5e5));
  border-radius: 999px;
  background: color-mix(in srgb, var(--az-color-primary, #f7941d) 6%, var(--az-color-surface, #fff));
  color: var(--az-color-heading, #222);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--az-color-secondary, #222) 5%, transparent);
}

.single-product .az-product-related .az-section-head h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  width: 9px;
  height: 9px;
  border: 3px solid color-mix(in srgb, var(--az-color-primary, #f7941d) 18%, var(--az-color-surface, #fff));
  border-radius: 50%;
  background: var(--az-color-primary, #f7941d);
  box-shadow: 0 0 0 2px var(--az-color-surface, #fff);
  transform: translateY(-50%);
}

.single-product .az-product-related .az-section-head h2::after {
  display: none;
}

@media (max-width: 640px) {
  .single-product .az-product-related .az-section-head {
    min-height: 48px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .single-product .az-product-related .az-section-head h2 {
    padding: 8px 13px 8px 30px;
    font-size: 18px;
  }

  .single-product .az-product-related .az-section-head h2::before {
    left: 11px;
    width: 8px;
    height: 8px;
  }
}

/* Shared product purchase controls for simple and variable products. */
.single-product .az-product-actions form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.single-product .az-product-actions form.variations_form {
  display: block;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--az-color-border, #e5e5e5);
}

.single-product .az-product-actions table.variations {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
}

.single-product .az-product-actions table.variations tbody {
  display: grid;
  gap: 16px;
}

.single-product .az-product-actions table.variations tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  padding: 0;
}

.single-product .az-product-actions table.variations th,
.single-product .az-product-actions table.variations td {
  padding: 0;
  border: 0;
  text-align: left;
  vertical-align: middle;
}

.single-product .az-product-actions table.variations th label,
.single-product .az-product-actions table.variations td.label label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--az-color-secondary, var(--az-color-heading, #222));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.single-product .az-product-actions table.variations td.value {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
}

.single-product .az-product-actions table.variations select {
  flex: 1 1 100%;
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-sm, 4px);
  background: var(--az-color-surface, #fff);
  color: var(--az-color-text, #424242);
  outline: none;
}

.single-product .az-product-actions table.variations select,
.single-product .az-product-actions .az-variation-label,
.single-product .az-product-actions .woocommerce-variation-add-to-cart .quantity .qty,
.single-product .az-product-actions .quantity .qty {
  font-family: inherit;
  font-size: 14px;
}

.single-product .az-product-actions table.variations select:focus {
  border-color: var(--az-color-primary, #f7941d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--az-color-primary, #f7941d) 14%, transparent);
}

.single-product .az-product-actions table.variations select.az-variation-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.single-product .az-product-actions .reset_variations {
  order: 2;
  margin: 0;
  color: var(--az-color-muted, #777);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.single-product .az-product-actions .reset_variations:hover {
  color: var(--az-color-primary, #f7941d);
}

.single-product .az-variation-labels {
  display: flex;
  flex: 0 1 auto;
  order: 1;
  flex-wrap: wrap;
  gap: 9px;
}

.single-product .az-variation-label {
  display: inline-flex;
  min-width: 58px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-surface, #fff);
  color: var(--az-color-text, #424242);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.single-product .az-variation-label:hover {
  border-color: color-mix(in srgb, var(--az-color-primary, #f7941d) 55%, var(--az-color-border, #e5e5e5));
  background: color-mix(in srgb, var(--az-color-primary, #f7941d) 4%, var(--az-color-surface, #fff));
  color: var(--az-color-secondary, var(--az-color-text, #424242));
}

.single-product .az-variation-label.is-selected {
  border-color: var(--az-color-primary, #f7941d);
  background: color-mix(in srgb, var(--az-color-primary, #f7941d) 8%, var(--az-color-surface, #fff));
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--az-color-primary, #f7941d) 10%, transparent);
}

.single-product .az-variation-label.is-selected::after {
  content: "✓";
  color: var(--az-color-primary, #f7941d);
  font-size: 12px;
  font-weight: 600;
}

.single-product .az-variation-label:disabled,
.single-product .az-variation-label.is-disabled {
  border-color: var(--az-color-border, #e5e5e5);
  background: var(--az-color-page, #f4f6f8);
  color: var(--az-color-muted, #777);
  cursor: not-allowed;
  opacity: .55;
}

.single-product .az-variation-label:focus-visible {
  outline: 2px solid var(--az-color-primary, #f7941d);
  outline-offset: 2px;
}

.single-product .az-product-actions .single_variation_wrap {
  margin-top: 5px;
}

.single-product .az-product-actions .single_variation {
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-surface, #fff);
  color: var(--az-color-text, #424242);
}

.single-product .az-product-actions .woocommerce-variation-description p,
.single-product .az-product-actions .woocommerce-variation-availability,
.single-product .az-product-actions .stock {
  margin: 0;
  color: var(--az-color-muted, #777);
  font-size: 12px;
}

.single-product .az-product-actions .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single-product .az-product-actions .woocommerce-variation-add-to-cart .quantity,
.single-product .az-product-actions .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  margin: 0;
}

.single-product .az-product-actions .woocommerce-variation-add-to-cart .quantity .qty,
.single-product .az-product-actions .quantity .qty {
  width: 84px;
  min-height: 46px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-surface, #fff);
  color: var(--az-color-text, #424242);
}

@media (max-width: 720px) {
  .single-product .az-product-actions form.variations_form {
    padding-top: 14px;
  }

  .single-product .az-variation-label {
    min-height: 40px;
    padding: 7px 13px;
  }

  .single-product .az-product-actions .woocommerce-variation-add-to-cart {
    align-items: stretch;
  }

  .single-product .az-product-actions .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
  }
}

/* WooCommerce utility pages use the full shared content width. */
.az-woocommerce-system-page {
  width: min(100% - (var(--az-gutter, 24px) * 2), var(--az-container, 1110px));
  min-height: 46vh;
  margin: 32px auto 56px;
}

/* Order confirmation: keep status, order facts and customer data visually
 * distinct without applying the brand color to all of the page copy. */
.az-woocommerce-system-page .woocommerce-order {
  display: grid;
  gap: 24px;
  color: var(--az-color-text, #424242);
}

.az-woocommerce-system-page .woocommerce-order > * {
  margin-block: 0;
}

.az-woocommerce-system-page .woocommerce-order .woocommerce-thankyou-order-received {
  padding: 18px 20px;
  border-color: color-mix(in srgb, var(--az-color-success, #2e7d32) 22%, var(--az-color-border, #e5e5e5));
  border-left-color: var(--az-color-success, #2e7d32);
  background: color-mix(in srgb, var(--az-color-success, #2e7d32) 7%, var(--az-color-surface, #fff));
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-weight: 600;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-lg, 12px);
  background: var(--az-color-border, #e5e5e5);
  box-shadow: var(--az-shadow-soft, 0 8px 24px rgba(15, 23, 42, .06));
  list-style: none;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  float: none;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 15px 18px;
  border: 0;
  background: var(--az-color-surface, #fff);
  color: var(--az-color-muted, #777);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__order {
  grid-column: 1;
  grid-row: 1;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__date {
  grid-column: 2;
  grid-row: 1;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__email {
  grid-column: 1;
  grid-row: 2;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__payment-method {
  grid-column: 2;
  grid-row: 2;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__total {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 72px;
  background: color-mix(in srgb, var(--az-color-primary, #f7941d) 6%, var(--az-color-surface, #fff));
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-size: 13px;
  font-weight: 600;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details strong {
  display: block;
  max-width: 65%;
  margin: 0;
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  text-transform: none;
}

.az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__total strong {
  color: var(--az-color-primary, #f7941d);
  font-size: 20px;
}

.az-woocommerce-system-page .woocommerce-order-overview + p {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-surface, #fff);
  color: var(--az-color-text, #424242);
  font-size: 14px;
}

.az-woocommerce-system-page .woocommerce-order-overview + p::before {
  content: "i";
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--az-color-info, #0288d1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transform: translateY(-50%);
}

.az-woocommerce-system-page .woocommerce-order-details,
.az-woocommerce-system-page .woocommerce-customer-details {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-lg, 12px);
  background: var(--az-color-surface, #fff);
  box-shadow: var(--az-shadow-soft, 0 8px 24px rgba(15, 23, 42, .06));
}

.az-woocommerce-system-page .woocommerce-order-details__title,
.az-woocommerce-system-page .woocommerce-customer-details .woocommerce-column__title {
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--az-radius-md, 8px);
  color: var(--az-color-text, #424242);
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table th,
.az-woocommerce-system-page .woocommerce-order-details .shop_table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  background: transparent;
  color: var(--az-color-text, #424242);
  text-align: left;
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table thead th {
  background: var(--az-color-page, #f5f6f7);
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-weight: 600;
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table .product-name {
  width: 68%;
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table .product-total,
.az-woocommerce-system-page .woocommerce-order-details .shop_table tfoot td {
  text-align: right;
}

.az-woocommerce-system-page .woocommerce-order-details .shop_table tr:last-child th,
.az-woocommerce-system-page .woocommerce-order-details .shop_table tr:last-child td {
  border-bottom: 0;
}

.az-woocommerce-system-page .woocommerce-order-details .product-name a {
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-weight: 600;
  text-decoration: none;
}

.az-woocommerce-system-page .woocommerce-order-details .product-name a:hover {
  color: var(--az-color-primary, #f7941d);
}

.az-woocommerce-system-page .woocommerce-order-details tfoot th {
  color: var(--az-color-secondary, var(--az-color-text, #424242));
  font-weight: 600;
}

.az-woocommerce-system-page .woocommerce-order-details tfoot th,
.az-woocommerce-system-page .woocommerce-order-details tfoot td {
  background: color-mix(in srgb, var(--az-color-page, #f5f6f7) 55%, var(--az-color-surface, #fff));
}

.az-woocommerce-system-page .woocommerce-order-details tfoot tr:last-child th,
.az-woocommerce-system-page .woocommerce-order-details tfoot tr:last-child td {
  color: var(--az-color-primary, #f7941d);
  font-size: 17px;
  font-weight: 600;
}

.az-woocommerce-system-page .woocommerce-order-details tfoot tr:last-child th {
  color: var(--az-color-secondary, var(--az-color-text, #424242));
}

.az-woocommerce-system-page .woocommerce-order-overview .amount,
.az-woocommerce-system-page .woocommerce-order-details .amount {
  color: inherit;
}

.az-woocommerce-system-page .woocommerce-customer-details {
  width: 100%;
}

.az-woocommerce-system-page .woocommerce-customer-details address {
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-page, #f5f6f7);
  color: var(--az-color-text, #424242);
  font-style: normal;
  line-height: 1.75;
}

.az-woocommerce-system-page .woocommerce-customer-details address p {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 9px 0 0;
  color: var(--az-color-text, #424242);
}

@media (max-width: 960px) {
  .az-woocommerce-system-page .woocommerce-order-overview.order_details {
    grid-template-columns: minmax(0, 1fr);
  }

  .az-woocommerce-system-page .woocommerce-order-overview.order_details li {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .az-woocommerce-system-page .woocommerce-order-overview.order_details .woocommerce-order-overview__total {
    order: 5;
  }
}

@media (max-width: 480px) {
  .az-woocommerce-system-page .woocommerce-order-overview.order_details li {
    display: block;
    min-height: 0;
    padding: 13px 15px;
  }

  .az-woocommerce-system-page .woocommerce-order-overview.order_details strong {
    max-width: none;
    margin-top: 5px;
    text-align: left;
  }
}

/* The empty state is rendered by cart/cart-empty.php, not cart/cart.php. */
.az-cart-empty {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 24px 0;
}

.az-cart-empty__card {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--az-woo-line, #e5e5e5);
  border-radius: var(--az-woo-radius, 14px);
  background: var(--az-color-surface, #fff);
  box-shadow: 0 12px 30px rgba(29, 64, 44, .07);
  text-align: center;
}

.az-cart-empty__card .woocommerce-info {
  margin: 0 0 22px;
  border-left: 0;
  box-shadow: none;
}

.az-cart-empty__card .return-to-shop {
  margin: 0;
}

/* Override WooCommerce's 30%/68% floats inside AZ's account grid. */
.az-account-page .woocommerce-MyAccount-navigation,
.az-account-page .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.az-account-page .woocommerce-MyAccount-navigation {
  width: 100%;
}

.az-account-page .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
}

.az-account-page .woocommerce-MyAccount-navigation a {
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.az-account-page .woocommerce-MyAccount-content {
  min-width: 0;
}

/* Account address and profile components. WooCommerce owns the markup while
 * AZ supplies a stable layout and reuses the shared button/input components. */
.az-account-page__content > p:first-of-type {
  margin: 0 0 20px;
  color: var(--az-color-text, #424242);
  line-height: 1.65;
}

.az-account-page__content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.az-account-page__content .woocommerce-Addresses .woocommerce-Address {
  display: flex;
  float: none;
  flex-direction: column;
  width: auto;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-lg, 12px);
  background: var(--az-color-surface, #fff);
  box-shadow: var(--az-shadow-soft, 0 8px 24px rgba(15, 23, 42, .06));
}

.az-account-page__content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
}

.az-account-page__content .woocommerce-Address-title h2 {
  margin: 0;
  color: var(--az-color-secondary, #222);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.az-account-page__content .woocommerce-Addresses .woocommerce-Address-title .edit {
  float: none;
  flex: 0 0 auto;
  --az-button-padding: 9px 13px;
  --az-button-border: 1px solid var(--az-color-border, #e5e5e5);
  --az-button-background: var(--az-color-surface, #fff);
  --az-button-color: var(--az-color-text, #424242);
  --az-button-font-size: 13px;
  --az-button-hover-background: var(--az-color-page, #f5f6f7);
  --az-button-hover-color: var(--az-color-secondary, #222);
  white-space: nowrap;
}

.az-account-page__content .woocommerce-Address address {
  flex: 1;
  margin: 0;
  padding: 14px;
  border-radius: var(--az-radius-md, 8px);
  background: var(--az-color-page, #f5f6f7);
  color: var(--az-color-text, #424242);
  font-style: normal;
  line-height: 1.65;
}

.az-account-page__content .woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
  color: var(--az-color-text, #424242);
}

.az-account-page__content .woocommerce-EditAccountForm .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.az-account-page__content .woocommerce-EditAccountForm .form-row-wide,
.az-account-page__content .woocommerce-EditAccountForm fieldset,
.az-account-page__content .woocommerce-EditAccountForm > p:last-of-type {
  grid-column: 1 / -1;
}

.az-account-page__content .woocommerce-EditAccountForm > .clear {
  display: none;
}

.az-account-page__content .woocommerce-EditAccountForm label {
  display: block;
  margin: 0 0 7px;
  color: var(--az-color-secondary, #222);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.az-account-page__content .woocommerce-EditAccountForm .required {
  color: var(--az-color-error, #d32f2f);
}

.az-account-page__content #account_display_name_description {
  display: block;
  margin-top: 7px;
  color: var(--az-color-muted, #777);
  font-size: 13px;
  line-height: 1.5;
}

.az-account-page__content #account_display_name_description em {
  font-style: normal;
}

.az-account-page__content .woocommerce-EditAccountForm fieldset {
  display: grid;
  gap: 16px;
  margin: 4px 0 0;
  padding: 20px;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-radius: var(--az-radius-lg, 12px);
  background: var(--az-color-page, #f5f6f7);
}

.az-account-page__content .woocommerce-EditAccountForm legend {
  padding: 0 10px;
  color: var(--az-color-secondary, #222);
  font-size: 18px;
  font-weight: 600;
}

.az-account-page__content .woocommerce-EditAccountForm .password-input {
  position: relative;
  display: block;
}

.az-account-page__content .woocommerce-EditAccountForm .password-input input {
  padding-right: 48px;
}

.az-account-page__content .woocommerce-EditAccountForm .show-password-input {
  right: 14px;
  color: var(--az-color-muted, #777);
}

.az-account-page__content .woocommerce-EditAccountForm > p:last-of-type {
  margin: 2px 0 0;
}

@media (max-width: 720px) {
  .az-woocommerce-system-page {
    width: min(100% - (var(--az-mobile-gutter, 24px) * 2), var(--az-container, 1110px));
    margin-top: 20px;
    margin-bottom: 36px;
  }

  .az-woocommerce-system-page .woocommerce-order {
    gap: 16px;
  }

  .az-woocommerce-system-page .woocommerce-order-details .shop_table th,
  .az-woocommerce-system-page .woocommerce-order-details .shop_table td {
    padding: 12px;
  }

  .az-cart-empty {
    min-height: 250px;
  }

  .az-account-page__content .woocommerce-Addresses,
  .az-account-page__content .woocommerce-EditAccountForm {
    grid-template-columns: 1fr;
  }

  .az-account-page__content .woocommerce-Address-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Account order endpoint notices and order tables. */
.az-account-page__content .woocommerce-info,
.az-account-page__content .woocommerce-message,
.az-account-page__content .woocommerce-error {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  margin: 0 0 16px;
  padding: 16px 20px;
}

.az-account-page__content .woocommerce-info::before,
.az-account-page__content .woocommerce-message::before,
.az-account-page__content .woocommerce-error::before {
  position: static;
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--az-notice-color, var(--az-color-info, #0288d1));
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-indent: 0;
}

.az-account-page__content .woocommerce-info::before {
  content: "i";
}

.az-account-page__content .woocommerce-message::before {
  content: "✓";
}

.az-account-page__content .woocommerce-error::before {
  content: "!";
}

.az-account-page__content .woocommerce-info .button,
.az-account-page__content .woocommerce-message .button,
.az-account-page__content .woocommerce-error .button {
  flex: 0 0 auto;
  order: 2;
  width: 264px;
  min-width: 264px;
  margin: 0 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.az-account-page__content .woocommerce-orders-table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--az-color-border, #e5e5e5);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--az-radius-md, 8px);
  overflow: hidden;
}

.az-account-page__content .woocommerce-orders-table th,
.az-account-page__content .woocommerce-orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  text-align: left;
}

.az-account-page__content .woocommerce-orders-table th {
  background: color-mix(in srgb, var(--az-color-primary, #f7941d) 8%, #fff);
  color: var(--az-color-heading, #222);
  font-size: 13px;
}

.az-account-page__content .woocommerce-orders-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .az-account-page__content .woocommerce-info,
  .az-account-page__content .woocommerce-message,
  .az-account-page__content .woocommerce-error {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .az-account-page__content .woocommerce-info .button,
  .az-account-page__content .woocommerce-message .button,
  .az-account-page__content .woocommerce-error .button {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .az-account-page__content .woocommerce-orders-table,
  .az-account-page__content .woocommerce-orders-table tbody,
  .az-account-page__content .woocommerce-orders-table tr,
  .az-account-page__content .woocommerce-orders-table th,
  .az-account-page__content .woocommerce-orders-table td {
    display: block;
  }

  .az-account-page__content .woocommerce-orders-table thead {
    display: none;
  }

  .az-account-page__content .woocommerce-orders-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--az-color-border, #e5e5e5);
  }

  .az-account-page__content .woocommerce-orders-table tr:last-child {
    border-bottom: 0;
  }

  .az-account-page__content .woocommerce-orders-table td {
    padding: 7px 16px;
    border: 0;
  }
}
