* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 15px system-ui,sans-serif;
  background: #e8e8e8;
  color: #191919;
}

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  font-weight: 650;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #e77800;
  outline-offset: 2px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #272727;
  color: white;
  flex-wrap: wrap;
}

.toolbar button {
  background: #414141;
  color: white;
}

.toolbar button.active {
  background: #ff8a00;
  color: #171717;
}

.device {
  margin: auto;
  background: #f7f6f3;
  min-height: calc(100dvh - 62px);
}

.screen {
  container-type: inline-size;
  min-height: inherit;
}

.status,.homebar {
  display: none;
}

.device.phone {
  width: 414px;
  max-width: 100%;
  height: min(850px,calc(100dvh - 85px));
  min-height: 0;
  margin: 12px auto;
  border: 4px solid #777;
  border-radius: 48px;
  padding: 9px;
  background: #101010;
  box-shadow: 0 15px 45px #0003;
  display: flex;
  flex-direction: column;
}

.phone .status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161616;
  color: white;
  padding: 10px 17px;
  border-radius: 32px 32px 0 0;
  font-size: 12px;
}

.island {
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
}

.phone .screen {
  overflow: auto;
  flex: 1;
  min-height: 0;
  background: #f7f6f3;
  scrollbar-width: thin;
}

.phone .homebar {
  display: block;
  height: 20px;
  background: #f7f6f3;
  border-radius: 0 0 30px 30px;
  position: relative;
}

.homebar:after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 32%;
  width: 36%;
  height: 4px;
  background: #222;
  border-radius: 8px;
}

header {
  background: #171717;
  color: white;
  padding: 18px max(16px,calc((100% - 1120px)/2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand {
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1;
}

.brand span {
  color: #ff8a00;
  display: block;
  font-size: 12px;
  letter-spacing: 4px;
  margin-top: 5px;
}

.primary {
  background: #ff8a00;
  color: #191919;
}

.secondary {
  background: #eae8e4;
  color: #222;
}

.dark {
  background: #202020;
  color: white;
}

main {
  max-width: 1152px;
  margin: auto;
  padding: 20px 16px 100px;
}

.hero {
  background: #202020;
  color: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
  border-left: 6px solid #ff8a00;
}

.hero small {
  color: #ffad4d;
  font-weight: 750;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(25px,5cqw,42px);
  margin: 9px 0;
  line-height: 1.1;
}

.hero p {
  color: #ddd;
  margin: 0;
}

.notice {
  font-size: 12px;
  color: #625b52;
  margin: 12px 0;
}

.search,input,select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7d3cd;
  border-radius: 9px;
  background: white;
  color: #191919;
}

.filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 12px 0;
  scrollbar-width: thin;
}

.filters button {
  white-space: nowrap;
  background: #eae8e4;
}

.filters button.active {
  background: #202020;
  color: white;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 22px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.product {
  background: white;
  border: 1px solid #e3dfd8;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product small {
  color: #746b60;
}

.product strong {
  font-size: 17px;
}

.price {
  font-size: 20px;
  font-weight: 850;
  margin-top: auto;
}

.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty button {
  min-width: 42px;
}

.panel {
  background: white;
  border: 1px solid #e3dfd8;
  border-radius: 14px;
  padding: 16px;
  align-self: start;
}

.panel h2,h2 {
  margin: 0 0 14px;
  font-size: 21px;
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.line small {
  display: block;
  color: #666;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0;
}

.wide {
  width: 100%;
}

.bottom {
  display: none;
}

.fields {
  display: grid;
  gap: 12px;
}

.fields label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}

.message {
  white-space: pre-wrap;
  background: #f1eee8;
  padding: 14px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.adminrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.adminrow button {
  margin: 2px;
}

.back {
  margin-bottom: 16px;
}

.empty {
  color: #777;
  padding: 15px 0;
}

.footer {
  color: #666;
  font-size: 12px;
  margin-top: 22px;
}

@container (max-width:760px) {
  .layout {
    display: block;
  }

  .side {
    display: none;
  }

  .bottom {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .hero {
    padding: 20px;
  }

  .product {
    padding: 12px;
  }

  .product strong {
    font-size: 15px;
  }

  .price {
    font-size: 18px;
  }

  main {
    padding-bottom: 25px;
  }

  header {
    padding: 16px;
  }

  .brand {
    font-size: 21px;
  }
}

@media (max-width:600px) {
  .toolbar {
    display: none;
  }

  .device,.device.phone {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    display: block;
    background: #f7f6f3;
    box-shadow: none;
  }

  .phone .status,.phone .homebar {
    display: none;
  }

  .phone .screen {
    overflow: visible;
  }

  .bottom {
    position: sticky;
    bottom: 0;
  }
}

.screen {
  position: relative;
}

.layout {
  display: block;
}

.side {
  display: none;
}

.products {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.bottom {
  display: block;
  position: sticky;
  bottom: 0;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #ddd;
}

.device:not(.phone) #overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.phone #overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.phone .screen {
  position: relative;
}

.phone #overlay {
  position: sticky;
  bottom: 0;
  height: 100%;
  margin-top: -100%;
}

.phone .screen.cart-open {
  overflow: hidden;
}

.phone .screen.cart-open #overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  margin: 0;
}

.cart-open {
  overscroll-behavior: contain;
}

#overlay[hidden] {
  display: none !important;
}

#overlay {
  background: #0007;
  display: flex;
  justify-content: flex-end;
}

