:root {
  --orange: #f45b2f;
  --orange-dark: #9b3f2e;
  --coral: #ff8a6a;
  --soft-red: #d8486a;
  --deep: #14302f;
  --ink: #252525;
  --muted: #747474;
  --line: #e9e9e9;
  --cloud: #f5f5f5;
  --paper: #ffffff;
  --green: #20a86b;
  --shadow: 0 16px 38px rgba(37, 37, 37, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 10px 20px rgba(37, 37, 37, 0.14);
}

button:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
  box-shadow: 0 4px 10px rgba(37, 37, 37, 0.1);
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.whatsapp-icon-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.22);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 74px;
}

.mobile-top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 12px 12px;
  background: linear-gradient(135deg, #e84a00, #ff7a18);
  box-shadow: 0 10px 28px rgba(217, 65, 15, 0.24);
}

.brand-row,
.header-actions,
.brand,
.search-bar,
.section-title,
.promo-strip,
.product-actions,
.drawer header,
.cart-line,
.cart-summary span,
.cart-summary strong {
  display: flex;
  align-items: center;
}

.brand-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.brand {
  gap: 9px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-logo {
  width: clamp(184px, 54vw, 270px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 12px rgba(84, 22, 0, 0.28));
}

.desktop-logo {
  width: 214px;
  height: 68px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--orange);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 900;
}

.logo-mark {
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(37, 37, 37, 0.16);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.header-actions {
  gap: 8px;
}

.round-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--orange);
  background: #fff;
  border-radius: 999px;
  font-size: 0.76rem;
}

.search-bar {
  gap: 8px;
  padding: 6px;
  background: #fff;
  border-radius: var(--radius);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 9px 10px;
}

.search-bar button,
.section-title button,
.coupon-row button,
.coupon-form button,
.shipping-form button {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.search-bar button {
  padding: 9px 12px;
  color: #fff;
  background: var(--orange);
}

.desktop-sidebar {
  display: none;
}

.marketplace-header {
  display: none;
}

.content {
  max-width: 1500px;
  margin: 0 auto;
}

.view {
  display: none;
  padding: 18px;
}

.view.active {
  display: block;
}

.hero-market {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.08);
}

.hero-market img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: 58% center;
}

.hero-copy {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(31, 41, 51, 0.9), rgba(191, 58, 0, 0.78));
  border-radius: var(--radius);
}

.hero-copy p,
.hero-copy h1,
.hero-copy span {
  margin: 0;
}

.hero-copy p {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 4px 0;
  font-size: clamp(2.4rem, 14vw, 5.4rem);
  line-height: 0.92;
}

.hero-copy span {
  display: block;
  max-width: 560px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 390px;
}

