:root {
  --font-body: "Manrope", sans-serif;
  --font-display: "Sora", sans-serif;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: #5a6578;
  --brand: #0b5fff;
  --accent: #1e8cff;
  --accent-dark: #0747c9;
  --border: #d5deec;
  --danger: #b42318;
  --success: #0f7a4c;
  --carousel-from: #0b1b3a;
  --carousel-to: #0b5fff;
  --radius: 4px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #dbe8ff 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #cfe0ff 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body), sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

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

.carousel-slide[hidden],
.search-dropdown[hidden],
[hidden] {
  display: none !important;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.header-search {
  flex: 1 1 48%;
  max-width: 640px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.header-search .product-search-wrap,
.header-search .product-search {
  flex: 1;
  max-width: none;
  width: 100%;
}

@media (max-width: 639px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.65rem;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.05;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.header-link {
  color: var(--muted);
  font-weight: 600;
}

.header-link:hover {
  color: var(--accent-dark);
}

.hero-intro {
  padding: 1.25rem 0 1rem;
}

.hero-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--carousel-from) 0%, #123a7a 45%, var(--carousel-to) 100%);
  min-height: 520px;
}

@media (min-width: 768px) {
  .carousel {
    height: 380px;
    min-height: 380px;
  }
}

.carousel-slide {
  display: grid;
  grid-template-columns: 1fr;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: 520px;
  color: #fff;
  animation: fadeIn 0.45s ease;
}

@media (min-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1.15fr 0.85fr;
    height: 100%;
    min-height: 0;
    align-items: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

.carousel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 0 2.25rem;
  order: 2;
  min-width: 0;
}

@media (min-width: 768px) {
  .carousel-copy {
    order: 0;
    padding: 1.5rem 1.5rem 1.5rem 0;
  }
}

.carousel-media {
  display: grid;
  place-items: center;
  order: 1;
  padding: 1.25rem 0 0;
}

@media (min-width: 768px) {
  .carousel-media {
    order: 0;
    padding: 1rem 0;
  }
}

.carousel-media img {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  border: 0;
}

@media (min-width: 768px) {
  .carousel-media img {
    width: min(100%, 320px);
  }
}

.carousel-media-placeholder {
  width: min(100%, 280px);
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 0;
}

.carousel-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  opacity: 0.9;
}

.carousel-title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.1rem, 2.3vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.55rem 0.95rem;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 27, 58, 0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  border-radius: var(--radius);
}

