:root {
  --ink: #172033;
  --muted: #5d6b82;
  --line: #e4e8ef;
  --bg: #f4f6fb;
  --paper: #ffffff;
  --navy: #101b33;
  --accent: #e85d04;
  --accent-dark: #c2410c;
  --sale: #e11d48;
  --good: #047857;
  --shadow: 0 12px 32px rgba(16, 27, 51, 0.07);
  --radius: 18px;
  --font: "Plus Jakarta Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }
a { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.muted, .help { color: var(--muted); }
.help { font-size: 0.85rem; margin: 6px 0 0; }
.error-text { color: #be123c; font-size: 0.85rem; margin: 6px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: #1c2c4d; }
.btn-ghost { background: white; border-color: #d5dbe3; color: var(--ink); }
.btn-ghost.light { background: transparent; border-color: rgba(255,255,255,0.35); color: white; }
.btn-danger { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.btn-whatsapp { background: #25d366; color: white; border-color: #25d366; }
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.9rem; }
.text-button {
  border: 0;
  background: none;
  color: var(--sale);
  padding: 0;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d5dbe3;
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { width: 100%; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.req { color: #b42318; }
.check-inline, .check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.check-row { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 8px 0 16px; }
.check-inline { margin: 4px 0 16px; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-error { background: #fff1f2; color: #9f1239; }
.alert-info { background: #eff6ff; color: #1e3a8a; }
.flash-stack { margin: 16px 0; }

.announcement {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--navy);
  color: #e8eefc;
  padding: 8px 16px;
  font-size: 0.88rem;
}
.announcement p { margin: 0; }
.announcement a { color: white; font-weight: 700; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.nav-toggle { display: none; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: block;
}
.brand-word {
  font-weight: 800;
  letter-spacing: -0.055em;
  font-size: 1.32rem;
  line-height: 1;
}
.brand-pk { color: var(--accent); }
.search-form {
  display: flex;
  align-items: center;
  background: #f3f5f8;
  border-radius: 999px;
  padding: 4px;
  border: 1px solid transparent;
}
.search-form:focus-within { border-color: #f0c2a4; background: white; }
.search-form input { border: 0; background: transparent; min-height: 40px; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.count {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  padding: 0 6px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 12px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.main-nav a.active, .main-nav a:hover { background: #fff1e8; color: var(--accent-dark); }

.page-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 8px; }
.lede { color: var(--muted); max-width: 62ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #c2410c;
  margin-bottom: 6px;
}
.hero-copy .eyebrow { color: #fdba74; }
.section { margin: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 1.55rem; }
.section-head a { font-weight: 700; text-decoration: none; }

.hero {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.hero-copy {
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 93, 4, 0.45), transparent 32%),
    var(--navy);
  color: white;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 42px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 0 0 12px;
  max-width: 14ch;
}
.hero-copy .lede { color: #d5ddec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-side { display: grid; gap: 16px; }
.promo-card {
  border-radius: 28px;
  padding: 22px;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}
.promo-card h2 { margin: 0 0 6px; font-size: 1.6rem; }
.promo-card p { margin: 0; color: var(--muted); }
.promo-card.warm { background: #ffedd5; }
.promo-card.cool { background: #dbeafe; }
.promo-card .eyebrow { color: var(--accent-dark); }

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 8px;
}
.trust article, .panel, .summary, .product-card, .empty, .filter-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trust article { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.trust h2, .summary h2 { font-size: 1rem; margin-bottom: 6px; }
.trust h2 { margin: 0 0 4px; }
.trust p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.promise-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff4eb;
  color: var(--accent-dark);
  display: grid;
  place-items: center;
}
.promise-icon svg { width: 22px; height: 22px; display: block; }

.cat-grid, .product-grid {
  display: grid;
  gap: 14px;
}
.cat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-radius: 20px;
  padding: 10px 10px 14px;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cat-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-copy { display: grid; gap: 2px; padding: 0 6px; }
.cat-tile strong { font-size: 1.02rem; }
.cat-tile em { font-style: normal; color: var(--muted); font-size: 0.88rem; }

.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1; background: #f8fafc; overflow: hidden; }
.product-media img, .gallery-stage img, .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 0.98rem; margin: 0; min-height: 2.5em; }
.product-body h3 a, .product-cat { text-decoration: none; }
.product-body h3 a { color: var(--ink); }
.product-cat {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-body .btn { margin-top: auto; }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.price, .product-price { font-weight: 800; }
.product-price { font-size: 1.8rem; }
.compare { color: var(--muted); text-decoration: line-through; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sale);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  z-index: 1;
}
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.9rem; }
.stars .off { color: #e5e7eb; }

.closing {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin: 20px 0 10px;
}
.closing h2 { margin-bottom: 6px; }
.closing p { margin: 0; color: var(--muted); }

.shop-layout, .product-layout, .cart-layout, .checkout-layout, .admin-split {
  display: grid;
  gap: 18px;
}
.filters h2 { font-size: 1rem; }
.filter-links { display: grid; gap: 4px; margin-bottom: 14px; }
.filter-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 12px;
}
.filter-links a.active, .filter-links a:hover { background: #fff1e8; }
.filter-links.inline { display: flex; flex-wrap: wrap; margin-bottom: 14px; }
.filter-card { padding: 14px; }
.result-count { color: var(--muted); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 18px 0; }

.product-gallery { display: grid; gap: 10px; }
.gallery-stage {
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-stage img { object-fit: contain; background: #f8fafc; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 27, 51, 0.82);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs button {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  flex: none;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-editor { display: grid; gap: 10px; }
.gallery-edit-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gallery-edit-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  grid-row: span 2;
}
.gallery-edit-item input[type="number"] { max-width: 90px; }
.product-info .sku, .save-line { color: var(--muted); }
.stock { font-weight: 800; color: var(--good); }
.stock.low { color: #b45309; }
.stock.out { color: var(--sale); }
.description p { max-width: 65ch; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d5dbe3; border-radius: 999px; background: white; }
.qty button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
}
.qty input { width: 64px; min-height: 42px; border: 0; text-align: center; padding: 0; }
.note {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 14px;
  padding: 12px 14px;
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.92rem; margin: 18px 0; }
.crumbs a { color: inherit; }
.panel { padding: 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: #f8fafc; }
.cart-line h2 { font-size: 1rem; margin: 0 0 4px; }
.cart-line h2 a { color: var(--ink); text-decoration: none; }
.summary { padding: 16px; height: fit-content; }
.sum-row, .summary-items li, .plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sum-row { padding: 8px 0; }
.sum-row.total { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); }
.summary .btn { margin-top: 8px; }
.summary-items { list-style: none; padding: 0; margin: 0 0 8px; }
.summary-items li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.empty { padding: 36px 18px; text-align: center; }
.contact-cards, .contact-list, .plain-list { list-style: none; padding: 0; margin: 0; }
.contact-cards li, .plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-list { display: grid; gap: 10px; }
.detail-list div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.confirm table { margin: 12px 0; }
.message-body { white-space: pre-line; }
.unread { box-shadow: inset 3px 0 0 var(--accent); }

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: capitalize;
}
.pill-pending { background: #fef3c7; color: #92400e; }
.pill-confirmed { background: #dbeafe; color: #1e40af; }
.pill-shipped { background: #e0e7ff; color: #3730a3; }
.pill-delivered { background: #d1fae5; color: #065f46; }
.pill-cancelled { background: #f3f4f6; color: #4b5563; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { display: grid; gap: 12px; margin: 14px 0; }

.site-footer { background: var(--navy); color: #d5ddec; margin-top: 48px; padding: 36px 0 16px; }
.site-footer a { color: white; text-decoration: none; }
.site-footer h2 { font-size: 0.95rem; color: white; }
.footer-logo { color: white; margin-bottom: 8px; }
.footer-logo .brand-word { color: white; }
.footer-grid { display: grid; gap: 22px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 22px; padding-top: 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }
.newsletter { margin-top: 12px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 1.6rem; }

.admin-body { background: #eef2f7; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy);
  color: white;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-side .logo, .admin-side .brand-word { color: white; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
  color: #e8eefc;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
}
.admin-nav a.active, .admin-nav a:hover { background: rgba(255,255,255,0.08); }
.admin-main { min-width: 0; }
.admin-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.admin-content { padding: 18px; }
.admin-top .nav-toggle { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-grid p { margin: 0; color: var(--muted); }
.stat-grid strong { font-size: 1.5rem; }
.editor-grid, .split-fields { display: grid; gap: 12px; }
.image-preview { width: min(100%, 280px); border-radius: 16px; margin-top: 8px; background: #f8fafc; }
.category-row { display: grid; gap: 10px; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.25fr 0.85fr; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 250px 1fr; align-items: start; }
  .product-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .cart-layout, .checkout-layout, .admin-split { grid-template-columns: 1.35fr 0.8fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .editor-grid { grid-template-columns: 1.4fr 0.7fr; }
  .split-fields { grid-template-columns: 1fr 1fr; }
  .summary { position: sticky; top: 92px; }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .search-form { grid-column: 1 / -1; grid-row: 2; }
  .main-nav { display: none; padding-bottom: 12px; }
  .main-nav.open { display: flex; flex-direction: column; }
  .announcement { align-items: flex-start; flex-direction: column; }
  .closing, .inline-form { flex-direction: column; align-items: stretch; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-shell.nav-open .admin-side { display: flex; }
  .admin-top .nav-toggle { display: inline-flex; }
  .detail-list div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
