/* Hair Xzed commerce component
   WooCommerce/account/product rules are isolated from the general theme shell.
   This file is enqueued after WooCommerce styles, so normal cascade/specificity
   replaces the historical  patch stack. */

/* 3.2.1 — unified WooCommerce / Hair Xzed customer account shell. */
.site-main--account{background:linear-gradient(180deg,#fff 0%,var(--hx-surface,#fff8f5) 100%)}
.section--account{padding-block:clamp(1.5rem,3vw,3.5rem) clamp(3rem,6vw,5.5rem)}
.container--account{width:min(calc(100% - 2rem),1240px);margin-inline:auto}
.entry--account,.entry--account .entry-content{width:100%;max-width:none;margin:0}
.entry--account .entry-content{font-size:1rem}
.account-shell__intro{max-width:760px;margin:0 auto 1.5rem;text-align:center}
.account-shell__intro .eyebrow{margin-bottom:.45rem}
.account-shell__intro h1{margin:.1rem 0 .55rem;font-size:clamp(1.8rem,4vw,2.65rem)}
.account-shell__intro p:last-child{margin:0;color:var(--hx-muted)}
.woocommerce-account .entry--account .woocommerce{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:1.4rem;align-items:start}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto}
.woocommerce-account .woocommerce-MyAccount-navigation{position:sticky;top:1.25rem;padding:.55rem;border:1px solid var(--hx-border);border-radius:18px;background:#fff;box-shadow:var(--hx-shadow-soft)}
.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;gap:.3rem;margin:0;padding:0;list-style:none}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0;padding:0;list-style:none}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:flex;align-items:center;min-height:44px;padding:.65rem .8rem;border-radius:11px;color:var(--hx-text);font-weight:700;text-decoration:none}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,.woocommerce-account .woocommerce-MyAccount-navigation li.is-active>a{background:var(--hx-soft);color:var(--hx-primary-dark)}
.woocommerce-account .woocommerce-MyAccount-content{min-width:0;padding:clamp(1rem,2vw,1.5rem);border:1px solid var(--hx-border);border-radius:18px;background:#fff;box-shadow:var(--hx-shadow-soft)}
.woocommerce-account .woocommerce-MyAccount-content>p:first-child{margin-top:0}
.is-hxz-account-dashboard .entry--account .woocommerce{display:block}
.is-hxz-account-dashboard .woocommerce-MyAccount-navigation{display:none}
.is-hxz-account-dashboard .woocommerce-MyAccount-content{width:100%;padding:0;border:0;background:transparent;box-shadow:none}
.is-hxz-account-dashboard .woocommerce-MyAccount-content>.hxz-account{margin-top:0}
.woocommerce-account .woocommerce form .form-row input.input-text,.woocommerce-account .woocommerce form .form-row textarea,.woocommerce-account .woocommerce form .form-row select{min-height:46px;border:1px solid var(--hx-border);border-radius:10px;padding:.65rem .8rem;font:inherit}
.woocommerce-account .woocommerce table.shop_table{border-color:var(--hx-border);border-radius:14px;overflow:hidden}
.woocommerce-account .woocommerce-message,.woocommerce-account .woocommerce-info,.woocommerce-account .woocommerce-error{border-radius:12px}
@media(max-width:820px){
  .container--account{width:min(calc(100% - 1.25rem),1240px)}
  .woocommerce-account .entry--account .woocommerce{grid-template-columns:1fr}
  .woocommerce-account .woocommerce-MyAccount-navigation{position:static;overflow:auto;padding:.4rem}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;gap:.35rem;min-width:max-content}
  .woocommerce-account .woocommerce-MyAccount-navigation a{white-space:nowrap}
  .woocommerce-account .woocommerce-MyAccount-content{padding:1rem}
  .is-hxz-account-dashboard .woocommerce-MyAccount-content{padding:0}
}

/* 3.2.3 — robust WooCommerce account shell.
 * WooCommerce inserts .woocommerce-notices-wrapper before navigation/content.
 * Explicit grid areas prevent that extra child from shifting the navigation into
 * the wide column and the endpoint content into the narrow sidebar column. */
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce{
  display:grid;
  grid-template-columns:minmax(220px,260px) minmax(0,1fr);
  grid-template-areas:
    "notices notices"
    "nav content";
  gap:1.25rem 1.5rem;
  align-items:start;
  width:100%;
  min-width:0;
  direction:rtl;
}
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > .woocommerce-notices-wrapper{
  grid-area:notices;
  grid-column:1/-1;
  width:100%;
  min-width:0;
}
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty{display:none}
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > .woocommerce-MyAccount-navigation{
  grid-area:nav;
  width:100%;
  min-width:0;
  float:none;
  position:sticky;
  top:1.25rem;
  align-self:start;
}
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > .woocommerce-MyAccount-content{
  grid-area:content;
  width:100%;
  min-width:0;
  float:none;
  margin:0;
}
/* Any additional WooCommerce notices/utility blocks should span the account shell
 * rather than taking one of the two structural columns. */
body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > :not(.woocommerce-notices-wrapper):not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content){
  grid-column:1/-1;
}

/* Endpoint content polish. */
.woocommerce-account .woocommerce-MyAccount-content{overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3{margin-top:0}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error{margin-top:0}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table{width:100%;margin:0;border-collapse:separate;border-spacing:0;table-layout:auto}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{padding:.8rem .7rem;vertical-align:middle;text-align:right}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button{margin:.15rem;white-space:nowrap}
.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after{display:none}
.woocommerce-account .woocommerce-Address{float:none;width:auto;margin:0;padding:1rem;border:1px solid var(--hx-border);border-radius:14px;background:var(--hx-surface-soft)}
.woocommerce-account .woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.woocommerce-account .woocommerce-Address-title h3{margin:0}
.woocommerce-account .woocommerce-Address address{margin-top:.75rem;line-height:2}
.woocommerce-account .woocommerce-MyAccount-content form fieldset{margin:1.25rem 0 0;padding:1rem;border:1px solid var(--hx-border);border-radius:14px}
.woocommerce-account .woocommerce-MyAccount-content form legend{padding-inline:.4rem;font-weight:800}

/* Hair Xzed dashboard keeps its own full-width component layout. */
body.is-hxz-account-dashboard.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce{
  display:block;
}
body.is-hxz-account-dashboard.logged-in.woocommerce-account .woocommerce-MyAccount-navigation{display:none}
body.is-hxz-account-dashboard.logged-in.woocommerce-account .woocommerce-MyAccount-content{
  width:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

@media(max-width:900px){
  body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce{
    grid-template-columns:1fr;
    grid-template-areas:"notices" "nav" "content";
    gap:1rem;
  }
  body.logged-in.woocommerce-account .entry--account > .entry-content > .woocommerce > .woocommerce-MyAccount-navigation{
    position:static;
  }
  .woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}
}
@media(max-width:680px){
  .section--account{padding-block:1.25rem 3rem}
  .account-shell__intro{margin-bottom:1rem;text-align:right}
  .account-shell__intro h1{font-size:1.75rem}
  .woocommerce-account .woocommerce-MyAccount-navigation{overflow-x:auto;overflow-y:hidden;border-radius:14px}
  .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;gap:.35rem;min-width:max-content}
  .woocommerce-account .woocommerce-MyAccount-navigation a{min-height:40px;padding:.55rem .7rem;white-space:nowrap}
  .woocommerce-account .woocommerce-MyAccount-content{padding:.85rem;border-radius:14px}
  body.is-hxz-account-dashboard.logged-in.woocommerce-account .woocommerce-MyAccount-content{padding:0}
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive,
  .woocommerce-account .woocommerce-MyAccount-content table.shop_table{font-size:.88rem}
}

