:root {
  --ink: #141414;
  --paper: #fbf6ee;
  --muted: #706a63;
  --line: rgba(20, 20, 20, .1);
  --red: #d71920;
  --red-dark: #96161b;
  --cream: #fffaf3;
  --gold: #f7c948;
  --green: #164f3c;
  --yape: #7b238d;
  --aqua: #28ddca;
  --panel: rgba(255, 250, 241, .92);
  --shadow: 0 24px 70px rgba(20, 20, 20, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 4%, rgba(247, 201, 72, .18), transparent 28rem),
    radial-gradient(circle at 12% 0%, rgba(215, 25, 32, .07), transparent 22rem),
    linear-gradient(135deg, #fff9ee 0%, #f5efe6 45%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 243, .86);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  box-shadow: 5px 5px 0 var(--red);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: .28em;
  font-size: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.pill-btn {
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: #33302c;
  background: transparent;
  cursor: pointer;
}

.nav-links a:hover,
.pill-btn:hover,
.nav-links a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, .52);
}

.cart-pill {
  background: var(--ink) !important;
  color: white !important;
  box-shadow: 0 12px 28px rgba(20, 20, 20, .18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 38px;
  align-items: center;
  padding: 48px 0 34px;
}

.hero-copy { padding: 20px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(240, 194, 75, .18);
}

h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: .92;
  margin: 22px 0 18px;
  letter-spacing: -.03em;
}

.lead {
  color: #4f4a43;
  font-size: 18px;
  line-height: 1.7;
  max-width: 630px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  box-shadow: 0 18px 34px rgba(20, 20, 20, .18);
}

.btn:hover { transform: translateY(-1px); }
.btn.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.red { background: var(--red); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.small { min-height: 36px; padding: 8px 12px; font-size: 13px; box-shadow: none; }
.btn.danger { background: #7f1d1d; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.hero-card {
  position: relative;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  background: #292929;
  box-shadow: var(--shadow);
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42));
  z-index: 1;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  color: white;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.hero-badge strong { display: block; font-size: 18px; }
.hero-badge span { color: rgba(255,255,255,.78); font-size: 13px; }

.section { padding: 38px 0; }

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.03em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

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

.product-card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(20,20,20,.07);
}

.product-media {
  aspect-ratio: 1 / .92;
  background:
    linear-gradient(135deg, rgba(199,71,71,.14), rgba(240,194,75,.18)),
    #ebe2d5;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

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

.placeholder {
  width: 74%;
  height: 74%;
  border: 2px solid var(--ink);
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(199,71,71,.22) 0 18px, rgba(255,250,241,.75) 18px 36px);
  color: var(--ink);
}

.placeholder strong { display: block; font-size: 38px; letter-spacing: .1em; }
.placeholder span { display: block; font-size: 13px; margin-top: 6px; }

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(199,71,71,.12);
  color: var(--red-dark);
  font-weight: 800;
  font-size: 12px;
}

.product-body { padding: 16px; }

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.product-title h3 {
  margin: 0;
  font-size: 20px;
}

.price {
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
}

.old-price {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}

.product-body p {
  color: var(--muted);
  line-height: 1.55;
  min-height: 48px;
}

.stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

.panel {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(20,20,20,.07);
}

.panel.tight { padding: 14px; border-radius: 16px; }

.promo-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--ink);
  color: white;
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.promo-band h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); }
.promo-band p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.6; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .8fr .9fr;
  gap: 20px;
  align-items: start;
}

.footer-grid p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.footer-grid .shipping-badge {
  margin-top: 8px;
  padding: 4px 8px 4px 4px;
  font-size: 12px;
}

.footer-grid .shipping-badge img {
  width: 20px;
  height: 20px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(20,20,20,.08);
  background: var(--cream);
}

.social-initial {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 950;
}

.social-empty { font-size: 13px; }

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 16px 10px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.legal-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer span {
  color: var(--ink);
  font-weight: 900;
}

.legal-page h1 {
  max-width: 780px;
}

.legal-card {
  max-width: 860px;
  line-height: 1.75;
}

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

.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 13px; color: #33302c; }

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  outline: none;
}

input[type="file"] {
  cursor: pointer;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 999px;
  margin-right: 10px;
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 110px; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(199,71,71,.65);
  box-shadow: 0 0 0 4px rgba(199,71,71,.11);
}

.notice {
  margin: 18px auto 0;
  width: min(1180px, calc(100% - 32px));
  padding: 13px 15px;
  border-radius: 16px;
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #bbf7d0;
  font-weight: 750;
}

.notice.err {
  background: #fff1f2;
  color: #991b1b;
  border-color: #fecdd3;
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.auth-card {
  width: min(460px, calc(100% - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 38px;
  line-height: 1;
  margin: 0 0 10px;
}

.google-btn {
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  margin-top: 14px;
}

.google-note {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  border: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.google-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #4285f4;
  font-weight: 950;
  border: 1px solid var(--line);
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}

.auth-separator:before,
.auth-separator:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f4a43;
  line-height: 1.4;
}

.checkbox.full { grid-column: 1 / -1; }
.checkbox input { width: 18px; height: 18px; }

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

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

.cart-table th,
.admin-table th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cart-table tr:last-child td,
.admin-table tr:last-child td { border-bottom: 0; }

.total-box {
  display: grid;
  gap: 10px;
  min-width: 280px;
}

.checkout-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,250,243,.84)),
    radial-gradient(circle at 90% 0%, rgba(40, 221, 202, .18), transparent 13rem);
}

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

