:root{--rose:#c52f5a;--rose-dark:#a80f3d;--rose-soft:#fff0f4;--bg:#fff8f9;--card:#fff;--text:#34242a;--muted:#79636a;--line:#f1cbd4;--shadow:0 18px 40px rgba(126,35,60,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#fff9fa,#fff1f4);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}a{text-decoration:none;color:inherit}.admin-layout{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.admin-side{position:sticky;top:0;height:100vh;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);border-right:1px solid var(--line);padding:22px 18px}.admin-logo{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0 0 22px;padding:10px 12px}.admin-logo span{font-size:26px}.admin-logo strong{font-family:Georgia,"Times New Roman",serif;font-size:30px;color:var(--rose);line-height:1}.admin-logo small{font-size:13px;color:var(--muted)}.admin-side nav{display:grid;gap:6px}.admin-side nav a{padding:12px 14px;border-radius:14px;color:#624b52;font-weight:600}.admin-side nav a:hover,.admin-side nav a.active{background:var(--rose-soft);color:var(--rose)}.admin-main{padding:30px;max-width:1500px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 18px}.page-head span{display:block;color:var(--rose);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.page-head h1{font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1.05;margin:4px 0 0;color:var(--text);font-weight:600}.page-head p{margin:6px 0 0;color:var(--muted)}.card{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow);margin:0 0 18px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:var(--shadow)}.stat-card b{display:block;font-size:38px;color:var(--rose);line-height:1}.stat-card span{color:var(--muted);font-weight:700}.tip{font-size:16px;color:#5d4a50}.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#d94a70,#ad123f);color:#fff;border:0;border-radius:14px;min-height:46px;padding:0 18px;font-weight:850;cursor:pointer;box-shadow:0 12px 24px rgba(189,40,84,.17)}.btn.small{min-height:38px;padding:0 14px;font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:800;color:#584249;font-size:14px}label input,label select,label textarea{margin-top:7px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#fffafa;color:var(--text);padding:13px 14px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#dc7890;box-shadow:0 0 0 4px rgba(220,120,144,.14)}textarea{min-height:115px;resize:vertical}.check{display:flex;align-items:center;gap:10px;padding:12px 0}.check input{width:auto;margin:0}.table-card{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px;border-bottom:1px solid #f4d9df;text-align:left;vertical-align:middle}th{font-size:13px;color:var(--rose);text-transform:uppercase;letter-spacing:.05em}td b{display:block;color:var(--text)}td small{display:block;color:var(--muted);margin-top:3px}.thumb{width:66px;height:66px;object-fit:cover;border-radius:14px;background:#fff0f2;border:1px solid #f4d6dc}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:850}.pill.ok{background:#e9fbf0;color:#1d8e52}.pill.off{background:#fff0f0;color:#b51d4b}.old{text-decoration:line-through;color:#88777c;font-size:13px}.price,.price-line strong{font-weight:900;color:var(--rose)}.disc{background:#e53935;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px}.alert{padding:14px 16px;border-radius:16px;background:#fff2f5;border:1px solid var(--line);color:var(--rose);font-weight:750;margin-bottom:16px}.err{background:#fff0f0;color:#b42335}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px}.login-shell{width:min(460px,100%)}.login-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 24px 55px rgba(126,35,60,.13)}.login-brand{text-align:center;margin-bottom:18px}.login-brand span{font-size:34px;display:block}.login-brand strong{display:block;font-family:Georgia,"Times New Roman",serif;color:var(--rose);font-size:34px;line-height:1}.login-brand small{color:var(--muted);font-weight:700}.login-card h1{font-family:Georgia,"Times New Roman",serif;font-size:30px;text-align:center;margin:8px 0 8px;font-weight:600}.login-card p{text-align:center;color:var(--muted);margin:0 0 20px}.login-card label{margin-bottom:14px}.login-card button{width:100%;height:52px;margin-top:4px}.back-site{display:block;text-align:center;color:var(--rose);font-weight:750;margin-top:16px}@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-side{position:static;height:auto;padding:16px}.admin-logo{align-items:center}.admin-side nav{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-main{padding:18px}.page-head{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.card{padding:18px;border-radius:20px}table{min-width:680px}}@media(max-width:520px){.admin-side nav{grid-template-columns:1fr 1fr}.admin-side nav a{font-size:14px;padding:11px 12px}.admin-main{padding:14px}.page-head h1{font-size:30px}.btn,button{width:100%}.table-card{padding:0;border-radius:18px}.table-card table{min-width:620px}.login-card{padding:24px 18px;border-radius:24px}.login-brand strong{font-size:30px}}


/* V25 - campos de câmera e galeria no painel */
.form-grid input[type="file"]{
  cursor:pointer;
}
.form-grid label small{
  display:block;
  margin-top:6px;
  color:#8a6671;
  font-size:12px;
  line-height:1.35;
  font-weight:500;
}
.gallery-admin{
  padding:16px;
  border:1px solid #f0cbd5;
  border-radius:18px;
  background:#fff7fa;
}
.gallery-admin > strong{
  display:block;
  margin-bottom:12px;
  color:#b91d4f;
}
.gallery-admin > div{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:12px;
}
.gallery-admin label{
  background:#fff;
  border:1px solid #f0cbd5;
  border-radius:14px;
  padding:8px;
}
.gallery-admin img{
  width:100%;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  display:block;
  margin-bottom:8px;
}
@media(max-width:760px){
  .form-grid label small{font-size:11.5px;}
  .gallery-admin > div{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* V26 - segurança do acesso, conta e login por código */
.secondary-button{
  margin-top:10px;
  background:#fff !important;
  color:var(--rose) !important;
  border:1px solid var(--line) !important;
  box-shadow:none !important;
}
.code-input{
  text-align:center;
  letter-spacing:.35em;
  font-size:24px;
  font-weight:800;
}
.account-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.account-card h2{
  margin:0 0 4px;
  font-family:Georgia,"Times New Roman",serif;
  color:var(--rose);
  font-size:24px;
  font-weight:500;
}
.muted-note{
  margin:0;
  color:var(--muted);
  line-height:1.45;
  font-weight:500;
}
.confirm-card{
  border-color:#e78ca3;
  background:#fff7fa;
}
input:disabled{
  opacity:.75;
  cursor:not-allowed;
}
@media(max-width:900px){
  .account-grid{grid-template-columns:1fr;}
}

/* =========================================================
   V28 - Painel realmente responsivo no celular + uploads claros
   ========================================================= */
html, body{
  max-width:100%;
  overflow-x:hidden;
}
.admin-page,
.admin-layout,
.admin-main{
  width:100%;
  max-width:100%;
}
.price-wrap{max-width:100%;}
.price-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.disc{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;}

/* Campos de imagem organizados como opções claras */
.image-picker{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  background:linear-gradient(180deg,#fff,#fff7fa);
}
.image-picker-title{
  display:block;
  margin:0 0 10px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  line-height:1.1;
  font-weight:500;
  color:var(--rose);
}
.image-picker-note{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
  font-weight:500;
}
.image-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.image-choice{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-height:132px;
  padding:15px;
  border:1px solid #edc7d1;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 22px rgba(126,35,60,.05);
}
.image-choice strong{
  color:#463139;
  font-size:15px;
  line-height:1.2;
}
.image-choice span{
  color:#806872;
  font-size:13px;
  line-height:1.35;
  font-weight:500;
}
.image-choice input[type="file"]{
  margin-top:auto;
  width:100%;
  font-size:13px;
  color:#6d5660;
}
input[type="file"]::file-selector-button{
  border:0;
  border-radius:11px;
  padding:10px 12px;
  margin-right:10px;
  background:#ffe8ef;
  color:var(--rose);
  font-weight:800;
  cursor:pointer;
}
.current-image{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  margin:0 0 12px;
  border:1px dashed #e9b8c5;
  border-radius:16px;
  background:#fffafb;
}
.current-image img{
  width:78px;
  height:78px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #f1ccd5;
}
.current-image span{
  color:#806872;
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}

@media(max-width:760px){
  .admin-layout{
    display:block;
    min-height:100vh;
  }
  .admin-side{
    position:relative;
    top:auto;
    height:auto;
    width:100%;
    padding:18px 14px 16px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .admin-logo{
    align-items:center;
    text-align:center;
    margin-bottom:16px;
    padding:8px 0;
  }
  .admin-logo strong{font-size:32px;}
  .admin-side nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .admin-side nav a{
    min-width:0;
    width:100%;
    padding:12px 10px;
    border-radius:14px;
    text-align:center;
    font-size:14px;
    line-height:1.15;
    white-space:normal;
    word-break:normal;
    overflow-wrap:anywhere;
  }
  .admin-main{
    width:100%;
    max-width:100%;
    padding:18px 12px 32px;
    overflow:hidden;
  }
  .page-head{
    display:block;
    margin-bottom:14px;
  }
  .page-head h1{
    font-size:32px;
    line-height:1;
  }
  .page-head .btn{
    width:100%;
    margin-top:16px;
  }
  .card{
    border-radius:20px;
    padding:16px;
  }
  .form-grid{
    grid-template-columns:1fr;
    gap:15px;
  }
  input,select,textarea{
    min-height:50px;
    font-size:16px;
  }
  textarea{min-height:150px;}
  .check{
    border:1px solid var(--line);
    border-radius:16px;
    padding:13px 14px;
    background:#fffafb;
  }
  .check input{width:22px;height:22px;}
  .image-picker{
    padding:14px;
    border-radius:18px;
  }
  .image-picker-title{
    font-size:20px;
  }
  .image-choice-grid{
    grid-template-columns:1fr;
  }
  .image-choice{
    min-height:0;
    padding:14px;
  }
  .current-image img{
    width:66px;
    height:66px;
  }

  /* Listas do painel em formato de cartão no mobile, sem rolagem horizontal */
  .table-card{
    overflow:visible !important;
    padding:0;
    border:0;
    box-shadow:none;
    background:transparent;
  }
  .table-card table,
  .table-card tbody{
    display:block;
    width:100%;
    min-width:0 !important;
  }
  .table-card tr:first-child{display:none;}
  .table-card tr{
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:8px 12px;
    width:100%;
    padding:14px;
    margin:0 0 12px;
    border:1px solid var(--line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 12px 28px rgba(126,35,60,.08);
  }
  .table-card td{
    display:block;
    min-width:0;
    padding:0 !important;
    border:0 !important;
    text-align:left;
    overflow:visible;
  }
  .table-card td::before{
    display:block;
    margin:0 0 3px;
    font-size:11px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--rose);
    font-weight:850;
  }
  .table-card td .thumb,
  .table-card .thumb{
    width:76px;
    height:76px;
    border-radius:16px;
  }
  .table-card td b{
    font-size:17px;
    line-height:1.15;
    overflow-wrap:anywhere;
  }
  .table-card td small{
    font-size:13px;
    line-height:1.25;
  }
  .table-card .btn.small{
    width:100%;
    min-height:42px;
  }
  .table-card .price-wrap,
  .table-card .price-line{
    width:100%;
  }
  .table-card .price-line strong,
  .table-card .price{
    font-size:18px;
    line-height:1.05;
  }
  .table-card .old{font-size:12px;}
  .table-card .disc{
    font-size:11px;
    padding:5px 7px;
  }

  .products-table td:nth-child(1),
  .categories-table td:nth-child(1),
  .catalogs-table td:nth-child(1){
    grid-column:1;
    grid-row:1 / span 3;
  }
  .products-table td:nth-child(2),
  .categories-table td:nth-child(2),
  .catalogs-table td:nth-child(2){
    grid-column:2;
  }
  .products-table td:nth-child(3),
  .categories-table td:nth-child(3),
  .catalogs-table td:nth-child(3){
    grid-column:2;
  }
  .products-table td:nth-child(4),
  .categories-table td:nth-child(4),
  .catalogs-table td:nth-child(4){
    grid-column:2;
  }
  .products-table td:nth-child(5){grid-column:1 / -1;}
  .products-table td:nth-child(6){grid-column:1 / -1;}
  .categories-table td:nth-child(5){grid-column:1 / -1;}

  .products-table td:nth-child(2)::before{content:"Produto";}
  .products-table td:nth-child(3)::before{content:"Catálogo";}
  .products-table td:nth-child(4)::before{content:"Preço";}
  .products-table td:nth-child(5)::before{content:"Status";}
  .products-table td:nth-child(6)::before{content:"Ação";}

  .categories-table td:nth-child(2)::before{content:"Categoria";}
  .categories-table td:nth-child(3)::before{content:"Catálogo";}
  .categories-table td:nth-child(4)::before{content:"Status";}
  .categories-table td:nth-child(5)::before{content:"Ação";}

  .catalogs-table td:nth-child(2)::before{content:"Catálogo";}
  .catalogs-table td:nth-child(3)::before{content:"Status";}
  .catalogs-table td:nth-child(4)::before{content:"Ação";}
}

@media(max-width:430px){
  .admin-main{padding-left:10px;padding-right:10px;}
  .admin-side nav{grid-template-columns:1fr 1fr;}
  .table-card tr{
    grid-template-columns:68px minmax(0,1fr);
    padding:12px;
  }
  .table-card .thumb,
  .table-card td .thumb{
    width:68px;
    height:68px;
  }
  .table-card td b{font-size:16px;}
  .table-card .price-line strong,
  .table-card .price{font-size:17px;}
}

/* V31 - filtro por catálogo na lista de produtos */
.admin-filterbar{
  display:flex;
  align-items:flex-end;
  gap:14px;
  margin-top:-4px;
  margin-bottom:18px;
  padding:16px 18px;
}
.admin-filterbar label{
  flex:1;
  margin:0;
}
.admin-filterbar select{
  min-height:48px;
}
.admin-filterbar .filter-clear{
  min-width:150px;
  background:#fff !important;
  color:var(--rose) !important;
  border:1px solid var(--line) !important;
  box-shadow:none !important;
}
@media(max-width:760px){
  .admin-filterbar{
    display:block;
    padding:14px;
    border-radius:20px;
  }
  .admin-filterbar .filter-clear{
    width:100%;
    min-width:0;
    margin-top:12px;
  }
}

/* V32 - prévia visual das imagens escolhidas no painel */
.file-preview-list{
  display:none;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:10px;
  margin-top:12px;
}
.file-preview-list.has-files{display:grid;}
.file-preview-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:9px;
  border:1px solid #f1cbd4;
  border-radius:14px;
  background:#fff8fa;
}
.file-preview-thumb{
  flex:0 0 58px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:12px;
  background:#ffe9f0;
  color:var(--rose);
  font-size:11px;
  font-weight:900;
  border:1px solid #f2c3cf;
}
.file-preview-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.file-preview-name{
  min-width:0;
  color:#5c4750;
  font-size:13px;
  line-height:1.25;
  font-weight:700;
  overflow-wrap:anywhere;
}
@media(max-width:760px){
  .file-preview-list{grid-template-columns:1fr;}
  .file-preview-thumb{width:54px;height:54px;flex-basis:54px;}
}

/* =========================================================
   V34 - Refinamento textual completo do painel
   Reduz pesos exagerados e impede que inputs herdem bold dos labels.
   ========================================================= */
body{
  font-weight:400;
  line-height:1.48;
  letter-spacing:-.01em;
}
.admin-side nav a{
  font-weight:500;
  color:#5f4a52;
}
.admin-side nav a:hover,
.admin-side nav a.active{
  font-weight:600;
}
.admin-logo strong,
.login-brand strong{
  font-weight:500;
  letter-spacing:-.025em;
}
.admin-logo small,
.login-brand small{
  font-weight:400;
}
.page-head span{
  font-weight:650;
  letter-spacing:.12em;
}
.page-head h1,
.login-card h1{
  font-weight:500;
  letter-spacing:-.025em;
}
.page-head p,
.login-card p,
.tip,
.muted-note,
.image-picker-note,
.image-choice span,
.current-image span{
  font-weight:400;
}
.card,
.stat-card,
.login-card{
  font-weight:400;
}
.stat-card b{
  font-weight:500;
  letter-spacing:-.03em;
}
.stat-card span{
  font-weight:500;
}
label{
  font-weight:600;
  color:#5c4650;
}
input,
select,
textarea{
  font-weight:400 !important;
  color:#382932;
}
input::placeholder,
textarea::placeholder{
  font-weight:400;
  color:#9a858c;
}
select option{
  font-weight:400;
}
.check{
  font-weight:500;
}
.check label,
.check span,
.check strong{
  font-weight:500;
}
.btn,
button,
input[type="file"]::file-selector-button{
  font-weight:700;
  letter-spacing:-.005em;
}
.btn.small{
  font-weight:700;
}
th{
  font-weight:650;
  letter-spacing:.08em;
}
td{
  font-weight:400;
}
td b,
.table-card td b{
  font-weight:600;
}
td small,
.table-card td small{
  font-weight:400;
}
.price,
.price-line strong{
  font-weight:700;
  letter-spacing:-.015em;
}
.old{
  font-weight:400;
}
.disc,
.pill{
  font-weight:650;
}
.alert{
  font-weight:500;
}
.account-card h2,
.image-picker-title{
  font-weight:500;
  letter-spacing:-.02em;
}
.image-choice strong,
.gallery-admin > strong{
  font-weight:600;
}
.file-preview-name{
  font-weight:400;
}
.code-input{
  font-weight:500 !important;
}

@media(max-width:760px){
  .admin-side nav a{
    font-weight:500;
  }
  .admin-side nav a.active{
    font-weight:600;
  }
  .table-card td::before{
    font-weight:650;
  }
}

/* =========================================================
   V35 - Painel de catálogos especiais
========================================================= */
.product-select-panel h2{
  font-family:Georgia,"Times New Roman",serif;
  color:#c52f5a;
  font-size:26px;
  line-height:1.1;
  margin:0 0 6px;
  font-weight:500;
  letter-spacing:-.025em;
}
.product-select-panel p{
  margin:0 0 16px;
  color:#7c6670;
  font-size:14px;
  font-weight:400;
}
.special-product-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.special-product-option{
  display:grid;
  grid-template-columns:auto 62px 1fr;
  align-items:center;
  gap:12px;
  border:1px solid #efc7d2;
  border-radius:16px;
  background:#fff;
  padding:10px;
  cursor:pointer;
  font-weight:400;
}
.special-product-option:hover{
  border-color:#d84a70;
  box-shadow:0 10px 22px rgba(157,43,76,.08);
}
.special-product-option input{
  width:18px;
  height:18px;
}
.special-product-option img{
  width:62px;
  height:62px;
  object-fit:cover;
  border-radius:12px;
  background:#fff1f5;
}
.special-product-option b{
  display:block;
  color:#3d2a31;
  font-size:14px;
  line-height:1.2;
  font-weight:550;
}
.special-product-option small{
  display:block;
  margin-top:4px;
  color:#826b73;
  font-size:12px;
  font-weight:400;
}
@media(max-width:760px){
  .special-product-list{
    grid-template-columns:1fr;
  }
  .special-product-option{
    grid-template-columns:auto 56px 1fr;
  }
  .special-product-option img{
    width:56px;
    height:56px;
  }
}

/* V36 - produtos em datas especiais */
.special-product-picker{
  border:1px solid #efc7d2;
  border-radius:18px;
  background:#fffafa;
  padding:18px;
}
.special-product-picker>strong{
  display:block;
  color:#c52f5a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  line-height:1.1;
  font-weight:500;
  margin:0 0 7px;
}
.special-product-picker>p,
.admin-note{
  color:#7c6670;
  font-size:14px;
  line-height:1.45;
  font-weight:400;
  margin:0 0 14px;
}
.special-product-picker>div{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.special-product-picker label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  min-height:42px;
  padding:0 13px;
  border:1px solid #efc7d2;
  border-radius:999px;
  background:#fff;
  color:#59444c;
  font-weight:500;
}
.special-product-picker input{
  width:16px;
  height:16px;
}
@media(max-width:760px){
  .special-product-picker{padding:15px;}
  .special-product-picker>div{display:grid;grid-template-columns:1fr;}
  .special-product-picker label{width:100%;justify-content:flex-start;}
}
