/* Allexys v4.0.24 — correção de contraste em componentes que ainda herdavam texto claro.
   Carregue APÓS light-only.css. Não interfere no funcionamento do checkout. */
html{color-scheme:light!important}
/* O produto real anteriormente não carregava light-only.css; reforçar o controle de quantidade */
html[data-theme="light"] body.product-cinematic .buy-row .qty-control{display:grid!important;grid-template-columns:42px 48px 42px!important;gap:0!important;align-items:stretch!important;background:#fff!important;border:1px solid #b8a6cc!important;border-radius:11px!important;opacity:1!important;box-shadow:none!important;overflow:hidden}
html[data-theme="light"] body.product-cinematic .buy-row .qty-control button[data-qty-minus],
html[data-theme="light"] body.product-cinematic .buy-row .qty-control button[data-qty-plus]{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;min-width:42px!important;height:49px!important;min-height:49px!important;margin:0!important;padding:0!important;background:#eae2f3!important;color:#382450!important;-webkit-text-fill-color:#382450!important;border:none!important;border-radius:0!important;opacity:1!important;font-size:20px!important;font-weight:900!important;visibility:visible!important}
html[data-theme="light"] body.product-cinematic .buy-row .qty-control #productQty{display:block!important;box-sizing:border-box!important;width:48px!important;min-width:48px!important;height:49px!important;min-height:49px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#221930!important;-webkit-text-fill-color:#221930!important;text-align:center!important;line-height:49px!important;font-size:17px!important;font-weight:900!important;opacity:1!important;visibility:visible!important;box-shadow:none!important}
html[data-theme="light"] body.product-cinematic #addProductToCart{background:#533676!important;color:#fff!important;-webkit-text-fill-color:#fff!important;min-height:49px!important;border-color:#533676!important;opacity:1!important}
html[data-theme="light"] body.product-cinematic .variant-option :is(span,strong,.alx-volume-stock){opacity:1!important}
/* Inputs numéricos, preços e mensagens de cadastro */
html[data-theme="light"] body:not(.admin-page) :is(.cart-item-qty,.commerce-line-actions){color:#2e2540!important}
html[data-theme="light"] body:not(.admin-page) :is(.cart-item-qty,.commerce-line-actions) :is(button,span,input){opacity:1!important;-webkit-text-fill-color:currentColor}
html[data-theme="light"] body.commerce-checkout .commerce-line-actions :is(button,span){color:#342448!important;background:#f2ecf8!important;border-color:#cec1dc!important}
html[data-theme="light"] body.commerce-checkout :is(.commerce-primary,.commerce-choice.active){opacity:1!important}
html[data-theme="light"] body:not(.admin-page) :is(.product-price,.card-price,.summary-total,.commerce-grand){opacity:1!important}
html[data-theme="light"] body.alx-account-page :is(.alx-order-card,.alx-order-focus,.alx-account-card){color:#29243a!important}
html[data-theme="light"] body.alx-account-page :is(.alx-order-card h3,.alx-order-card strong,.alx-order-focus h2,.alx-order-focus strong){color:#282238!important}
/* Admin: botões claros com textos escuros e ações primárias intencionalmente escuras. */
html[data-theme="light"] body.admin-page .admin-modal :is(.modal-head,.section-kicker,.variant-card-head,.variant-main-field){color:#372b49!important}
html[data-theme="light"] body.admin-page .admin-modal :is(input:not([type="checkbox"]),select,textarea){opacity:1!important;color:#272039!important;-webkit-text-fill-color:#272039!important}
html[data-theme="light"] body.admin-page .admin-modal :is(button.admin-btn.ghost,.variant-move,.remove-repeat){color:#403052!important}
html[data-theme="light"] body.admin-page .admin-modal .admin-btn.primary{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#543676!important;border-color:#543676!important}
html[data-theme="light"] body.admin-page .admin-modal :is(.variant-shipping-status,.promo-admin-status){opacity:1!important}
@media(max-width:520px){html[data-theme="light"] body.product-cinematic .buy-row .qty-control{grid-template-columns:38px 43px 38px!important}html[data-theme="light"] body.product-cinematic .buy-row .qty-control button[data-qty-minus],html[data-theme="light"] body.product-cinematic .buy-row .qty-control button[data-qty-plus]{width:38px!important;min-width:38px!important}html[data-theme="light"] body.product-cinematic .buy-row .qty-control #productQty{width:43px!important;min-width:43px!important}}

/* ===========================================================================
   ALLEXYS 4.0.25 — Auditoria de alinhamento (vitrine, loja, conta e Studio).
   Os estilos abaixo são exclusivamente de apresentação. Nenhuma regra de
   estoque, preço, publicação, cadastro ou pagamento foi alterada.
   =========================================================================== */

/* A largura dos componentes não pode empurrar colunas ou provocar cortes. */
body:not(.admin-page) :is(.catalog-page-main,.catalog-page-section,.catalog-page-toolbar,
  .catalog-group-copy,.category-showcase-copy,.category-showcase-actions,
  .product-grid,.product-card,.product-body,.product-meta,
  .commerce-layout,.commerce-main,.commerce-aside,.commerce-panel,
  .alx-account-dashboard,.alx-account-main,.alx-account-sidebar){min-width:0}

/* Produtos: um único padrão para a home Boutique Noir, coleções e catálogo. */
body:not(.admin-page) .product-grid > .product-card,
body.alx-boutique .product-grid > .product-card,
body:not(.admin-page) .collection-products .product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  container-type:inline-size;
}
body:not(.admin-page) .product-card .product-body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-width:0;
  width:100%;
}
body:not(.admin-page) .product-card .product-meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  line-height:1.45;
}
body:not(.admin-page) .product-card .product-meta > span{min-width:0;overflow-wrap:anywhere}
body:not(.admin-page) .product-card .product-meta > span:last-child{text-align:right;flex:0 1 auto}
body:not(.admin-page) .product-card .product-body > h3{
  min-width:0;
  overflow-wrap:break-word;
  line-height:1.15!important;
}
body:not(.admin-page) .product-card .product-body > p{
  overflow-wrap:break-word;
  margin-bottom:15px;
  min-height:2.9em;
}

/* Cada volume ocupa uma linha inteira, com preço e disponibilidade em colunas.
   O formato pequeno coloca a disponibilidade abaixo do preço, sem esmagar texto. */
body:not(.admin-page) .product-card .card-variants{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  width:100%;
  min-width:0;
  margin-top:auto;
}
body:not(.admin-page) .product-card .card-variants > .card-variant{
  display:grid!important;
  grid-template-columns:minmax(45px,.7fr) minmax(0,1fr);
  grid-template-areas:'volume price' 'volume stock';
  align-items:center;
  gap:3px 10px;
  width:100%;
  min-width:0;
  padding:11px 12px!important;
  margin:0!important;
  border:1px solid #e7e1ed!important;
  border-radius:11px!important;
  background:#faf8fc!important;
  color:#332a40!important;
  box-sizing:border-box;
}
body:not(.admin-page) .product-card .card-variant-volume{
  grid-area:volume;
  display:block;
  color:#514461!important;
  font-size:11px!important;
  font-weight:800;
  line-height:1.3;
  white-space:normal;
  overflow-wrap:anywhere;
}
body:not(.admin-page) .product-card .card-variant-price{
  grid-area:price;
  display:flex;
  justify-content:flex-end;
  align-items:baseline;
  flex-wrap:wrap;
  gap:3px 7px;
  min-width:0;
  text-align:right;
}
body:not(.admin-page) .product-card .card-variant-price > strong{
  color:#332446!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.3;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
body:not(.admin-page) .product-card .card-variant-price > del{
  color:#847b8c!important;
  font-size:10px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
body:not(.admin-page) .product-card .card-variant > .alx-card-stock{
  grid-area:stock;
  display:inline-flex;
  align-items:center;
  justify-self:end;
  justify-content:center;
  width:max-content;
  max-width:100%;
  min-height:22px;
  padding:3px 7px;
  border:1px solid #d6e8de;
  border-radius:7px;
  color:#216449!important;
  background:#eff9f2!important;
  font-size:10px!important;
  font-weight:750;
  line-height:1.25;
  text-align:center;
  overflow-wrap:break-word;
}
body:not(.admin-page) .product-card .card-variant > .alx-card-stock.is-ready{
  color:#225d4a!important;
  background:#edf8f2!important;
  border-color:#cde5d7;
}
body:not(.admin-page) .product-card .card-variant-promo{
  grid-column:1/-1;
  display:block;
  min-width:0;
  border-top:1px dashed #e7cfdf;
  padding-top:6px;
  margin-top:3px;
  color:#914d73!important;
  text-transform:none;
  font-style:normal;
  font-size:10px;
  font-weight:750;
  text-align:right;
}
body:not(.admin-page) .product-card .card-variant.has-promo{
  border-color:#e9d3e0!important;
  background:#fff8fb!important;
}
body:not(.admin-page) .product-card .card-variant.has-promo .card-variant-price>strong{color:#81365f!important}
body:not(.admin-page) .product-card .card-variant-more{
  align-self:flex-start;
  color:#695b7b!important;
  font-size:11px;
  font-weight:700;
}
/* A home exibe até duas apresentações nas coleções, como antes. */
body:not(.admin-page) .collection-products .card-variants > .card-variant:nth-child(n+3){display:none!important}

/* O botão fica no rodapé de todos os cards da mesma linha. */
body:not(.admin-page) .product-card .card-action{
  margin-top:17px!important;
  min-height:42px;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-shrink:0;
}
body:not(.admin-page) .product-card .card-action b{line-height:1}

/* Cards suficientemente largos comportam três colunas numa linha só. */
@container (min-width:355px){
  body:not(.admin-page) .product-card .card-variants > .card-variant{
    grid-template-columns:minmax(48px,.58fr) minmax(82px,1fr) max-content;
    grid-template-areas:'volume price stock';
    column-gap:10px;
    padding:12px 13px!important;
  }
  body:not(.admin-page) .product-card .card-variant-price{justify-content:center;text-align:center}
}

/* Cores discretamente adequadas ao padrão editorial da home Boutique Noir. */
body.alx-boutique .product-card .card-variants > .card-variant{
  border-color:#e4d8ce!important;
  border-radius:9px!important;
  background:#fbf8f5!important;
}
body.alx-boutique .product-card .card-variant-volume{color:#655348!important}
body.alx-boutique .product-card .card-variant-price > strong{color:#3a302d!important}

/* Barra de pesquisa, filtros, metadados e títulos em layouts apertados. */
.catalog-page-toolbar > .search-field{min-width:min(100%,250px);min-height:48px}
.catalog-page-toolbar > .search-field input{min-width:0}
.catalog-page-toolbar .catalog-sort{min-width:0}
.catalog-page-toolbar .catalog-sort select{max-width:100%;width:100%;min-width:0}
.catalog-filter-groups,.catalog-filter-categories{min-width:0}
.catalog-filter-groups > a,.catalog-filter-categories > a{max-width:100%;text-align:center;overflow-wrap:anywhere}
.catalog-page-count{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.category-showcase-head,.catalog-group-head{min-width:0}
.category-showcase-actions a{max-width:100%;text-align:center}

/* Páginas de compra e conta: valores não colam nem escapam dos cartões. */
body.commerce-checkout :is(.commerce-layout,.commerce-aside,.commerce-panel,.commerce-line-details,.commerce-choice span){min-width:0}
body.commerce-checkout .commerce-line>strong,
body.commerce-checkout :is(.commerce-grand strong,.commerce-summary dd){font-variant-numeric:tabular-nums;text-align:right}
body.commerce-checkout .commerce-summary dl > div{align-items:baseline}
body.commerce-checkout .commerce-summary dl dd{min-width:0;overflow-wrap:anywhere}
body.commerce-checkout .commerce-panel-heading > div{min-width:0}
body.commerce-checkout .commerce-inline > input{min-width:0}
body.alx-account-page .alx-account-mini-stats > div{min-width:0}
body.alx-account-page .alx-account-mini-stats strong{overflow-wrap:anywhere}
body.alx-account-page :is(.alx-order-card-top,.alx-order-card-footer,.alx-order-focus-head){min-width:0}

/* Admin: os botões e campos mantêm dimensões previsíveis, sem cortar o texto. */
body.alx-admin-redesign :is(.studio-topbar,.studio-heading,.studio-topbar .alx-header-actions,
  .panel,.table-panel,.admin-card,.admin-modal .modal-box,.modal-head,
  .modal-actions,.form-grid,.variant-card,.variant-card-head){min-width:0}
body.alx-admin-redesign .studio-topbar{flex-wrap:wrap}
body.alx-admin-redesign .studio-topbar .alx-header-actions{flex-wrap:wrap}
body.alx-admin-redesign .admin-modal .modal-actions{gap:9px}
body.alx-admin-redesign .admin-modal .form-grid > *{min-width:0}
body.alx-admin-redesign .table-panel{overflow-x:auto}
body.alx-admin-redesign .table-panel :is(th,td){vertical-align:middle}

/* Tablet / celular: nenhuma ação importante depende de espaço horizontal fixo. */
@media(max-width:840px){
  .catalog-page-toolbar{align-items:stretch}
  .catalog-page-toolbar > .search-field{flex:1 1 100%}
  .catalog-page-toolbar .catalog-sort{flex:1 1 190px}
  .catalog-page-toolbar > .btn{align-self:end}
  body.commerce-checkout .commerce-line>strong{justify-self:end;text-align:right}
  body.alx-account-page .alx-account-mini-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  .catalog-page-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  .catalog-page-toolbar > .search-field,.catalog-page-toolbar .catalog-sort,
  .catalog-page-toolbar > .btn{width:100%;min-width:0;flex:none}
  .catalog-page-toolbar > .btn{justify-self:stretch}
  .catalog-filter-groups{padding:10px!important;gap:7px!important}
  .catalog-filter-categories{gap:7px!important}
  body.commerce-checkout .commerce-line{grid-template-columns:72px minmax(0,1fr)}
  body.commerce-checkout .commerce-line>strong{grid-column:2}
  body.commerce-checkout .commerce-inline{flex-wrap:wrap}
  body.commerce-checkout .commerce-inline .commerce-secondary{flex:0 0 auto}
  body.commerce-checkout .commerce-panel-heading{align-items:flex-start;gap:11px}
  body.commerce-checkout .commerce-step{width:37px;height:37px}
  body.alx-account-page .alx-account-mini-stats{grid-template-columns:1fr 1fr}
  body.alx-account-page :is(.alx-order-card-top,.alx-order-card-footer){flex-wrap:wrap}
  body.alx-admin-redesign .admin-modal .form-grid.two,
  body.alx-admin-redesign .admin-modal .form-grid.three{grid-template-columns:minmax(0,1fr)}
  body.alx-admin-redesign .admin-modal .modal-actions > button{min-height:40px}
}
@media(max-width:380px){
  body.commerce-checkout .commerce-inline > input{flex-basis:100%}
  body.commerce-checkout .commerce-inline > button{flex:1 1 100%}
  body.alx-account-page .alx-account-mini-stats{grid-template-columns:1fr}
}