/* 3.3.0 — redesigned WooCommerce single product experience. */
.hx-product-page{background:linear-gradient(180deg,var(--hx-surface-soft) 0,#fff 46%,#fff 100%)}
.hx-product-hero{padding:clamp(1.2rem,2.6vw,2.4rem) 0 clamp(2rem,4vw,4rem)}
.hx-product-breadcrumb{margin:0 0 1.15rem;align-self:auto;flex-wrap:wrap}
.hx-product-overview{display:grid;grid-template-columns:minmax(0,.96fr) minmax(360px,.78fr);grid-template-areas:"gallery summary";gap:clamp(1.6rem,4vw,4.5rem);align-items:start;direction:ltr}
.hx-product-gallery{grid-area:gallery;min-width:0;direction:rtl}
.hx-product-summary{grid-area:summary;min-width:0;direction:rtl;padding:clamp(1.1rem,2vw,1.7rem);border:1px solid var(--hx-border);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 18px 50px rgba(var(--hx-primary-dark-rgb),.075)}
.hx-product-summary__topline{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin-bottom:.65rem}
.hx-product-category,.hx-product-category a{color:var(--hx-primary);font-size:.78rem;font-weight:800}
.hx-product-summary .product_title{margin:.15rem 0 .55rem;color:var(--hx-ink);font-size:clamp(2rem,3.4vw,3.35rem);line-height:1.25;letter-spacing:-.025em}
.hx-product-summary .woocommerce-product-rating{display:flex;align-items:center;gap:.5rem;margin:.2rem 0 1rem;float:none}
.hx-product-summary .woocommerce-product-rating .star-rating{float:none;margin:0;color:#d5a22d}
.hx-product-summary .woocommerce-review-link{color:var(--hx-muted);font-size:.78rem}
.hx-product-summary .price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem;margin:1rem 0;color:var(--hx-primary-dark);font-size:clamp(1.15rem,2vw,1.55rem);font-weight:900}
.hx-product-summary .price del{color:var(--hx-muted);font-size:.8em;font-weight:500;opacity:.8}.hx-product-summary .price ins{text-decoration:none}
.hx-product-summary .woocommerce-product-details__short-description{margin:1rem 0 1.25rem;color:var(--hx-muted);font-size:.92rem;line-height:2}
.hx-product-summary .stock{margin:.65rem 0;color:var(--hx-success);font-size:.82rem;font-weight:800}.hx-product-summary .stock.out-of-stock{color:#a33a3a}
.hx-product-summary form.cart{display:flex;align-items:stretch;gap:.65rem;flex-wrap:wrap;margin:1.1rem 0 0;padding:1rem 0 0;border-top:1px solid var(--hx-border)}
.hx-product-summary form.cart .quantity{float:none;margin:0}.hx-product-summary form.cart .quantity .qty{width:78px;min-height:48px;padding:.55rem;border:1px solid var(--hx-border);border-radius:10px;background:#fff;font:inherit;text-align:center}
.hx-product-summary form.cart .single_add_to_cart_button{flex:1 1 190px;min-height:48px;margin:0;padding:.7rem 1.15rem;border-radius:11px;font:inherit;font-weight:850;box-shadow:0 8px 20px rgba(var(--hx-primary-rgb),.16)}
.hx-product-summary form.variations_form{display:block}.hx-product-summary .variations{width:100%;margin:0 0 .8rem}.hx-product-summary .variations th,.hx-product-summary .variations td{display:block;width:100%;padding:.25rem 0;text-align:right}.hx-product-summary .variations label{font-weight:800}.hx-product-summary .variations select{width:100%;min-height:46px;margin:0;padding:.5rem .7rem;border:1px solid var(--hx-border);border-radius:10px;background:#fff;font:inherit}.hx-product-summary .reset_variations{display:inline-block;margin-top:.4rem;color:var(--hx-primary);font-size:.76rem}
.hx-product-summary .woocommerce-variation-add-to-cart{display:flex;gap:.65rem;align-items:stretch;flex-wrap:wrap}.hx-product-summary .woocommerce-variation-price{margin:.7rem 0}.hx-product-summary .group_table{width:100%}
.hx-product-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--hx-border)}
.hx-product-assurance>div{display:flex;align-items:center;gap:.55rem;min-width:0;padding:.7rem;border-radius:11px;background:var(--hx-surface-soft)}.hx-product-assurance .hx-icon{flex:0 0 auto;width:21px;height:21px;color:var(--hx-primary)}.hx-product-assurance span{display:grid;gap:.12rem;min-width:0}.hx-product-assurance strong{font-size:.72rem}.hx-product-assurance small{color:var(--hx-muted);font-size:.62rem;line-height:1.5}
.hx-product-summary .hxz-favorite-button--single-product{position:static;display:inline-grid;place-items:center;flex:0 0 auto;width:42px;height:42px;padding:0;border:1px solid var(--hx-border);border-radius:50%;background:#fff;color:var(--hx-primary);box-shadow:none}

/* Gallery: remove WooCommerce floats and turn it into a framed, responsive media card. */
.woocommerce .hx-product .hx-product-gallery div.images,.woocommerce-page .hx-product .hx-product-gallery div.images{float:none;width:100%;margin:0}
.hx-product-gallery .woocommerce-product-gallery{position:relative;padding:clamp(.8rem,1.6vw,1.3rem);border:1px solid var(--hx-border);border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(var(--hx-primary-dark-rgb),.06)}
.hx-product-gallery .woocommerce-product-gallery__wrapper{margin:0}
.hx-product-gallery .woocommerce-product-gallery__image{overflow:hidden;border-radius:17px;background:linear-gradient(145deg,#fff,var(--hx-surface-soft))}
.hx-product-gallery .woocommerce-product-gallery__image a{display:grid;place-items:center;min-height:clamp(360px,42vw,600px);padding:1rem}
.hx-product-gallery .woocommerce-product-gallery__image img{display:block;width:100%;max-height:570px;object-fit:contain;mix-blend-mode:multiply}
.hx-product-gallery .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.55rem;margin:1rem 0 0;padding:0;list-style:none}.hx-product-gallery .flex-control-thumbs li{float:none;width:auto;margin:0}.hx-product-gallery .flex-control-thumbs img{aspect-ratio:1;object-fit:contain;padding:.35rem;border:1px solid var(--hx-border);border-radius:10px;background:var(--hx-surface-soft);opacity:.68}.hx-product-gallery .flex-control-thumbs img.flex-active{border-color:var(--hx-primary);opacity:1}
.hx-product-gallery .onsale{z-index:4;top:1.25rem;right:1.25rem;left:auto;min-width:auto;min-height:auto;padding:.4rem .7rem;border-radius:999px;background:var(--hx-primary);line-height:1.4}

/* Product information, tabs and related products. */
.hx-product-details{padding:0 0 clamp(3rem,6vw,6rem)}
.hx-product-details__inner{display:grid;gap:1.4rem}
.hx-product-details .woocommerce-tabs{margin:0;padding:clamp(1rem,2vw,1.5rem);border:1px solid var(--hx-border);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(var(--hx-primary-dark-rgb),.04)}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs{display:flex;gap:.4rem;overflow-x:auto;margin:0 0 1.15rem;padding:0;border-bottom:1px solid var(--hx-border)}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs::before,.woocommerce .hx-product-details .woocommerce-tabs ul.tabs::after{display:none}.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li{flex:0 0 auto;margin:0;padding:0;border:0;border-radius:0;background:transparent}.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li::before,.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li::after{display:none}.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li a{display:block;padding:.75rem .9rem;border-bottom:2px solid transparent;color:var(--hx-muted);font-size:.82rem;font-weight:800;white-space:nowrap}.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li.active a{border-bottom-color:var(--hx-primary);color:var(--hx-primary)}
.hx-product-details .woocommerce-Tabs-panel{margin:0;padding:.4rem .3rem .2rem;color:var(--hx-ink);line-height:2}.hx-product-details .woocommerce-Tabs-panel h2{margin:.2rem 0 .8rem;font-size:clamp(1.35rem,2.2vw,1.9rem)}.hx-product-details .woocommerce-Tabs-panel p:last-child{margin-bottom:0}
.hx-product-details .woocommerce-Tabs-panel table{width:100%;border-collapse:collapse}.hx-product-details .woocommerce-Tabs-panel table th,.hx-product-details .woocommerce-Tabs-panel table td{padding:.7rem;border-bottom:1px solid var(--hx-border);text-align:right}
.hx-product-details .hxz-product-profile{margin:0;padding:clamp(1rem,2vw,1.5rem);border:1px solid var(--hx-border);border-radius:20px;background:linear-gradient(135deg,var(--hx-surface-soft),#fff)}.hx-product-details .hxz-product-profile h2{margin:0 0 .8rem;font-size:clamp(1.25rem,2vw,1.7rem)}.hx-product-details .hxz-product-profile dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:0}.hx-product-details .hxz-product-profile dl div{display:grid;gap:.25rem;padding:.85rem;border:0;border-radius:11px;background:#fff}.hx-product-details .hxz-product-profile dt{color:var(--hx-muted);font-size:.7rem}.hx-product-details .hxz-product-profile dd{font-size:.85rem}
.hx-product-details .related.products,.hx-product-details .upsells.products{margin:0;padding:clamp(1rem,2vw,1.5rem);border:1px solid var(--hx-border);border-radius:20px;background:#fff}.hx-product-details .related.products>h2,.hx-product-details .upsells.products>h2{margin:0 0 1rem;font-size:clamp(1.35rem,2.3vw,1.9rem)}
.woocommerce .hx-product-details .related ul.products,.woocommerce .hx-product-details .upsells ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0}.woocommerce .hx-product-details .related ul.products::before,.woocommerce .hx-product-details .related ul.products::after,.woocommerce .hx-product-details .upsells ul.products::before,.woocommerce .hx-product-details .upsells ul.products::after{display:none}.woocommerce .hx-product-details .related ul.products li.product,.woocommerce .hx-product-details .upsells ul.products li.product{float:none;width:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none}

/* Reviews. */
.hx-product-details #reviews{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.4rem}.hx-product-details #comments,.hx-product-details #review_form_wrapper{float:none;width:auto}.hx-product-details #review_form_wrapper{padding:1rem;border-radius:14px;background:var(--hx-surface-soft)}.hx-product-details #review_form_wrapper textarea,.hx-product-details #review_form_wrapper input[type=text],.hx-product-details #review_form_wrapper input[type=email]{width:100%;border:1px solid var(--hx-border);border-radius:10px;padding:.65rem;font:inherit}.hx-product-details .commentlist{padding:0}.hx-product-details .commentlist li{margin-bottom:.8rem}.hx-product-details .comment-text{margin:0;padding:1rem;border:1px solid var(--hx-border);border-radius:12px}

@media(max-width:980px){
  .hx-product-overview{grid-template-columns:minmax(0,1fr) minmax(320px,.86fr);gap:1.4rem}
  .hx-product-assurance{grid-template-columns:1fr}
  .hx-product-gallery .woocommerce-product-gallery__image a{min-height:340px}
  .woocommerce .hx-product-details .related ul.products,.woocommerce .hx-product-details .upsells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .hx-product-hero{padding-top:1rem}.hx-product-overview{grid-template-columns:1fr;grid-template-areas:"gallery" "summary";gap:1rem}.hx-product-summary{padding:1rem;border-radius:17px}.hx-product-summary .product_title{font-size:clamp(1.8rem,8vw,2.5rem)}
  .hx-product-gallery .woocommerce-product-gallery{padding:.65rem;border-radius:17px}.hx-product-gallery .woocommerce-product-gallery__image a{min-height:290px;padding:.5rem}.hx-product-gallery .woocommerce-product-gallery__image img{max-height:420px}
  .hx-product-details .hxz-product-profile dl{grid-template-columns:1fr 1fr}.hx-product-details #reviews{grid-template-columns:1fr}
}
@media(max-width:520px){
  .hx-product-breadcrumb{font-size:.7rem}.hx-product-summary form.cart{display:grid;grid-template-columns:82px minmax(0,1fr)}.hx-product-summary form.cart .single_add_to_cart_button{min-width:0}.hx-product-summary form.variations_form{display:block}.hx-product-summary .woocommerce-variation-add-to-cart{display:grid;grid-template-columns:82px minmax(0,1fr)}
  .hx-product-gallery .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))}.hx-product-assurance{gap:.4rem}.hx-product-details .hxz-product-profile dl{grid-template-columns:1fr}.woocommerce .hx-product-details .related ul.products,.woocommerce .hx-product-details .upsells ul.products{grid-template-columns:1fr}
}


/* 3.4.0 — Salon Luxe commerce design system.
   WooCommerce must inherit Hair Xzed brand tokens instead of shipping its
   legacy green / purple / blue defaults into customer-facing screens. */
:root{
  --wc-primary:var(--hx-primary);
  --wc-primary-text:#fff;
  --wc-secondary:var(--hx-surface-soft);
  --wc-secondary-text:var(--hx-ink);
  --wc-highlight:var(--hx-primary-dark);
  --wc-highlight-text:#fff;
  --wc-red:var(--hx-error);
}

/* All commerce controls share one visual language. */
body.woocommerce-page .button,
body.woocommerce-page button.button,
body.woocommerce-page input.button,
body.woocommerce-page #respond input#submit,
body.woocommerce-page a.button.alt,
body.woocommerce-page button.button.alt,
body.woocommerce-page input.button.alt,
body.woocommerce-page #respond input#submit.alt,
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.wc-block-components-button:not(.is-link){
  border:1px solid transparent;
  border-radius:12px;
  background:var(--hx-primary);
  color:#fff;
  box-shadow:0 10px 24px rgba(var(--hx-primary-rgb),.16);
  font-weight:850;
  transition:transform var(--hx-transition),box-shadow var(--hx-transition),background-color var(--hx-transition);
}
body.woocommerce-page .button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce-page input.button:hover,
body.woocommerce-page #respond input#submit:hover,
body.woocommerce-page a.button.alt:hover,
body.woocommerce-page button.button.alt:hover,
body.woocommerce-page input.button.alt:hover,
body.woocommerce-page #respond input#submit.alt:hover,
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover{
  background:var(--hx-primary-dark);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(var(--hx-primary-rgb),.20);
}
body.woocommerce-page .button:focus-visible,
body.woocommerce-page button.button:focus-visible,
body.woocommerce-page input.button:focus-visible,
.wc-block-components-button:focus-visible{
  outline:3px solid rgba(var(--hx-primary-rgb),.18);
  outline-offset:2px;
}
body.woocommerce-page .button.disabled,
body.woocommerce-page button.button.disabled,
body.woocommerce-page button.button:disabled,
body.woocommerce-page button.button:disabled[disabled]{
  background:var(--hx-border);
  color:var(--hx-muted);
  box-shadow:none;
}

/* WooCommerce feedback notices: branded and compact instead of legacy green/blue bars. */
.hx-product-page>.woocommerce-notices-wrapper,
.hx-product-page>.woocommerce-message,
.hx-product-page>.woocommerce-info,
.hx-product-page>.woocommerce-error{
  width:min(calc(100% - 32px),var(--hx-container));
  margin:1rem auto 0;
}
.woocommerce .woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,
.woocommerce-info{
  position:relative;
  min-height:58px;
  margin-bottom:1rem;
  padding:1rem 3.1rem 1rem 1rem;
  border:1px solid rgba(var(--hx-primary-rgb),.18);
  border-top:1px solid rgba(var(--hx-primary-rgb),.18);
  border-radius:15px;
  background:linear-gradient(135deg,var(--hx-surface),var(--hx-surface-soft));
  color:var(--hx-ink);
  box-shadow:var(--hx-shadow-soft);
  line-height:1.8;
}
.woocommerce-message::before,
.woocommerce-info::before{
  top:50%;
  right:1rem;
  left:auto;
  transform:translateY(-50%);
  color:var(--hx-primary);
}
.woocommerce-message .button,
.woocommerce-info .button{
  float:left;
  min-height:38px;
  margin:-.2rem 1rem -.2rem 0;
  padding:.45rem .85rem;
  border:1px solid rgba(var(--hx-primary-rgb),.22);
  background:var(--hx-surface);
  color:var(--hx-primary-dark);
  box-shadow:none;
  font-size:.8rem;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover{
  border-color:var(--hx-primary);
  background:var(--hx-primary-soft);
  color:var(--hx-primary-dark);
  transform:none;
}
.woocommerce-error{
  padding:1rem 3.1rem 1rem 1rem;
  border:1px solid rgba(168,47,70,.18);
  border-top:1px solid rgba(168,47,70,.18);
  border-radius:15px;
  background:#fff8f9;
  color:var(--hx-ink);
  box-shadow:var(--hx-shadow-soft);
}
.woocommerce-error::before{right:1rem;left:auto;color:var(--hx-error)}

/* Product page — quieter background so product photography can carry its own colors. */
.hx-product-page{background:var(--hx-bg)}
.hx-product-hero{padding-top:clamp(1.4rem,2.8vw,2.6rem)}
.hx-product-overview{gap:clamp(1.8rem,4.2vw,4.8rem)}
.hx-product-summary{
  border-color:rgba(var(--hx-primary-rgb),.12);
  border-radius:26px;
  background:rgba(255,255,255,.97);
  box-shadow:0 22px 60px rgba(43,31,35,.075);
}
.hx-product-category,.hx-product-category a{color:var(--hx-primary-dark)}
.hx-product-summary .product_title{letter-spacing:-.035em}
.hx-product-summary .price{color:var(--hx-primary-dark)}
.hx-product-summary .woocommerce-product-rating .star-rating{color:var(--hx-accent)}
.hx-product-summary .stock{color:var(--hx-primary-dark)}
.hx-product-summary .stock.out-of-stock{color:var(--hx-error)}
.hx-product-summary form.cart{
  padding-top:1.15rem;
  border-top-color:rgba(var(--hx-primary-rgb),.12);
}
.hx-product-summary form.cart .quantity .qty,
.hx-product-summary .variations select{
  border-color:var(--hx-border);
  background:var(--hx-surface);
  color:var(--hx-ink);
  box-shadow:inset 0 0 0 1px transparent;
}
.hx-product-summary form.cart .quantity .qty:focus,
.hx-product-summary .variations select:focus{
  border-color:var(--hx-primary);
  outline:3px solid rgba(var(--hx-primary-rgb),.10);
}
.hx-product-summary .hxz-favorite-button--single-product{
  border-color:rgba(var(--hx-primary-rgb),.18);
  background:var(--hx-surface);
}
.hx-product-summary .hxz-favorite-button--single-product:hover{
  border-color:var(--hx-primary);
  background:var(--hx-primary-soft);
}
.hx-product-assurance{
  border-top-color:rgba(var(--hx-primary-rgb),.12);
}
.hx-product-assurance>div{
  border:1px solid rgba(var(--hx-primary-rgb),.08);
  background:var(--hx-surface-soft);
}
.hx-product-assurance .hx-icon{color:var(--hx-primary-dark)}

/* Gallery: neutral luxury framing, no competing tint behind colorful packaging. */
.hx-product-gallery .woocommerce-product-gallery{
  border-color:rgba(var(--hx-primary-rgb),.10);
  border-radius:26px;
  box-shadow:0 22px 60px rgba(43,31,35,.06);
}
.hx-product-gallery .woocommerce-product-gallery__image{
  background:#fff;
}
.hx-product-gallery .flex-control-thumbs img{
  border-color:var(--hx-border);
  background:#fff;
}
.hx-product-gallery .flex-control-thumbs img.flex-active{
  border-color:var(--hx-primary);
  box-shadow:0 0 0 2px rgba(var(--hx-primary-rgb),.08);
}
.hx-product-gallery .onsale,
.woocommerce span.onsale{
  background:var(--hx-primary-dark);
  color:#fff;
  box-shadow:none;
}

/* Editorial, pill-like product tabs rather than the default WooCommerce treatment. */
.hx-product-details{padding-top:.35rem}
.hx-product-details .woocommerce-tabs,
.hx-product-details .hxz-product-profile,
.hx-product-details .related.products,
.hx-product-details .upsells.products{
  border-color:rgba(var(--hx-primary-rgb),.10);
  border-radius:24px;
  box-shadow:0 14px 40px rgba(43,31,35,.045);
}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs{
  width:max-content;
  max-width:100%;
  gap:.25rem;
  margin-bottom:1.35rem;
  padding:.3rem;
  border:0;
  border-radius:999px;
  background:var(--hx-surface-soft);
}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li a{
  padding:.58rem .9rem;
  border:0;
  border-radius:999px;
  color:var(--hx-muted);
}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs li.active a{
  border:0;
  background:var(--hx-surface);
  color:var(--hx-primary-dark);
  box-shadow:0 4px 14px rgba(43,31,35,.07);
}
.hx-product-details .hxz-product-profile{
  background:var(--hx-surface-soft);
}
.hx-product-details .hxz-product-profile dl div{
  border:1px solid rgba(var(--hx-primary-rgb),.08);
  background:rgba(255,255,255,.9);
}
.hx-product-details #review_form_wrapper{border:1px solid rgba(var(--hx-primary-rgb),.08);background:var(--hx-surface-soft)}

/* Cart / checkout / account controls should not re-introduce WooCommerce purple. */
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input{
  border-color:var(--hx-border);
  border-radius:10px;
  background:var(--hx-surface);
  color:var(--hx-ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wc-block-components-text-input input:focus{
  border-color:var(--hx-primary);
  box-shadow:0 0 0 3px rgba(var(--hx-primary-rgb),.10);
  outline:0;
}
.woocommerce input[type=checkbox],
.woocommerce input[type=radio],
.wc-block-components-checkbox input,
.wc-block-components-radio-control input{accent-color:var(--hx-primary)}

/* Remove one historical blue accent from showcase cards. */
.hx-showcase-card__content p{color:var(--hx-primary-dark)}

@media(max-width:680px){
  .woocommerce-message .button,.woocommerce-info .button{float:none;display:inline-flex;margin:.65rem 0 0}
  .woocommerce-message,.woocommerce-info{padding:1rem 2.8rem 1rem 1rem}
  .hx-product-summary,.hx-product-gallery .woocommerce-product-gallery{border-radius:20px}
  .woocommerce .hx-product-details .woocommerce-tabs ul.tabs{width:100%;border-radius:16px}
}

/* 3.4.3 — simplified customer account addresses; no raw WooCommerce address UX. */
.hx-account-addresses{display:grid;gap:1rem}
.hx-account-addresses__intro{display:grid;grid-template-columns:48px minmax(0,1fr);gap:1rem;align-items:start;padding:1rem 1.1rem;border:1px solid color-mix(in srgb,var(--hx-primary) 20%,var(--hx-border));border-radius:16px;background:color-mix(in srgb,var(--hx-primary) 5%,#fff)}
.hx-account-addresses__intro-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;color:var(--hx-primary);box-shadow:0 8px 24px rgba(var(--hx-primary-dark-rgb),.08)}
.hx-account-addresses__intro-icon .hx-icon{width:22px;height:22px}
.hx-account-addresses__intro h2{margin:0 0 .35rem;font-size:1.08rem}
.hx-account-addresses__intro p{margin:.2rem 0;color:var(--hx-muted);line-height:1.9}
.hx-account-addresses__intro strong{color:var(--hx-ink)}
.hx-account-addresses__hint{font-size:.86rem}
.woocommerce-account .hx-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0}
.woocommerce-account .hx-address-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:1px solid var(--hx-border);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 12px 34px rgba(var(--hx-primary-dark-rgb),.045)}
.woocommerce-account .hx-address-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1rem .9rem;border-bottom:1px solid var(--hx-border)}
.hx-address-card__title-wrap{display:flex;align-items:flex-start;gap:.75rem;min-width:0}
.hx-address-card__badge{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:11px;background:var(--hx-primary);color:#fff;font-size:.82rem;font-weight:900}
.woocommerce-account .hx-address-card__head h3{margin:0;font-size:1rem}
.woocommerce-account .hx-address-card__head p{margin:.25rem 0 0;color:var(--hx-muted);font-size:.78rem;line-height:1.7}
.woocommerce-account .hx-address-card__edit{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:38px;padding:.45rem .7rem;border:1px solid var(--hx-border);border-radius:10px;background:var(--hx-surface-soft);color:var(--hx-primary-dark);font-size:.78rem;font-weight:850;text-decoration:none}
.woocommerce-account .hx-address-card__edit:hover{border-color:var(--hx-primary);background:#fff;color:var(--hx-primary)}
.hx-address-card__body{display:flex;flex:1;flex-direction:column;padding:1rem}
.woocommerce-account .hx-address-card address{margin:0;padding:0;color:var(--hx-text);font-style:normal;line-height:2.1}
.hx-address-card__empty{display:grid;gap:.8rem;align-content:start;min-height:110px}
.hx-address-card__empty p{margin:0;color:var(--hx-muted)}
.hx-address-card__empty .button{justify-self:start}
.hx-address-form{display:grid;gap:1rem}
.hx-address-form__heading{display:flex;align-items:flex-start;gap:.85rem;padding-bottom:1rem;border-bottom:1px solid var(--hx-border)}
.hx-address-form__heading h2{margin:0;font-size:1.2rem}
.hx-address-form__heading p{margin:.3rem 0 0;color:var(--hx-muted);line-height:1.8}
.hx-address-form__note{padding:.8rem .95rem;border-radius:12px;background:var(--hx-surface-soft);color:var(--hx-muted);font-size:.86rem;line-height:1.9}
.hx-address-form__note strong{color:var(--hx-ink)}
.woocommerce-account .hx-address-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}
.woocommerce-account .hx-address-fields .form-row{float:none;width:auto;margin:0;padding:0}
.woocommerce-account .hx-address-fields .form-row-wide,
.woocommerce-account .hx-address-fields #billing_address_1_field,
.woocommerce-account .hx-address-fields #billing_address_2_field,
.woocommerce-account .hx-address-fields #shipping_address_1_field,
.woocommerce-account .hx-address-fields #shipping_address_2_field{grid-column:1/-1}
.woocommerce-account .hx-address-fields label{display:block;margin:0 0 .35rem;color:var(--hx-ink);font-size:.82rem;font-weight:800}
.woocommerce-account .hx-address-fields .optional{color:var(--hx-muted);font-weight:500}
.woocommerce-account .hx-address-fields input.input-text,
.woocommerce-account .hx-address-fields select{width:100%;min-height:48px;background:#fff}
.woocommerce-account .hx-address-fields .select2-container{width:100%}
.woocommerce-account .hx-address-fields .select2-selection--single{height:48px;border:1px solid var(--hx-border);border-radius:10px;background:#fff}
.woocommerce-account .hx-address-fields .select2-selection__rendered{line-height:46px;padding-inline:.8rem 2rem}
.woocommerce-account .hx-address-fields .select2-selection__arrow{height:46px}
.hx-address-form__actions{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--hx-border)}
.hx-address-form__actions .button{min-height:44px}
.hx-address-form__back{display:inline-flex;align-items:center;min-height:44px;padding:.55rem .75rem;color:var(--hx-muted);font-weight:750;text-decoration:none}
.hx-address-form__back:hover{color:var(--hx-primary)}
@media(max-width:760px){
  .woocommerce-account .hx-address-grid{grid-template-columns:1fr}
  .woocommerce-account .hx-address-fields{grid-template-columns:1fr}
  .woocommerce-account .hx-address-fields .form-row{grid-column:1/-1}
  .hx-account-addresses__intro{grid-template-columns:1fr}
  .hx-account-addresses__intro-icon{width:42px;height:42px}
  .woocommerce-account .hx-address-card__head{flex-direction:column}
  .woocommerce-account .hx-address-card__edit{width:100%}
}

/* 3.5.0 — polished Persian shop controls, price filter and quieter favorites. */
.hx-catalog-sort{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.35rem .45rem .35rem .7rem;
  border:1px solid var(--hx-border);
  border-radius:12px;
  background:var(--hx-surface);
  box-shadow:0 6px 18px rgba(var(--hx-primary-rgb),.045);
}
.hx-catalog-sort__label{
  color:var(--hx-muted);
  font-size:.72rem;
  font-weight:750;
  white-space:nowrap;
}
.hx-catalog-sort .woocommerce-ordering{margin:0}
.hx-catalog-sort .woocommerce-ordering select{
  min-width:170px;
  min-height:36px;
  padding:.35rem .55rem;
  border:0;
  border-inline-start:1px solid var(--hx-border);
  border-radius:0;
  background-color:transparent;
  box-shadow:none;
  color:var(--hx-ink);
  font-size:.78rem;
  font-weight:750;
}
.hx-catalog-sort .woocommerce-ordering select:focus{
  outline:0;
  box-shadow:none;
}

/* WooCommerce price widget: actual slider, readable range and a calm CTA. */
.hx-shop-filters .widget_price_filter .price_slider_wrapper,
.hx-filter-widget .price_slider_wrapper{
  display:grid;
  gap:.9rem;
}
.hx-shop-filters .widget_price_filter .price_slider,
.hx-filter-widget .price_slider{
  position:relative;
  height:6px;
  margin:.8rem .55rem .3rem;
  border-radius:999px;
  background:var(--hx-border);
}
.hx-shop-filters .widget_price_filter .ui-slider-range,
.hx-filter-widget .ui-slider .ui-slider-range{
  position:absolute;
  z-index:1;
  height:100%;
  border-radius:999px;
  background:var(--hx-primary);
}
.hx-shop-filters .widget_price_filter .ui-slider-handle,
.hx-filter-widget .ui-slider .ui-slider-handle{
  position:absolute;
  z-index:2;
  top:50%;
  width:18px;
  height:18px;
  margin-top:-9px;
  margin-left:-9px;
  border:3px solid var(--hx-surface);
  border-radius:50%;
  background:var(--hx-primary);
  box-shadow:0 2px 8px rgba(var(--hx-primary-rgb),.28);
  cursor:grab;
}
.hx-shop-filters .widget_price_filter .ui-slider-handle:focus-visible,
.hx-filter-widget .ui-slider .ui-slider-handle:focus-visible{
  outline:3px solid rgba(var(--hx-primary-rgb),.16);
  outline-offset:2px;
}
.hx-shop-filters .widget_price_filter .price_slider_amount,
.hx-filter-widget .price_slider_amount{
  display:grid;
  grid-template-columns:1fr;
  gap:.7rem;
  text-align:initial;
}

.hx-shop-filters .widget_price_filter .price_slider_amount .clear,
.hx-filter-widget .price_slider_amount .clear{display:none}
.hx-shop-filters .widget_price_filter .price_label,
.hx-filter-widget .price_label{
  order:-1;
  padding:.65rem .7rem;
  border:1px solid var(--hx-border);
  border-radius:10px;
  background:var(--hx-surface-soft);
  color:var(--hx-ink);
  font-size:.72rem;
  line-height:1.8;
  text-align:center;
}
.hx-shop-filters .widget_price_filter .button,
.hx-filter-widget .price_slider_amount .button{
  float:none;
  width:100%;
  min-height:40px;
  margin:0;
  border:1px solid var(--hx-primary);
  border-radius:10px;
  background:var(--hx-primary);
  color:#fff;
  font:inherit;
  font-size:.76rem;
  font-weight:800;
}
.hx-shop-filters .widget_price_filter .button:hover,
.hx-filter-widget .price_slider_amount .button:hover{
  background:var(--hx-primary-dark);
  border-color:var(--hx-primary-dark);
}

/* Product favorite is secondary in the catalog: visible when useful, not dominant. */
.hx-catalog-card__inner .hxz-favorite-button--catalog-subtle{
  top:.55rem;
  inset-inline-end:.55rem;
  width:32px;
  height:32px;
  border-color:rgba(var(--hx-primary-rgb),.14);
  background:rgba(255,255,255,.84);
  color:var(--hx-muted);
  box-shadow:0 4px 12px rgba(32,25,23,.055);
  font-size:1rem;
  opacity:0;
  pointer-events:none;
  transform:none;
  backdrop-filter:blur(8px);
}
.hx-catalog-card__inner:hover .hxz-favorite-button--catalog-subtle,
.hx-catalog-card__inner:focus-within .hxz-favorite-button--catalog-subtle,
.hxz-favorite-button--catalog-subtle.is-active{
  opacity:1;
  pointer-events:auto;
}
.hx-catalog-card__inner .hxz-favorite-button--catalog-subtle:hover,
.hx-catalog-card__inner .hxz-favorite-button--catalog-subtle:focus-visible{
  opacity:1;
  border-color:var(--hx-primary);
  background:var(--hx-surface);
  color:var(--hx-primary);
  transform:none;
}
.hx-catalog-card__inner .hxz-favorite-button--catalog-subtle.is-active{
  background:var(--hx-primary);
  color:#fff;
}

@media(hover:none){
  .hx-catalog-card__inner .hxz-favorite-button--catalog-subtle{display:none}
}

@media(max-width:760px){
  .hx-catalog-sort{
    width:100%;
    justify-content:space-between;
  }
  .hx-catalog-sort .woocommerce-ordering{flex:1}
  .hx-catalog-sort .woocommerce-ordering select{width:100%;min-width:0}
}


/* 3.5.1 — true RTL catalog flow and a responsive Persian magazine. */

/* Shop: the toolbar belongs to the results, not to the middle of the page. */
.hx-catalog-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  min-height:0;
  margin:0 0 1.15rem;
  padding:1rem 1.05rem;
  border:1px solid var(--hx-border);
  border-radius:14px;
  background:var(--hx-surface);
  box-shadow:0 8px 24px rgba(var(--hx-primary-rgb),.045);
}
.hx-catalog-toolbar__summary{display:grid;gap:.18rem;min-width:0}
.hx-catalog-toolbar__summary .eyebrow{margin:0;color:var(--hx-primary);font-size:.68rem;font-weight:850}
.hx-catalog-toolbar__summary h2{margin:0;font-size:clamp(1.05rem,1.65vw,1.35rem)}
.hx-catalog-toolbar__summary .woocommerce-result-count{margin:.1rem 0 0;color:var(--hx-muted);font-size:.74rem;font-weight:600}
.hx-catalog-toolbar__actions{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex:0 0 auto}
.hx-catalog-toolbar .hx-filter-toggle{display:none}
.hx-catalog-sort{padding:.3rem .6rem .3rem .35rem;box-shadow:none}
.hx-catalog-sort__label{font-size:.7rem}
.hx-catalog-sort .woocommerce-ordering select{min-width:185px;direction:rtl;text-align:right}

/* Explicitly make auto-placed WooCommerce products start from the RTL edge. */
.woocommerce .hx-catalog-results ul.products,
.woocommerce-page .hx-catalog-results ul.products,
.hx-catalog-results .products{
  direction:rtl;
  grid-auto-flow:row;
}
.woocommerce .hx-catalog-results ul.products li.product,
.woocommerce-page .hx-catalog-results ul.products li.product,
.hx-catalog-results .hx-catalog-card{direction:rtl}

/* 3.5.2 — compact product gallery + readable product guide and review experience. */
.hx-product-overview{
  grid-template-columns:minmax(0,.78fr) minmax(360px,.88fr);
  gap:clamp(1.5rem,3.5vw,3.8rem);
}
.hx-product-gallery{
  width:100%;
  max-width:580px;
  justify-self:end;
}
.hx-product-gallery .woocommerce-product-gallery{
  padding:clamp(.65rem,1.2vw,1rem);
}
.hx-product-gallery .woocommerce-product-gallery__image a{
  height:clamp(330px,34vw,470px);
  min-height:0;
  padding:clamp(.6rem,1.2vw,1rem);
}
.hx-product-gallery .woocommerce-product-gallery__image img{
  width:auto;
  max-width:88%;
  height:auto;
  max-height:440px;
  margin-inline:auto;
}
.hx-product-gallery .flex-control-thumbs{grid-template-columns:repeat(5,minmax(0,72px));justify-content:center}

.hx-product-details__inner{gap:1rem}
.hx-product-details-intro{
  display:grid;
  gap:.3rem;
  max-width:760px;
  margin:0 0 .3rem auto;
}
.hx-product-details-intro span{color:var(--hx-primary);font-size:.76rem;font-weight:850}
.hx-product-details-intro h2{margin:0;color:var(--hx-ink);font-size:clamp(1.55rem,2.5vw,2.15rem);line-height:1.45}
.hx-product-details-intro p{margin:0;color:var(--hx-muted);font-size:.86rem;line-height:1.9}

/* Product guidance from Hair Xzed Core. */
.hx-product-details .hxz-product-profile{
  margin:0;
  padding:clamp(1.15rem,2.2vw,1.7rem);
  border:1px solid rgba(var(--hx-primary-rgb),.12);
  border-radius:22px;
  background:linear-gradient(145deg,var(--hx-surface-soft),#fff);
  box-shadow:0 12px 34px rgba(43,31,35,.04);
}
.hxz-product-profile__header{display:grid;gap:.25rem;margin-bottom:1rem}
.hxz-product-profile__header span{color:var(--hx-primary);font-size:.72rem;font-weight:850}
.hxz-product-profile__header h2{margin:0;font-size:clamp(1.3rem,2vw,1.75rem);line-height:1.5}
.hxz-product-profile__header p{margin:0;color:var(--hx-muted);font-size:.8rem;line-height:1.8}
.hx-product-details .hxz-product-profile dl{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.65rem;
  margin:0;
}
.hx-product-details .hxz-product-profile dl div{
  display:grid;
  gap:.28rem;
  min-width:0;
  padding:.85rem .9rem;
  border:1px solid rgba(var(--hx-primary-rgb),.08);
  border-radius:13px;
  background:rgba(255,255,255,.9);
}
.hx-product-details .hxz-product-profile dt{color:var(--hx-muted);font-size:.68rem;font-weight:700}
.hx-product-details .hxz-product-profile dd{margin:0;color:var(--hx-ink);font-size:.84rem;font-weight:850;line-height:1.7}
.hxz-product-care{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:.8rem}
.hxz-product-care__card{position:relative;overflow:hidden;padding:1rem 1.05rem;border:1px solid rgba(var(--hx-primary-rgb),.1);border-radius:15px;background:#fff}
.hxz-product-care__card::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--hx-primary);opacity:.72}
.hxz-product-care__card--warning{background:rgba(var(--hx-primary-rgb),.035)}
.hxz-product-care__label{display:flex;align-items:center;gap:.45rem;margin-bottom:.55rem;color:var(--hx-primary-dark);font-size:.86rem;font-weight:900}
.hxz-product-care__label::before{display:grid;place-items:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--hx-surface-soft);color:var(--hx-primary);font-size:.78rem}
.hxz-product-care__card--usage .hxz-product-care__label::before{content:"✓"}
.hxz-product-care__card--warning .hxz-product-care__label::before{content:"!"}
.hxz-product-care__text{color:var(--hx-ink);font-size:.84rem;line-height:2}
.hxz-product-care__text p{margin:.3rem 0}.hxz-product-care__text p:first-child{margin-top:0}.hxz-product-care__text p:last-child{margin-bottom:0}

/* WooCommerce tabs become clear, always-visible content sections. */
.hx-product-details .woocommerce-tabs{
  display:grid;
  gap:1rem;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.woocommerce .hx-product-details .woocommerce-tabs ul.tabs{display:none}
.hx-product-details .woocommerce-Tabs-panel,
.woocommerce .hx-product-details .woocommerce-Tabs-panel{
  display:block;
  margin:0;
  padding:clamp(1.15rem,2.2vw,1.7rem);
  border:1px solid rgba(var(--hx-primary-rgb),.1);
  border-radius:22px;
  background:#fff;
  color:var(--hx-ink);
  box-shadow:0 12px 34px rgba(43,31,35,.035);
}
.hx-product-details .woocommerce-Tabs-panel>h2:first-child{
  margin:0 0 .85rem;
  padding-bottom:.75rem;
  border-bottom:1px solid var(--hx-border);
  color:var(--hx-ink);
  font-size:clamp(1.25rem,2vw,1.65rem);
  line-height:1.5;
}
.hx-product-details .woocommerce-Tabs-panel--description{font-size:.9rem;line-height:2.15}
.hx-product-details .woocommerce-Tabs-panel--description p{width:100%;max-width:none}
.hx-product-details .woocommerce-Tabs-panel--description ul,
.hx-product-details .woocommerce-Tabs-panel--description ol{padding-inline-start:1.2rem;line-height:2}
.hx-product-details .woocommerce-Tabs-panel--additional_information table{margin:0;border:0}
.hx-product-details .woocommerce-Tabs-panel--additional_information table th,
.hx-product-details .woocommerce-Tabs-panel--additional_information table td{padding:.8rem .9rem;border:0;border-bottom:1px solid var(--hx-border);background:transparent;text-align:right}
.hx-product-details .woocommerce-Tabs-panel--additional_information table th{width:34%;color:var(--hx-muted);font-size:.78rem;font-weight:750}
.hx-product-details .woocommerce-Tabs-panel--additional_information table td{color:var(--hx-ink);font-size:.86rem;font-weight:800}

/* Reviews: separate existing reviews from the form, remove old WooCommerce floats. */
.hx-product-details #reviews{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
  align-items:start;
}
.hx-product-details #comments,
.hx-product-details #review_form_wrapper{
  float:none;
  width:auto;
  min-width:0;
}
.hx-product-details #comments{padding:0}
.hx-product-details .woocommerce-Reviews-title{margin:0 0 .9rem;color:var(--hx-ink);font-size:clamp(1.15rem,1.8vw,1.45rem);line-height:1.6}
.hx-product-details .commentlist{display:grid;gap:.7rem;margin:0;padding:0}
.hx-product-details .commentlist>li{margin:0;padding:0;border:0}
.hx-product-details .commentlist .comment_container{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:.7rem;
  align-items:start;
}
.hx-product-details .commentlist img.avatar{
  position:static;
  float:none;
  width:46px;
  height:46px;
  margin:0;
  padding:0;
  border:1px solid var(--hx-border);
  border-radius:50%;
  object-fit:cover;
  background:var(--hx-surface-soft);
}
.hx-product-details .comment-text{
  margin:0;
  padding:.9rem 1rem;
  border:1px solid var(--hx-border);
  border-radius:14px;
  background:var(--hx-surface-soft);
}
.hx-product-details .comment-text .star-rating{float:none;margin:0 0 .45rem;color:var(--hx-accent)}
.hx-product-details .comment-text .meta{margin:0 0 .45rem;color:var(--hx-muted);font-size:.72rem}
.hx-product-details .comment-text .description{font-size:.84rem;line-height:1.95}
.hx-product-details #review_form_wrapper{
  position:static;
  padding:1rem 1.05rem;
  border:1px solid rgba(var(--hx-primary-rgb),.1);
  border-radius:16px;
  background:var(--hx-surface-soft);
}
.hx-product-details #review_form #reply-title{display:block;margin:0 0 .3rem;color:var(--hx-ink);font-size:1.05rem;font-weight:900}
.hx-product-details #review_form .comment-notes{color:var(--hx-muted);font-size:.75rem;line-height:1.8}
.hx-product-details #review_form label{display:block;margin-bottom:.35rem;color:var(--hx-ink);font-size:.76rem;font-weight:800}
.hx-product-details #review_form p{margin:.75rem 0}
.hx-product-details #review_form p.stars{margin:.35rem 0 .85rem}
.hx-product-details #review_form p.stars a{color:var(--hx-primary)}
.hx-product-details #review_form textarea,
.hx-product-details #review_form input[type=text],
.hx-product-details #review_form input[type=email]{
  width:100%;
  min-height:46px;
  border:1px solid var(--hx-border);
  border-radius:11px;
  background:#fff;
  padding:.7rem .8rem;
  color:var(--hx-ink);
  font:inherit;
}
.hx-product-details #review_form textarea{min-height:130px;resize:vertical}
.hx-product-details #review_form textarea:focus,
.hx-product-details #review_form input:focus{outline:0;border-color:var(--hx-primary);box-shadow:0 0 0 3px rgba(var(--hx-primary-rgb),.08)}
.hx-product-details #review_form .form-submit{margin-bottom:0}
.hx-product-details #review_form .submit{width:100%;min-height:46px;border:0;border-radius:11px;background:var(--hx-primary);color:#fff;font:inherit;font-weight:850;cursor:pointer}
.hx-product-details #review_form .submit:hover{background:var(--hx-primary-dark)}

@media(max-width:980px){
  .hx-product-overview{grid-template-columns:minmax(0,.78fr) minmax(320px,.88fr);gap:1.25rem}
  .hx-product-gallery{max-width:520px}
  .hx-product-gallery .woocommerce-product-gallery__image a{height:360px}
  .hx-product-gallery .woocommerce-product-gallery__image img{max-height:330px}
  .hx-product-details .hxz-product-profile dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hx-product-details #reviews{grid-template-columns:1fr}
  .hx-product-details #review_form_wrapper{position:static}
}
@media(max-width:760px){
  .hx-product-gallery{max-width:none;justify-self:stretch}
  .hx-product-gallery .woocommerce-product-gallery__image a{height:clamp(270px,78vw,340px);min-height:0}
  .hx-product-gallery .woocommerce-product-gallery__image img{max-width:92%;max-height:315px}
  .hx-product-details-intro{margin-inline:0}
  .hx-product-details .hxz-product-profile dl,.hxz-product-care{grid-template-columns:1fr}
  .hx-product-details .woocommerce-Tabs-panel,.woocommerce .hx-product-details .woocommerce-Tabs-panel{padding:1rem;border-radius:17px}
}
@media(max-width:480px){
  .hx-product-gallery .woocommerce-product-gallery__image a{height:260px}
  .hx-product-gallery .woocommerce-product-gallery__image img{max-height:235px}
  .hx-product-gallery .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,64px));gap:.4rem}
  .hx-product-details .commentlist .comment_container{grid-template-columns:38px minmax(0,1fr);gap:.55rem}
  .hx-product-details .commentlist img.avatar{width:38px;height:38px}
}