.carousel-nav.prev { left: 0.5rem; }
.carousel-nav.next { right: 0.5rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.dot.active { background: #fff; }

.section { padding: 1.5rem 0 3rem; }

.section-title {
  font-family: var(--font-display), sans-serif;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.section-title--accent {
  color: #e85d04;
  margin-bottom: 0.2rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.section--offers {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.home-shortcuts {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-shortcut {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  white-space: nowrap;
}

.home-shortcut--offer {
  background: #e85d04;
  border-color: #e85d04;
  color: #fff;
}

.home-shortcut--offer:hover {
  background: #c45c26;
  border-color: #c45c26;
  color: #fff;
}

.home-shortcut--muted {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--accent) 40%, white);
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.home-shortcut--muted.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: var(--brand);
}

.home-shortcut--offer.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, #e85d04 35%, white);
}

.home-shortcut--ghost {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--border);
  font-weight: 600;
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.products-toolbar .section-title { margin: 0; }
.products-toolbar .search-result-hint { margin: 0.35rem 0 0; }

.product-search-wrap {
  position: relative;
  flex: 1 1 240px;
  max-width: 640px;
  width: 100%;
}

.product-search {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.product-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 32px;
  font: inherit;
  font-size: 0.9rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
}

.product-search input[type="search"]::placeholder { color: var(--muted); }

.product-search .btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 0.95rem;
  font-size: 0.9rem;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.search-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
}

.search-dropdown-item:hover {
  background: color-mix(in srgb, var(--brand) 8%, white);
}

.search-dropdown-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f5f9;
  display: grid;
  place-items: center;
}

.search-dropdown-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-dropdown-thumb-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.search-dropdown-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.search-dropdown-name {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-dropdown-prices {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.search-dropdown-compare {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}

.search-dropdown-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.search-dropdown-price.is-offer { color: #e85d04; }

.search-dropdown-store {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.search-dropdown-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-result-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-filter::-webkit-scrollbar { height: 4px; }
.category-filter::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 45%, white);
}

.chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  scroll-snap-align: start;
  border-radius: var(--radius);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.chip.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--brand);
}

.marketplace-chip.marketplace-mercado-livre {
  background: color-mix(in srgb, #ffe600 22%, white);
  border-color: #e6cf00;
  color: #6b5b00;
}

.marketplace-chip.marketplace-mercado-livre.active {
  background: #ffe600;
  border-color: #e6cf00;
  color: #1a1a1a;
}

.marketplace-chip.marketplace-kabum {
  background: color-mix(in srgb, #ff5a00 14%, white);
  border-color: color-mix(in srgb, #ff5a00 45%, white);
  color: #c24500;
}

.marketplace-chip.marketplace-kabum.active {
  background: #ff5a00;
  border-color: #e65100;
  color: #fff;
}

.marketplace-chip.marketplace-shopee {
  background: color-mix(in srgb, #ee4d2d 14%, white);
  border-color: color-mix(in srgb, #ee4d2d 45%, white);
  color: #c23a22;
}

.marketplace-chip.marketplace-shopee.active {
  background: #ee4d2d;
  border-color: #d44325;
  color: #fff;
}

.marketplace-chip.marketplace-amazon {
  background: color-mix(in srgb, #232f3e 12%, white);
  border-color: color-mix(in srgb, #232f3e 35%, white);
  color: #232f3e;
}

.marketplace-chip.marketplace-amazon.active {
  background: #232f3e;
  border-color: #1a2430;
  color: #fff;
}

.marketplace-chip.marketplace-outro {
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-color: color-mix(in srgb, var(--accent) 40%, white);
  color: var(--brand);
}

.marketplace-chip.marketplace-outro.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.products-container {
  --products-cols: 4;
  --products-gap: 1.25rem;
  --product-card-w: calc((1120px - (3 * var(--products-gap))) / 4);
}

.products-container--cols-4 {
  --products-cols: 4;
  width: min(1120px, calc(100% - 2rem));
}

.products-container--cols-5 {
  --products-cols: 5;
  width: min(calc(var(--product-card-w) * 5 + var(--products-gap) * 4), calc(100% - 2rem));
}

.products-container--cols-6 {
  --products-cols: 6;
  width: min(calc(var(--product-card-w) * 6 + var(--products-gap) * 5), calc(100% - 2rem));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--products-gap, 1.25rem);
  align-items: stretch;
}

@media (max-width: 639px) {
  .container,
  .products-container--cols-4,
  .products-container--cols-5,
  .products-container--cols-6 {
    width: min(1120px, calc(100% - 0.76rem));
  }

  .product-grid {
    --products-gap: 0.38rem;
    gap: 0.38rem;
  }

  .chip,
  .product-search input[type="search"],
  .product-search .btn {
    height: 36px;
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(var(--products-cols, 4), minmax(0, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.product-card--offer { border-color: #e85d04; }
.product-card--offer:hover { border-color: #e85d04; }

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.product-offer-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  padding: 0.2rem 0.45rem;
  background: #e85d04;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  line-height: 1.2;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image { transform: scale(1.03); }

.product-image.placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(30, 140, 255, 0.12) 40% 60%, transparent 60%),
    #f3f6fb;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 0.9rem 1rem;
  gap: 0.35rem;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.carousel-meta .carousel-eyebrow { margin: 0; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.product-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.marketplace-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.45rem;
  line-height: 1.2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.marketplace-tag.marketplace-mercado-livre {
  background: color-mix(in srgb, #ffe600 22%, white);
  border-color: #e6cf00;
  color: #6b5b00;
}

.marketplace-tag.marketplace-kabum {
  background: color-mix(in srgb, #ff5a00 14%, white);
  border-color: #ff5a00;
  color: #c24500;
}

.marketplace-tag.marketplace-shopee {
  background: color-mix(in srgb, #ee4d2d 14%, white);
  border-color: #ee4d2d;
  color: #c23a22;
}

.marketplace-tag.marketplace-amazon {
  background: color-mix(in srgb, #232f3e 12%, white);
  border-color: #232f3e;
  color: #232f3e;
}

.marketplace-tag.marketplace-outro {
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-color: var(--accent);
  color: var(--brand);
}

.product-name {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pricing { display: grid; gap: 0.15rem; }

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}

.product-price-old {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}

.product-price {
  color: #c45c26;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-price-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  height: 30px;
  padding: 0 0.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  text-align: center;
}

.product-card:hover .product-cta { background: var(--accent-dark); }

.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner { display: grid; gap: 0.45rem; }

.footer-brand,
.footer-notice,
.footer-contact { margin: 0; }

.footer-site-name {
  font-weight: 700;
  color: var(--text);
}

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

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-radius: var(--radius);
  color: var(--muted);
}

.footer-contact a {
  color: var(--brand);
  font-weight: 600;
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
}

.footer-whatsapp-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

body:has(.admin-console) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.admin-console {
  --admin-sidebar: #0b1b3a;
  --admin-sidebar-active: #16315f;
  --admin-main-bg: #eef2f7;
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--admin-main-bg);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 1.25rem 1rem;
  background: var(--admin-sidebar);
  color: #fff;
}

.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-brand-name {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-sidebar-brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.admin-sidebar-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  border-radius: var(--radius);
}

.admin-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar-nav a.active {
  background: var(--admin-sidebar-active);
  color: #fff;
}

.admin-sidebar-footer {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-site-link {
  display: block;
  padding: 0.65rem 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  border-radius: var(--radius);
}

.admin-sidebar-logout {
  width: 100%;
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

.admin-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.75rem 1.75rem 2.5rem;
}

.admin-main-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-page-title {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.admin-page-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-stat-value {
  font-family: var(--font-display), sans-serif;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-panel-pad { padding: 1.25rem; }

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f7f9fc;
}

.admin-filter-field {
  flex: 1 1 220px;
  margin: 0;
}

.admin-filter-field input {
  width: 100%;
  height: 32px;
  font: inherit;
  font-size: 0.9rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
}

.admin-filter-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-list--flush {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-table-wrap { overflow-x: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.admin-console .btn {
  height: 32px;
  padding: 0 0.95rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-danger {
  border-color: color-mix(in srgb, var(--danger) 35%, white);
  color: var(--danger);
  background: #fff;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f7f9fc;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.admin-product-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f3f6fb;
  overflow: hidden;
}

.admin-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-product-thumb span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(30, 140, 255, 0.12) 40% 60%, transparent 60%),
    #e8effc;
}

.admin-table .row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 96px;
}

.admin-table .row-actions .btn {
  width: 100%;
  height: 32px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  margin-right: 0.35rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius);
}

.badge.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--brand);
}

.badge.offer {
  border-color: #e85d04;
  background: color-mix(in srgb, #e85d04 14%, white);
  color: #c45c26;
}

.admin-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.offer-fields {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, white);
}

@media (max-width: 900px) {
  .admin-console {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .admin-sidebar {
    height: auto;
    overflow: visible;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .admin-sidebar-brand {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0 0 0.65rem;
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 0;
  }

  .admin-stats { grid-template-columns: 1fr; }
  .admin-main { padding: 1.25rem 1rem 2rem; }
}

.admin-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-list-item .row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.category-edit-form {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.category-edit-form input {
  flex: 1 1 200px;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-list-item:last-child { border-bottom: 0; }

.admin-list-item .muted {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.admin-stack { display: grid; gap: 1rem; }

.image-field { display: grid; gap: 0.75rem; }

.image-field-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.image-preview {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #eef3f6;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.file-input {
  position: relative;
  display: inline-flex !important;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--radius);
}

.file-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-error { color: var(--danger); margin: 0; }
.form-success { color: var(--success); margin: 0; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, #dbe8ff 0%, transparent 55%),
    #eef2f7;
}

.login-card {
  width: min(420px, 100%);
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.login-card h1 {
  font-family: var(--font-display), sans-serif;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.login-form {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.truncated-url {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}