.secondary-action {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.hero-offer-grid {
  display: none;
}

.primary-action {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.promo-strip {
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px 8px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.promo-strip span {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 11px;
  color: var(--orange-dark);
  background: #fff4ef;
  border: 1px solid #ffd8ca;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  margin-top: 26px;
}

.section.compact {
  margin-top: 28px;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: 0;
}

.section-title button {
  padding: 8px 10px;
  color: var(--orange-dark);
  background: #fff;
}

.timer {
  padding: 7px 9px;
  color: #fff;
  background: var(--soft-red);
  border-radius: var(--radius);
  font-weight: 900;
}

.category-row {
  display: grid;
  grid-auto-columns: minmax(138px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 4px 10px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.category-chip {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  justify-items: center;
  min-height: 208px;
  padding: 22px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.07);
}

.category-chip.active,
[data-filter].active,
[data-category-menu].active,
[data-brand-filter].active {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  border-color: var(--orange-dark);
  box-shadow: 0 10px 22px rgba(196, 69, 0, 0.22);
}

.category-chip.active small,
[data-filter].active small,
[data-filter].active span,
[data-category-menu].active span,
[data-brand-filter].active span,
[data-brand-filter].active small {
  color: rgba(255, 255, 255, 0.9);
}

.category-chip.active .category-icon {
  color: var(--orange-dark);
  background: #fff;
}

.product-visual {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--soft-red));
  font-weight: 900;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--orange-dark);
  background: #fff0e9;
  border-radius: 999px;
  font-weight: 900;
}

.category-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-chip strong {
  max-width: 112px;
  min-height: 46px;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.14;
  text-align: center;
}

.category-chip > span:last-child {
  align-self: end;
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

.category-chip > span:last-child b {
  font-size: 1rem;
}

.category-chip:nth-child(1) .category-icon {
  color: #d4395e;
  background: #ffe8ee;
}

.category-chip:nth-child(2) .category-icon {
  color: #1f5e9e;
  background: #eaf3ff;
}

.category-chip:nth-child(3) .category-icon {
  color: #6f4bb3;
  background: #f0eaff;
}

.category-chip:nth-child(4) .category-icon {
  color: #d56b12;
  background: #fff0df;
}

.category-chip:nth-child(5) .category-icon {
  color: #1b9f8d;
  background: #e5fbf7;
}

.category-chip:nth-child(6) .category-icon {
  color: #4f913f;
  background: #eef8e8;
}

.category-chip:nth-child(7) .category-icon {
  color: #bf37a4;
  background: #fde9fb;
}

.category-chip:nth-child(8) .category-icon {
  color: #ed7b13;
  background: #fff0dd;
}

.category-chip:nth-child(9) .category-icon {
  color: #276b9d;
  background: #e9f4ff;
}

.brand-row-store {
  display: grid;
  grid-auto-columns: minmax(178px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 0 4px 6px;
  scroll-padding-inline: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.brand-card {
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06);
}

.brand-visual {
  display: grid;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  background: linear-gradient(135deg, #fff8f4, #ffffff);
  border: 1px solid #ffe2d5;
  border-radius: 8px;
}

.brand-logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #2b2725;
}

.brand-logo-mark svg {
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo-word {
  color: inherit;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-logo-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #ff5a2c, #a63a22);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.brand-logo-mawwal .brand-logo-word {
  color: #93321f;
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
}

.brand-logo-verdi {
  color: #2d7a45;
}

.brand-logo-verdi .brand-logo-word,
.brand-logo-herbia .brand-logo-word {
  font-size: 0.82rem;
}

.brand-logo-truss {
  display: grid;
  gap: 7px;
  color: #1f1f1f;
}

.brand-logo-truss .brand-logo-word {
  font-size: 1.12rem;
  letter-spacing: 0.08em;
}

.brand-logo-line {
  width: 56px;
  height: 3px;
  background: #1f1f1f;
}

.brand-logo-herbia {
  color: #4d7f40;
}

.brand-card strong {
  font-size: 1.08rem;
}

.brand-card small {
  color: var(--muted);
  line-height: 1.35;
}

.brand-card > span:not(.brand-visual) {
  color: var(--muted);
  line-height: 1.35;
}

.brand-card small {
  align-self: end;
  font-size: 0.75rem;
  font-weight: 900;
}

.brand-card:hover {
  border-color: #ffc7b4;
  box-shadow: 0 10px 24px rgba(37, 37, 37, 0.09);
}

.banner-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 72%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  margin-top: 26px;
  scrollbar-width: none;
}

.banner-carousel article {
  position: relative;
  min-height: 128px;
  padding: 22px;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(135deg, #fff0e8, #fff8f4);
  border: 1px solid #ffe0d1;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(255, 91, 47, 0.12);
}

.banner-carousel article::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(244, 91, 47, 0.24), rgba(244, 91, 47, 0));
  pointer-events: none;
}

.banner-carousel strong,
.banner-carousel span {
  display: block;
}

.banner-carousel strong {
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.banner-carousel span {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.35;
}

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

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  border-color: #ffd1bc;
  box-shadow: 0 14px 30px rgba(37, 37, 37, 0.12);
  transform: translateY(-2px);
}

.product-card.out-of-stock {
  opacity: 0.72;
}

.product-card.out-of-stock .product-visual {
  filter: grayscale(0.35);
}

.product-visual {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
  background-color: #fff9f6;
}

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

.product-visual.has-image::before,
.product-visual.has-image::after {
  display: none;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.42);
}

.product-visual::before {
  width: 52px;
  height: 78px;
  border-radius: 18px 18px 8px 8px;
}

.product-visual::after {
  width: 96px;
  height: 28px;
  bottom: 24px;
  border-radius: 999px;
}

.discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 6px 8px;
  color: #fff;
  background: var(--soft-red);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.favorite-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--soft-red);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.favorite-button.active {
  color: #fff;
  background: var(--soft-red);
}