/* 3.5.3 — reviews use a single readable flow instead of a permanent 50/50 split. */
.hx-product-details #reviews{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
  align-items:start;
}
.hx-product-details #comments{
  width:100%;
  max-width:none;
  padding:0;
}
.hx-product-details #comments .woocommerce-noreviews{
  margin:0;
  padding:.85rem 1rem;
  border:1px solid rgba(var(--hx-primary-rgb),.09);
  border-radius:12px;
  background:var(--hx-surface-soft);
  color:var(--hx-muted);
  font-size:.82rem;
  line-height:1.9;
}
.hx-product-details #review_form_wrapper{
  position:static;
  width:min(100%,760px);
  max-width:760px;
  margin-inline:auto;
  padding:clamp(1rem,2vw,1.35rem);
}
.hx-product-details #review_form{width:100%}
.hx-product-details #review_form #respond{width:100%;margin:0}
.hx-product-details #review_form .comment-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem .85rem;
}
.hx-product-details #review_form .comment-form>p{margin:0}
.hx-product-details #review_form .comment-notes,
.hx-product-details #review_form .comment-form-rating,
.hx-product-details #review_form .comment-form-comment,
.hx-product-details #review_form .comment-form-cookies-consent,
.hx-product-details #review_form .form-submit,
.hx-product-details #review_form .logged-in-as{grid-column:1/-1}
.hx-product-details #review_form .comment-form-author,
.hx-product-details #review_form .comment-form-email{grid-column:auto}
.hx-product-details #review_form .comment-form-cookies-consent{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  color:var(--hx-muted);
  font-size:.73rem;
  line-height:1.8;
}
.hx-product-details #review_form .comment-form-cookies-consent input{margin-top:.35rem;flex:0 0 auto}
@media(max-width:640px){
  .hx-product-details #review_form_wrapper{max-width:none}
  .hx-product-details #review_form .comment-form{grid-template-columns:1fr}
  .hx-product-details #review_form .comment-form>p{grid-column:1/-1}
}