.checkout-top strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.checkout-total {
  border-radius: 16px;
  padding: 10px 12px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #2b202d);
  font-size: 19px;
  font-weight: 950;
  white-space: nowrap;
}

.shipping-field {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.shipping-icon,
.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shipping-icon {
  width: 46px;
  height: 46px;
  justify-content: center;
  border-radius: 14px;
  background: #df171f;
  box-shadow: 0 10px 18px rgba(215, 25, 32, .16);
}

.shipping-icon img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
}

.shipping-badge {
  width: fit-content;
  margin-top: 7px;
  padding: 6px 9px 6px 6px;
  border-radius: 999px;
  background: rgba(215, 25, 32, .08);
  border: 1px solid rgba(215, 25, 32, .12);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 950;
}

.shipping-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 850;
  font-size: 20px;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.order-product.mini-line {
  min-width: 220px;
  margin: 4px 0;
}

.product-blank {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.yape-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px;
  color: #2c1732;
  background:
    radial-gradient(circle at 90% 0%, rgba(40, 221, 202, .36), transparent 8rem),
    linear-gradient(135deg, #ffffff 0%, #fff5ff 48%, #f4fff9 100%);
  border: 1px solid rgba(123, 35, 141, .18);
  box-shadow: 0 16px 30px rgba(105, 33, 126, .12);
  animation: yapeFloat 4s ease-in-out infinite;
}

.yape-shine {
  position: absolute;
  inset: -80% auto auto -45%;
  width: 32%;
  height: 240%;
  transform: rotate(26deg);
  background: linear-gradient(90deg, transparent, rgba(129, 37, 148, .16), transparent);
  animation: yapeShine 4.4s ease-in-out infinite;
}

.yape-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.yape-logo-box {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--yape);
  box-shadow: 0 12px 22px rgba(105, 33, 126, .18);
}

.yape-logo {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  background: var(--yape);
  animation: yapePop 2.6s ease-in-out infinite;
}

.yape-head strong {
  display: block;
  margin: 7px 0 2px;
  font-size: 17px;
  line-height: 1.18;
}

.yape-head small {
  display: block;
  color: #6d6070;
  line-height: 1.4;
  font-size: 12px;
}

.yape-tag {
  color: #42154d;
  background: rgba(40, 221, 202, .32);
}

.yape-data {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.yape-data div {
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(129, 37, 148, .12);
}

.yape-data span {
  display: block;
  color: #766679;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.yape-data strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.yape-submit {
  width: 100%;
  animation: yapePulse 2s ease-in-out infinite;
}

.payment-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.72);
}

.payment-summary h2 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.receipt-link {
  display: grid;
  gap: 8px;
  color: var(--red-dark);
  font-weight: 850;
  text-align: center;
}

.receipt-img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 14px 26px rgba(20,20,20,.1);
}

.pay-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(46, 230, 206, .18);
  color: #14524b;
}

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

.detail-head h2 { margin: 8px 0 4px; }
.compact-actions { margin-top: 10px; }

.invoice-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,250,243,.82)),
    radial-gradient(circle at top right, rgba(247,201,72,.24), transparent 9rem);
  border: 1px solid rgba(215, 25, 32, .14);
}

.invoice-box h3 {
  margin: 8px 0 4px;
  font-size: 18px;
}

.invoice-btn {
  box-shadow: 0 12px 24px rgba(215, 25, 32, .18);
}

.invoice-box.danger-soft {
  background: rgba(255, 241, 242, .72);
  border-color: rgba(127, 29, 29, .14);
}

.empty {
  text-align: center;
  padding: 42px 20px;
  color: var(--muted);
}

.order-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(240,194,75,.22);
  color: #6b4b00;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #171717;
  color: white;
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  color: white;
  margin-bottom: 24px;
}

.sidebar .brand small { color: rgba(255,255,255,.62); }

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.78);
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255,255,255,.1);
  color: white;
}

.admin-main { padding: 26px; }

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

.admin-head h1 {
  font-size: clamp(34px, 4vw, 52px);
  margin: 0;
}

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

.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 7px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  margin-top: 16px;
}

.email-box {
  width: 100%;
  min-height: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.mini-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

.mini-img.tiny {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.muted { color: var(--muted); }
.right { text-align: right !important; }
.nowrap { white-space: nowrap; }
.inline-form {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.hide { display: none; }

@media (max-width: 900px) {
  .hero,
  .promo-band,
  .footer-grid,
  .payment-summary,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-card,
  .hero-card img {
    min-height: 380px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .nav-links { justify-content: flex-start; }
  .nav-links a,
  .pill-btn { padding: 9px 11px; font-size: 14px; }
  .grid,
  .stats {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 48px; }
  .hero { padding-top: 22px; }
  .hero-card,
  .hero-card img { min-height: 330px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr,
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
  }
  .cart-table thead,
  .admin-table thead { display: none; }
  .cart-table td,
  .admin-table td {
    border-bottom: 0;
    padding: 7px 0;
  }
  .cart-table tr,
  .admin-table tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .yape-data {
    grid-template-columns: 1fr;
  }
  .side-nav {
    grid-template-columns: 1fr 1fr;
  }
  .admin-main { padding: 18px 12px; }
}

@keyframes yapeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes yapeShine {
  0% { left: -48%; opacity: 0; }
  32% { opacity: .85; }
  62% { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}

@keyframes yapePop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(-2deg); }
}

@keyframes yapePulse {
  0%, 100% { box-shadow: 0 18px 34px rgba(199, 71, 71, .2); }
  50% { box-shadow: 0 18px 40px rgba(129, 37, 148, .34); }
}
