/* V6 — correções de contraste e compra móvel sobre a interface V5 */
html[data-theme="dark"] .home-product-tags span,
html[data-theme="dark"] .product-info .home-product-tags span,
html[data-theme="dark"] .home-product-card .home-product-tags span{
  background:#2e3e4c!important;color:#e8f0f7!important;border:1px solid #607282!important;
  text-shadow:none!important;box-shadow:none!important;
}
html[data-theme="light"] .home-product-tags span{background:#e9eef2!important;color:#33495b!important;border:1px solid #cfd9e1!important;}
html[data-theme="dark"] .ar-product-meta span{background:#2e3e4c!important;color:#e9f0f7!important;border-color:#586c7e!important}
html[data-theme="dark"] .ar-item-options-body .purchase-store-label,
html[data-theme="dark"] .purchase-product-copy .ar-product-notes{color:#d5e0e9!important}
html[data-theme="dark"] :is(.panel,.purchase-item,.form-card) :is(input,select,textarea){background:#202d39!important;color:#f1f6fa!important;border-color:#566a7a!important}
html[data-theme="dark"] :is(.panel,.purchase-item,.form-card) :is(input,select,textarea)::placeholder{color:#bbcad6!important;opacity:1}
html[data-theme="dark"] :is(.ar-shop-tile,.ar-store-compact,.ar-product-meta) :is(small,span){text-shadow:none}
/* Ação única de troca de loja por item */
.ar-item-options-body .v6-current-store{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 11px;border-radius:12px;background:var(--ar-surface-2);border:1px solid var(--ar-border)}
.v6-current-store-label{min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:750;color:var(--ar-ink)!important;line-height:1.35}
.v6-change-store-btn{flex-shrink:0;border:1px solid var(--ar-border);background:var(--ar-surface);padding:8px 10px;min-height:36px;border-radius:10px;color:var(--ar-orange);font-weight:850;font-size:11px;cursor:pointer}
.v6-change-store-btn span{font-size:16px;margin-left:3px}
.v6-change-store-btn:hover{border-color:var(--ar-orange)}
/* Modal único de lojas, responsivo e sem campos espremidos no cartão */
.v6-store-modal{position:fixed;inset:0;z-index:2147481100;background:rgba(9,17,25,.78);display:flex;justify-content:center;align-items:center;padding:16px;box-sizing:border-box;backdrop-filter:blur(5px)}
.v6-store-modal.hidden{display:none!important}
.v6-store-dialog{box-sizing:border-box;width:min(100%,460px);max-height:calc(100dvh - 36px);overflow:auto;padding:21px;border-radius:20px;background:var(--ar-surface);border:1px solid var(--ar-border);color:var(--ar-ink);box-shadow:0 16px 60px #0006}
.v6-store-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:17px}
.v6-store-dialog-head h2{margin:5px 0 2px;font-size:21px;color:var(--ar-ink)}
.v6-store-dialog-head p{margin:0;color:var(--ar-ink-soft);font-size:13px}
.v6-store-close{width:38px;height:38px;flex:0 0 38px;border:1px solid var(--ar-border);background:var(--ar-surface-2);color:var(--ar-ink);border-radius:12px;font-size:24px;line-height:1}
.v6-store-label{display:block;color:var(--ar-ink-soft);font-size:12px;font-weight:800;margin:0 0 7px}
.v6-store-dialog select,.v6-store-dialog input{width:100%;box-sizing:border-box;min-height:47px;background:var(--ar-input)!important;color:var(--ar-ink)!important;border:1px solid var(--ar-border)!important;border-radius:12px;padding:10px 13px;font-size:16px}
.v6-store-separator{display:flex;align-items:center;gap:12px;color:var(--muted);margin:17px 0 12px;font-size:11px;font-weight:750}
.v6-store-separator:before,.v6-store-separator:after{content:'';flex:1;height:1px;background:var(--ar-border)}
#v6-store-feedback{display:block;min-height:18px;margin:10px 0 0;font-size:12px;color:#c56c31;font-weight:750}
.v6-store-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.v6-store-actions .btn{min-height:46px;font-size:13px}
/* Ação de exclusão discreta e segura, acima da foto atual */
.photo-carousel-content{position:relative}
.v6-photo-delete{position:absolute;top:14px;right:14px;z-index:15;width:42px;height:42px;display:grid;place-items:center;background:rgba(112,41,35,.93);color:#fff;border:1px solid #e2a19a;border-radius:13px;font-size:20px;box-shadow:0 4px 15px #0003}
.v6-photo-delete.hidden{display:none!important}.v6-photo-delete:disabled{opacity:.45}
.photo-carousel-content h2{padding-right:55px}
@media(max-width:640px){
  .ar-item-options-body .v6-current-store{gap:7px;padding:8px 9px}
  .v6-change-store-btn{padding:8px;font-size:11px}
  .v6-store-modal{align-items:flex-end;padding:0}
  .v6-store-dialog{width:100%;max-height:90dvh;padding:20px 16px calc(22px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;}
  .v6-photo-delete{top:12px;right:12px}
}
