:root {
  --theme-primary: #0a84ff;
  --theme-primary-dark: #0066cc;
  --theme-light-bg: #f4f6f8;
  --theme-light-panel: #ffffff;
  --theme-light-text: #111827;
  --theme-light-muted: #667085;
  --theme-light-line: #dde2e8;
  --theme-dark-bg: #202124;
  --theme-dark-panel: #303134;
  --theme-dark-text: #f4f6fb;
  --theme-dark-muted: #aeb4bd;
  --theme-dark-line: #3c4043;
  --bg: var(--theme-light-bg);
  --panel: var(--theme-light-panel);
  --line: var(--theme-light-line);
  --text: var(--theme-light-text);
  --muted: var(--theme-light-muted);
  --blue: var(--theme-primary);
  --blue2: var(--theme-primary-dark);
  --white: #fff;
  --soft: #f4f6f8;
  --danger: #e5484d;
  --topbar-bg: var(--panel);
}

/* Dashboard operations upgrade */
.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.dashboard-quick-actions a,
.dashboard-alert-strip a {
  background: #fff;
  border: 1px solid #dde2e8;
  color: #111827;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.dashboard-quick-actions strong,
.dashboard-quick-actions span {
  display: block;
}

.dashboard-quick-actions strong {
  font-size: 15px;
  font-weight: 900;
}

.dashboard-quick-actions span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-alert-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-alert-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.dashboard-alert-strip span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-alert-strip strong {
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.dashboard-alert-strip .is-hot {
  border-color: rgba(239, 68, 68, .32);
  background: #fff5f5;
}

.dashboard-alert-strip .is-hot strong {
  color: #ef4444;
}

.dashboard-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.today-cash-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
}

.today-cash-total span,
.inventory-value span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.today-cash-total strong,
.inventory-value strong {
  color: #111827;
  font-size: 30px;
  font-weight: 950;
}

.today-cash-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.today-cash-lines p,
.inventory-mini-grid p {
  margin: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #edf0f3;
  border-radius: 10px;
}

.today-cash-lines span,
.today-cash-lines b,
.today-cash-lines small,
.inventory-mini-grid b,
.inventory-mini-grid span {
  display: block;
}

.today-cash-lines span,
.inventory-mini-grid span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.today-cash-lines b,
.inventory-mini-grid b {
  margin-top: 4px;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.today-cash-lines small {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

.inventory-value {
  display: grid;
  gap: 4px;
  padding: 14px 0;
}

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

.dot-status.is-alert {
  background: #ef4444;
}

.dot-status.is-ready {
  background: #22c55e;
}

.dashboard-ops-grid {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .dashboard-quick-actions,
  .dashboard-alert-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-today-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-quick-actions,
  .dashboard-alert-strip {
    gap: 8px;
  }

  .dashboard-quick-actions a,
  .dashboard-alert-strip a {
    border-radius: 10px;
    padding: 12px;
  }

  .dashboard-alert-strip strong {
    font-size: 22px;
  }

  .today-cash-total {
    display: grid;
  }

  .today-cash-total strong,
  .inventory-value strong {
    font-size: 24px;
  }

  .today-cash-lines,
  .inventory-mini-grid {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body[data-theme="dark"] {
  --bg: var(--theme-dark-bg);
  --panel: var(--theme-dark-panel);
  --line: var(--theme-dark-line);
  --text: var(--theme-dark-text);
  --muted: var(--theme-dark-muted);
  --topbar-bg: var(--theme-dark-bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }
textarea { min-height: 96px; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding: 10px 18px 12px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar .theme-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.topbar .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.topbar .account-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.topbar .header-search {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: min(520px, 100%);
  max-width: 520px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  max-width: 230px;
  height: 63px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-pills {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-pills a,
.header-search input,
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 13px;
}

input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 12px;
}

.nav-pills a {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.header-search {
  flex: unset;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-search input {
  width: 100%;
  height: 40px;
}

.theme-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}

.account-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--blue) 82%, #fff);
  box-shadow: 0 6px 16px rgba(10, 132, 255, .20);
}

.theme-icon,
.theme-toggle svg,
.account-link svg {
  width: 19px;
  height: 19px;
  display: block;
}

.theme-icon[hidden] {
  display: none !important;
}

.theme-toggle svg,
.account-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  background: #e9edf2;
  color: #111;
  font-weight: 700;
  line-height: 1.2;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); }
.btn-light { background: #fff; color: #0d1117; }
.btn-edit {
  background: #facc15;
  color: #171717;
  border: 1px solid #ca8a04;
  box-shadow: 0 6px 14px rgba(202, 138, 4, 0.24);
  font-size: 13px;
  letter-spacing: 0;
  min-width: 92px;
  position: relative;
}

.btn-edit:hover {
  background: #eab308;
  color: #111;
  transform: translateY(-1px);
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0 18px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-pill {
  min-width: 128px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 18px;
}

.section-head h1,
.container h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.section-head a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.carousel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1;
}

.latest-carousel-wrap { overflow: hidden; }

.latest-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 224px;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.latest-carousel::-webkit-scrollbar { display: none; }

.auto-carousel-wrap {
  position: relative;
}

.auto-carousel-wrap::before,
.auto-carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 34px;
  z-index: 2;
  pointer-events: none;
}

.auto-carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.auto-carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.auto-carousel-track {
  width: max-content;
  min-width: 100%;
  animation: carousel-left 34s linear infinite;
  overflow: visible;
}

.auto-carousel-wrap:hover .auto-carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-slide {
  scroll-snap-align: start;
}

.carousel-slide .product-card { height: 100%; }

.home-product-section {
  margin-bottom: 8px;
}

.repair-banner {
  margin-top: 12px;
}

.repair-banner-link {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #0a84ff, #101828);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
}

.repair-banner-copy span,
.repair-page-copy span {
  display: inline-block;
  margin-bottom: 8px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.repair-banner-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.repair-banner-copy p {
  max-width: 620px;
  margin: 10px 0 14px;
  color: #eaf4ff;
}

.repair-banner-copy strong {
  color: #fff;
  font-size: 15px;
}

.repair-banner-media {
  height: 150px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  border-radius: 14px;
}

.repair-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.flyer-carousel-section {
  margin-top: 8px;
  margin-bottom: 26px;
}

.flyer-offers-head {
  margin-top: 26px;
  margin-bottom: 10px;
}

.flyer-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--theme-light-line);
  background: var(--theme-light-panel);
  aspect-ratio: 16 / 14;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

body[data-theme="dark"] .flyer-carousel {
  border-color: var(--theme-dark-line);
  background: var(--theme-dark-panel);
  box-shadow: none;
}

.flyer-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(3%);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.flyer-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.flyer-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--theme-light-panel);
}

body[data-theme="dark"] .flyer-slide img {
  background: var(--theme-dark-panel);
}

.flyer-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.flyer-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--theme-light-muted);
  opacity: .36;
  cursor: pointer;
}