/* 3.5.4 — guest review form hardening + truly full-width product description. */
.hx-product-details .woocommerce-Tabs-panel--description,
.hx-product-details .woocommerce-Tabs-panel--description .woocommerce-product-details__short-description,
.hx-product-details .woocommerce-Tabs-panel--description > div,
.hx-product-details .woocommerce-Tabs-panel--description p,
.hx-product-details .woocommerce-Tabs-panel--description ul,
.hx-product-details .woocommerce-Tabs-panel--description ol,
.hx-product-details .woocommerce-Tabs-panel--description blockquote{
  width:100%;
  max-width:none;
}
.hx-product-details .woocommerce-Tabs-panel--description p{
  margin-inline:0;
}

/* The global form input rule intentionally makes text fields full-width, but
   WooCommerce's guest-review cookie checkbox is not a text field. Reset it. */
.hx-product-details #review_form .comment-form-cookies-consent{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  justify-content:flex-start;
  gap:.65rem;
  width:100%;
  min-width:0;
  margin-top:.15rem;
  padding:.8rem .9rem;
  border:1px solid rgba(var(--hx-primary-rgb),.08);
  border-radius:11px;
  background:rgba(255,255,255,.72);
}
.hx-product-details #review_form .comment-form-cookies-consent input[type="checkbox"]{
  appearance:auto;
  -webkit-appearance:auto;
  display:block;
  flex:0 0 18px;
  width:18px;
  min-width:18px;
  max-width:18px;
  height:18px;
  min-height:18px;
  max-height:18px;
  margin:.18rem 0 0;
  padding:0;
  border:0;
  border-radius:4px;
  box-shadow:none;
  accent-color:var(--hx-primary);
}
.hx-product-details #review_form .comment-form-cookies-consent label{
  display:block;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  color:var(--hx-muted);
  font-size:.76rem;
  font-weight:650;
  line-height:1.9;
  text-align:right;
}

