/* Caneva UI Refresh — camada visual conservadora, preservando IDs, campos e fluxos existentes. */
:root{--ink:#30282b;--muted:#837477;--pink:#b96780;--pink-dark:#91485f;--rose:#f7e8ed;--cream:#fcf8f5;--line:#eadbdd;--green:#4d8064;--gold:#c79a62;--shadow:0 18px 48px rgba(73,39,48,.08)}
body{background:linear-gradient(135deg,#fcf8f5 0%,#fffaf8 52%,#f7edef 100%);color:var(--ink)}
.topbar{border-bottom:1px solid rgba(234,219,221,.8);box-shadow:0 8px 28px rgba(73,39,48,.04);background:rgba(255,251,249,.94);backdrop-filter:blur(14px)}
.brand b{letter-spacing:-.2px}.brand small{letter-spacing:1.7px;color:#a06b79}.brand-logo{box-shadow:0 5px 14px rgba(145,72,95,.16)}
.panel,.auth-card,.faq-item,.message-card,.mobile-product-card,.order-card{border-color:rgba(234,219,221,.9);box-shadow:var(--shadow)}
.panel{border-radius:20px;padding:28px}.section-title{margin-bottom:24px}.section-title h2{letter-spacing:-.2px}.step{background:linear-gradient(135deg,#fae9ee,#f1d9e1);box-shadow:inset 0 0 0 1px #f0d2dc}
.page-heading{margin:34px 0 24px}.page-heading h1{font-size:38px;letter-spacing:-.7px}.page-heading p:not(.eyebrow){max-width:660px;line-height:1.6}.eyebrow{letter-spacing:2.4px;color:var(--pink-dark)}
.button{background:linear-gradient(135deg,#c8758d,#a9546d);border-radius:11px;padding:12px 18px;box-shadow:0 8px 18px rgba(169,84,109,.17);transition:transform .18s,box-shadow .18s,background .18s}.button:hover{background:linear-gradient(135deg,#b6657e,#91485f);transform:translateY(-1px);box-shadow:0 11px 24px rgba(169,84,109,.23)}.button.secondary{background:#fff;color:var(--pink-dark);box-shadow:none;border-color:#e4cdd3}.button.secondary:hover{background:#fff5f7;box-shadow:none}
.small-button{border-color:#e4cdd3;border-radius:9px;padding:8px 11px;transition:background .18s,border .18s,transform .18s}.small-button:hover{background:#fff2f5;border-color:#d5aeb9;transform:translateY(-1px)}
.product-form-grid input,.product-form-grid select,.filter-bar input,.filter-bar select,.form-grid input,.form-grid select,.message-filters select,.message-filters input,.coupon-entry input,.search-label input,.manual-grid label input,.manual-grid label select{border-color:#e5d5d8;background:#fffdfc;border-radius:11px;box-shadow:0 2px 7px rgba(73,39,48,.025);transition:border-color .18s,box-shadow .18s}.product-form-grid input:focus,.product-form-grid select:focus,.filter-bar input:focus,.filter-bar select:focus,.form-grid input:focus,.form-grid select:focus,.manual-grid label input:focus,.manual-grid label select:focus{outline:none;border-color:#c47a8e;box-shadow:0 0 0 4px #f7e8ed}
.field-help,.helper{color:#907f82}.notice{border:1px solid #efd9bb;background:linear-gradient(135deg,#fff8ee,#fffdf8);border-radius:13px;box-shadow:0 6px 18px rgba(124,92,36,.05)}
.product-form-grid{gap:20px 24px}.product-form-grid>label,.filter-bar label,.manual-grid label{color:#604f54;font-size:10px;letter-spacing:.25px}.rich-toolbar{border-color:#e5d5d8;background:#fff8fa}.rich-editor{border-color:#e5d5d8!important;border-radius:0 0 11px 11px!important;background:#fffdfc}
.image-preview-box{border-color:#e5cfd5;background:linear-gradient(135deg,#fffaf8,#fff);border-radius:16px}.image-thumb{border-color:#e5d5d8;border-radius:12px}.lot-panel{background:linear-gradient(135deg,#fffdfc,#fff8f9);border:1px solid #ead8dc;border-radius:18px}.lot-edit-row{border-color:#ead8dc!important;background:#fff}
.variable-section{border-color:#e6d2d8;background:linear-gradient(135deg,#fff8fa,#fffdfc);border-radius:16px;box-shadow:0 8px 20px rgba(73,39,48,.035)}.variant-edit-row{border-color:#ead8dc;background:#fff;box-shadow:0 5px 14px rgba(73,39,48,.035)}.promotion-section{border-color:#ead8dc}.promotion-section .small-button:first-child{background:#fff8ed;border-color:#ead8bd;color:#8a6230}
.products-table{border:1px solid #ead8dc;border-radius:14px;overflow:hidden}.products-table th{background:#fff5f6;color:#856f74}.products-table td{background:#fffdfc}.products-table tr:hover td{background:#fff7f9}.mobile-product-card{background:#fffdfc}.product-cell img,.table-emoji{box-shadow:0 4px 12px rgba(73,39,48,.1)}
.orders-filter-bar,.inline-search-panel,.manual-heart-progress{border-color:#ead8dc;background:linear-gradient(135deg,#fff9fa,#fffdfc);box-shadow:0 8px 20px rgba(73,39,48,.04)}.order-card{background:#fffdfc}.status-label{border:1px solid #f0dfbe}.manual-progress-track{background:#f2e3e7}.manual-progress-track span{background:linear-gradient(90deg,#bf6d86,#d5a16d)}
.barcode-panel{display:block!important;border:1px solid #e2cbd2;border-radius:16px;padding:16px 18px;background:linear-gradient(135deg,#fff7f9 0%,#fffdfc 70%);box-shadow:0 9px 22px rgba(73,39,48,.055)}.barcode-panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.barcode-panel-heading b{display:block;font-size:13px;color:#4d3a40}.barcode-panel-heading small{display:block;color:#8c7a7e;font-size:10px;line-height:1.45;margin-top:3px}.barcode-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#f3dfe5;color:#a64f69;font-size:25px;line-height:1;font-weight:bold}.barcode-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.barcode-actions .product-check{flex:1;margin-top:0}.barcode-actions .product-check input{flex:1}.manual-scan-row.barcode-panel{grid-template-columns:1fr!important;margin:7px 0 18px;padding:16px 18px}.manual-scan-row.barcode-panel .barcode-actions{display:grid;grid-template-columns:auto minmax(180px,1fr) auto}.manual-scan-row.barcode-panel .barcode-actions input{min-width:0;height:42px;border:1px solid #e5d5d8;border-radius:11px;padding:0 11px}.variant-option{border-color:#e4cbd2;background:#fff8fa;border-radius:12px;transition:background .18s,border .18s,transform .18s}.variant-option:hover:not(:disabled){background:#fbeaf0;border-color:#c47a8e;transform:translateY(-1px)}.variant-option:disabled{opacity:.48}
.modal{background:rgba(48,40,43,.66);backdrop-filter:blur(4px)}.modal-card{border:1px solid #ead8dc;box-shadow:0 24px 70px rgba(48,40,43,.22)}
/* Admin: visual de painel com navegação lateral, sem alterar o HTML funcional. */
.admin-shell .topbar{position:fixed;inset:0 auto 0 0;z-index:20;width:248px;height:100vh;min-height:100vh;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:25px 16px;gap:24px;overflow-y:auto;border:0;border-right:1px solid #ead8dc;border-radius:0;background:rgba(255,251,249,.97)}.admin-shell .brand{padding:2px 8px;margin-bottom:10px}.admin-shell .top-links{width:100%;max-width:none;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:5px}.admin-shell .top-links .nav-link,.admin-shell .top-links .tiktok,.admin-shell .top-links .logout-button{width:100%;text-align:left;margin:0;border-radius:11px;padding:11px 12px}.admin-shell .top-links .nav-link:hover,.admin-shell .top-links .nav-link.active{background:#f8e8ed}.admin-shell .top-links .tiktok{margin-top:12px;background:#fff;color:var(--pink-dark);border:1px solid #ead8dc}.admin-shell .container{max-width:none;margin:0 38px 0 286px;padding:34px 0 65px}.admin-shell .page-heading{max-width:1180px}.admin-shell .panel{max-width:1180px}.admin-shell .top-links .logout-button{color:#a74452;background:#fff8f8}
@media(max-width:900px){.admin-shell .topbar{position:relative;width:auto;height:auto;min-height:70px;flex-direction:row;align-items:flex-start;justify-content:space-between;padding:12px;gap:12px;border-right:0;border-bottom:1px solid #ead8dc}.admin-shell .brand{margin:0;padding:0}.admin-shell .top-links{flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;width:auto}.admin-shell .top-links .nav-link,.admin-shell .top-links .tiktok,.admin-shell .top-links .logout-button{width:auto;text-align:center;padding:8px 9px}.admin-shell .container{margin:0 auto;padding:22px 16px 50px}.admin-shell .panel{max-width:none}}
@media(max-width:640px){.admin-shell .topbar{flex-direction:column;gap:10px}.admin-shell .top-links{width:100%;justify-content:flex-start}.admin-shell .top-links .nav-link,.admin-shell .top-links .tiktok,.admin-shell .top-links .logout-button{font-size:10px}.panel{padding:20px 16px}.page-heading{margin:24px 0 18px}.page-heading h1{font-size:31px}.barcode-actions,.manual-scan-row.barcode-panel .barcode-actions{display:grid;grid-template-columns:1fr}.barcode-actions .product-check{display:grid;grid-template-columns:minmax(0,1fr) auto}.barcode-actions .product-check input{width:100%}}

/* Correções de consistência entre páginas administrativas. */
@media(min-width:901px){.admin-shell .container{width:calc(100% - 324px);max-width:none;min-width:0;margin-left:286px;margin-right:38px}.admin-shell .panel,.admin-shell .page-heading,.admin-shell .notice,.admin-shell .admin-actions{width:100%;max-width:none;min-width:0}.admin-shell .table-wrap{max-width:100%;min-width:0}.admin-shell .products-table{min-width:760px}.admin-shell .product-form-grid{max-width:none;min-width:0}}
#product-form-panel[hidden]{display:none!important}#product-form-panel[hidden] .form-actions{display:none!important}#product-form-panel:not([hidden]) .form-actions{display:flex!important;position:static!important;visibility:visible}
.orders-page .container>h1{font:600 38px Georgia,serif;letter-spacing:-.7px;margin:7px 0}.orders-page .container>.eyebrow{margin-top:0}.orders-page .panel{margin-top:22px}.orders-page .orders-title-row{padding-bottom:4px}.orders-page .admin-actions{margin-top:20px}
@media(max-width:900px){.admin-shell .container{width:auto;min-width:0;margin:0 auto}.admin-shell .products-table{min-width:0}.orders-page .container>h1{font-size:31px}}

/* Correção definitiva do recorte causado por overflow horizontal da tabela. */
html:has(body.admin-shell),body.admin-shell{overflow-x:hidden}.admin-shell #admin-content,.admin-shell main.container{min-width:0;max-width:100%;overflow-x:hidden}.admin-shell .panel{box-sizing:border-box;min-width:0;max-width:100%;overflow:hidden}.admin-shell .table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.admin-shell .products-table{margin:0;max-width:none}.admin-shell .page-heading,.admin-shell .notice,.admin-shell .admin-actions{box-sizing:border-box;max-width:100%;min-width:0}
@media(max-width:900px){.admin-shell main.container{overflow-x:hidden}.admin-shell .table-wrap{overflow-x:auto}.admin-shell .products-table{min-width:760px}}

/* Escopo da vitrine: imagens ficam presas ao card e não interferem no painel. */
body:not(.admin-shell) .public-catalog{box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px;margin-top:24px;overflow:hidden}
body:not(.admin-shell) .public-catalog .product-art,body:not(.admin-shell) #wholesale-builder .product-art{position:relative;height:220px;min-height:0;overflow:hidden}
body:not(.admin-shell) .public-catalog .product-photo,body:not(.admin-shell) #wholesale-builder .product-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important}
body:not(.admin-shell) .hero{overflow:hidden}
body:not(.admin-shell) .hero-feature-image{display:block;width:min(34%,260px);height:150px;max-width:260px;object-fit:contain;object-position:center;border-radius:14px;flex:none}
@media(min-width:901px){.admin-shell .topbar{position:fixed!important;inset:0 auto 0 0!important;width:248px!important;height:100vh!important;min-height:100vh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;padding:25px 16px!important;overflow-y:auto!important}.admin-shell main.container{width:calc(100% - 324px)!important;max-width:none!important;margin-left:286px!important;margin-right:38px!important;padding:34px 0 65px!important}.admin-shell #admin-content{min-width:0!important;max-width:none!important}}
@media(max-width:700px){body:not(.admin-shell) .public-catalog{padding:18px 15px}body:not(.admin-shell) .public-catalog .product-art,body:not(.admin-shell) #wholesale-builder .product-art{height:175px}body:not(.admin-shell) .hero-feature-image{width:100%;max-width:190px;height:115px;margin:8px auto 0}}
@media(min-width:901px){.admin-shell main.container{overflow:visible!important}.admin-shell #admin-content{overflow:visible!important}.admin-shell .panel{overflow:visible!important}.admin-shell .table-wrap{overflow-x:auto!important;overflow-y:visible!important}}

/* Hero da loja: imagem e vídeo com o mesmo limite de tamanho (evita ocupar a tela inteira) */
body:not(.admin-shell) .hero-feature-image,body:not(.admin-shell) .hero-feature-video{display:block;width:min(40%,400px);height:auto;max-width:400px;max-height:300px;object-fit:contain;object-position:center;border-radius:16px;flex:none;box-shadow:0 14px 34px #4b293021}
@media(max-width:700px){body:not(.admin-shell) .hero-feature-image,body:not(.admin-shell) .hero-feature-video{width:100%;max-width:100%;height:auto;max-height:260px;margin:8px 0 0}}
.admin-shell #hero-image-preview,.admin-shell #hero-video-preview{max-width:100%;max-height:240px}

/* Tamanhos de imagens do cabeçalho e janelas (regras restauradas) */
.brand-logo{display:block;width:46px;height:46px;max-width:46px;object-fit:cover;border-radius:12px;flex:none}
.auth-card .brand-logo{width:72px;height:72px;max-width:72px;margin:0 auto 12px;border-radius:16px}
.header-socials{display:flex;align-items:center;gap:10px;flex:none}
.header-socials a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.tiktok-icon-link{padding:6px 12px}
.tiktok-logo{display:block;height:22px;width:auto;max-width:90px;object-fit:contain}
.social-icon-link{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff}
.social-icon-link img{display:block;width:24px;height:24px;object-fit:contain}
.image-lightbox{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(20,12,15,.84)}
.image-lightbox[hidden]{display:none}
.image-lightbox img{display:block;max-width:100%;max-height:90vh;object-fit:contain;border-radius:12px}
.image-lightbox-close{position:absolute;top:14px;right:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:26px;line-height:1}
#casino-result-image{display:block;width:96px;height:96px;max-width:100%;object-fit:contain;flex:none}
@media(max-width:700px){body:not(.admin-shell) .hero{flex-direction:column;align-items:stretch;gap:14px}body:not(.admin-shell) .hero p:not(.eyebrow){max-width:none}body:not(.admin-shell) .hero-feature-image,body:not(.admin-shell) .hero-feature-video{max-width:100%;margin:0 auto}}

body:not(.admin-shell) .hero{gap:32px}
body:not(.admin-shell) .hero>div:first-child{flex:1;min-width:0}
@media(max-width:700px){body:not(.admin-shell) .hero{gap:14px}}
