:root {
  --paper: #fff7fa;
  --soft: #f9dce8;
  --card: #fdeef4;
  --hover: #efc7d7;
  --accent: #d96a98;
  --button: #e88eb3;
  --button-hover: #c95687;
  --title: #8f4866;
  --ink: #5f5a5d;
  --line: #f6c9db;
  --white: #fff7fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 201, 219, 0.55), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(249, 220, 232, 0.8), transparent 28rem),
    var(--paper);
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--title);
  text-decoration: none;
}

a:hover {
  color: var(--button-hover);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--title);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 42px);
  min-height: 88px;
  padding: 12px clamp(16px, 5vw, 72px) 18px;
  background: linear-gradient(180deg, #f6b7ca 0%, #f8c4d4 100%);
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(217, 106, 152, 0.18);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 16px;
  background:
    radial-gradient(circle at 10px -1px, transparent 12px, var(--paper) 13px) 0 0 / 22px 16px repeat-x;
  pointer-events: none;
}

.brand {
  color: var(--button-hover);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 0.76;
  min-width: max-content;
  font-family: "Great Vibes", "Brush Script MT", cursive;
  text-align: center;
}

.brand span {
  display: block;
}

.brand small {
  display: block;
  margin-top: 12px;
  color: var(--title);
  font: 800 11px/1 "Quicksand", Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar nav,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
}

.main-nav {
  justify-content: center;
  flex: 1;
}

.main-nav a,
.action-nav a {
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav a:hover,
.action-nav a:hover {
  color: var(--button-hover);
}

.action-nav {
  justify-content: flex-end;
  min-width: max-content;
}

.cart-link {
  position: relative;
}

.cart-link span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--button);
  color: var(--white);
  font-size: 12px;
}

.admin-access {
  opacity: 0.72;
}

.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: inline-grid;
  min-width: 62px;
  min-height: 62px;
  place-items: center;
  padding: 12px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-size: 0;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

.whatsapp-float::before {
  content: "W";
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: white;
  font-size: 21px;
  font-weight: 800;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: white;
  transform: translateY(-2px);
}

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  min-height: 260px;
  display: flex;
  align-items: end;
  padding: clamp(28px, 6vw, 64px);
  margin-bottom: 22px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(143, 72, 102, 0.82), rgba(232, 142, 179, 0.42)),
    url("https://images.unsplash.com/photo-1519682577862-22b62b24e493?auto=format&fit=crop&w=1600&q=80") center/cover;
  border: 1px solid var(--line);
}

.home-hero {
  position: relative;
  min-height: clamp(520px, 39vw, 720px);
  display: grid;
  place-items: center;
  width: calc(100vw - 0px);
  margin: -34px 0 0 50%;
  transform: translateX(-50%);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 247, 250, 0.2), rgba(255, 247, 250, 0.62)),
    var(--paper);
}

.home-hero::after {
  content: "";
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: -70px;
  height: 160px;
  background: var(--paper);
  border-top: 2px solid rgba(232, 142, 179, 0.28);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 250, 0.2), rgba(255, 247, 250, 0.76) 38%, rgba(255, 247, 250, 0.76) 62%, rgba(255, 247, 250, 0.2)),
    url("/static/img/home-hero.png") center/cover no-repeat;
  filter: saturate(1.05);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 32px));
  margin-top: clamp(24px, 6vw, 84px);
  text-align: center;
}

.home-hero .eyebrow {
  color: var(--button-hover);
  font-size: 17px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0;
  color: var(--button);
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: clamp(88px, 13vw, 210px);
  font-weight: 400;
  line-height: 0.72;
  text-shadow: 0 4px 0 rgba(143, 72, 102, 0.08);
}

.home-hero h1 span {
  color: #5b332c;
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  font-size: 0.26em;
  font-weight: 800;
  font-style: italic;
}

.hero-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 26px auto 24px;
  padding: 10px clamp(22px, 5vw, 54px);
  background: linear-gradient(180deg, var(--button), var(--button-hover));
  color: var(--white);
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 24px rgba(201, 86, 135, 0.2);
}

.hero-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.hero-categories a {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-categories span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 142, 179, 0.26);
  color: var(--button-hover);
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(217, 106, 152, 0.22);
}

.benefit-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 20px;
  margin: -18px 0 38px;
  padding: 20px 0 6px;
}

.benefit-strip div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.benefit-strip div::before {
  content: "♡";
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--button);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
}

.benefit-strip strong {
  display: block;
  color: var(--title);
  text-transform: uppercase;
}

.benefit-strip span {
  display: block;
  color: var(--ink);
}

.shop-eyebrow {
  color: var(--button-hover);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.customizer-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(217, 106, 152, 0.1);
}

.customizer-form label {
  display: grid;
  gap: 8px;
  color: var(--title);
  font-weight: 800;
}

