:root {
  --blue: #043fca;
  --red: #ed1746;
  --green: #2f6f1e;
  --ink: #202431;
  --muted: #6f7480;
  --line: #d8dbe2;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --footer: #161b26;
  --soft: #eef3ff;
  --radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 36px));
  background: #173f24;
  color: white;
  border-radius: 6px;
  padding: 13px 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.22);
  font-weight: 700;
}
.toast.error { background: #9b0e2d; }
.toast.info { background: var(--blue); }
.top-line { height: 5px; background: var(--red); }
.site-header {
  min-height: 70px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(220px, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
  padding: 0;
}
.brand span span { color: var(--red); font-weight: 500; }
.brand img { max-height: 48px; max-width: 78px; object-fit: contain; display: none; flex: 0 0 auto; }
.brand .brand-name { display: none; }
.search-box {
  height: 42px;
  border: 1px solid #cfd3dc;
  background: white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}
.search-box input { border: 0; outline: 0; width: 100%; }
.search-box span { font-size: 26px; line-height: 1; color: #555; }
.cep-btn, .account-btn, .icon-btn, .section-tabs button, .admin-tabs button {
  border: 0;
  background: transparent;
  color: var(--blue);
  min-height: 40px;
  border-radius: 5px;
}
.account-btn { background: #f1f1f4; padding: 0 18px; min-width: 190px; }
.cep-btn { font-weight: 700; }
.icon-btn { font-size: 22px; min-width: 44px; position: relative; }
.icon-btn strong {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--red);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  min-width: 18px;
  padding: 2px 5px;
}
.section-tabs, .admin-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.section-tabs button, .admin-tabs button { color: #3a3f4b; padding: 9px 14px; }
.section-tabs button.active, .admin-tabs button.active { background: var(--blue); color: white; }
.view { display: none; }
.view.active { display: block; }

.banner-wrap { position: relative; height: 270px; overflow: hidden; background: #fff; }
.banner-track { display: flex; height: 100%; transition: transform .35s ease; }
.banner {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: var(--blue);
  color: white;
}
.banner.image-only {
  display: block;
  background: #fff;
}
.banner .copy { padding: 32px 70px; }
.banner h2 { font-size: 38px; margin: 0 0 8px; letter-spacing: 0; }
.banner p { margin: 0; font-size: 18px; }
.banner img { width: 100%; height: 270px; object-fit: cover; display: block; }
.banner.image-only img { width: 100%; height: 100%; object-fit: cover; }
.banner .price { font-size: 48px; font-weight: 800; }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.38);
  color: var(--blue);
  width: 38px;
  height: 38px;
  font-size: 28px;
}
.banner-arrow:hover { background: rgba(255,255,255,.72); }
#prevBanner { left: 6%; }
#nextBanner { right: 6%; }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.banner-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #e1e4ea;
}
.banner-dots button.active { background: var(--blue); }

.store-layout { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 24px; }
.filters { display: none; }
.filters, .panel, .table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.filters h2, .panel h2 { margin: 0 0 14px; font-size: 18px; }
.filters button {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.filters button.active { border-color: var(--blue); color: var(--blue); background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-head h1 { margin: 0 0 4px; font-size: 26px; }
.section-head p, .muted { margin: 0; color: var(--muted); }
.section-head select { border: 1px solid var(--line); border-radius: 5px; min-height: 40px; padding: 0 10px; }
.store-content, .product-grid, .product-card { min-width: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; width: 100%; }
.product-card {
  background: white;
  border: 1px solid #cfd3dc;
  border-radius: var(--radius);
  min-height: 500px;
  padding: 24px 24px 20px;
  box-shadow: 0 2px 7px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.product-image-wrap { position: relative; height: 175px; display: grid; place-items: center; }
button.product-image-wrap { width: 100%; border: 0; background: transparent; padding: 0; }
.coupon {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--blue);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  padding: 8px 7px;
  line-height: 1.2;
  text-transform: uppercase;
}
.coupon span { display: block; color: var(--red); background: white; margin-top: 3px; padding: 1px 2px; }
.product-card img { max-width: 100%; max-height: 165px; object-fit: contain; }
.product-title { min-height: 48px; margin: 22px 0 12px; font-size: 15px; line-height: 1.45; }
.rating { color: #c96b13; font-size: 18px; margin-bottom: 18px; }
.rating small { color: var(--ink); font-size: 12px; margin-left: 6px; }
.old-price { color: #70747f; text-decoration: line-through; font-size: 13px; }
.discount-badge { background: var(--green); color: white; border-radius: 3px; padding: 2px 6px; font-size: 12px; margin-left: 5px; }
.sale-price { color: var(--blue); font-weight: 800; font-size: 22px; margin: 6px 0 4px; }
.pix { color: var(--blue); font-size: 12px; margin-bottom: 16px; }
.buy-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; margin-top: auto; }
.buy-row .primary { min-width: 0; white-space: normal; line-height: 1.2; }
.qty { border: 1px solid var(--line); border-radius: 5px; height: 40px; padding: 0 8px; width: 100%; }
.primary, .secondary, .danger {
  border: 0;
  border-radius: 5px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}
.primary { background: var(--blue); color: white; }
.secondary { background: var(--soft); color: var(--blue); }
.danger { background: #ffe9ee; color: #9b0e2d; }
.page { padding: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 40px;
  padding: 8px 10px;
  background: white;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
textarea { min-height: 110px; resize: vertical; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.admin-tabs { padding-left: 0; background: transparent; border: 0; flex-wrap: wrap; }
#adminPanel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 10px; align-items: center; margin: 12px 0; }
.bar { height: 22px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  box-shadow: 0 20px 70px rgba(0,0,0,.25);
}
.dialog.wide { width: min(760px, calc(100vw - 32px)); }
.dialog.order-preview-dialog { width: min(980px, calc(100vw - 24px)); }
.dialog form { padding: 24px; }
.dialog::backdrop { background: rgba(12,16,25,.48); }
.close { float: right; border: 0; background: transparent; font-size: 28px; }
.cart-line { display: grid; grid-template-columns: 1fr 72px 100px 36px; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-summary { margin: 18px 0; padding: 14px; background: var(--bg); border-radius: 5px; display: grid; gap: 6px; }
.rep-client-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
  background: var(--bg);
}
.rep-client-box h3 { margin: 0; font-size: 17px; }
.rep-client-box select { min-height: 120px; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.order-preview-body {
  max-height: min(68vh, 760px);
  overflow: auto;
  margin: 14px 0;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.order-preview-body .order-sheet {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  background: white;
  color: #111;
}
.order-preview-body .order-sheet header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #111;
}
.order-preview-body .order-sheet h1 { margin: 0; font-size: 22px; }
.order-preview-body .order-meta { margin-bottom: 14px; }
.order-preview-body .order-meta p { margin: 4px 0; }
.order-preview-body .number { text-align: right; }
.order-preview-body .totals { max-width: 310px; margin: 16px 0 24px auto; }
.order-preview-body .totals p { display: flex; justify-content: space-between; gap: 16px; }
.order-preview-body .grand-total { padding-top: 8px; border-top: 2px solid #111; font-size: 18px; }
.order-preview-body .signature { margin-top: 42px; padding-top: 8px; border-top: 1px solid #111; text-align: center; }
.order-preview-actions { display: flex; align-items: end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.order-preview-actions label { min-width: 170px; margin: 0; }
.social-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  z-index: 45;
  justify-items: end;
}
.social-bubble {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-bubble:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.28); }
.social-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.social-icon svg { width: 100%; height: 100%; display: block; }
.social-bubble.instagram {
  color: #24242a;
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 7px 16px 7px 7px;
}
.social-bubble.instagram .social-icon {
  background: transparent;
}
.instagram-logo .ig-bg { fill: url(#igGlow); }
.instagram-logo .ig-frame,
.instagram-logo .ig-lens {
  fill: none;
  stroke: white;
  stroke-width: 5.5;
}
.instagram-logo .ig-dot {
  fill: white;
  stroke: none;
}
.social-bubble.instagram .social-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}
.social-bubble.whatsapp {
  background: #55c941;
  border-radius: 999px;
  padding: 7px 18px 7px 7px;
}
.social-bubble.whatsapp .social-icon {
  background: white;
  border: 6px solid white;
  border-radius: 50%;
}
.social-bubble.whatsapp .social-icon svg path:first-child { fill: #20b856; }
.social-bubble.whatsapp .social-icon svg path:last-child { fill: white; }
.social-bubble.whatsapp .social-text {
  display: grid;
  line-height: .92;
  font-style: italic;
  color: white;
}
.social-bubble.whatsapp strong { font-size: 24px; }
.social-bubble.whatsapp small { font-size: 18px; font-weight: 800; }
.site-footer {
  margin-top: 24px;
  background: var(--footer);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 28px;
  padding: 34px 24px;
}
.site-footer h2 { margin: 0 0 10px; font-size: 18px; }
.site-footer p { color: #d7dbe4; line-height: 1.5; }
.footer-socials { display: grid; gap: 6px; margin-top: 10px; }
.footer-socials a { color: white; text-decoration: none; font-weight: 700; }
.footer-socials a:hover { color: #d7e5ff; }
.logo-marquee { overflow: hidden; max-width: 360px; }
.logo-strip { display: flex; gap: 10px; width: max-content; animation: logoSlide 18s linear infinite; }
.logo-strip img { width: 64px; height: 44px; object-fit: cover; border-radius: 5px; background: white; flex: 0 0 auto; }
@keyframes logoSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.account-wrap { position: relative; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 40;
}
.account-menu strong { display: block; padding: 9px 10px; font-size: 13px; }
.account-menu button { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px; border-radius: 5px; color: var(--ink); }
.account-menu button:hover { background: var(--soft); color: var(--blue); }

.admin-page { padding: 0; }
.admin-shell { display: grid; grid-template-columns: 245px 1fr; min-height: 650px; }
.admin-side {
  background: #111827;
  color: white;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-side strong { padding: 0 10px 12px; font-size: 18px; }
.admin-side button {
  border: 0;
  background: transparent;
  color: #d8deea;
  text-align: left;
  min-height: 40px;
  border-radius: 5px;
  padding: 0 12px;
}
.admin-side button.active, .admin-side button:hover { background: var(--blue); color: white; }
.admin-content { padding: 24px; min-width: 0; }
.grid-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.order-print-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.order-print-toolbar label { min-width: 160px; margin: 0; }
.order-print-toolbar button { min-height: 40px; }
.admin-form { margin-bottom: 14px; }
.import-panel { margin-bottom: 14px; display: grid; gap: 12px; }
.import-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.import-actions input { min-height: 40px; }
.span-2 { grid-column: span 2; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.metric span { color: var(--muted); display: block; margin-bottom: 8px; }
.metric strong { font-size: 26px; color: var(--blue); }
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  background: var(--soft);
  color: var(--blue);
}
.status.entregue { background: #e8f8ec; color: #177236; }
.status.cancelado { background: #ffe9ee; color: #9b0e2d; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.color-grid input { width: 100%; padding: 2px; }
.form-grid.one { grid-template-columns: 1fr; }
.order-print-host { display: none; }
.register-fields { display: grid; gap: 12px; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  text-align: left;
  font-weight: 700;
}
.login-message { color: #9b0e2d; margin: 0; font-size: 13px; }

.product-dialog { width: min(1180px, calc(100vw - 28px)); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; }
.detail-image {
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #fff;
}
.detail-price { color: var(--blue); font-size: 36px; font-weight: 800; margin: 10px 0; }
.detail-buy { grid-template-columns: 90px 1fr; max-width: 420px; margin: 18px 0; }
.freight-box {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 10px;
  align-items: center;
  background: var(--soft);
  padding: 16px;
  border-radius: 5px;
}
.freight-box p { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .search-box, .cep-btn { grid-column: 1 / -1; }
  .account-btn { min-width: 0; }
  .store-layout, .two-col, .chart-grid, .site-footer, .admin-shell, .detail-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .view, main, .admin-page, .admin-shell, .admin-content, #adminPanel, .panel, .table-wrap { min-width: 0; max-width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .freight-box { grid-template-columns: 1fr; }
  .filters { order: 2; }
  .banner { grid-template-columns: 1fr; }
  .banner img:nth-of-type(2), .banner .price { display: none; }
  .banner .copy { padding: 24px 64px; }
  .banner h2 { font-size: 28px; }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) 56px;
    padding: 12px;
    gap: 10px;
  }
  .brand { grid-column: 1 / -1; width: 100%; font-size: 19px; }
  .brand img { max-width: 70px; max-height: 58px; }
  .brand .brand-name:not(.hidden) {
    display: block;
    max-width: calc(100% - 80px);
    color: #14213d;
    font-family: "Arial Black", Impact, Arial, sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 900;
    line-height: 1.04;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .search-box, .cep-btn { grid-column: 1 / -1; width: 100%; }
  .account-wrap { grid-column: 1; width: 100%; min-width: 0; }
  .account-btn {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #cartButton {
    grid-column: 2;
    width: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }
  #cartButton strong { top: 0; right: 2px; }
  .section-tabs { overflow-x: auto; padding: 8px 12px; }
  .store-layout, .page { padding: 14px; }
  .admin-content { width: 100%; padding: 12px; overflow: hidden; }
  .admin-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .admin-side strong { display: none; }
  .admin-side button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }
  #adminPanel { width: 100%; padding: 12px; overflow: hidden; }
  .panel, .import-panel { width: 100%; min-width: 0; }
  .import-actions { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .import-actions > * { width: 100%; min-width: 0; max-width: 100%; }
  input[type="file"] { font-size: 12px; }
  .table-wrap { width: 100%; max-width: 100%; padding: 10px; overflow: hidden; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-wrap tbody { display: grid; gap: 12px; }
  .table-wrap tr { padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .table-wrap td[data-label=""] { grid-template-columns: 1fr; }
  .table-wrap td[data-label=""]::before { display: none; }
  .table-wrap .actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .table-wrap .actions button, .table-wrap .actions select { width: 100%; max-width: 100%; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-card { min-height: 0; padding: 16px; }
  .product-image-wrap { height: 190px; }
  .product-title { min-height: 0; margin-top: 16px; }
  .buy-row { grid-template-columns: 64px minmax(0, 1fr); }
  .buy-row .primary { padding: 8px 10px; font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; }
  .cart-line { grid-template-columns: 1fr 64px; }
  .cart-line strong, .cart-line button { grid-column: auto; }
  .social-float { right: 10px; bottom: 10px; gap: 8px; }
  .social-bubble { min-height: 46px; padding-right: 12px; }
  .social-icon { width: 42px; height: 42px; font-size: 22px; border-radius: 11px; }
  .social-bubble.instagram .social-text { font-size: 20px; }
  .social-bubble.whatsapp .social-icon { border-width: 4px; font-size: 20px; }
  .social-bubble.whatsapp strong { font-size: 17px; }
  .social-bubble.whatsapp small { font-size: 13px; }
  .order-print-toolbar { align-items: stretch; }
  .order-print-toolbar label, .order-print-toolbar button { width: 100%; }
  .dialog.order-preview-dialog form { padding: 16px; }
  .order-preview-body { padding: 8px; }
  .order-preview-body .order-sheet { width: 100%; min-width: 0; padding: 14px; }
  .order-preview-body .order-sheet table { table-layout: fixed; }
  .order-preview-body .order-sheet th, .order-preview-body .order-sheet td { padding: 5px 2px; font-size: 11px; overflow-wrap: anywhere; }
  .order-preview-actions { align-items: stretch; }
  .order-preview-actions label, .order-preview-actions button { width: 100%; }
}

@media print {
  html, body { width: auto; max-width: none; overflow: visible; background: #fff; }
  body.printing-orders > *:not(#orderPrintHost) { display: none !important; }
  body.printing-orders #orderPrintHost { display: block !important; color: #111; font-family: Arial, sans-serif; }
  #orderPrintHost .order-sheet { width: 100%; margin: 0 auto; break-after: page; page-break-after: always; }
  #orderPrintHost .order-sheet:last-child { break-after: auto; page-break-after: auto; }
  #orderPrintHost.receipt { font-size: 10px; }
  #orderPrintHost.receipt .order-sheet { width: 72mm; }
  #orderPrintHost.a4 { font-size: 12px; }
  #orderPrintHost .order-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid #111; }
  #orderPrintHost .order-sheet h1 { margin: 0; font-size: 21px; }
  #orderPrintHost.receipt .order-sheet h1 { font-size: 15px; }
  #orderPrintHost .order-meta { margin-bottom: 10px; }
  #orderPrintHost p { margin: 3px 0; }
  #orderPrintHost table { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; }
  #orderPrintHost thead { display: table-header-group; position: static; width: auto; height: auto; margin: 0; clip: auto; }
  #orderPrintHost tbody { display: table-row-group; }
  #orderPrintHost tr { display: table-row; }
  #orderPrintHost th, #orderPrintHost td { display: table-cell; padding: 6px 4px; border-bottom: 1px solid #aaa; text-align: left; overflow-wrap: anywhere; }
  #orderPrintHost.receipt th, #orderPrintHost.receipt td { padding: 4px 2px; }
  #orderPrintHost th:first-child { width: 55%; }
  #orderPrintHost.receipt th:first-child { width: 45%; }
  #orderPrintHost .number { text-align: right; }
  #orderPrintHost .totals { max-width: 280px; margin: 10px 0 20px auto; }
  #orderPrintHost.receipt .totals { max-width: 100%; }
  #orderPrintHost .totals p { display: flex; justify-content: space-between; gap: 10px; }
  #orderPrintHost .grand-total { padding-top: 6px; border-top: 2px solid #111; font-size: 16px; }
  #orderPrintHost.receipt .grand-total { font-size: 13px; }
  #orderPrintHost .signature { margin-top: 36px; padding-top: 6px; border-top: 1px solid #111; text-align: center; }
  #orderPrintHost.receipt .signature { margin-top: 20px; }
}