.flyer-dots button.is-active {
  width: 24px;
  background: var(--theme-primary);
  opacity: 1;
}

.repair-page {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 46px 0 22px;
}

.repair-page-copy h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.08;
}

.repair-page-copy p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.repair-page-media {
  min-height: 330px;
  display: grid;
  place-items: center;
  background: #f7f8fa;
  border-radius: 18px;
}

.repair-page-media img {
  max-height: 290px;
  object-fit: contain;
}

.repair-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.repair-service-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.repair-service-grid strong {
  display: block;
  margin-bottom: 6px;
}

.repair-service-grid span {
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  background: var(--theme-light-panel);
  color: var(--theme-light-text);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  border: 1px solid rgba(0, 0, 0, .04);
}

body[data-theme="dark"] .product-card {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.product-card-unavailable {
  filter: grayscale(1);
  opacity: .68;
}

.product-card-unavailable .product-media img {
  transform: none;
}

.product-status-ribbon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, .58);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-media {
  aspect-ratio: 1 / 1;
  height: auto;
  background: #eef0f4;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding: 10px; }

.product-info h3 {
  margin: 7px 0 6px;
  font-size: 14px;
  line-height: 1.22;
  min-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info p {
  margin: 0 0 7px;
  color: var(--theme-light-muted);
  font-size: 12px;
  line-height: 1.25;
  min-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price,
.product-info strong {
  font-weight: 850;
  color: var(--theme-light-text);
  font-size: 14px;
  display: block;
}

.product-price-offer {
  display: grid;
  gap: 1px;
  margin-top: auto;
}

.product-price-offer span,
.product-detail-price-block span {
  color: var(--theme-light-muted);
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 750;
}

.product-price-offer strong {
  color: var(--theme-primary);
}

.product-detail-price-block {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.product-detail-price-block .product-detail-price {
  margin-top: 0;
}

body[data-theme="dark"] .product-info p {
  color: var(--muted);
}

body[data-theme="dark"] .price,
body[data-theme="dark"] .product-info strong {
  color: var(--text);
}

body[data-theme="dark"] .product-price-offer span,
body[data-theme="dark"] .product-detail-price-block span {
  color: var(--muted);
}

body[data-theme="dark"] .product-price-offer strong {
  color: #60a5fa;
}

.product-card-whatsapp {
  margin-top: 8px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(37, 211, 102, .24);
}

.product-card-whatsapp:hover {
  background: #20bd5a;
}

.product-card-unavailable .product-card-whatsapp {
  display: none;
}

.chip {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.brand-card {
  min-height: 82px;
  background: var(--blue);
  border-radius: 12px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.brand-card img { height: 28px; }

.store-info-band {
  margin-top: 72px;
  padding: 32px 0 33px;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.store-info-grid {
  width: min(680px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 313px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.store-info-card {
  display: grid;
  gap: 20px;
}

.store-info-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.9;
  font-weight: 800;
}

.store-hours-list {
  display: grid;
  gap: 8px;
}

.store-hours-list div {
  display: grid;
  gap: 0;
}

.store-hours-list strong,
.store-info-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.store-hours-list span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.store-location-btn {
  width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
}

.store-location-btn:hover {
  background: var(--blue);
  color: #fff;
}

.seller-callout,
.info-band {
  margin-top: 46px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a84ff, #0a55aa);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.seller-callout p,
.info-band p { color: #eaf4ff; }

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

.stats a {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-socials {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-social {
  width: 20px;
  height: 20px;
  display: block;
  color: #9ca3af;
  transition: color .18s ease, opacity .18s ease;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social:hover {
  opacity: .92;
}

.footer-social.social-instagram:hover { color: #ec4899; }
.footer-social.social-facebook:hover { color: #2563eb; }
.footer-social.social-tiktok:hover { color: var(--text); }
.footer-social.social-youtube:hover { color: #dc2626; }
.footer-social.social-x:hover { color: var(--text); }
.footer-social.social-whatsapp:hover { color: #22c55e; }

.footer p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-page { padding-top: 26px; }

.filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto;
  gap: 10px;
  background: #24262a;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 16px;
}

.filters-store {
  grid-template-columns: 2fr repeat(3, 1fr) auto;
}

.filters input,
.filters select {
  width: 100%;
  border-radius: 12px;
}

.empty { color: var(--muted); }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  padding: 52px 0;
}

.gallery {
  background: #f7f8fa;
  border-radius: 20px;
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gallery img {
  max-height: 420px;
  object-fit: contain;
}

.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.detail-panel h1 {
  font-size: 36px;
  margin: 14px 0;
}

.detail-panel .price {
  font-size: 30px;
  color: #fff;
}

.seller-box {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.product-detail-page {
  width: min(864px, calc(100% - 32px));
  padding: 24px 0 10px;
}

.product-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 20px;
}

.product-action-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-action-link {
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}

.product-action-link:hover {
  color: var(--blue);
}

.product-action-whatsapp {
  display: none;
}

button.product-action-link {
  background: transparent;
  color: var(--text);
  padding-left: 0;
  padding-right: 0;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.product-hero-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-gallery-block {
  display: grid;
  gap: 10px;
}

.product-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  border: 1px solid rgba(17, 24, 39, .12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.product-gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
}

.product-gallery-strip button {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid var(--line);
}

.product-gallery-strip .is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 28%, transparent);
}

.product-gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info {
  padding-top: 20px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.product-detail-info h1 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.product-detail-price {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.product-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.product-detail-tags span {
  background: #e2e8f0;
  color: #1f2937;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.product-detail-tags .tag-warranty {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.product-detail-tags .product-color-dot {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 999px;
  background: var(--product-color, var(--blue));
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .32);
}

.product-description {
  margin: 18px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.product-whatsapp-main {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .25);
}

.product-whatsapp-main:hover {
  background: #20bd5a;
}

.related-products {
  margin-top: 36px;
}

.store-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.store-card,
.auth-card,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.auth-card {
  width: min(460px, calc(100% - 32px));
  margin: 70px auto;
}

.auth-card form,
.grid-form { display: grid; gap: 14px; }

.auth-card label,
.grid-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.auth-card input,
.grid-form input,
.grid-form select,
.grid-form textarea {
  width: 100%;
  border-radius: 12px;
}

.alert {
  background: #3b1d21;
  color: #ffd7dc;
  padding: 12px;
  border-radius: 12px;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f3f5f7;
  color: #111;
}

.dashboard-mobile-head {
  display: none;
}

.sidebar {
  background: #111318;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100vh;
}

.sidebar a,
.link-button {
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: #e9eef5;
  text-align: left;
}

.sidebar a:hover,
.link-button:hover { background: #20242c; }

.sidebar-action {
  margin: 0;
}

.sidebar-action .link-button {
  width: 100%;
}

.cache-clear-button {
  color: #ffe5b3;
  border: 1px solid rgba(255, 193, 7, .18);
}

.cache-clear-button:hover {
  background: rgba(255, 193, 7, .14);
}

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

.dashboard-main {
  padding: 28px;
  overflow: auto;
}

/* Dashboard menu polish */
.sidebar {
  gap: 10px;
  padding: 18px 16px;
}

.sidebar-top {
  display: grid;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .brand-logo {
  max-width: 176px;
  max-height: 54px;
  object-fit: contain;
}

.sidebar-user-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-user-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.sidebar-user-card strong,
.sidebar-user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-card strong {
  color: #fff;
  font-size: 14px;
}

.sidebar-user-card small {
  margin-top: 2px;
  color: #aeb4bd;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-nav {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-right: 2px;
}

.sidebar-section {
  display: grid;
  gap: 4px;
}

.sidebar-section-title {
  padding: 4px 12px;
  color: #7f8a99;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar a.sidebar-link {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  color: #dce5f0;
  font-size: 14px;
  font-weight: 800;
  background: transparent;
  border: 1px solid transparent;
}

.sidebar a.sidebar-link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 999px;
  background: #5d6675;
}

.sidebar a.sidebar-link:hover {
  background: #20242c;
  color: #fff;
}

.sidebar a.sidebar-link.is-active {
  background: #f4f8ff;
  color: #0f172a;
  border-color: rgba(10, 132, 255, .22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}

.sidebar a.sidebar-link.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, .14);
}

.sidebar-section-bottom {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-footer-actions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  flex: 0 0 auto;
}

.sidebar-footer-actions form,
.sidebar-footer-actions .sidebar-action {
  margin: 0;
}

.sidebar .link-button {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  font-weight: 850;
}

.sidebar-logout .link-button {
  color: #fecaca;
  border-color: rgba(239, 68, 68, .2);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-grid article {
  background: #fff;
  border: 1px solid #dde2e8;
  border-radius: 14px;
  padding: 18px;
}

.metric-grid span {
  display: block;
  color: #667085;
}

.metric-grid b { font-size: 28px; }

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

.alert-box {
  border: 1px solid #dde2e8;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.alert-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.alert-box p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: #667085;
}

.alert-box a {
  color: #111827;
  font-weight: 750;
}

.status-ok,
.status-pending {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
}

.status-ok {
  background: #dcfce7;
  color: #166534;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.update-result-box {
  margin-top: 16px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  border-radius: 8px;
  padding: 14px 16px;
}

.update-result-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.update-result-box p {
  margin: 6px 0;
  color: #1e3a8a;
}

.admin-card {
  background: #fff;
  color: #111;
  border-color: #dde2e8;
  margin-bottom: 22px;
}

.business-dashboard,
.cash-closing-page {
  color: #080b0a;
}

.business-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-kicker {
  display: block;
  margin-bottom: 8px;
  color: #5c665d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.business-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 500;
}

.business-hero p,
.business-hero small {
  color: #52605a;
}

.business-action {
  min-width: 210px;
  justify-content: center;
  background: #111510;
  border-color: #111510;
  color: #fff;
}

.cash-filter-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.cash-filter-bar label {
  color: #52605a;
  font-size: 12px;
}

.business-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

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

.business-metric {
  min-height: 148px;
  background: #fff;
  border: 1px solid #dde3dc;
  padding: 26px 24px;
}

.business-metric.is-highlight {
  border-top: 3px solid #a8ff00;
}

.business-metric span {
  display: block;
  margin-bottom: 22px;
  color: #52605a;
  font-size: 12px;
}

.business-metric strong {
  display: block;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1;
}

.business-metric.is-highlight strong {
  color: #98f600;
}

.business-metric.is-alert strong,
.business-metric.is-alert small {
  color: #ef3f35;
}

.business-metric small {
  color: #1f2a24;
}

.business-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
  gap: 18px;
}

.cash-grid {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 2fr);
}

.business-panel {
  background: #fff;
  border: 1px solid #dde3dc;
  padding: 24px;
  margin-bottom: 18px;
}

.business-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
}

.panel-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.panel-row-head h2 {
  margin: 0;
}

.panel-row-head a {
  color: #1f2a24;
  font-size: 12px;
  font-weight: 850;
}

.sales-activity-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.sales-activity-total strong {
  font-size: 24px;
}

.sales-activity-total span {
  color: #52605a;
  font-size: 12px;
}

.sales-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  min-height: 170px;
  gap: 20px;
  border-bottom: 1px solid #edf0eb;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 38px, #edf0eb 39px, transparent 40px);
  padding: 0 24px 8px;
}

.sales-bar-item {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
}

.sales-bar {
  width: 32px;
  min-height: 8px;
  background: #1d211c;
}

.sales-bar.is-active {
  background: #a8ff00;
}

.sales-bar-item small {
  color: #52605a;
}

.compact-list,
.stock-list,
.closing-method-list,
.simple-table-list {
  display: grid;
}

.compact-row,
.stock-list div,
.closing-method-list div,
.simple-table-list div {
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0eb;
  padding: 13px 0;
}

.compact-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.compact-row strong,
.stock-list strong,
.simple-table-list strong {
  display: block;
  font-size: 13px;
}

.compact-row small,
.stock-list small,
.closing-method-list small {
  color: #52605a;
  font-size: 11px;
}

.compact-row em {
  color: #1f2a24;
  font-size: 11px;
  font-style: normal;
}

.dot-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5a400;
}

.simple-table-list div {
  grid-template-columns: 130px minmax(160px, 1fr) 110px 120px;
}

.simple-table-list span {
  font-size: 12px;
}

.simple-table-list b {
  text-align: right;
}

.stock-list div {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.stock-list > div > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eef1eb;
  font-weight: 900;
}

.stock-list b {
  color: #ef3f35;
  font-size: 12px;
}

.closing-method-list div {
  grid-template-columns: minmax(0, 1fr) 90px 130px;
}

.closing-method-list strong {
  text-align: right;
}

.closing-signature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.closing-signature div {
  min-height: 82px;
  border-top: 1px solid #111;
  display: flex;
  align-items: end;
  justify-content: center;
  color: #52605a;
  font-size: 12px;
}

.grid-form { grid-template-columns: repeat(4, 1fr); }
.grid-form .wide { grid-column: span 4; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  vertical-align: top;
}

.danger { background: #ffe4e6; color: #be123c; }

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form input,
.inline-form select {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 8px;
  max-width: 130px;
}

.notice {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  padding: 12px 14px;
  border-radius: 12px;
}

.content-form textarea { min-height: 84px; }

.content-preview-logo {
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
  margin: 8px 0;
  background: #111318;
  border-radius: 10px;
  padding: 8px;
}

.content-preview-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 8px 0;
  background: #eef2f7;
  border-radius: 10px;
  padding: 6px;
}

.content-preview-banner {
  max-width: 360px;
  max-height: 140px;
  object-fit: contain;
  margin: 8px 0;
  background: #eef2f7;
  border-radius: 12px;
  padding: 8px;
}

.flyer-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.flyer-admin-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.flyer-admin-grid img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.category-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-admin-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.category-admin-list span {
  display: block;
  color: #667085;
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.print-page {
  margin: 0;
  background: #fff;
  color: #111;
}

.receipt {
  width: 300px;
  margin: 20px auto;
  font-size: 14px;
}

.receipt h1 { text-align: center; }

.receipt-wide {
  width: min(720px, calc(100% - 32px));
}

.invoice-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 16px;
  text-align: center;
}

.invoice-brand img {
  max-width: 150px;
  max-height: 72px;
  object-fit: contain;
}

.invoice-brand strong {
  font-size: 19px;
}

.invoice-brand span {
  display: block;
  color: #333;
  font-size: 12px;
}

.receipt table th,
.receipt table td {
  color: #111;
  border-bottom: 1px solid #ddd;
  padding: 8px 4px;
}

.invoice-summary {
  width: min(320px, 100%);
  margin-left: auto;
  display: grid;
  gap: 8px;
}

.invoice-summary div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #111;
}

.invoice-summary span {
  text-align: right;
  font-weight: 700;
}

.invoice-summary-total {
  border-top: 1px solid #111;
  padding-top: 8px;
  font-size: 16px;
}

.invoice-signature {
  margin-top: 52px;
  text-align: center;
}

.table-thumb {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #eef2f7;
  border-radius: 8px;
}

.offer-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.offer-row-form {
  margin: 0;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.image-admin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-admin-list form {
  display: grid;
  gap: 6px;
  max-width: 94px;
}

.image-admin-list img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  background: #eef2f7;
  border-radius: 8px;
}

.image-admin-list button {
  padding: 6px 8px;
  font-size: 11px;
}

.table-actions {
  display: grid;
  gap: 8px;
  min-width: 138px;
}

.table-actions .btn,
.table-actions button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.content-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.invoice-lines {
  display: grid;
  gap: 10px;
}

.invoice-line {
  display: grid;
  grid-template-columns: 1.25fr 1.4fr .7fr .9fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.invoice-line-title {
  grid-column: 1 / -1;
  color: #111827;
  font-size: 13px;
  font-weight: 850;
}

.repair-qr {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 18px auto;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
}

.repair-qr img {
  width: 150px;
  height: 150px;
}

.repair-qr span {
  max-width: 100%;
  color: #333;
  font-size: 11px;
  word-break: break-word;
}

.ticket-search {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.ticket-search input {
  min-width: 260px;
}

.ticket-result {
  margin: 18px 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.ticket-result article {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.ticket-result article span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 721px) {
  .header-search {
    flex: unset;
    max-width: 520px;
  }
}

@media print {
  @page {
    size: auto;
    margin: 0;
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .receipt {
    margin: 0 auto;
    padding: 12mm;
    box-sizing: border-box;
  }

  .btn { display: none; }
}

@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr; }
  .filters-store { grid-template-columns: 1fr; }
  .product-detail,
  .dashboard-body {
    display: block;
    min-height: 100vh;
    padding-top: 68px;
  }

  .dashboard-mobile-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 68px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #111318;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  }

  .dashboard-menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: #20242c;
    color: #fff;
  }

  .dashboard-menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .dashboard-mobile-brand {
    min-width: 0;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
  }

  .dashboard-mobile-brand img {
    width: auto;
    max-width: 170px;
    height: 42px;
    object-fit: contain;
  }

  .dashboard-mobile-user {
    max-width: 110px;
    overflow: hidden;
    color: #dce5f0;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    z-index: 1050;
    width: min(300px, 86vw);
    min-height: 0;
    max-height: calc(100dvh - 68px);
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: 16px 0 30px rgba(0, 0, 0, .22);
  }

  .sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    gap: 8px;
  }

  .sidebar-footer-actions {
    flex: 0 0 auto;
    margin-top: 8px;
    padding-top: 10px;
    background: #111318;
  }

  .dashboard-body.menu-open .sidebar {
    transform: translateX(0);
  }

  .dashboard-body.menu-open::after {
    content: "";
    position: fixed;
    inset: 68px 0 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .36);
  }

  .dashboard-main {
    padding: 20px 14px 28px;
  }

  .metric-grid,
  .alert-grid,
  .grid-form { grid-template-columns: repeat(2, 1fr); }
  .grid-form .wide { grid-column: span 2; }

  .business-hero {
    align-items: flex-start;
  }

  .business-metrics,
  .cash-close-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-grid,
  .cash-grid {
    grid-template-columns: 1fr;
  }

  .simple-table-list div {
    grid-template-columns: 120px minmax(0, 1fr) 90px 110px;
  }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1180px); }

  .topbar {
    padding: 10px 14px;
  }

  .header-search {
    max-width: none;
  }

  .nav-actions { margin-left: auto; }

  .brand { font-size: 16px; }

  .brand-logo {
    max-width: 190px;
    height: 57px;
  }

  .nav-pills a {
    padding: 8px 11px;
    font-size: 13px;
  }

  .section-head {
    margin-top: 28px;
    margin-bottom: 15px;
  }

  .section-head h1,
  .container h2 { font-size: 24px; }

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

  .product-detail-page {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .product-actionbar {
    margin-bottom: 12px;
  }

  .product-action-right {
    gap: 10px;
  }

  .product-action-link {
    font-size: 14px;
  }

  .product-detail-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-hero-media {
    border-radius: 16px;
  }

  .product-detail-info h1 {
    font-size: 25px;
  }

  .product-detail-price {
    font-size: 32px;
  }

  .latest-carousel {
    grid-auto-columns: 144px;
    gap: 16px;
  }

  .product-media { height: 158px; }

  .product-info { padding: 10px; }

  .product-info h3 {
    font-size: 14px;
    min-height: 34px;
  }

  .product-info p { font-size: 12px; }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .store-info-band {
    margin-top: 52px;
    padding: 34px 0 38px;
  }

  .store-info-grid {
    width: min(100% - 32px, 680px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .business-hero {
    display: grid;
  }

  .business-action {
    width: 100%;
    min-width: 0;
  }

  .cash-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cash-filter-bar .btn,
  .cash-filter-bar button {
    width: 100%;
  }

  .business-metrics,
  .cash-close-metrics {
    grid-template-columns: 1fr;
  }

  .business-metric {
    min-height: 124px;
    padding: 20px;
  }

  .business-metric strong {
    font-size: 26px;
  }

  .business-panel {
    padding: 18px;
  }

  .sales-bars {
    gap: 10px;
    padding-inline: 8px;
  }

  .sales-bar {
    width: 24px;
  }

  .simple-table-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .simple-table-list b {
    text-align: left;
  }

  .closing-method-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .closing-method-list strong {
    text-align: left;
  }

  .closing-signature {
    grid-template-columns: 1fr;
  }

  .store-info-card {
    gap: 18px;
  }

  .store-info-card h2 {
    font-size: 20px;
    line-height: 1.9;
  }

  .brand-card {
    min-height: 74px;
    font-size: 12px;
  }

  .store-grid,
  .compare-grid { grid-template-columns: 1fr; }

  .repair-banner-link,
  .repair-page {
    grid-template-columns: 1fr;
  }

  .repair-banner-link {
    min-height: 0;
    padding: 18px;
  }

  .repair-banner-copy h2,
  .repair-page-copy h1 {
    font-size: 26px;
  }

  .repair-banner-media {
    height: 132px;
  }

  .flyer-carousel {
    border-radius: 12px;
    aspect-ratio: 16 / 18;
  }

  .repair-service-grid {
    grid-template-columns: 1fr;
  }

  .invoice-line {
    grid-template-columns: 1fr;
  }

  .ticket-search {
    display: grid;
  }

  .ticket-search input {
    min-width: 0;
    width: 100%;
  }

  .seller-callout,
  .info-band {
    display: block;
    padding: 22px;
  }

  .gallery { min-height: 340px; }

  .detail-panel h1 { font-size: 28px; }
  .detail-panel .price { font-size: 26px; }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 9px 12px;
  }

  .topbar .theme-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .topbar .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
    overflow: hidden;
  }

  .topbar .brand strong {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .account-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .topbar .theme-toggle svg,
  .topbar .account-link svg {
    width: 17px;
    height: 17px;
  }

  .topbar .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
  }

  .brand-icon {
    width: 30px;
    height: 30px;
  }

  .brand-logo {
    max-width: 160px;
    height: 53px;
  }

  .category-strip { padding: 16px 0 14px; }

  .category-pill {
    min-width: 116px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .section-head {
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .section-head h1,
  .container h2 {
    font-size: 18px;
  }

  .section-head a {
    font-size: 13px;
  }

  .latest-carousel {
    grid-auto-columns: 144px;
    gap: 16px;
    padding-bottom: 8px;
  }

  .latest-carousel .product-media {
    height: 144px;
  }

  .latest-carousel .product-card {
    height: 258px;
  }

  .latest-carousel .product-info {
    height: 114px;
    min-height: 0;
    padding: 7px 8px 8px;
    overflow: hidden;
  }

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

  .product-card {
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
  }

  .product-media {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
  }

  .product-info {
    height: 120px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 6px 7px 7px;
    overflow: hidden;
  }

  .product-info h3 {
    min-height: 26px;
    max-height: 26px;
    margin: 4px 0 3px;
    font-size: 11px;
    line-height: 1.18;
    overflow: hidden;
  }

  .product-info p {
    min-height: 12px;
    max-height: 12px;
    margin-bottom: 3px;
    font-size: 9.5px;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .product-info strong {
    margin-top: auto;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .product-card-whatsapp {
    min-height: 24px;
    margin-top: 6px;
    font-size: 10.5px;
  }

  .product-price-offer {
    gap: 0;
  }

  .product-price-offer span {
    font-size: 9px;
    line-height: 1;
  }

  .product-price-offer strong {
    font-size: 11px;
    line-height: 1.08;
    white-space: nowrap;
  }

  .chip {
    font-size: 9px;
    line-height: 1;
    padding: 3px 6px;
    align-self: flex-start;
  }

  .panel-head { align-items: flex-start; flex-direction: column; }
  .metric-grid,
  .grid-form { grid-template-columns: 1fr; }
  .grid-form .wide { grid-column: auto; }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }
}

@media (max-width: 980px) {
  .dashboard-mobile-head {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    background: rgba(17, 19, 24, .96);
    backdrop-filter: blur(14px);
  }

  .dashboard-menu-toggle {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  }

  .dashboard-mobile-user {
    width: 38px;
    height: 38px;
    max-width: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #20242c;
    color: transparent;
    font-size: 0;
  }

  .dashboard-mobile-user::first-letter {
    color: #fff;
    font-size: 13px;
  }

  .sidebar {
    top: 78px;
    left: 10px;
    bottom: 10px;
    width: min(330px, calc(100vw - 20px));
    max-height: calc(100dvh - 88px);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    transform: translateX(calc(-100% - 20px));
  }

  .sidebar-footer-actions {
    margin-inline: -2px;
    padding-bottom: 2px;
  }

  .dashboard-body.menu-open::after {
    inset: 68px 0 0;
    background: rgba(8, 10, 14, .54);
    backdrop-filter: blur(2px);
  }

  .sidebar-brand {
    min-height: 54px;
  }

  .sidebar-user-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .sidebar-user-card > span {
    width: 38px;
    height: 38px;
  }

  .sidebar a.sidebar-link {
    min-height: 40px;
    font-size: 13px;
  }
}