.control-grid {
  display: grid;
  gap: 12px;
}

.customizer-preview-card {
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(253, 238, 244, 0.95), rgba(249, 220, 232, 0.65)),
    var(--card);
  box-shadow: 0 16px 40px rgba(143, 72, 102, 0.12);
}

#agenda-canvas {
  width: min(100%, 460px);
  height: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 38px rgba(95, 90, 93, 0.18);
}

.customizer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.customizer-total strong {
  color: var(--title);
  font-size: 24px;
}

.cart-custom-preview,
.admin-custom-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-custom-preview img,
.admin-custom-item img,
.order-preview {
  width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-custom-item {
  align-items: flex-start;
  margin-top: 10px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--button-hover);
}

.filters,
.checkout-bar,
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.filters {
  justify-content: start;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--button);
  box-shadow: 0 0 0 3px rgba(217, 106, 152, 0.18);
  outline: none;
}

.filters input {
  max-width: 260px;
}

.filters select {
  max-width: 220px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  background: var(--soft);
  color: var(--title);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  border-color: var(--button-hover);
  background: var(--hover);
  color: var(--title);
}

.btn.primary {
  background: var(--button);
  color: var(--white);
  border-color: var(--button);
}

.btn.primary:hover {
  background: var(--button-hover);
  color: var(--white);
}

.btn.small {
  min-height: 34px;
  padding: 6px 10px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(217, 106, 152, 0.1);
}

.product.card,
.summary.card,
.auth-box {
  background: var(--card);
}

.product {
  padding: 0;
  overflow: hidden;
}

.image-box {
  min-height: 210px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--ink);
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-hover {
  position: relative;
  overflow: hidden;
}

.product-image-hover img {
  transition: opacity 180ms ease, transform 220ms ease;
}

.product-image-hover .hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-image-hover:hover .primary-img {
  opacity: 0;
  transform: scale(1.02);
}

.product-image-hover:hover .hover-img {
  opacity: 1;
}

.product-body {
  padding: 16px;
}

.product h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-price,
.detail-price {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.old-price {
  color: var(--ink);
  text-decoration: line-through;
  opacity: 0.72;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--button-hover);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.product form,
.inline-form,
.qty-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.product input,
.inline-form input,
.qty-form input {
  width: 84px;
}

.detail-layout,
.checkout-layout,
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.detail-layout {
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
}

.detail-image {
  min-height: 420px;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.product-thumbs button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}

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

.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}

.admin-gallery-preview figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.admin-gallery-preview figcaption {
  margin-top: 4px;
  color: var(--title);
  font-weight: 800;
  text-align: center;
}

.cyber-panel {
  margin-bottom: 22px;
}

.cyber-form {
  grid-template-columns: minmax(220px, 1fr) 160px auto;
  align-items: end;
}

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

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-list-row span {
  display: grid;
  gap: 2px;
}

.admin-list-row small {
  color: var(--ink);
}

.price {
  color: var(--title);
  font-size: 28px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

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

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

th {
  background: var(--card);
  color: var(--title);
}

.form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.form.wide {
  max-width: 760px;
}

.form.compact {
  max-width: 100%;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

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

.check input {
  width: auto;
}

.summary {
  position: sticky;
  top: 82px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--title);
  font-size: 20px;
  font-weight: 800;
}

.confirmation {
  padding: 24px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.bank-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
}

.bank-list dt {
  color: var(--title);
  font-weight: 700;
}

.auth-box {
  max-width: 520px;
  margin: 28px auto;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(217, 106, 152, 0.1);
}

.admin-nav {
  padding: 12px;
  margin-bottom: 20px;
  background: var(--button-hover);
}

.admin-nav a {
  color: var(--white);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stats span {
  color: var(--ink);
}

.stats strong {
  display: block;
  font-size: 34px;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--title);
  font-size: 13px;
  font-weight: 700;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.alert {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.alert.success {
  border-color: var(--accent);
  background: var(--card);
}

.alert.warning {
  border-color: var(--accent);
  background: var(--soft);
}

.alert.danger {
  border-color: var(--button-hover);
  background: var(--hover);
}

.plain-list {
  padding-left: 18px;
}

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav,
  .action-nav {
    justify-content: flex-start;
  }

  .main-nav a,
  .action-nav a {
    font-size: 12px;
  }

  .home-hero {
    min-height: 620px;
  }

  .hero-art {
    background-position: center top;
    opacity: 0.72;
  }

  .home-hero-content {
    margin-top: 80px;
  }

  .hero-ribbon {
    letter-spacing: 0.08em;
  }

  .hero-categories {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .benefit-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .detail-layout,
  .checkout-layout,
  .two-cols,
  .customizer-shell {
    grid-template-columns: 1fr;
  }

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

  .summary {
    position: static;
  }

  .hero {
    min-height: 220px;
  }
}