.drawer {
  width: min(100%,460px);
  height: 100%;
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px #0002;
}

.drawer-head,.drawer-foot {
  padding: 16px;
  background: #fff;
  flex-shrink: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.drawer-head h2 {
  margin: 0;
}

.drawer-body {
  overflow: auto;
  flex: 1;
  padding: 16px;
  min-height: 0;
}

.drawer-foot {
  border-top: 1px solid #ddd;
}

.drawer-foot .total {
  margin: 0 0 8px;
}

.drawer .qty {
  gap: 5px;
}

.drawer .qty button {
  min-width: 34px;
  padding: 8px;
}

.drawer .line {
  font-size: 14px;
}

.fields textarea {
  font: inherit;
  width: 100%;
  padding: 12px;
  border: 1px solid #d7d3cd;
  border-radius: 9px;
  resize: vertical;
}

.wa {
  border-radius: 12px;
  overflow: hidden;
  background: #efeae2;
  margin-top: 16px;
}

.wa-head {
  background: #075e54;
  color: white;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.wa-avatar {
  background: #ff8a00;
  color: #171717;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.wa-head small {
  display: block;
  color: #d7eee9;
}

.wa-body {
  padding: 18px 12px;
  background-color: #efeae2;
  background-image: radial-gradient(#c9c2b7 0.7px,transparent 0.7px);
  background-size: 15px 15px;
}

.wa-bubble {
  background: #d9fdd3;
  border-radius: 10px 0 10px 10px;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-left: 12px;
  font-size: 14px;
}

.wa-time {
  display: block;
  text-align: right;
  color: #527b80;
  font-size: 11px;
  margin-top: 6px;
}

.wa .wide {
  border-radius: 0;
  background: #075e54;
  color: white;
}

.phone .products {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media (max-width:760px) {
  .products {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:600px) {
  .device #overlay,.device.phone #overlay {
    position: fixed;
    inset: 0;
    height: 100dvh;
    margin: 0;
  }

  .drawer {
    width: 100%;
  }

  .drawer-foot {
    padding-bottom: max(16px,env(safe-area-inset-bottom));
  }

  input,select,textarea {
    font-size: 16px;
  }
}

#cartButton {
  display: none !important;
}

.bottom[hidden] {
  display: none !important;
}

.bottom {
  position: fixed;
  bottom: max(22px,env(safe-area-inset-bottom));
  right: 24px;
  left: auto;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cart-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  padding: 12px 22px;
  min-height: 50px;
  box-shadow: 0 5px 20px #0003;
  white-space: nowrap;
}

.cart-count {
  background: #ff8a00;
  color: #171717;
  border-radius: 999px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.cart-pill:hover {
  background: #303030;
}

.phone .bottom {
  position: sticky;
  bottom: 12px;
  right: auto;
  left: auto;
  width: 100%;
  margin-top: -62px;
  padding: 0 8px;
}

.phone main {
  padding-bottom: 90px;
}

.cart-open .bottom {
  visibility: hidden;
}

@media (max-width:760px) {
  .bottom,.device.phone .bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(16px,env(safe-area-inset-bottom));
    width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  main {
    padding-bottom: 90px;
  }
}

@media (min-width:761px) {
  .phone .bottom {
    position: sticky;
    bottom: 12px;
    left: auto;
    right: auto;
  }
}

.choice,.admincards,.metrics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.choice .panel {
  padding: 24px;
}

.choice h2 {
  margin-top: 12px;
}

.admincards {
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
}

.admincards .product button {
  padding: 8px;
}

.metrics .panel {
  padding: 14px;
}

.metrics strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.muted {
  color: #746b60;
  font-size: 13px;
}

.warning {
  color: #a34d00;
  font-weight: 700;
}

.success {
  color: #237044;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 12px;
}

.admincards .product input {
  padding: 8px;
}

.demohead {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.demohead h2 {
  margin: 0;
  flex: 1;
}

.choice .panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice .panel button {
  margin-top: auto;
}

.choice ul {
  padding-left: 20px;
  line-height: 1.8;
}

.phone .choice {
  grid-template-columns: 1fr;
}

.phone .admincards {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media (max-width:760px) {
  .choice {
    grid-template-columns: 1fr;
  }

  .admincards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .toolbar {
    display: none !important;
  }

  .demohead button {
    font-size: 12px;
  }

  .admincards .product {
    padding: 10px;
  }

  .metrics strong {
    font-size: 19px;
  }
}

.commercial-hero {
  padding: clamp(24px,5cqw,60px);
  background: linear-gradient(125deg,#171717,#302519);
  border-left: 0;
}

.commercial-hero h1 {
  font-size: clamp(30px,5.5cqw,60px);
  max-width: 850px;
}

.commercial-hero button {
  margin-top: 22px;
}

.benefits {
  margin: 32px 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}

.benefit-grid article {
  background: white;
  border: 1px solid #e3dfd8;
  border-radius: 14px;
  padding: 18px;
}

.benefit-grid span {
  color: #a34d00;
  font-weight: 800;
}

.benefit-grid h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}

.benefit-grid p {
  margin: 0;
  color: #625b52;
  line-height: 1.5;
}

.commercial-plans .panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 24px;
}

.commercial-plans .panel button {
  margin-top: auto;
}

.commercial-plans .featured {
  border: 2px solid #e77800;
}

.plan-price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
}

.plan-price small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.offer {
  color: #8b4300;
  font-weight: 700;
}

.commercial-plans li {
  margin: 8px 0;
}

.commercial-support {
  margin-top: 20px;
}

.commercial-contact {
  text-align: center;
  background: #202020;
  color: white;
  border-radius: 16px;
  padding: 28px;
  margin-top: 20px;
}

.contact-link {
  display: inline-block;
  background: #ff8a00;
  color: #171717;
  text-decoration: none;
  font-weight: 750;
  padding: 13px 20px;
  border-radius: 9px;
}

.commercial-contact small {
  color: #ccc;
}

@container (max-width:760px) {
  .benefit-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .commercial-plans {
    grid-template-columns: 1fr;
  }

  .commercial-plans .panel {
    padding: 18px;
  }
}

@container (max-width:380px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
}

.product-visual {
  height: 112px;
  background: linear-gradient(145deg,#fff8e9,#f1eee8);
  border-radius: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 3px;
}

.product-visual span {
  font-size: 42px;
}

.product-visual small {
  font-size: 10px;
  color: #71695e;
}

.stockout {
  color: #a33;
  font-weight: 700;
}

.shop-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-title small {
  color: #777;
}

.premium {
  background: #111318 !important;
  color: #f4f4f5;
}

.premium main {
  max-width: 1180px;
}

.premium .panel,.premium .product {
  background: #1d2027;
  color: #f4f4f5;
  border: 1px solid #30343e;
  box-shadow: none;
  border-radius: 15px;
}

.premium .notice,.premium small,.premium .muted {
  color: #b2b7c3;
}

.premium .secondary {
  background: #303540;
  color: #f4f4f5;
}

.premium .dark {
  background: #ff941c;
  color: #161616;
}

.premium .metrics .panel {
  border-top: 3px solid #60a5fa;
}

.premium .metrics .panel:nth-child(2) {
  border-top-color: #4ade80;
}

.premium .metrics .panel:nth-child(3) {
  border-top-color: #fb923c;
}

.premium .metrics .panel:nth-child(4) {
  border-top-color: #facc15;
}

.premium .metrics .panel:nth-child(2) strong {
  color: #4ade80;
}

.premium input,.premium select {
  background: #12151b;
  color: #fff;
  border-color: #424754;
}

.premium .warning {
  color: #fbbf24;
}

.premium .success {
  color: #4ade80;
}

.chartpanel {
  margin: 16px 0;
}

.chartpanel h2 {
  margin: 4px 0;
}

.chartbars {
  height: 180px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 12px 0 26px;
}

.chartbars>div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.chartbars button {
  background: linear-gradient(#ffb55b,#e67b13);
  width: 100%;
  padding: 0;
  min-height: 8px;
  border-radius: 7px 7px 2px 2px;
}

.chartbars button:hover,.chartbars button:focus {
  background: #ffd399;
}

.chartbars small {
  position: absolute;
  bottom: -21px;
  width: 100%;
  text-align: center;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.quick button {
  flex: 1;
  min-width: 120px;
}

.premium .tabs {
  flex-wrap: wrap;
}

.premium .demohead h2 {
  font-size: clamp(20px,4cqw,30px);
}

[hidden] {
  display: none !important;
}

.demo-strip {
  padding: 16px;
  border: 1px solid #8885;
  border-radius: 12px;
  margin-bottom: 18px;
}

.demo-strip small {
  display: block;
  margin-top: 8px;
}

.product del {
  font-size: 12px;
  color: #777;
  font-weight: 400;
}

.demohead {
  flex-wrap: wrap;
}

.admincards .product {
  gap: 8px;
}

@media (max-width:600px) {
  header {
    flex-wrap: wrap;
  }

  #planNav {
    width: 100%;
  }
}

#planNav[hidden] {
  display: none !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 8;
  flex-wrap: wrap;
}

#planNav {
  align-items: center;
}

#planNav button {
  padding: 8px 12px;
}

#planNav button.current {
  background: #ff8a00;
  color: #171717;
}

#planName {
  font-weight: 700;
  letter-spacing: .3px;
}

.product-visual {
  height: 155px !important;
  background: #f5f4f0 !important;
  border-radius: 9px;
  overflow: hidden;
  display: grid !important;
  place-items: center;
  position: relative;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-visual .photo-note {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 9px;
  color: #555;
  background: #ffffffe0;
  padding: 2px 4px;
}

.admincards .product-visual {
  height: 92px !important;
}

.admincards .product {
  min-width: 0;
}

.demo-strip {
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.demo-strip summary {
  cursor: pointer;
  font-weight: 700;
}

.demo-strip .tabs {
  margin: 8px 0;
}

.tabs.admin-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(115px,1fr));
  gap: 6px;
}

.tabs.admin-tabs button {
  margin: 0;
  min-height: 44px;
}

.product del {
  display: block;
  font-size: 12px;
  color: #777;
  font-weight: 500;
}

.sale-tag {
  color: #a33c00;
  font-weight: 700;
  font-size: 12px;
}

.phone header {
  position: sticky;
  top: 0;
}

.phone #planNav {
  width: 100%;
}

.phone #planNav button {
  flex: 1;
  font-size: 12px;
}

.phone .product-visual {
  height: 120px !important;
}

@media (max-width:600px) {
  header {
    padding: 12px 16px;
  }

  #planNav {
    width: 100%;
  }

  #planNav button {
    flex: 1;
    font-size: 12px;
  }

  .product-visual {
    height: 120px !important;
  }

  .tabs.admin-tabs {
    grid-template-columns: repeat(2,1fr);
  }
}

/* Identidade compartilhada com a apresentação comercial. */
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 50%;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.premium .chartpanel {
  border: 1px solid #ffffff20;
}
.premium .chartbars {
  background: repeating-linear-gradient(to top, transparent 0 24%, #ffffff18 24% 25%);
}


/* Cabeçalho dos protótipos: dimensões independentes da imagem original. */
.screen header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.screen header .brand-logo {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.screen header .brand-name {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .screen header .brand-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
}
