/* Alluzzi — Design System | Aplicativo marketplace/PWA
 * Camada visual incremental: preserva eventos, formulários, rotas e lógica legados.
 * Fonte em public_html/assets/brand/alluzzi, instalada separadamente no servidor.
 */
@font-face{font-family:'Alluzzi Overpass';src:local('Overpass'),url('../brand/alluzzi/Overpass-Regular.ttf') format('truetype'),url('../brand/alluzzi/Overpass_Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Alluzzi Overpass';src:local('Overpass Bold'),url('../brand/alluzzi/Overpass-Bold.ttf') format('truetype'),url('../brand/alluzzi/Overpass_Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root {
  --al-cabernet:#26060E;
  --al-burgundy:#3E0C17;
  --al-ruby:#6B192A;
  --al-ivory:#F5F1EE;
  --al-dust:#E6DAD6;
  --al-metal:#B69B92;
  --bg:#F5F1EE;
  --fg:#26060E;
  --card:#FFFEFC;
  --border:#EAE0DC;
  --border-input:#DECFC9;
  --body:#5A4549;
  --muted:#988A89;
  --muted-dark:#776367;
  --muted-light:#B6A5A7;
  --secondary:#F0E9E5;
  --accent:#6B192A;
  --purple:#84384A;
  --purple-bg:#F7E8EB;
  --danger:#C43D4D;
  --danger-bg:#FFF0F0;
  --danger-border:#F5C7CC;
}
html,body,button,input,select,textarea{font-family:'Alluzzi Overpass',Overpass,'Segoe UI',Arial,sans-serif}
html,body{background:#E8E0DC}
body{color:var(--fg);letter-spacing:.002em}
.app-shell{background:var(--bg);box-shadow:0 8px 44px rgba(38,6,14,.08)}
.app-main{background:var(--bg);padding-bottom:calc(107px + env(safe-area-inset-bottom));}
/* Cabeçalho da marca — usa PNG original recortado apenas nas margens transparentes. */
.app-header{background:rgba(255,254,252,.94);border-bottom:1px solid var(--border);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);height:59px;padding:0 15px;box-shadow:0 4px 17px rgba(62,12,23,.025)}
.alluzzi-brand{display:inline-flex!important;align-items:center;justify-content:flex-start;flex:0 0 auto;width:130px;min-height:44px;letter-spacing:normal!important}
.alluzzi-brand .alluzzi-brand-logo{width:123px;max-height:38px;object-fit:contain;object-position:left center;display:block}
.alluzzi-brand .alluzzi-brand-logo-dark{display:none}
.header-actions{gap:2px!important}
.header-action{color:var(--al-burgundy);border-radius:12px;min-width:34px;min-height:36px}
.header-action:hover,.header-action:focus-visible{background:#F2E7E4}
.header-action .mini-count{background:var(--al-ruby);color:#fff;border:1px solid #fff}
.alluzzi-icon{display:inline-block;flex:0 0 auto;width:22px;height:22px;object-fit:contain;vertical-align:middle}
.alluzzi-icon--dark{display:none}
.header-action .alluzzi-icon{width:21px;height:21px}
/* Alternância comprar / vender sem alterar links funcionais. */
.mode-switch{top:59px;background:rgba(255,254,252,.96);border-color:var(--border);min-height:52px;gap:5px;padding:8px 13px}
.mode-switch a{background:#F4EFEB;color:#776266;min-height:36px;border-radius:13px;font-size:11px;letter-spacing:.005em;font-weight:700;padding:9px 6px;transition:background .2s,color .2s}
.mode-switch a.active{background:var(--al-burgundy);color:var(--al-ivory);box-shadow:0 3px 12px rgba(62,12,23,.15)}
.mode-switch .mode-emoji{display:inline-flex;align-items:center;justify-content:center}
.mode-switch .mode-emoji .alluzzi-icon{width:17px;height:17px}
.mode-switch a.active .mode-emoji .alluzzi-icon{filter:brightness(0) invert(1)}
/* Navegação premium: indicador de seleção discreto e legível. */
.bottom-nav{z-index:45!important;background:rgba(255,254,252,.91)!important;border:1px solid rgba(118,87,90,.15)!important;border-radius:22px!important;box-shadow:0 12px 42px rgba(46,11,21,.18),inset 0 1px 0 rgba(255,255,255,.75)!important;backdrop-filter:blur(25px) saturate(165%);-webkit-backdrop-filter:blur(25px) saturate(165%);bottom:9px!important}
.bottom-nav-inner{min-height:62px!important;padding:6px 5px!important;gap:2px}
.bottom-nav a{min-height:51px!important;min-width:0!important;flex:1;padding:7px 3px!important;color:#988A89!important;border-radius:16px!important;font-size:10px!important;gap:3px!important;font-weight:600!important}
.bottom-nav a.active{color:var(--al-burgundy)!important;background:#F3E8E6!important}
.bottom-nav a.active .ico{stroke-width:2.1}
.bottom-nav a:focus-visible,.mode-switch a:focus-visible{outline:2px solid var(--al-ruby);outline-offset:2px}
/* Pesquisa e navegação do início. */
.home-search-row{padding:13px 16px 10px!important}
.search-field{height:46px;border:1px solid var(--border-input);background:#FFFEFC;border-radius:14px;box-shadow:0 3px 10px rgba(45,12,23,.035)}
.search-input{height:44px;font-size:13px}
.search-input::placeholder{color:#A39090}
.filter-circle{width:45px;height:45px;background:#FFFEFC;border:1px solid var(--border-input);border-radius:14px;color:var(--al-burgundy)}
.search-suggest-panel{border:1px solid var(--border);box-shadow:0 14px 35px rgba(38,6,14,.13)}
/* Banners podem conter imagens de campanhas; escurecimento garante legibilidade. */
.hero-carousel{margin:3px 0 17px;border-radius:19px!important;overflow:hidden;background:var(--al-cabernet);box-shadow:0 12px 30px rgba(38,6,14,.14)}
.hero-slide{min-height:165px!important;background:var(--al-burgundy);padding:22px 19px!important}
.hero-slide.hero-dark{background:linear-gradient(115deg,#26060E 0%,#571628 100%)}
.hero-slide.hero-coral{background:linear-gradient(115deg,#6B192A,#942D42)!important}
.hero-slide.hero-night{background:linear-gradient(115deg,#26060E,#3E0C17)!important}
.hero-slide:before{opacity:.21!important;filter:saturate(.75)}
.hero-slide:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(38,6,14,.4),transparent 96%)}
.hero-slide>div,.hero-coupon,.ad-badge{position:relative;z-index:2}
.hero-slide small,.hero-night small{color:#E6C6CA!important;letter-spacing:.17em;font-size:9px}
.hero-slide h2{font-size:19px!important;line-height:1.2!important;letter-spacing:-.018em;color:#F5F1EE;font-weight:700}
.hero-slide p{color:#E9DCD9!important;font-size:11px}
.hero-coupon{border-radius:10px;background:rgba(250,240,235,.13)}
.hero-carousel-dots{bottom:12px;left:19px}
.hero-carousel-dots button.active{background:#F5F1EE!important}
/* Títulos, vitrines e perfis. */
.source-section-head h3,.home-directory-head h3,.page-head h1,.source-page-title h2{font-weight:700;letter-spacing:-.018em;color:var(--al-cabernet)}
.source-section-head h3{font-size:16px}
.eyebrow,.label{font-size:10px;letter-spacing:.09em;color:var(--al-ruby);font-weight:700}
.home-profiles{padding-top:5px}
.home-directory-head{padding-top:8px;padding-bottom:11px}
.home-directory-tabs{background:#EDE3E0;border:1px solid #E9D9D3;padding:3px;border-radius:13px}
.home-directory-tabs a{border-radius:10px;font-weight:700;font-size:11px}
.home-directory-tabs a.active{background:var(--al-burgundy);color:var(--al-ivory)}
.home-see-more{background:transparent;color:var(--al-ruby);border:1px solid #E6D7D5;border-radius:10px;padding:8px 11px}
.profile-cover{border-radius:17px!important;overflow:visible;box-shadow:0 7px 17px rgba(38,6,14,.09)}
.profile-cover>img{border-radius:17px}
.profile-mini>strong{font-weight:700;color:#36151C}
.profile-avatar{border-color:#FFFEFC!important;box-shadow:0 3px 7px rgba(38,6,14,.12)}
/* Ícones reais das categorias oficiais enviados pelo cliente. */
.home-categories{padding-top:11px}
.category-strip{gap:10px!important;padding-bottom:11px}
.category-mini{width:76px!important;flex-basis:76px!important;gap:7px;color:#5F474C;font-size:10px}
.category-icon{width:61px;min-width:61px;height:61px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:#FFFEFC;border:1px solid #EBDFDA;box-shadow:0 5px 13px rgba(62,12,23,.04)}
.category-icon .alluzzi-icon{width:25px;height:25px;image-rendering:auto}
.category-mini.active .category-icon{background:#F4E3E6;border-color:#A56474;box-shadow:0 0 0 1px #B87583}
.category-mini.active{color:var(--al-burgundy);font-weight:700}
.subcat-chips a{background:#FFFEFC;color:#6B5557;border-color:#E7DAD5}
.subcat-chips a.active{background:var(--al-burgundy);border-color:var(--al-burgundy)}
/* Produtos: mais respiro, fotos como protagonistas e valores visíveis. */
.home-products{padding-top:10px;padding-bottom:23px}
.product-grid{gap:13px 11px}
.product-card{border:1px solid rgba(133,94,94,.1);background:#FFFEFC;border-radius:17px;overflow:hidden;box-shadow:0 4px 16px rgba(49,12,23,.035)}
.product-card .photo{border-radius:0!important;box-shadow:none!important;background:#EFE8E4;aspect-ratio:3/4}
.product-card .body{padding:10px 10px 12px!important}
.product-card h3{font-size:12px;line-height:1.4;font-weight:700;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:16px}
.product-card .meta,.product-location{color:#947E7E}
.price-block strong{color:var(--al-ruby);font-size:15px;font-weight:700}
.product-card .price-row{min-height:29px;margin-top:8px}
.product-card .badge,.badge{font-weight:700}
/* Formulários, checkout, detalhes, chats, perfis, vendedor. */
.btn{border-radius:12px;font-weight:700;transition:background-color .2s,transform .18s,border-color .2s,box-shadow .2s}
.btn:active:not(:disabled){transform:scale(.992)}
.btn.accent,.btn.primary{background:var(--al-burgundy);color:#fff;border-color:var(--al-burgundy);box-shadow:0 6px 13px rgba(62,12,23,.12)}
.btn.accent:hover,.btn.primary:hover{background:var(--al-ruby);border-color:var(--al-ruby)}
.btn.purple{background:#F1E2E7;color:var(--al-burgundy)}
.btn.light{background:#FFFEFC;border-color:var(--border-input)}
.card,.stat-card,.order-kpi,.settings-card,.seller-item-row,.chat-list,.analytics-list{background:#FFFEFC;border-color:var(--border);box-shadow:0 2px 12px rgba(62,12,23,.025)}
.input,.select,.textarea{background:#FFFEFC;border-color:var(--border-input);min-height:45px;border-radius:12px;font-size:13px;color:var(--fg)}
.input:focus,.select:focus,.textarea:focus{border-color:var(--al-ruby);box-shadow:0 0 0 3px rgba(107,25,42,.10)}
.icon-btn,.source-back,.tiny-round,.detail-round-btn,.filter-circle{color:var(--al-burgundy);border-color:var(--border-input)}
.tabs a.active,.tabs button.active,.seller-context a.active,.payment-tab.active,.bank-tabs span.active{background:var(--al-burgundy);border-color:var(--al-burgundy);color:#fff}
.profile-rating-card{background:var(--al-burgundy);color:var(--al-ivory)}
.verified-dot{background:#2F83AC} /* selo de verificação = estado, não decoração */
.chat-window .mine,.chat-bubble.mine,.message.mine{background:#F1E2E7;color:var(--al-cabernet)}
.chat-transaction h4{background:var(--al-burgundy)}
.seller-ratio b{background:var(--al-ruby)}
.seller-ratio i{background:#D7B9C1}
.seller-function-card:hover,.seller-quick-actions a:hover{border-color:#C9A3AE}
.source-page{color:var(--fg)}
.settings-icon,.settings-card .settings-icon{background:#F4E6E8;color:var(--al-ruby)}
/* Lightboxes/sheets de filtros, endereço, ações e modais devem se manter acessíveis. */
.modal,.modal-content,.sheet,.bottom-sheet{color:var(--fg)}
input[type=checkbox],input[type=radio]{accent-color:var(--al-ruby)}
:focus-visible{outline:2px solid var(--al-ruby);outline-offset:2px}
/* Ajustes para visualização dark: preservar legibilidade e não tingir imagens de produtos. */
html[data-theme="dark"]{
  --bg:#160E12;--fg:#F5F1EE;--card:#26171D;--border:#433038;--border-input:#5C414C;
  --body:#DDD0D1;--muted:#B09EA3;--muted-dark:#C4B0B4;--muted-light:#96848B;
  --secondary:#2E1E25;--accent:#D28B9A;--purple:#D5A0AC;--purple-bg:#3D2731;
  --danger:#FF8E98;--danger-bg:#3D1D25;--danger-border:#713944;
}
html[data-theme="dark"],html[data-theme="dark"] body{background:#100B0E;color:var(--fg)}
html[data-theme="dark"] .app-shell{background:var(--bg)}
html[data-theme="dark"] .app-main{background:var(--bg)}
html[data-theme="dark"] .app-header,html[data-theme="dark"] .mode-switch{background:rgba(32,18,25,.96);border-color:#46333B}
html[data-theme="dark"] .alluzzi-brand .alluzzi-brand-logo-light{display:none}
html[data-theme="dark"] .alluzzi-brand .alluzzi-brand-logo-dark{display:block}
html[data-theme="dark"] .header-action{color:#F5F1EE}
html[data-theme="dark"] .alluzzi-icon--light{display:none}
html[data-theme="dark"] .alluzzi-icon--dark{display:inline-block}
html[data-theme="dark"] .mode-switch a{background:#33212A;color:#D0BFC3}
html[data-theme="dark"] .mode-switch a.active{background:#F5F1EE;color:#3E0C17}
html[data-theme="dark"] .mode-switch a.active .mode-emoji .alluzzi-icon{filter:none}
html[data-theme="dark"] .bottom-nav{background:rgba(38,23,30,.94)!important;border-color:#624650!important}
html[data-theme="dark"] .bottom-nav a{color:#A9939B!important}
html[data-theme="dark"] .bottom-nav a.active{background:#4B2835!important;color:#F5F1EE!important}
html[data-theme="dark"] .search-field,html[data-theme="dark"] .filter-circle,html[data-theme="dark"] .card,html[data-theme="dark"] .settings-card,html[data-theme="dark"] .product-card,html[data-theme="dark"] .chat-list,html[data-theme="dark"] .seller-item-row,html[data-theme="dark"] .input,html[data-theme="dark"] .select,html[data-theme="dark"] .textarea{background:#281A20;border-color:#513943;color:#F5F1EE}
html[data-theme="dark"] .home-directory-tabs,html[data-theme="dark"] .category-icon{background:#2C1D24;border-color:#49343D}
html[data-theme="dark"] .home-directory-tabs a.active{background:#F5F1EE;color:#3E0C17}
html[data-theme="dark"] .home-see-more{background:transparent;color:#E5BDC5;border-color:#60444E}
html[data-theme="dark"] .category-mini,html[data-theme="dark"] .profile-mini>strong,html[data-theme="dark"] .source-section-head h3,html[data-theme="dark"] .source-page-title h2{color:#F5F1EE}
html[data-theme="dark"] .category-mini.active .category-icon{background:#4C2735;border-color:#9B5465}
html[data-theme="dark"] .product-card h3{color:#F5F1EE}
html[data-theme="dark"] .price-block strong{color:#E9A7B6}
html[data-theme="dark"] .btn.accent,html[data-theme="dark"] .btn.primary{background:#76243A;color:#FFF;border-color:#9E5264}
html[data-theme="dark"] .btn.light{background:#34232B;color:#F5F1EE;border-color:#654854}
html[data-theme="dark"] .profile-rating-card{background:#391623}
html[data-theme="dark"] .settings-icon{background:#462934;color:#E9B9C4}
html[data-theme="dark"] .subcat-chips a{background:#312029;color:#E8D4D8;border-color:#64434F}
html[data-theme="dark"] .subcat-chips a.active{background:#76243A}
html[data-theme="dark"] .tabs a.active,html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .seller-context a.active{background:#F5F1EE;border-color:#F5F1EE;color:#26060E}
/* mobile, iPhone e WebView */
@media(max-width:430px){
 .app-header{padding:0 11px}.alluzzi-brand{width:119px}.alluzzi-brand .alluzzi-brand-logo{width:116px}
 .header-actions{gap:0!important}.header-action{min-width:32px}
 .mode-switch a{font-size:10px}
 .hero-slide{min-height:152px!important}
 .hero-slide h2{font-size:18px!important}
 .bottom-nav{width:min(calc(100% - 14px),calc(var(--app-w) - 14px))!important}
}
@media(max-width:360px){.alluzzi-brand{width:98px}.alluzzi-brand .alluzzi-brand-logo{width:97px}.header-action{min-width:30px}.category-mini{width:72px!important;flex-basis:72px!important}.mode-switch a{font-size:9px}}
@media(prefers-reduced-motion:reduce){.product-card,.bottom-nav,.btn{animation:none;transition:none}}

/* Ícones com estado ativo: em modo escuro, a aba selecionada tem fundo marfim. */
html[data-theme="dark"] .mode-switch a.active .mode-emoji .alluzzi-icon--light{display:inline-block}
html[data-theme="dark"] .mode-switch a.active .mode-emoji .alluzzi-icon--dark{display:none}
.theme-quick-toggle{flex:0 0 33px}

/* Ícones originais nas configurações. */
.settings-menu-list a{background:#FFFEFC;border-color:var(--border);border-radius:14px}
.settings-menu-list a:hover{border-color:#C99DAB;background:#FCF5F4}
.settings-menu-icon{background:#F3E7E7!important;color:var(--al-burgundy)!important;border-radius:11px!important}
.settings-menu-icon .alluzzi-icon{width:19px;height:19px}
html[data-theme="dark"] .settings-menu-list a{background:#271920;border-color:#553944;color:#F5F1EE}
html[data-theme="dark"] .settings-menu-icon{background:#45303A!important;color:#EBC8D0!important}


/* ===============================================================
   ALLUZZI HF V3 (2026-10-23)
   Padrão legível, ampliação extra, filtros, perfil e Cabernet Dark.
   A regra abaixo fica APÓS app.css, sem alteração dos seletores
   utilizados pelos fluxos JS/PHP legados.
   =============================================================== */

/* O tamanho anteriormente ativado por Texto maior passa a ser o padrão
   do aplicativo autenticado. Telas de login/cadastro preservam layout. */
.app-shell:not(.auth-screen){--app-w:520px;font-size:17px}
.app-main p,.app-main small,.app-main label,
.app-main .description,.app-main .social-caption{
  font-size:max(14px,1em)!important;line-height:1.55!important;
}
.app-main h1{font-size:25px!important;line-height:1.23!important}
.app-main h2{font-size:21px!important;line-height:1.27!important}
.app-main h3,.app-main strong{font-size:max(15px,1em)!important;line-height:1.35!important}
.app-main .btn,.app-main .input,.app-main input,
.app-main select,.app-main textarea,.settings-menu-list a{font-size:15px!important}
.accessibility-card label{min-height:76px}
.accessibility-card small{font-size:13px!important}
.bottom-nav a{font-size:12px!important}

/* O controle passa a significar UMA AMPLIAÇÃO ALÉM DA BASE.
   Regras mais específicas intencionalmente superam o CSS legado. */
html.a11y-large-text .app-shell:not(.auth-screen){font-size:19px}
html.a11y-large-text .app-main p,
html.a11y-large-text .app-main small,
html.a11y-large-text .app-main label,
html.a11y-large-text .app-main .description,
html.a11y-large-text .app-main .social-caption{
  font-size:max(16px,1em)!important;line-height:1.58!important;
}
html.a11y-large-text .app-main h1{font-size:29px!important}
html.a11y-large-text .app-main h2{font-size:24px!important}
html.a11y-large-text .app-main h3,
html.a11y-large-text .app-main strong{font-size:max(17px,1em)!important;line-height:1.4!important}
html.a11y-large-text .app-main .btn,
html.a11y-large-text .app-main .input,
html.a11y-large-text .app-main input,
html.a11y-large-text .app-main select,
html.a11y-large-text .app-main textarea,
html.a11y-large-text .settings-menu-list a{font-size:17px!important}
html.a11y-large-text .accessibility-card small{font-size:15px!important}
html.a11y-large-text .accessibility-card label{min-height:86px}
html.a11y-large-text .bottom-nav a{font-size:14px!important}

/* Filtros horizontais: chips não tocam a borda nem ficam cortados.
   Aumento da área do scroll, não do conteúdo total da página. */
.order-filter-pills,.feed-filter-pills{
  box-sizing:border-box;
  margin-left:-16px!important;margin-right:-16px!important;
  padding:4px 32px 12px!important;
  gap:8px;overflow-x:auto;overflow-y:hidden;
  max-width:calc(100% + 32px);
  scroll-padding-inline:32px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.order-filter-pills::-webkit-scrollbar,.feed-filter-pills::-webkit-scrollbar,
.source-pills::-webkit-scrollbar,.buyer-profile-tabs::-webkit-scrollbar{display:none}
.order-filter-pills::after,.feed-filter-pills::after{content:'';flex:0 0 1px}
.order-filter-pills a,.feed-filter-pills a{flex:0 0 auto;min-height:33px;
  display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;
  font-size:12px!important;line-height:1.25;scroll-snap-align:start}
.source-pills,.buyer-profile-tabs,.subcat-chips{
  min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;
  scrollbar-width:none;scroll-padding-inline:16px;
}
.source-pills{padding:4px 16px 12px!important}
.source-pills a,.buyer-profile-tabs a{flex-shrink:0}
.subcat-chips{padding-left:16px!important;padding-right:16px!important}
html.a11y-large-text .order-filter-pills a,
html.a11y-large-text .feed-filter-pills a{font-size:14px!important;min-height:38px}

/* Botão de configurações do perfil: 44x44 e ícone 20px. */
.profile-source-head{min-width:0;gap:8px}
.profile-source-copy{min-width:0}
.profile-source-tools{align-items:center;gap:8px;flex-shrink:0}
.profile-source-tools .settings-top-icon{
  width:44px!important;height:44px!important;min-width:44px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:14px;border:1px solid #D9C8C6;
  background:#FFFEFC;box-shadow:0 2px 8px rgba(62,12,23,.07);
  color:#3E0C17;cursor:pointer;
}
.profile-source-tools .settings-top-icon .ico,
.profile-source-tools .settings-top-icon svg{width:20px;height:20px}
.profile-source-tools .tiny-round:not(.settings-top-icon){min-width:40px;min-height:40px;width:40px;height:40px}
.profile-source-tools button:focus-visible{outline:3px solid #A76F7D;outline-offset:3px}
/* Barra de navegação e ações críticas preservam alvo confortável. */
.bottom-nav-inner a{min-height:49px}
.header-action{min-height:42px}
.profile-settings-sheet-head button{min-width:44px;min-height:44px;width:44px;height:44px}
.app-main .btn,.app-main button{touch-action:manipulation}

/* Adaptadores para texto maior não cortar campos e cards. */
.app-main,.source-page,.source-local-head,.source-local-head>div,
.order-card,.order-card-main,.order-product,.profile-history-row,
.settings-menu-list a,.profile-source-copy,.card,.app-main .grow{min-width:0}
.profile-history-row strong,.order-card-main strong,
.accessibility-card span,.settings-section-title>div{overflow-wrap:anywhere}
.profile-history-row,.order-card-main,.order-product{align-items:center}
.app-main input,.app-main select,.app-main textarea{max-width:100%}
html.a11y-large-text .buyer-profile-tabs a,
html.a11y-large-text .settings-menu-list a{white-space:normal}

/* CABERNET DARK: nunca voltar para a paleta preta do tema antigo. */
html[data-theme="dark"]{
  --bg:#26060E;--fg:#F5F1EE;--card:#3E0C17;
  --border:#794452;--border-input:#8A5360;
  --body:#E8D8DB;--muted:#D1ADB8;--muted-dark:#E7C6CF;
  --muted-light:#B9909B;--secondary:#4E1725;
  --accent:#E8A9B7;--purple:#EBC0CB;--purple-bg:#542637;
  --danger:#FFABA1;--danger-bg:#582530;--danger-border:#8A4050;
}
html[data-theme="dark"],html[data-theme="dark"] body{
  background:#1A040A!important;color:var(--fg)!important;
}
html[data-theme="dark"] .app-shell,html[data-theme="dark"] .app-main,
html[data-theme="dark"] .page-head,html[data-theme="dark"] .source-page{
  background:var(--bg)!important;color:var(--fg);
}
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .mode-switch{background:rgba(38,6,14,.96)!important;border-color:#70404C!important}
html[data-theme="dark"] .bottom-nav{
  background:rgba(46,9,20,.96)!important;border-color:#7A4351!important;
}
html[data-theme="dark"] .bottom-nav a{color:#DBBFC6!important}
html[data-theme="dark"] .bottom-nav a.active{background:#6B192A!important;color:#FFF6F5!important}
html[data-theme="dark"] .mode-switch a{background:#481523!important;color:#E6BFC9!important}
html[data-theme="dark"] .mode-switch a.active{background:#F5F1EE!important;color:#3E0C17!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .accessibility-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .profile-history-row,
html[data-theme="dark"] .profile-settings-list a,
html[data-theme="dark"] .preferences-card,
html[data-theme="dark"] .buyer-profile-quick a,
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .seller-function-card,
html[data-theme="dark"] .seller-item-row,
html[data-theme="dark"] .chat-list,
html[data-theme="dark"] .social-post,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .order-status-analysis{
  background:#3E0C17!important;color:#F5F1EE!important;border-color:#794452!important;
}
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#4A1423!important;color:#F5F1EE!important;border-color:#8A5360!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#CBABB3!important}
html[data-theme="dark"] .profile-source-tools .settings-top-icon,
html[data-theme="dark"] .settings-page-back{background:#542030!important;color:#F5F1EE!important;border-color:#A67584!important}
html[data-theme="dark"] .feed-filter-pills a:not(.active),
html[data-theme="dark"] .order-filter-pills a:not(.active),
html[data-theme="dark"] .source-pills a:not(.active){background:#4A1725!important;color:#EED6DC!important;border-color:#855161!important}
html[data-theme="dark"] .feed-filter-pills a.active,
html[data-theme="dark"] .order-filter-pills a.active,
html[data-theme="dark"] .source-pills a.active{background:#F5F1EE!important;color:#26060E!important;border-color:#F5F1EE!important}
html[data-theme="dark"] .profile-settings-sheet,
html[data-theme="dark"] .settings-route-overlay,
html[data-theme="dark"] .settings-modal-source{background:#26060E!important;color:#F5F1EE}
html[data-theme="dark"] .btn.light,html[data-theme="dark"] .btn.dark{
  background:#542030!important;border-color:#A67584!important;color:#F5F1EE!important;
}
html[data-theme="dark"] .btn.primary,html[data-theme="dark"] .btn.accent{
  background:#7B2740!important;border-color:#A85B73!important;color:#FFF!important;
}
html[data-theme="dark"] .buyer-profile-tabs a.active,
html[data-theme="dark"] .tabs a.active{border-color:#F5F1EE!important;color:#F5F1EE!important}
html[data-theme="dark"] .settings-menu-list a{background:#3E0C17!important;border-color:#794452!important;color:#F5F1EE!important}
/* Alto contraste continua tendo prioridade quando o usuário o habilita. */
html.a11y-high-contrast[data-theme="dark"] .app-shell,
html.a11y-high-contrast[data-theme="dark"] .app-main{background:#090104!important;color:#FFF!important}
html.a11y-high-contrast[data-theme="dark"] .card,
html.a11y-high-contrast[data-theme="dark"] .accessibility-card{background:#3E0C17!important;border:2px solid #F5F1EE!important}

@media(max-width:420px){
 .profile-source-avatar{width:58px;height:58px}
 .profile-source-tools .settings-top-icon{width:44px!important;height:44px!important}
 .order-filter-pills,.feed-filter-pills{padding-left:32px!important;padding-right:32px!important}
}
@media(max-width:350px){
 .profile-source-head{gap:6px}
 .profile-source-avatar{width:52px;height:52px}
 .profile-source-tools .tiny-round:not(.settings-top-icon){min-width:35px;width:35px}
}


/* =====================================================================
   ALLUZZI HOTFIX V4 — Home, recortes laterais e escalonamento tipográfico
   Corrige a regressão visual da V3 sem modificar funcionalidades de PHP/JS.
   Base tipográfica 17px, modo de ampliação 19px. Overrides locais apenas.
   ===================================================================== */

/* Faixas horizontais com limites explícitos: nenhum item invade a margem da
   página e sempre é possível revelar o último pela rolagem horizontal. */
.app-main .home-profiles,.app-main .home-categories,.app-main .home-products{
  min-width:0;
  max-width:calc(100% + 32px);
}
.app-main .wardrobe-strip,.app-main .category-strip,
.app-main .subcat-chips{
  box-sizing:border-box;
  width:100%;max-width:100%;
  overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scroll-padding-inline:18px;
  scrollbar-width:none;
}
.app-main .wardrobe-strip::-webkit-scrollbar,
.app-main .category-strip::-webkit-scrollbar,
.app-main .subcat-chips::-webkit-scrollbar{display:none}
.app-main .wardrobe-strip{
  gap:12px!important;
  padding:5px 18px 19px!important;
}
.app-main .wardrobe-strip::after,.app-main .category-strip::after{
  content:"";flex:0 0 2px;pointer-events:none;
}
.app-main .profile-mini{
  width:92px;flex:0 0 92px;min-width:0;
  scroll-snap-align:start;
}
.app-main .profile-cover{width:92px;max-width:100%;height:116px}
.app-main .profile-mini>strong{
  display:block;max-width:100%;font-size:14px!important;
  line-height:1.25!important;margin-top:32px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.app-main .profile-mini>small{
  max-width:100%;font-size:13px!important;
  line-height:1.25!important;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
html.a11y-large-text .app-main .profile-mini>strong{font-size:16px!important}
html.a11y-large-text .app-main .profile-mini>small{font-size:15px!important}

.app-main .home-categories>.eyebrow{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  margin:0;padding:0 18px 10px!important;
  font-size:14px!important;line-height:1.25!important;
}
.app-main .home-categories>.eyebrow::after{
  content:"Deslize para ver mais →";
  display:inline-block;flex:0 0 auto;
  color:var(--muted-dark);font-weight:500;
  font-size:11px;letter-spacing:0;text-transform:none;
}
.app-main .category-strip{
  gap:9px!important;
  padding:2px 18px 15px!important;
}
.app-main .category-mini{
  width:72px!important;min-width:72px!important;
  flex:0 0 72px!important;gap:8px!important;
  scroll-snap-align:start;
  text-align:center;
}
.app-main .category-icon{
  width:61px;min-width:61px;height:61px;
}
.app-main .category-mini>span:last-child{
  display:block;width:100%;min-height:2.4em;
  font-size:13px!important;line-height:1.2!important;
  white-space:normal;overflow-wrap:break-word;
  text-align:center;
}
html.a11y-large-text .app-main .category-mini{
  width:82px!important;min-width:82px!important;flex-basis:82px!important;
}
html.a11y-large-text .app-main .category-mini>span:last-child{
  font-size:14px!important;line-height:1.25!important;
}

/* Na V3 a regra global sobre todo <small>/<p>/<strong> ampliou também os
   microtextos do banner e dos cards. Reequilibra somente a Home. */
.app-main .hero-slide small{
  font-size:11px!important;line-height:1.3!important;
}
.app-main .hero-slide h2{
  font-size:20px!important;line-height:1.22!important;
  overflow-wrap:break-word;
}
.app-main .hero-slide p{
  font-size:14px!important;line-height:1.35!important;
}
.app-main .hero-slide.hero-coral>div{max-width:calc(100% - 96px)}
.app-main .hero-coupon{max-width:94px}
.app-main .home-directory-head{gap:10px;min-width:0}
.app-main .home-directory-tabs{min-width:0}
.app-main .home-directory-tabs a{font-size:12px!important}
.app-main .home-see-more{font-size:12px!important;white-space:nowrap;flex:0 0 auto}
.app-main .source-section-head{min-width:0;gap:8px}
.app-main .source-section-head h3{font-size:17px!important;line-height:1.3!important}
.app-main .source-section-head>span,
.app-main .source-section-head small{font-size:12px!important;line-height:1.4!important}
.app-main .home-products{padding-left:18px;padding-right:18px}
.app-main .home-products .product-grid{min-width:0}
.app-main .product-grid>.product-card{min-width:0}
.app-main .product-card h3{font-size:15px!important;line-height:1.35!important;
  overflow-wrap:break-word}
.app-main .product-card .meta,.app-main .product-location{
  font-size:12px!important;line-height:1.4!important;
}
html.a11y-large-text .app-main .hero-slide small{font-size:12px!important}
html.a11y-large-text .app-main .hero-slide h2{font-size:22px!important}
html.a11y-large-text .app-main .hero-slide p{font-size:16px!important}
html.a11y-large-text .app-main .source-section-head h3{font-size:20px!important}
html.a11y-large-text .app-main .product-card h3{font-size:17px!important}

/* Reserva espaço PARA rolar os últimos produtos acima da barra flutuante;
   a barra continua fixa e clicável, preservando o comportamento PWA. */
.app-shell .app-main{
  padding-bottom:calc(132px + env(safe-area-inset-bottom))!important;
}
/* Não alterar telas de autenticação (sem navegação inferior). */
.app-shell.auth-screen .app-main{padding-bottom:0!important}

/* Equivalência Cabernet em faixas e títulos, sem fundo preto no dark mode. */
html[data-theme="dark"] .home-categories>.eyebrow::after{color:#DBBFC6}
html[data-theme="dark"] .category-mini{color:#E9D0D7}
html[data-theme="dark"] .profile-mini>strong{color:#F5F1EE!important}
html[data-theme="dark"] .profile-mini>small{color:#DBBFC6!important}
@media(max-width:360px){
 .app-main .wardrobe-strip,.app-main .category-strip{scroll-padding-inline:16px}
 .app-main .home-categories>.eyebrow{padding-inline:16px!important}
 .app-main .home-categories>.eyebrow::after{font-size:10px}
 .app-main .hero-slide.hero-coral>div{max-width:calc(100% - 84px)}
 .app-main .hero-coupon{max-width:82px}
}


/* ============================================================================
   ALLUZZI HOTFIX V5 — 23/10/2026
   A) preços de vitrine com escala independente da acessibilidade global
   B) fundo escuro neutro, barras superior/inferior burgundy
   C) cartões de notificações legíveis e destaque de não lidas
   Tudo nesta seção é apresentação. Não modifica autenticação, rotas nem banco.
   ============================================================================ */

/* A: Valores e legendas não devem herdar a regra geral de strong/small 17/19px.
   A grade aloca uma coluna para cada preço quando há Venda + Aluguel. */
.app-main .product-card .price-row{
  display:flex;align-items:flex-start;flex-wrap:nowrap;
  gap:6px!important;margin-top:8px;min-width:0;max-width:100%;
}
.app-main .product-card .price-block{
  display:flex;flex-direction:column;align-items:flex-start;
  flex:0 1 auto;min-width:0;max-width:100%;gap:4px;
}
.app-main .product-card .price-row .price-block strong{
  display:block;font-size:13px!important;line-height:1.18!important;
  font-weight:750!important;letter-spacing:-.025em;
  white-space:nowrap;max-width:100%;font-variant-numeric:tabular-nums;
}
.app-main .product-card .price-row .price-block strong em{
  font-size:9px!important;line-height:1.15!important;
  font-style:normal;letter-spacing:0;
}
.app-main .product-card .price-row .price-block small{
  display:block;font-size:10px!important;line-height:1.25!important;
  font-weight:550!important;white-space:normal;
}
.app-main .product-card .price-divider{
  display:block;flex:0 0 1px;width:1px;height:28px;
  align-self:center;margin-inline:1px;
}
/* :has tem suporte nas versões atuais de Safari, Chrome e WebView. Em navegadores
   antigos, o flex acima continua válido, sem afetar os valores de um preço só. */
@supports selector(.price-row:has(.price-divider)){
  .app-main .product-card .price-row:has(.price-divider){
    display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);
    align-items:start;column-gap:5px;row-gap:0;
  }
  .app-main .product-card .price-row:has(.price-divider) .price-block{width:100%}
  .app-main .product-card .price-row:has(.price-divider) .price-block strong{
    font-size:clamp(11px,3.15vw,13px)!important;
  }
  .app-main .product-card .price-row:has(.price-divider) .price-divider{
    align-self:stretch;min-height:30px;height:auto;margin:0;
  }
}
html.a11y-large-text .app-main .product-card .price-row .price-block strong{
  /* Não ampliar os valores: evitar sobreposição em cards compactos. */
  font-size:13px!important;
}
html.a11y-large-text .app-main .product-card .price-row .price-block small{
  font-size:11px!important;
}
@supports selector(.price-row:has(.price-divider)){
 html.a11y-large-text .app-main .product-card .price-row:has(.price-divider) .price-block strong{
   font-size:clamp(11px,3.15vw,13px)!important;
 }
}

/* Resíduo da V4: app.css definia margin-top:10px !important para nomes de lojas,
   vencendo o ajuste sem !important da V4. Reservar espaço abaixo do avatar. */
.app-main .wardrobe-strip .profile-mini>strong{
  margin-top:36px!important;max-width:100%;
  font-size:14px!important;line-height:1.25!important;
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
html.a11y-large-text .app-main .wardrobe-strip .profile-mini>strong{
  font-size:16px!important;
}

/* B: apenas barras superior/inferior Burgundy; conteúdo em carbono neutro.
   Substitui explicitamente o Cabernet Dark da V3 sem mexer no tema claro. */
html[data-theme="dark"]{
  --bg:#0D0E12;--fg:#F5F1EE;--card:#1A1C22;
  --border:#33353D;--border-input:#4C4D57;
  --body:#DAD3D7;--muted:#B9B1B7;--muted-dark:#C9BEC5;
  --muted-light:#AFA6AE;--secondary:#25272E;
  --accent:#D78196;--purple:#E5BAC6;--purple-bg:#33212B;
  --danger:#FFA6A0;--danger-bg:#36242A;--danger-border:#73414E;
}
html[data-theme="dark"],html[data-theme="dark"] body{
  background:#0D0E12!important;color:var(--fg)!important;
}
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .page-head,
html[data-theme="dark"] .source-page,
html[data-theme="dark"] .notifications-source{
  background:#0D0E12!important;color:#F5F1EE!important;
}
/* Barras fixas da marca: Burgundy oficial */
html[data-theme="dark"] .app-header,
html[data-theme="dark"] .mode-switch{
  background:rgba(62,12,23,.97)!important;
  border-color:#6B3040!important;color:#F5F1EE!important;
}
html[data-theme="dark"] .header-action,
html[data-theme="dark"] .header-actions button{color:#F5F1EE!important}
html[data-theme="dark"] .header-action:hover,
html[data-theme="dark"] .header-action:focus-visible{background:rgba(255,255,255,.1)!important}
html[data-theme="dark"] .mode-switch a{
  background:#552033!important;color:#ECD8DD!important;
}
html[data-theme="dark"] .mode-switch a.active{
  background:#F5F1EE!important;color:#3E0C17!important;
}
html[data-theme="dark"] .bottom-nav{
  background:rgba(62,12,23,.97)!important;
  border-color:#875061!important;
  box-shadow:0 14px 40px rgba(0,0,0,.3)!important;
}
html[data-theme="dark"] .bottom-nav a{color:#E3C9D1!important}
html[data-theme="dark"] .bottom-nav a.active{
  background:#6B192A!important;color:#FFFFFF!important;
}
/* Cards do conteúdo: neutros, sem fundos vinho da V3. */
html[data-theme="dark"] .app-main .card,
html[data-theme="dark"] .app-main .settings-card,
html[data-theme="dark"] .app-main .accessibility-card,
html[data-theme="dark"] .app-main .product-card,
html[data-theme="dark"] .app-main .order-card,
html[data-theme="dark"] .app-main .profile-history-row,
html[data-theme="dark"] .app-main .profile-settings-list a,
html[data-theme="dark"] .app-main .preferences-card,
html[data-theme="dark"] .app-main .buyer-profile-quick a,
html[data-theme="dark"] .app-main .seller-function-card,
html[data-theme="dark"] .app-main .seller-item-row,
html[data-theme="dark"] .app-main .chat-list,
html[data-theme="dark"] .app-main .social-post,
html[data-theme="dark"] .app-main .detail-card,
html[data-theme="dark"] .app-main .order-status-analysis,
html[data-theme="dark"] .app-main .notification-card,
html[data-theme="dark"] .app-main .source-card,
html[data-theme="dark"] .app-main .cart-group,
html[data-theme="dark"] .app-main .cart-group-head{
  background:#1A1C22!important;color:#F5F1EE!important;
  border-color:#363841!important;
}
html[data-theme="dark"] .app-main .search-field,
html[data-theme="dark"] .app-main .filter-circle,
html[data-theme="dark"] .app-main .input,
html[data-theme="dark"] .app-main .select,
html[data-theme="dark"] .app-main .textarea,
html[data-theme="dark"] .app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] .app-main select,
html[data-theme="dark"] .app-main textarea{
  background:#1A1C22!important;border-color:#46464F!important;
  color:#F5F1EE!important;
}
html[data-theme="dark"] .app-main .home-directory-tabs,
html[data-theme="dark"] .app-main .category-icon,
html[data-theme="dark"] .app-main .settings-menu-list a,
html[data-theme="dark"] .app-main .seller-filter-note,
html[data-theme="dark"] .app-main .subcat-chips a:not(.active){
  background:#202128!important;border-color:#363841!important;
  color:#E9E2E5!important;
}
html[data-theme="dark"] .app-main .home-directory-tabs a.active{
  background:#6B192A!important;color:#FFFFFF!important;
}
html[data-theme="dark"] .app-main .profile-mini>strong,
html[data-theme="dark"] .app-main .product-card h3,
html[data-theme="dark"] .app-main .source-section-head h3{
  color:#F5F1EE!important;
}
html[data-theme="dark"] .app-main .profile-mini>small,
html[data-theme="dark"] .app-main .product-location,
html[data-theme="dark"] .app-main .product-card .meta{color:#B9B1B7!important}
html[data-theme="dark"] .app-main .price-row .price-block strong{color:#F4CCD5!important}
html[data-theme="dark"] .app-main .price-row .price-block small{color:#BFB5BC!important}
html[data-theme="dark"] .app-main .settings-top-icon,
html[data-theme="dark"] .app-main .settings-page-back{
  background:#25272E!important;color:#F5F1EE!important;
  border-color:#47434C!important;
}
html[data-theme="dark"] .app-main .profile-settings-sheet,
html[data-theme="dark"] .app-main .settings-route-overlay,
html[data-theme="dark"] .app-main .settings-modal-source{
  background:#0D0E12!important;color:#F5F1EE!important;
}
html[data-theme="dark"] .app-main .btn.light,
html[data-theme="dark"] .app-main .btn.dark{
  background:#282A32!important;color:#F5F1EE!important;
  border-color:#48444D!important;
}
html[data-theme="dark"] .app-main .btn.primary,
html[data-theme="dark"] .app-main .btn.accent{
  background:#6B192A!important;color:#FFFFFF!important;
  border-color:#A25B70!important;
}

/* C: notificações reais usam .notification (não .notification-card).
   A classe do título no CSS antigo forçava #111 sobre o cartão branco.
   Estados mantêm diferenciação visual mesmo em alto contraste. */
html[data-theme="dark"] .app-main .notifications-source .source-local-head h2{
  color:#F5F1EE!important;
}
html[data-theme="dark"] .app-main .notifications-source .coral-text{
  color:#E9AEBE!important;
}
html[data-theme="dark"] .app-main .notifications-source .source-mark-read{
  background:#28232B!important;border:1px solid #654051!important;
  color:#F5F1EE!important;min-height:38px;gap:6px;
  font-size:12px!important;white-space:nowrap;
}
html[data-theme="dark"] .app-main .notifications-source .source-mark-read:hover,
html[data-theme="dark"] .app-main .notifications-source .source-mark-read:focus-visible{
  background:#3D2530!important;border-color:#A4687B!important;
}
html[data-theme="dark"] .app-main .notifications-source .notification-list{
  display:grid;gap:10px;min-width:0;
}
html[data-theme="dark"] .app-main .notifications-source .notification{
  display:flex;align-items:flex-start;min-width:0;
  background:#191B20!important;color:#F5F1EE!important;
  border:1px solid #34363F!important;
  border-radius:16px;box-shadow:0 4px 18px rgba(0,0,0,.14);
  padding:15px 13px;gap:11px;
}
html[data-theme="dark"] .app-main .notifications-source .notification.unread{
  background:#22232A!important;
  border-color:#8E4F61!important;
  box-shadow:inset 3px 0 0 #CC7A93,0 5px 20px rgba(0,0,0,.13);
}
html[data-theme="dark"] .app-main .notifications-source .notification .grow{
  min-width:0;flex:1;
}
html[data-theme="dark"] .app-main .notifications-source .notification-icon{
  background:#2C2932!important;border:1px solid #50414F;
  color:#F1BBC9!important;flex:0 0 36px;
}
html[data-theme="dark"] .app-main .notifications-source .notification-type{
  display:block;color:#E6B0C0!important;
  font-size:11px!important;line-height:1.3!important;font-weight:700;
}
html[data-theme="dark"] .app-main .notifications-source .notification-title{
  display:block;color:#F5F1EE!important;
  font-size:15px!important;line-height:1.35!important;
  font-weight:750!important;margin:4px 0 4px;overflow-wrap:anywhere;
}
html[data-theme="dark"] .app-main .notifications-source .notification p{
  margin:0 0 5px;color:#DAD4D9!important;
  font-size:14px!important;line-height:1.48!important;
  font-weight:400;overflow-wrap:anywhere;
}
html[data-theme="dark"] .app-main .notifications-source .notification small{
  display:block;color:#B9AFB9!important;
  font-size:12px!important;line-height:1.3!important;
  margin-top:6px;
}
html[data-theme="dark"] .app-main .notifications-source .notification-dot{
  background:#E9A0B5!important;flex:0 0 8px;
  width:8px;height:8px;
}
html[data-theme="dark"] .app-main .notifications-source .source-empty{
  color:#F5F1EE!important;
}
html[data-theme="dark"] .app-main .notifications-source .source-empty strong{
  color:#F5F1EE!important;
}
/* Respeitar a ampliação adicional; cabeçalhos de notificações crescem só no
   segundo nível, com quebra de linha, sem contrastes ou valores sobrepostos. */
html[data-theme="dark"].a11y-large-text .app-main .notifications-source .notification-title{
  font-size:17px!important;line-height:1.38!important;
}
html[data-theme="dark"].a11y-large-text .app-main .notifications-source .notification p{
  font-size:16px!important;
}
html[data-theme="dark"].a11y-large-text .app-main .notifications-source .notification small{
  font-size:13px!important;
}
/* Prioridade do alto contraste, mantendo cartão escuro e texto distinguível. */
html[data-theme="dark"].a11y-high-contrast .app-main .notifications-source .notification{
  background:#111318!important;border:2px solid #F5F1EE!important;
}
html[data-theme="dark"].a11y-high-contrast .app-main .notifications-source .notification-title,
html[data-theme="dark"].a11y-high-contrast .app-main .notifications-source .notification p{
  color:#FFFFFF!important;
}
@media(max-width:360px){
  html[data-theme="dark"] .app-main .notifications-source .source-mark-read{
    font-size:11px!important;padding:7px 8px;
  }
  .app-main .product-card .price-row{gap:4px!important}
  .app-main .product-card .price-row .price-block strong{font-size:12px!important}
}

/* =============================================================
   ALLUZZI V6 — Distâncias legíveis em cartões e detalhes
   Somente no modo escuro. Tom blush claro derivado da paleta
   Ruby + Marfim; preserva totalmente o tema claro e a geometria.
   ============================================================= */
html[data-theme="dark"] .product-distance,
html[data-theme="dark"] .app-main .product-location .product-distance,
html[data-theme="dark"] .app-main .product-detail-location .product-distance {
  color:#EFC5D0!important;
}
/* No alto contraste a distância passa para o Marfim oficial. */
html[data-theme="dark"].a11y-high-contrast .product-distance,
html[data-theme="dark"].a11y-high-contrast .app-main .product-location .product-distance,
html[data-theme="dark"].a11y-high-contrast .app-main .product-detail-location .product-distance {
  color:#F5F1EE!important;
}

/* ALLUZZI V8: barras retornam à paleta da V6; ícones superiores mantidos no tamanho V7. */
/*  (18 -> 20), PNGs oficiais
   (21 -> 23), toggle tema 19 -> 21. Sem mexer em suas áreas,
   contadores nem medidas da logo. */
.app-header .header-action .ico,
.app-header .story-header-action .ico{
  width:20px!important;
  height:20px!important;
}
.app-header .header-action .alluzzi-icon{
  width:23px!important;
  height:23px!important;
}
.app-header .theme-quick-glyph{
  width:21px!important;
  height:21px!important;
}
.app-header .theme-quick-glyph::before{
  font-size:21px!important;
}
html[data-theme="dark"] .app-header .theme-quick-glyph::before{
  font-size:19px!important;
}

/* =============================================================
   ALLUZZI V9 — Tipografia uniforme nas notificações
   V8 continha a escala 15/14/12 somente no tema escuro, enquanto
   o tema claro herdava 17px de .app-shell e da escala geral V3.
   Igualamos os tamanhos em ambos os temas, sem tocar em cores,
   estrutura, estados, ações e demais telas.
   ============================================================= */
html[data-theme] .app-main .notifications-source .notification .notification-type {
  font-size:11px!important;
  line-height:1.3!important;
}
html[data-theme] .app-main .notifications-source .notification .notification-title {
  font-size:15px!important;
  line-height:1.35!important;
}
html[data-theme] .app-main .notifications-source .notification p {
  font-size:14px!important;
  line-height:1.48!important;
}
html[data-theme] .app-main .notifications-source .notification small {
  font-size:12px!important;
  line-height:1.3!important;
}
/* Controle Texto maior: uma escala adicional real, igual nos dois temas. */
html[data-theme].a11y-large-text .app-main .notifications-source .notification .notification-type {
  font-size:12px!important;
  line-height:1.35!important;
}
html[data-theme].a11y-large-text .app-main .notifications-source .notification .notification-title {
  font-size:17px!important;
  line-height:1.38!important;
}
html[data-theme].a11y-large-text .app-main .notifications-source .notification p {
  font-size:16px!important;
  line-height:1.5!important;
}
html[data-theme].a11y-large-text .app-main .notifications-source .notification small {
  font-size:13px!important;
  line-height:1.35!important;
}

/* ====================================================================
   ALLUZZI V10 — Geometria unificada dos cards de notificações.
   O V9 uniformizou a tipografia, mas V5 tinha padding, gap e margens
   exclusivos do modo escuro. Isso causava alturas diferentes entre
   temas para o MESMO texto. Estas regras compartilham a estrutura.
   Preserva as cores, bordas/estados e a escala de acessibilidade.
   ==================================================================== */
html[data-theme] .app-main .notifications-source .notification-list {
  display:grid;
  gap:10px;
  min-width:0;
}
html[data-theme] .app-main .notifications-source .notification {
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  min-width:0;
  gap:11px;
  padding:15px 13px;
  border-width:1px;
  border-style:solid;
  border-radius:16px;
}
html[data-theme] .app-main .notifications-source .notification .grow {
  flex:1 1 auto;
  min-width:0;
}
html[data-theme] .app-main .notifications-source .notification-icon {
  box-sizing:border-box;
  width:36px;
  height:36px;
  flex:0 0 36px;
}
html[data-theme] .app-main .notifications-source .notification .notification-type {
  display:block;
  font-weight:700;
  line-height:1.3!important;
}
html[data-theme] .app-main .notifications-source .notification .notification-title {
  display:block;
  margin:4px 0 4px;
  font-weight:750!important;
  overflow-wrap:anywhere;
}
html[data-theme] .app-main .notifications-source .notification p {
  margin:0 0 5px;
  font-weight:400;
  overflow-wrap:anywhere;
}
html[data-theme] .app-main .notifications-source .notification small {
  display:block;
  margin-top:6px;
}
html[data-theme] .app-main .notifications-source .notification-dot {
  width:8px;
  height:8px;
  flex:0 0 8px;
  margin-top:6px;
}
/* O modo de alto contraste mantém a borda mais grossa que indica estado. */

/* ================================================================
   ALLUZZI V11 — Diretório Minha Loja (/app/Wardrobes)
   Ajuste isolado por classe; não afeta Outlet nem cards de produto.
   Escopo via :has() da busca única do diretório, sem editar PHP.
   Layout/links/queries seguem em PHP sem mudança funcional.
   ================================================================ */
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) {
  margin:0 -16px;
  min-width:0;
  min-height:calc(100dvh - 111px);
  padding-bottom:calc(98px + env(safe-area-inset-bottom));
  background:var(--bg);
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-head {
  top:111px;
  padding:16px 16px 14px;
  background:#F5F1EE;
  border-bottom:1px solid #E7DAD6;
  box-shadow:0 2px 8px rgba(38,6,14,.025);
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title {
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
  margin:0 0 12px;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title h1 {
  color:#26060E;
  font-size:20px!important;
  line-height:1.24;
  font-weight:750;
  letter-spacing:-.025em;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title>span {
  color:#796C70;
  font-size:12px!important;
  font-weight:600;
  white-space:nowrap;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .source-back {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  background:#FFFEFC;
  border:1px solid #E4D8D5;
  border-radius:6px;
  color:#3E0C17;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search {
  min-height:44px;
  padding:0 12px;
  background:#FFFEFC;
  border:1px solid #DDCDCA;
  border-radius:6px;
  box-shadow:0 2px 7px rgba(38,6,14,.02);
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search>.ico,
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search a { color:#806B71; }
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search input {
  min-width:0;
  width:100%;
  font-size:14px!important;
  color:#26060E;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search input::placeholder { color:#897A7D;opacity:1; }
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:13px 12px;
  min-width:0;
  padding:16px 16px 24px;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
  overflow:hidden;
  border:1px solid #E8DCD8;
  border-radius:6px;
  background:#FFFEFC;
  box-shadow:0 3px 13px rgba(38,6,14,.045);
  color:#26060E;
  text-decoration:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card:hover,
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card:focus-visible {
  border-color:#A77B85;
  box-shadow:0 5px 16px rgba(38,6,14,.10);
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover {
  position:relative;
  height:auto;
  min-height:0;
  aspect-ratio:4/3;
  background:#EBE4E1;
  overflow:visible;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover>img {
  display:block;
  width:100%;height:100%;
  object-fit:cover;
  border-radius:5px 5px 0 0;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover>i {
  border-radius:5px 5px 0 0;
  background:linear-gradient(to top,rgba(13,14,18,.3),transparent 65%);
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-badge {
  top:8px;
  right:8px;
  z-index:2;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:6px;
  background:rgba(21,17,20,.78);
  color:#F5F1EE;
  font-size:10px!important;
  line-height:1.15;
  white-space:nowrap;
}
/* O CSS legado centraliza o avatar com !important: fixamos a medida e
   mantemos o centro, sem cobrir título ou a badge de produtos. */
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover>.directory-avatar {
  left:50%!important;
  right:auto!important;
  bottom:-26px!important;
  transform:translateX(-50%)!important;
  width:52px!important;
  height:52px!important;
  box-sizing:border-box;
  border:3px solid #FFFEFC!important;
  background:#EEE4E4;
  color:#3E0C17;
  border-radius:50%;
  font-size:16px!important;
  font-weight:750;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(38,6,14,.18)!important;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-avatar img {
  width:100%;height:100%;object-fit:cover;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info {
  flex:1 1 auto;
  min-width:0;
  min-height:99px;
  padding:37px 11px 13px;
  background:transparent;
  text-align:left;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info h3 {
  margin:0;
  color:#26060E;
  font-size:15px!important;
  font-weight:750;
  line-height:1.26;
  overflow-wrap:anywhere;
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info p {
  margin:6px 0 0;
  color:#766970;
  font-size:12px!important;
  line-height:1.35;
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
}
/* Modo escuro: neutralidade carbono no miolo, bordô exclusivamente
   nas barras globais previamente aprovadas. */
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) {
  background:#0D0E12!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-head {
  background:#15171C!important;
  border-bottom-color:#35363E!important;
  box-shadow:none;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title h1 {color:#F5F1EE!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title>span {color:#B9B1B7!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .source-back {
  background:#22242A!important;
  color:#F5F1EE!important;
  border-color:#393B43!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search {
  background:#1A1C22!important;
  border-color:#41434C!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search input {color:#F5F1EE!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search input::placeholder {color:#AFA6AE!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search>.ico,
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search a {color:#CABDC5!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card {
  background:#1A1C22!important;
  border-color:#373942!important;
  box-shadow:0 4px 18px rgba(0,0,0,.2)!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card:hover,
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card:focus-visible {border-color:#9C7281!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover {background:#24262C!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-cover>.directory-avatar {
  background:#2B222A!important;
  border-color:#1A1C22!important;
  color:#F5F1EE!important;
  box-shadow:0 3px 14px rgba(0,0,0,.35)!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-badge {
  background:rgba(20,19,24,.82)!important;
  color:#F5F1EE!important;
  border-color:rgba(245,241,238,.25)!important;
}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info {background:transparent!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info h3 {color:#F5F1EE!important;}
html[data-theme="dark"] .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info p {color:#B9B1B7!important;}
/* Quando Texto maior está ativo, cresce o conteúdo e mantém o avatar. */
html.a11y-large-text .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info h3 {font-size:17px!important;}
html.a11y-large-text .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info p {font-size:14px!important;}
html.a11y-large-text .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-title h1 {font-size:22px!important;}
html.a11y-large-text .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-search input {font-size:16px!important;}
@media (max-width:360px){
  .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-grid {gap:10px;padding:12px 12px 22px;}
  .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-head {padding-inline:12px;}
  .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-info {padding-inline:9px;}
  .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-badge {font-size:9px!important;padding:4px 6px;}
}
@media (prefers-reduced-motion:reduce){
  .app-main .directory-source:has(.directory-search input[placeholder="Buscar perfil por nome"]) .directory-card {transition:none;}
}