.rating-badge {
  position: absolute;
  right: 8px;
  top: 9px;
  z-index: 2;
  display: inline-flex;
  gap: 1px;
  align-items: center;
  padding: 6px 8px;
  color: #c7c7c7;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(217, 222, 215, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 37, 37, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.rating-badge .filled {
  color: #f4b400;
}

.product-info {
  padding: 13px;
}

.product-tags {
  display: flex;
  min-height: 24px;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.product-tags span {
  padding: 4px 7px;
  color: #8a3200;
  background: #fff4ed;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price strong {
  color: var(--orange-dark);
  font-size: 1.24rem;
}

.price del {
  color: var(--muted);
  font-size: 0.8rem;
}

.rating {
  display: block;
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.installment-line,
.stock-line {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 850;
}

.installment-line {
  color: #146c43;
}

.stock-line {
  color: var(--muted);
}

.stars,
.star-inline {
  color: #c7c7c7;
  letter-spacing: 0;
}

.stars .filled,
.star-inline .filled {
  color: #f4b400;
}

.product-actions {
  gap: 7px;
}

.product-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.details-button {
  flex: 1;
  color: var(--orange-dark);
  background: #fff4ef;
}

.buy-button {
  flex: 1.35;
  color: #fff;
  background: var(--orange);
}

.buy-button:disabled {
  color: var(--muted);
  background: #ececec;
  cursor: not-allowed;
}

.page-heading {
  padding: 18px 0 12px;
}

.page-heading p,
.page-heading h1 {
  margin: 0;
}

.page-heading p {
  color: var(--orange-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-heading h1 {
  font-size: clamp(2rem, 11vw, 4.5rem);
  line-height: 1;
}

.category-board,
.admin-metrics,
.admin-grid,
.account-cards {
  display: grid;
  gap: 10px;
}

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

.category-card,
.future-box,
.empty-state,
.account-cards article,
.admin-metrics article,
.admin-grid article,
.panel-form,
.order-status {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card {
  min-height: 110px;
  padding: 16px;
}

.category-card strong {
  display: block;
  margin-bottom: 6px;
}

.category-card span,
.future-box p,
.empty-state span,
.account-cards span,
.admin-grid li,
.order-status span {
  color: var(--muted);
  line-height: 1.5;
}

.legal-layout {
  display: grid;
  gap: 12px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.legal-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.legal-tabs button.active,
.legal-tabs button:hover {
  color: var(--orange-dark);
  background: #fff4ef;
  border-color: #ffc4ab;
}

.legal-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-panel {
  display: none;
  padding: 18px;
}

.legal-panel.active {
  display: grid;
  gap: 10px;
}

.legal-panel h2,
.legal-panel p {
  margin: 0;
}

.legal-panel h2 {
  font-size: 1.2rem;
}

.legal-panel p {
  color: #465568;
  line-height: 1.55;
}

.future-box,
.empty-state,
.panel-form,
.account-cards article,
.admin-grid article {
  margin-top: 10px;
  padding: 16px;
}

.coupon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-row button {
  min-height: 45px;
  color: var(--orange-dark);
  background: #fff4ef;
  border: 1px dashed var(--orange);
}

.account-layout {
  display: grid;
  gap: 10px;
}

.account-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-tabs button {
  min-height: 42px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.account-tabs button.active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.account-panel {
  display: none !important;
}

.account-panel.active {
  display: grid !important;
}

.panel-form,
.checkout-form {
  display: grid;
  gap: 12px;
}

.account-status {
  padding: 10px 12px;
  color: #8a3200;
  background: #fff4ed;
  border: 1px solid #ffd2bd;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.4;
}

.account-login-highlight {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff8f3;
  border: 1px solid #ffc8ad;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(177, 64, 14, 0.08);
}

.account-login-highlight .primary-action {
  min-height: 48px;
  font-size: 1rem;
}

.account-signup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: lowercase;
}

.account-signup-divider::before,
.account-signup-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.account-signup-area {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signup-submit {
  width: 100%;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.account-actions [hidden] {
  display: none;
}

.checkout-address-grid,
.account-address-grid {
  display: grid;
  gap: 10px;
}

.checkout-address-grid label,
.account-address-grid label {
  min-width: 0;
}

.delivery-estimate-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: #075985;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  font-weight: 800;
}

.delivery-estimate-box span {
  color: #34566c;
  font-size: 0.86rem;
  line-height: 1.4;
}

.checkout-summary-card,
.checkout-next-step {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff8f3;
  border: 1px solid #ffd3bd;
  border-radius: var(--radius);
}

.checkout-summary-card > strong,
.checkout-next-step > strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.checkout-summary-card > span,
.checkout-next-step > span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.checkout-summary-lines {
  display: grid;
  gap: 5px;
}

.checkout-summary-lines span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-summary-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #ffd3bd;
}

.checkout-summary-total span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary-total b,
.checkout-summary-total strong {
  color: var(--ink);
  text-align: right;
}

.checkout-summary-total strong {
  color: var(--orange-dark);
  font-size: 1.08rem;
}

.checkout-submit {
  min-height: 52px;
  font-size: 1rem;
}

.panel-form h2,
.checkout-form h3,
.admin-grid h2,
.future-box h2 {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.admin-metrics article {
  padding: 14px;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 1.45rem;
}

.admin-catalog {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.form-grid,
.admin-form-actions {
  display: grid;
  gap: 10px;
}

.ghost-action {
  min-height: 46px;
  padding: 0 16px;
  color: var(--orange-dark);
  background: #fff4ef;
  border: 1px solid #ffd8ca;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.admin-product-list {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-orders,
.customer-orders {
  margin-top: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.customer-orders h2 {
  margin: 0;
}

.customer-orders-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.customer-orders-head input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.customer-order-card {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.customer-order-card:first-child {
  border-top: 0;
}

.customer-order-top,
.customer-order-meta,
.customer-order-total,
.confirmation-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.customer-order-top span,
.customer-order-meta,
.confirmation-grid small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.customer-order-top strong,
.customer-order-top span {
  display: block;
}

.customer-order-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #5f3b03;
  background: #fff3cd;
  border: 1px solid #ffd36a;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.customer-order-status.success,
.customer-order-status.ready {
  color: #075c3a;
  background: #e7f8ef;
  border-color: #9ee3bf;
}

.customer-order-status.danger {
  color: #8a1f1f;
  background: #fff1f1;
  border-color: #ffc9c9;
}

.customer-order-status.pending {
  color: #36536f;
  background: #eef6ff;
  border-color: #c8def4;
}

.customer-order-products {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.customer-order-thumbs {
  display: flex;
  align-items: center;
}

.customer-order-thumb {
  display: grid;
  width: 52px;
  height: 52px;
  margin-right: -8px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(25, 31, 44, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.customer-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.customer-order-thumb.more {
  color: var(--orange-dark);
  background: #fff4ef;
  border-color: #ffd8ca;
}

.customer-order-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.customer-order-top b {
  padding: 6px 10px;
  color: #146c43;
  background: #e9f8ef;
  border-radius: 999px;
  font-size: 0.78rem;
}

.customer-order-total {
  padding: 10px 12px;
  background: var(--cloud);
  border-radius: var(--radius);
}

.payment-tracker {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff8ec;
  border: 1px solid #ffe0ad;
  border-radius: var(--radius);
}

.payment-tracker span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-tracker button {
  min-height: 38px;
  width: fit-content;
  padding: 0 12px;
  color: #fff;
  background: var(--orange-dark);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.customer-cancel-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #7f1d1d;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.customer-cancel-box span {
  color: #7f1d1d;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.customer-cancel-box button {
  min-height: 38px;
  width: fit-content;
  padding: 0 12px;
  color: #fff;
  background: #b91c1c;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.tracking-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #eef7ff;
  border: 1px solid #c8e4ff;
  border-radius: var(--radius);
}

.tracking-box span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tracking-box code {
  display: block;
  padding: 10px;
  color: #084b83;
  background: #fff;
  border-radius: var(--radius);
  font-weight: 900;
  word-break: break-word;
}

.tracking-box.muted {
  background: var(--cloud);
  border-color: var(--line);
}

.order-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fbf8;
  border: 1px solid #cfe8d7;
  border-radius: var(--radius);
}

.order-timeline-head,
.timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.order-timeline-head strong,
.timeline-item strong {
  color: var(--ink);
}

.order-timeline-head span,
.timeline-item span,
.timeline-item time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline-item {
  position: relative;
  padding: 9px 0 9px 18px;
  border-top: 1px solid rgba(207, 232, 215, 0.8);
}

.timeline-item:first-of-type {
  border-top: 0;
}

.timeline-item::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: #18a957;
  border-radius: 999px;
}

.timeline-item div {
  display: grid;
  gap: 3px;
}

.timeline-item time {
  min-width: 122px;
  text-align: right;
}

@media (max-width: 560px) {
  .order-timeline-head,
  .timeline-item {
    display: grid;
    justify-content: stretch;
  }

  .customer-order-products {
    grid-template-columns: 1fr;
  }

  .customer-order-thumb {
    width: 48px;
    height: 48px;
  }

  .timeline-item time {
    min-width: 0;
    text-align: left;
  }
}

.confirmation-tracking {
  margin-top: 12px;
}

.post-sale-box,
.return-order-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius);
}

.post-sale-box span,
.return-order-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.post-sale-box button {
  min-height: 38px;
  width: fit-content;
  padding: 0 12px;
  color: #9f1239;
  background: #fff;
  border: 1px solid #fda4af;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.post-sale-box button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.return-request-form {
  display: grid;
  gap: 12px;
}

.compact-empty {
  margin-top: 0;
}

.admin-product-list h2 {
  margin: 0 0 12px;
}

.admin-product-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-product-row:first-of-type {
  border-top: 0;
}

.admin-product-row strong,
.admin-product-row span {
  display: block;
}

.admin-product-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.row-actions button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.row-actions button:first-child {
  color: var(--orange-dark);
  background: #fff4ef;
}

.row-actions button:last-child {
  color: var(--soft-red);
  background: #fff0f2;
}

.admin-order-card {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-order-card:first-of-type {
  border-top: 0;
}

.order-card-top,
.order-card-meta,
.customer-order-row {
  display: flex;
  align-items: center;
}

.order-card-top,
.customer-order-row {
  justify-content: space-between;
  gap: 12px;
}

.order-card-top span,
.admin-order-card p,
.order-card-meta span,
.customer-order-row span {
  color: var(--muted);
}

.order-card-top span,
.customer-order-row span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
}

.admin-order-card p {
  margin: 0;
  line-height: 1.45;
}

.order-card-meta {
  flex-wrap: wrap;
  gap: 7px;
}

.order-card-meta span {
  padding: 7px 9px;
  background: var(--cloud);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.customer-order-row {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.customer-order-row:first-of-type {
  border-top: 0;
}

.institutional {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 12px 90px;
  color: var(--muted);
  font-size: 0.86rem;
}

.institutional button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.institutional button:hover,
.institutional a:hover {
  color: var(--orange-dark);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 6px max(7px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(37, 37, 37, 0.1);
}

.bottom-nav button {
  min-width: 0;
  min-height: 48px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

.bottom-nav button.active {
  color: var(--orange-dark);
  background: #fff4ef;
}

.floating-whatsapp {
  position: fixed;
  right: 12px;
  bottom: 84px;
  z-index: 24;
  padding: 12px 14px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 900;
}

.cart-symbol {
  font-size: 1.2rem;
  line-height: 1;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(37, 37, 37, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  width: min(100vw, 460px);
  max-height: 92vh;
  padding: 16px;
  flex-direction: column;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 45px rgba(37, 37, 37, 0.2);
  transform: translateY(105%);
  transition: transform 220ms ease;
}

.product-drawer {
  width: min(100vw, 720px);
}

.order-confirmation-drawer {
  width: min(100vw, 560px);
}

.drawer.open {
  transform: translateY(0);
}

.drawer header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.drawer header span {
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer header h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
}

.drawer header button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--cloud);
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-list-head {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: #fff7f1;
  border: 1px solid #ffd7bd;
  border-radius: var(--radius);
}

.cart-list-head strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.cart-list-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-line {
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-thumb {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--soft-red));
  border-radius: var(--radius);
  font-weight: 900;
  overflow: hidden;
  flex: 0 0 auto;
}

.cart-thumb.has-image {
  background: #fff;
  border: 1px solid var(--line);
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-line-info {
  min-width: 0;
  flex: 1;
}

.cart-line-info strong,
.cart-line-info span {
  display: block;
}

.cart-line-info strong {
  font-size: 0.9rem;
}

.cart-line-info span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-line-info small {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-line-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.cart-line-total b {
  color: var(--orange-dark);
  white-space: nowrap;
}

.cart-line-controls {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--cloud);
  cursor: pointer;
  font-weight: 900;
}

.remove-cart-button {
  border: 0;
  padding: 8px 12px;
  color: #9a3412;
  background: #fff1e8;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.coupon-form,
.shipping-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.coupon-form button,
.shipping-form button {
  padding: 0 12px;
  color: #fff;
  background: var(--orange);
  align-self: end;
}

.coupon-form label,
.shipping-form label {
  min-width: 0;
  font-size: 0.8rem;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  background: var(--cloud);
  border-radius: var(--radius);
}

.cart-summary span,
.cart-summary strong {
  justify-content: space-between;
}

.confirmation-box,
.payment-instructions,
.confirmation-grid article,
.confirmation-items {
  padding: 14px;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.confirmation-box {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.confirmation-box strong {
  color: #146c43;
  font-size: 1.15rem;
}

.confirmation-box code {
  display: block;
  padding: 10px;
  color: var(--orange-dark);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 900;
  white-space: normal;
  word-break: break-word;
}

.payment-instructions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  background: #fff8ec;
  border-color: #ffe0ad;
}

.payment-instructions h3,
.payment-instructions p {
  margin: 0;
}

.pix-qr-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ffd3bd;
  border-radius: var(--radius);
  text-align: center;
}

.pix-qr-box strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.pix-qr-box img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pix-qr-box span {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.4;
}

.payment-instructions p {
  color: var(--muted);
  line-height: 1.45;
}

.payment-code-row {
  display: grid;
  gap: 8px;
}

.payment-instructions code {
  display: block;
  max-height: 112px;
  overflow: auto;
  padding: 10px;
  color: #075985;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: normal;
  word-break: break-all;
}

.copy-pix-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--orange-dark);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.copy-pix-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.payment-action-link {
  display: grid;
  min-height: 44px;
  place-items: center;
  color: #fff;
  background: var(--deep);
  border-radius: var(--radius);
  font-weight: 900;
}

.confirmation-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.confirmation-grid article {
  display: grid;
  gap: 4px;
}

.confirmation-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirmation-items {
  display: grid;
  gap: 10px;
}

.confirmation-items h3 {
  margin: 0;
}

.confirmation-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.confirmation-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.whatsapp-line {
  display: block;
  margin-bottom: 10px;
  padding: 12px;
  color: var(--green);
  background: #effaf4;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 900;
}

.detail-visual {
  height: min(44vh, 360px);
  margin-bottom: 12px;
  border-radius: var(--radius);
}

.detail-visual.has-image img {
  object-fit: contain;
  padding: 12px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-buy-box {
  position: sticky;
  top: 12px;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(37, 37, 37, 0.08);
}

.detail-benefits {
  display: grid;
  gap: 7px;
}

.detail-benefits span {
  padding: 9px 10px;
  color: #146c43;
  background: #edf9f1;
  border-radius: var(--radius);
  font-weight: 900;
}

.product-detail-layout {
  display: grid;
  gap: 18px;
}

.product-photo-panel,
.product-purchase-panel {
  min-width: 0;
}

.detail-photo-stage {
  display: grid;
  width: 100%;
  min-height: 360px;
  max-height: 58vh;
  margin-bottom: 12px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-photo-stage img {
  width: 100%;
  height: 100%;
  max-height: 58vh;
  object-fit: contain;
  padding: 14px;
}

.detail-photo-stage span {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
}

.detail-description {
  margin: 14px 0;
  padding: 14px;
  background: var(--cloud);
  border-radius: var(--radius);
}

.detail-description h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.detail-description p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-line;
}

.detail-action-bar {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  background: #fff;
}

.stock-warning {
  margin-top: 10px;
  padding: 10px;
  color: #9a3412;
  background: #fff1e8;
  border: 1px solid #ffd1bc;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 900;
}

.reviews-section {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.reviews-heading h3,
.review-form h3 {
  margin: 0 0 6px;
}

.reviews-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

.reviews-list {
  display: grid;
  gap: 10px;
}

.review-card,
.empty-reviews,
.review-form {
  padding: 12px;
  background: var(--cloud);
  border-radius: var(--radius);
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card p {
  margin: 8px 0;
  line-height: 1.5;
}

.review-card span,
.empty-reviews {
  color: var(--muted);
}

.review-form {
  display: grid;
  gap: 8px;
}

.review-form textarea {
  min-height: 90px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
}

.detail-price strong {
  color: var(--orange-dark);
  font-size: 1.5rem;
}

.detail-meta,
.gallery-row,
.product-gallery,
.variation-row,
.payment-options {
  display: grid;
  gap: 8px;
}

.detail-meta {
  margin: 12px 0;
}

.detail-meta span,
.gallery-row span,
.variation-row button {
  padding: 9px 10px;
  background: var(--cloud);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.gallery-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.product-gallery {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 12px;
}

.product-gallery img,
.product-gallery span {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.large-gallery {
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}

.large-gallery img {
  padding: 6px;
}

.gallery-thumb {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.16);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.product-gallery span {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.variation-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
}

.variation-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.variation-row button {
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

.variation-row button.active {
  color: var(--orange-dark);
  background: #fff4ef;
  border-color: var(--orange);
  font-weight: 900;
}

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

#checkoutDrawer .payment-options {
  grid-template-columns: 1fr;
}

.payment-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  background: var(--cloud);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.payment-options input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.payment-options strong,
.payment-options small {
  display: block;
}

.payment-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.payment-options label:has(input:checked) {
  background: #fff8ec;
  border-color: #ffc987;
}

.payment-options label.unavailable {
  color: var(--muted);
  background: #f0f0f0;
  opacity: 0.72;
}

.payment-setup-notice {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  color: #7a3a00;
  background: #fff8ec;
  border: 1px solid #ffe0ad;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-setup-notice span {
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 719px) {
  .view {
    padding-inline: 12px;
  }

  .hero-market {
    min-height: 230px;
  }

  .hero-market img {
    height: 230px;
    object-position: 64% center;
  }

  .hero-copy {
    inset: auto 10px 10px 10px;
    padding: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 18vw, 4.2rem);
  }

  .hero-copy span {
    max-width: 300px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .category-row {
    margin-inline: -4px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-visual {
    height: 154px;
  }

  .product-visual.has-image img {
    padding: 8px;
  }

  .product-info {
    padding: 9px;
  }

  .product-info h3 {
    min-height: 34px;
    margin-bottom: 7px;
    font-size: 0.86rem;
  }

  .price strong {
    font-size: 1.04rem;
  }

  .rating {
    margin: 5px 0 7px;
    font-size: 0.74rem;
  }

  .product-actions button {
    min-height: 36px;
    padding-inline: 6px;
    font-size: 0.74rem;
  }

  .floating-whatsapp {
    right: 10px;
    bottom: 96px;
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-row {
    grid-auto-columns: minmax(146px, 1fr);
  }

  .brand-row-store {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    overflow: visible;
  }

  .category-board,
  .admin-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .account-layout,
  .admin-grid,
  .admin-catalog {
    grid-template-columns: 1fr 1fr;
  }

  .account-tabs,
  .customer-orders {
    grid-column: 1 / -1;
  }

  .form-grid,
  .admin-form-actions {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-address-grid,
  .account-address-grid {
    grid-template-columns: 0.8fr 1.4fr 0.7fr;
  }

  .checkout-address-grid label:nth-child(4),
  .checkout-address-grid label:nth-child(6),
  .account-address-grid label:nth-child(4),
  .account-address-grid label:nth-child(6) {
    grid-column: span 2;
  }

  .admin-product-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .row-actions {
    width: 170px;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    padding-bottom: 0;
  }

  .category-row {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    overflow: visible;
  }

  .category-chip {
    min-height: 196px;
    padding: 20px 12px 16px;
  }

  .mobile-top,
  .bottom-nav {
    display: none;
  }

  .marketplace-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: block;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 37, 37, 0.08);
  }

  .marketplace-topbar {
    display: grid;
    grid-template-columns: 305px minmax(360px, 0.9fr) 126px 116px 132px;
    gap: 16px;
    align-items: center;
    padding: 12px 32px;
  }

  .marketplace-logo {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 300px;
    color: var(--orange);
    overflow: visible;
  }

  .marketplace-logo-c {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    color: var(--orange);
    margin-right: -3px;
    overflow: visible;
  }

  .logo-c-stroke,
  .logo-bag-body,
  .logo-bag-handle {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .logo-c-stroke {
    stroke-width: 6.5;
  }

  .logo-bag-body,
  .logo-bag-handle {
    stroke-width: 2.8;
  }

  .marketplace-logo-text {
    color: var(--orange);
    font-size: 3rem;
    font-weight: 780;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    transform: translateY(1px);
  }

  .delivery-chip {
    display: none;
  }

  .header-link {
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 46px;
    padding: 4px 4px 4px 38px;
    color: var(--ink);
    background: transparent;
    border: 0;
    text-align: left;
  }

  .header-link::before {
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    color: var(--ink);
    font-size: 1.7rem;
    line-height: 30px;
    text-align: center;
  }

  .header-link[data-route="account"]::before {
    content: "👤";
    font-size: 1.45rem;
  }

  .header-link[data-route="offers"]::before {
    content: "♡";
  }

  .header-link span {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 900;
    opacity: 1;
  }

  .header-link strong {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .desktop-search {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 52px;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(37, 37, 37, 0.05);
  }

  .desktop-search select,
  .desktop-search input,
  .desktop-search button {
    min-height: 46px;
    border: 0;
    outline: 0;
  }

  .desktop-search select {
    padding: 0 10px;
    color: var(--ink);
    background: #f3f3f3;
    border-right: 1px solid var(--line);
  }

  .desktop-search input {
    padding: 0 12px;
  }

  .desktop-search button {
    color: #fff;
    background: var(--orange);
    cursor: pointer;
    font-size: 0;
    font-weight: 800;
  }

  .desktop-search button::before {
    content: "⌕";
    font-size: 1.65rem;
    line-height: 1;
  }

  .header-link {
    cursor: pointer;
    font-weight: 800;
  }

  .header-cart {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 900;
  }

  .header-cart .cart-bag {
    font-size: 1.3rem;
    line-height: 1;
  }

  .header-cart .cart-count {
    top: 0;
    right: 8px;
    color: #fff;
    background: var(--orange);
  }

  .marketplace-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    overflow-x: auto;
    padding: 11px 32px;
    color: #fff;
    background: linear-gradient(90deg, #ff4f22, var(--orange));
    scrollbar-width: none;
  }

  .marketplace-nav button,
  .marketplace-nav a {
    flex: 0 0 auto;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
  }

  .marketplace-nav .whatsapp-icon-link {
    margin-left: auto;
    display: inline-flex;
    width: auto;
    height: 34px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    color: #fff;
    background: transparent;
  }

  .marketplace-nav .whatsapp-icon-link::after {
    content: "Fale Conosco";
    font-weight: 900;
  }

  .marketplace-nav button:first-child {
    position: relative;
    padding-left: 18px;
  }

  .marketplace-nav button:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
    transform: translateY(-50%);
  }

  .category-submenu {
    position: absolute;
    left: 22px;
    top: 100%;
    z-index: 35;
    display: grid;
    width: min(320px, calc(100vw - 44px));
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 34px rgba(37, 37, 37, 0.18);
  }

  .category-submenu[hidden] {
    display: none;
  }

  .category-submenu strong,
  .category-submenu span {
    display: block;
  }

  .category-submenu span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
  }

  .category-submenu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .category-submenu-grid button {
    min-height: 42px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
  }

  .category-submenu-grid button:hover {
    color: var(--orange-dark);
    background: #fff4ed;
  }

  .view {
    padding: 24px;
  }

  .hero-market,
  .hero-market img {
    min-height: 360px;
  }

  .hero-copy {
    max-width: 620px;
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 7vw, 6.2rem);
  }

  .hero-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
  }

  .hero-offer-grid button {
    min-height: 72px;
    padding: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
  }

  .hero-offer-grid strong,
  .hero-offer-grid span {
    display: block;
  }

  .hero-offer-grid span {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
  }

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

  .product-grid.dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-visual {
    height: 190px;
  }

  .drawer {
    top: 0;
    bottom: 0;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(105%);
  }

  .product-drawer {
    width: min(860px, 82vw);
  }

  .product-detail-layout {
    grid-template-columns: minmax(420px, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
  }

  .detail-photo-stage {
    min-height: 520px;
  }

  .detail-photo-stage img {
    max-height: 520px;
  }

  .drawer.open {
    transform: translateX(0);
  }
}

@media (min-width: 1360px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-grid.dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