/* Guest fields stay compact and predictable regardless of WooCommerce floats. */
.hx-product-details #review_form .comment-form-author,
.hx-product-details #review_form .comment-form-email{
  float:none;
  width:auto;
  min-width:0;
}
.hx-product-details #review_form .comment-form-author input,
.hx-product-details #review_form .comment-form-email input{
  display:block;
  width:100%;
}

@media(max-width:640px){
  .hx-product-details #review_form .comment-form-cookies-consent{
    gap:.55rem;
    padding:.75rem .8rem;
  }
}

/* Final responsive commerce hierarchy. These rules intentionally live after
   the WooCommerce overrides so mobile states cannot be undone by base rules. */
.hx-product-summary .product_title{font-size:clamp(1.9rem,2.9vw,2.9rem);line-height:1.28;letter-spacing:normal}
.account-shell__intro h1{font-size:clamp(1.8rem,2.7vw,2.4rem);line-height:1.3}
@media(max-width:980px){
  .hx-catalog-toolbar .hx-filter-toggle{display:inline-flex}
}
@media(max-width:720px){
  .hx-catalog-toolbar{align-items:stretch;flex-direction:column;padding:.85rem}
  .hx-catalog-toolbar__actions{width:100%;align-items:stretch;display:grid;grid-template-columns:auto minmax(0,1fr)}
  .hx-catalog-sort{width:100%;justify-content:space-between}
  .hx-catalog-sort .woocommerce-ordering{flex:1}
  .hx-catalog-sort .woocommerce-ordering select{width:100%;min-width:0}
}
@media(max-width:640px){
  .hx-product-summary .product_title{font-size:clamp(1.75rem,7vw,2.25rem)}
  .account-shell__intro h1{font-size:clamp(1.7rem,6.5vw,2.1rem)}
}
@media(max-width:430px){
  .hx-catalog-toolbar__actions{grid-template-columns:1fr}
  .hx-catalog-sort{display:grid;grid-template-columns:auto minmax(0,1fr)}
}
