:root {
  color-scheme: light;
  --bg: #f3efe7;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(70, 54, 38, 0.12);
  --text: #1f1a17;
  --muted: #6f6258;
  --accent: #b65a1f;
  --accent-2: #1d6f66;
  --line: #e5d8c8;
  --shadow: 0 20px 50px rgba(68, 44, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(182, 90, 31, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 111, 102, 0.13), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #f3efe7 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.admin-fab {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin: 6px 0 14px;
  border: 1px solid rgba(31, 26, 23, 0.1);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-weight: 700;
}

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

.simple-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
}

.simple-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.promo-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.promo-strip h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1;
}

.promo-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.hero p,
.section-head p,
.hint,
.product-body p {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 111, 102, 0.08);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-card {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.hero-card strong {
  font-size: 1.5rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(14px);
}

.panel-main {
  min-height: 340px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(245, 237, 225, 0.95)),
    #f5ede1;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  background: transparent;
}

.photo-pills {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 3;
}

.photo-pills button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.photo-pills button.is-active {
  background: #fff;
  transform: scale(1.2);
}

.photo-nav {
  position: absolute;
  top: 50%;
  width: 24%;
  height: 70%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
}

.photo-prev {
  left: 0;
}

.photo-next {
  right: 0;
}

.photo-nav:disabled {
  cursor: default;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.product-body h3,
.product-body p {
  margin: 0;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.price {
  color: var(--accent);
  font-size: 1.15rem;
}

.stock {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-actions {
  justify-content: space-between;
}

.buy-now {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
}

.checkout-cta {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: 700;
}

.secondary-action {
  flex: 1;
}

.status-select {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.panel-side {
  position: sticky;
  top: 20px;
  align-self: start;
}

.stack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cart-item,
.order-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.cart-item header,
.order-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-controls button,
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover,
.cart-controls button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e07b2f);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 14px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.span-2 {
  grid-column: span 2;
}

.notice {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(29, 111, 102, 0.09);
  color: var(--text);
  min-height: 20px;
}

.order-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.order-result-actions .btn {
  width: auto;
}

.orders {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.catalog-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box span {
  font-size: 0.94rem;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-tags button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
}

.catalog-tags button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(182, 90, 31, 0.18);
}

.featured-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.featured-banner .eyebrow {
  margin-bottom: 10px;
}

.featured-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.featured-copy p {
  margin: 0 0 16px;
  max-width: 52ch;
  color: var(--muted);
}

.featured-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-visual {
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.75), rgba(245, 237, 225, 0.2)),
    rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  overflow: hidden;
}

.featured-visual img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  padding: 14px;
}

.whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(37, 211, 102, 0.28);
  text-decoration: none;
}

.admin-subhead {
  margin-top: 26px;
}

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

.admin-product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.admin-product-card .topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(29, 111, 102, 0.11);
  color: var(--accent-2);
  font-size: 0.84rem;
}

.badge-muted {
  background: rgba(31, 26, 23, 0.06);
  color: var(--muted);
}

.admin-product-card .order-actions {
  margin-top: 0;
}

.admin-product-card .btn {
  width: auto;
}

.admin-product-card .btn-ghost {
  padding-inline: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(31, 26, 23, 0.46);
  padding: 20px;
}

.modal-card {
  width: min(480px, 100%);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-panel[hidden],
.modal[hidden] {
  display: none;
}

.order-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

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

@media (max-width: 960px) {
  .simple-head,
  .promo-strip,
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .simple-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-strip {
    align-items: flex-start;
  }

  .panel-side {
    position: static;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .product-actions,
  .actions {
    flex-direction: column;
  }

  .buy-now,
  .secondary-action {
    width: 100%;
  }

  .featured-banner {
    grid-template-columns: 1fr;
  }

  .admin-fab {
    position: fixed;
    left: 12px;
    top: 12px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 16px, 1280px);
    padding-bottom: 96px;
  }

  .hero-card,
  .panel,
  .modal-card {
    border-radius: 18px;
  }

  .product-media {
    aspect-ratio: 1 / 1;
  }

  .panel-side {
    position: static;
  }

  .btn {
    width: 100%;
  }

  .buy-now {
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(182, 90, 31, 0.18);
  }

  .product-card {
    border-radius: 22px;
  }

  .product-body {
    padding: 14px;
  }

  .order-result-actions {
    flex-direction: column;
  }

  .checkout-cta {
    position: sticky;
    bottom: 12px;
    box-shadow: 0 14px 30px rgba(182, 90, 31, 0.28);
    z-index: 10;
  }

  .promo-actions {
    width: 100%;
  }

  .promo-actions .btn {
    width: auto;
    flex: 1;
  }

  .whatsapp-fab {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}
