:root {
  --rose: #dd5b8a;
  --rose-dark: #9f2f58;
  --petal: #fff5f8;
  --blush: #f9dbe6;
  --lilac: #f2e7f7;
  --cream: #fffafc;
  --gold: #d99d35;
  --ink: #34242a;
  --muted: #75636a;
  --line: #eed5df;
  --ok: #25765a;
  --warn: #b86b00;
  --bad: #b93c55;
  --shadow: 0 18px 50px rgba(159, 47, 88, .12);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  display: none;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(104px, auto) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 5vw, 64px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 74px; height: 74px; object-fit: contain; }
.brand.logo-only {
  width: 300px;
  justify-content: center;
  padding: 0;
  background: #fff;
  border-radius: 8px;
}
.brand.logo-only img {
  width: 280px;
  height: 74px;
  object-fit: contain;
}
.brand b { color: var(--rose-dark); font-size: 20px; display: block; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 12px; }
.navlinks { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.navlinks button, .ghost {
  padding: 9px 11px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.navlinks button:hover, .ghost:hover { background: var(--petal); color: var(--rose-dark); }
.actions { display: flex; gap: 8px; align-items: center; }
.admin-link { font-size: 12px; color: #9b7b86; }
.primary, .secondary, .danger {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.primary { background: linear-gradient(135deg, var(--rose-dark), var(--rose)); color: white; box-shadow: 0 12px 28px rgba(159,47,88,.2); }
.secondary { background: #fff; color: var(--rose-dark); border: 1px solid var(--line); }
.whatsapp-btn {
  background: linear-gradient(135deg, #128c4a, #25d366) !important;
  border-color: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .22) !important;
}
.danger { background: #fff0f2; color: var(--bad); border: 1px solid #ffd1da; }
.primary:hover, .secondary:hover, .danger:hover { transform: translateY(-1px); }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--lilac);
  color: #613d77;
  font-size: 12px;
  font-weight: 800;
}
.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(38px, 7vw, 82px) clamp(16px, 6vw, 78px) 36px;
}
.hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .95;
  color: var(--rose-dark);
  letter-spacing: 0;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-media {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-media .main-photo {
  width: min(480px, 92%);
  height: 620px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.floating-logo {
  position: absolute;
  top: 26px;
  left: 0;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.info-strip div, .stat, .card, .panel {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(151,65,91,.08);
}
.info-strip div { padding: 14px; }
.info-strip b { display: block; color: var(--rose-dark); }
.section { padding: 46px clamp(16px, 6vw, 78px); }
.subcategory-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 18px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}
.subcategory-strip button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--rose-dark);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(159,47,88,.06);
}
.subcategory-strip button:hover {
  background: var(--petal);
  transform: translateY(-1px);
}
.catalog-head {
  min-height: 230px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 4vw, 34px);
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--petal));
  box-shadow: var(--shadow);
}
.catalog-head h1 {
  margin: 10px 0;
  color: var(--rose-dark);
  font-size: clamp(38px, 6vw, 70px);
  line-height: .95;
}
.catalog-head p { color: var(--muted); font-size: 18px; max-width: 640px; line-height: 1.55; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section h2 { margin: 0; color: var(--rose-dark); font-size: clamp(28px, 4vw, 42px); }
.section-head p { max-width: 660px; color: var(--muted); line-height: 1.6; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.category {
  padding: 18px;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.category b { display: block; color: var(--rose-dark); margin-bottom: 7px; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 190px 180px;
  gap: 10px;
  margin-bottom: 18px;
}
.field, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; }
.card { overflow: hidden; }
.product-preview-trigger {
  width: 100%;
  padding: 0;
  background: var(--petal);
  display: block;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  background: var(--petal);
  transition: transform .22s ease;
}
.product-preview-trigger:hover .product-img { transform: scale(1.035); }
.card-body { padding: 16px; }
.card h3 { margin: 8px 0; font-size: 18px; }
.muted { color: var(--muted); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.price { font-size: 22px; color: var(--rose-dark); font-weight: 900; }
.old { color: var(--muted); text-decoration: line-through; margin-left: 5px; font-size: 14px; }
.button-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; margin-top: 12px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.gallery-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-grid img { width: 100%; height: 360px; object-fit: cover; }
.gallery-grid span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--rose-dark);
  text-align: center;
  font-weight: 900;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  background: #fff;
  transform: translateX(110%);
  transition: transform .2s ease;
  z-index: 30;
  box-shadow: -20px 0 60px rgba(52,36,42,.18);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); margin-top: auto; }
.cart-list { padding: 14px 18px; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; background: var(--petal); color: var(--rose-dark); font-weight: 900; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: 1 / -1; }
.notice { padding: 13px 14px; background: var(--petal); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.delivery-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--rose-dark);
  font-weight: 700;
}
.delivery-accept input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rose);
}
.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  align-items: start;
}
.payment-box {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.map-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.map-panel {
  position: sticky;
  top: 92px;
}
.map-panel iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 8px;
  margin: 12px 0;
  background: var(--petal);
}
.map-click {
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  position: relative;
  text-align: left;
}
.map-click iframe {
  pointer-events: none;
  display: block;
  margin: 0;
}
.map-click span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(255,255,255,.92);
  color: var(--rose-dark);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 20px rgba(183,31,89,.16);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--rose-dark);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(159,47,88,.32);
  transform: translate(-50%, -100%) rotate(-45deg) scale(.75);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .15s ease, transform .15s ease;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}
