:root {
  --bg: #050608;
  --panel: #101216;
  --panel-2: #161a21;
  --text: #f6f7fb;
  --muted: #a8afbd;
  --line: rgba(255, 255, 255, .10);
  --yellow: #f7c600;
  --cyan: #22e6f2;
  --red: #ff2d55;
  --green: #39e58c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(34, 230, 242, .13), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 82px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 520px) auto;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(14px, 4vw, 42px);
  background: rgba(5, 6, 8, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.brand strong { display: block; font-size: 1.02rem; }
.brand small { color: var(--muted); font-size: .75rem; white-space: nowrap; }

.search, .big-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.search input, .big-search input, .lead-box input, .admin-input, textarea, select {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-actions { display: flex; gap: 12px; color: var(--muted); font-size: .92rem; }
.top-actions a:hover { color: var(--yellow); }

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.narrow { width: min(720px, calc(100% - 28px)); }

.hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero > div {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: .95;
  letter-spacing: 0;
}

.hero p { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.eyebrow { color: var(--yellow) !important; text-transform: uppercase; font-size: .78rem !important; letter-spacing: .08em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  color: #060606;
  border-color: var(--yellow);
  background: linear-gradient(135deg, var(--yellow), #ffdf53);
  box-shadow: 0 12px 26px rgba(247, 198, 0, .18);
}

.btn.ghost { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn.calc-cta {
  color: #051014;
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), #f7c600);
  box-shadow: 0 12px 28px rgba(34, 230, 242, .22);
}
.btn.wide { width: 100%; }

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

.category-strip a {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.category-strip i { color: var(--yellow); }

.section-head, .listing-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
}

.section-head h2, .listing-title h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.4rem); }
.section-head a, .listing-title p { color: var(--muted); }

.showcase-timer {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .82rem;
  white-space: nowrap;
}

.showcase-timer strong {
  color: var(--yellow);
  font-size: .95rem;
  letter-spacing: 0;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / .92;
  background: #08090b;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.product-card:hover .product-media img { transform: scale(1.04); }

.discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  padding: 5px 7px;
  font-weight: 900;
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 10px 0;
}

.badges span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  color: var(--badge);
  background: rgba(255, 255, 255, .06);
  border: 1px solid color-mix(in srgb, var(--badge) 38%, transparent);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: .68rem;
  font-weight: 800;
}

.product-card h3 {
  min-height: 44px;
  margin: 10px 10px 6px;
  font-size: .98rem;
  line-height: 1.18;
}

.summary {
  min-height: 40px;
  margin: 0 10px 10px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}

.price { margin: auto 10px 10px; }
.price del { display: block; color: #7f8794; font-size: .78rem; }
.price strong { display: block; color: var(--yellow); font-size: 1.26rem; }
.price.jumbo strong { font-size: 2.4rem; }
.price span { color: var(--muted); }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 42px 42px;
  gap: 8px;
  padding: 10px;
}

.icon-btn {
  width: 42px;
  height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.icon-btn .bi-heart-fill { color: var(--red); }
.icon-btn.copied { color: var(--green); }

.whatsapp-band, .lead-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(34, 230, 242, .12), rgba(247, 198, 0, .10));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.whatsapp-band span { display: block; color: var(--muted); }
.lead-box { display: block; }
.lead-box h2 { margin-top: 0; }
.lead-box form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lead-box input, .admin-input, textarea, select { min-height: 44px; padding: 10px 12px; background: #0b0d11; border: 1px solid var(--line); border-radius: 8px; }

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

.detail-media, .description {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-media video {
  width: 100%;
  max-height: 420px;
  background: #000;
  border-top: 1px solid var(--line);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-info {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.detail-info h1 { margin: 8px 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.crumb { color: var(--cyan); font-weight: 800; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; color: var(--muted); }
.meta-list li { display: flex; gap: 8px; align-items: center; }
.description { margin-top: 18px; padding: 18px; }
.legal { color: var(--muted); font-size: .86rem; }
.sticky-offer { display: none; }
.empty { color: var(--muted); }

.big-search { margin-top: 14px; }
.favorites-list { display: grid; gap: 10px; }
.favorite-row { display: flex; gap: 10px; align-items: center; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-transform: capitalize; }
.favorite-row i { color: var(--red); }

.toast {
  position: fixed;
  right: 14px;
  top: 86px;
  z-index: 30;
  max-width: 340px;
  padding: 12px 14px;
  background: #102116;
  border: 1px solid rgba(57, 229, 140, .45);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 98px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer div { display: flex; gap: 14px; flex-wrap: wrap; }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 25;
  transform: translateX(-50%);
  display: none;
  width: min(520px, calc(100% - 18px));
  grid-template-columns: repeat(5, 1fr);
  background: rgba(16, 18, 22, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: .68rem;
}

.bottom-nav i { font-size: 1.1rem; color: var(--yellow); }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr; }
  .top-actions { display: none; }
  .hero { min-height: 0; padding: 18px 0 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-box form { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; }
  .sticky-offer {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 80px;
    z-index: 24;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    color: #060606;
    background: var(--yellow);
    border-radius: 8px;
    font-weight: 900;
  }
}

@media (max-width: 520px) {
  .page { width: min(100% - 18px, 1180px); padding-top: 12px; }
  .site-header { gap: 10px; padding: 10px 14px 12px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { white-space: normal; }
  .hero { padding-top: 10px; }
  .hero h1 { font-size: 2.15rem; }
  .hero p { margin-bottom: 0; font-size: .98rem; line-height: 1.42; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .category-strip { padding: 12px 0 8px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head, .listing-title { margin: 18px 0 10px; }
  .showcase-timer { white-space: normal; }
  .product-grid { gap: 9px; }
  .product-card h3 { font-size: .9rem; }
  .summary { display: none; }
  .card-actions { grid-template-columns: 1fr 38px 38px; gap: 6px; }
  .icon-btn { width: 38px; }
  .btn { padding: 0 12px; }
  .price strong { font-size: 1.08rem; }
  .whatsapp-band { align-items: stretch; flex-direction: column; }
  .meta-list { grid-template-columns: 1fr; }
}

.admin-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  padding-bottom: 0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px;
  background: #080a0d;
  border-right: 1px solid var(--line);
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  border-radius: 8px;
}

.admin-sidebar nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.admin-main {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 46px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-top h1 { margin: 0; }
.admin-top span { color: var(--muted); }

.admin-panel {
  margin-bottom: 16px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-grid article {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.admin-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 2rem;
}

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

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

.admin-form.inline {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px) minmax(120px, 180px) auto;
  align-items: end;
  margin-bottom: 16px;
}

.admin-form.import-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  margin-bottom: 12px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
}

.admin-form .full { grid-column: 1 / -1; }

textarea {
  min-height: 96px;
  resize: vertical;
}

select {
  min-height: 44px;
  padding: 10px 12px;
  background: #0b0d11;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checks label {
  display: flex;
  grid: none;
  align-items: center;
  gap: 6px;
}

.current-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.current-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
}

td a { color: var(--yellow); font-weight: 800; }

.install-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.install-logo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.toast-inline {
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toast-inline.success { border-color: rgba(57, 229, 140, .45); background: rgba(57, 229, 140, .08); }
.toast-inline.danger { border-color: rgba(255, 45, 85, .45); background: rgba(255, 45, 85, .08); }

@media (max-width: 1040px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form.two, .admin-form.inline, .admin-form.import-form { grid-template-columns: 1fr; }
  .current-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