.map-pin.show {
  opacity: 1;
  transform: translate(-50%, -100%) rotate(-45deg) scale(1);
}
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact-strip > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.contact-strip h3 { margin: 10px 0 6px; color: var(--rose-dark); }
.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.payment-box img {
  width: 100%;
  aspect-ratio: 1 / 1.28;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.payment-box h3 { margin: 0 0 8px; color: var(--rose-dark); font-size: 24px; }
.payment-total {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--petal);
  color: var(--rose-dark);
  font-weight: 900;
  margin-top: 10px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mapbox { min-height: 280px; display: grid; place-items: center; text-align: center; background: var(--lilac); border-radius: 8px; padding: 24px; }
.footer { padding: 28px clamp(16px, 6vw, 78px); color: var(--muted); border-top: 1px solid var(--line); }
.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}
.receipt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 36, 42, .42);
  backdrop-filter: blur(8px);
}
.receipt {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 24px 80px rgba(52,36,42,.28);
}
.receipt-head {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.receipt-head img { width: 96px; height: 96px; object-fit: contain; }
.receipt-head h2 { margin: 8px 0 4px; color: var(--rose-dark); }
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.receipt-total {
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--petal);
  color: var(--rose-dark);
  font-size: 20px;
  font-weight: 900;
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.product-preview {
  width: min(980px, 100%);
}
.preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.preview-grid {
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(280px, 1.08fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}
.preview-photo {
  width: 100%;
  height: min(70vh, 620px);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--petal);
}
.product-preview h2 {
  margin: 12px 0 8px;
  color: var(--rose-dark);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}
.preview-short {
  padding: 14px;
  border-radius: 8px;
  background: var(--petal);
  color: var(--rose-dark);
  font-weight: 800;
  line-height: 1.45;
}
.preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.preview-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}
.preview-meta span, .preview-meta small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.preview-meta b {
  display: block;
  color: var(--rose-dark);
  font-size: 24px;
  margin: 3px 0;
}
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.sidebar {
  background: linear-gradient(180deg, #fff, #fff4f8);
  color: var(--ink);
  padding: 22px;
  border-right: 1px solid var(--line);
}
.sidebar img { width: 92px; margin-bottom: 14px; background: #fff; border-radius: 8px; }
.sidebar h2 { color: var(--rose-dark); margin-bottom: 6px; }
.sidebar p { color: var(--muted); }
.sidebar button {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  margin: 4px 0;
}
.sidebar button.active, .sidebar button:hover { background: #ffeaf2; color: var(--rose-dark); }
.admin-main { padding: 24px; background: linear-gradient(180deg, #fff, #fff7fa); min-width: 0; }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; background: #fff; border-left: 4px solid #f2abc4; }
.stat b { display: block; font-size: 26px; color: var(--rose-dark); }
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-kpis div {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #fff0f5);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(159,47,88,.08);
}
.admin-kpis span, .stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.admin-kpis b {
  display: block;
  margin: 5px 0;
  color: var(--rose-dark);
  font-size: 32px;
}
.admin-kpis small { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.panel { padding: 16px; overflow: auto; background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--rose-dark); }
.product-admin-cell {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}
.product-admin-cell img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--petal);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card { width: min(430px, 100%); padding: 28px; }
.mini-bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 130px 1fr 48px; gap: 8px; align-items: center; }
.bar span:nth-child(2) { height: 12px; border-radius: 999px; background: #f8e7ee; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #e05f8e, #f2abc4); border-radius: 999px; }
.sales-chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
}
.sales-chart div { display: grid; gap: 6px; text-align: center; color: var(--muted); font-size: 12px; }
.sales-chart span {
  display: block;
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #d94f83, #ffd2df);
}
.sales-chart b { color: var(--ink); text-transform: capitalize; }
.order-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.order-flow button {
  background: #fff8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}
.order-flow b { display: block; color: var(--rose-dark); font-size: 22px; }
.task-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child { border-bottom: 0; }
.task-row b { display: block; color: var(--rose-dark); }
.task-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.action-panel h3 { margin-top: 0; }
.status-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--petal);
  color: var(--rose-dark);
  font-weight: 800;
  font-size: 12px;
}
.admin-list-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 360px);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.quick-filters, .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-actions { margin-bottom: 8px; }
.admin-actions .secondary, .admin-actions .danger { min-height: 34px; padding: 7px 10px; }
.empty { padding: 18px; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr; }
  .nav .brand.logo-only { justify-self: center; width: 240px; }
  .nav .brand.logo-only img { width: 220px; height: 78px; }
  .navlinks { justify-content: start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .brand img { width: 64px; height: 64px; }
  .brand b { font-size: 18px; white-space: normal; }
  .hero, .contact-grid, .admin-grid, .checkout-grid, .checkout-shell, .map-field, .contact-strip, .receipt-grid, .admin-list-head, .catalog-head, .preview-grid, .preview-meta { grid-template-columns: 1fr; }
  .catalog-head { min-height: auto; }
  .catalog-actions { justify-content: stretch; }
  .catalog-actions button { flex: 1; }
  .payment-box { grid-template-columns: 1fr; }
  .hero-media { min-height: auto; }
  .hero-media .main-photo { height: 450px; }
  .info-strip, .toolbar { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .receipt-head { align-items: flex-start; }
  .receipt-head img { width: 74px; height: 74px; }
  .preview-photo { height: 430px; }
}
@media print {
  .topbar, .nav, .sidebar, .primary, .secondary, .danger, .ghost { display: none !important; }
  body { background: #fff; }
  .admin-shell { display: block; }
}
