:root {
  --blue: #2563b8;
  --blue-dark: #123a6d;
  --sky: #eaf4ff;
  --sun-soft: #fff5c7;
  --logo-yellow: #f2d232;
  --logo-yellow-dark: #d6b400;
  --logo-charcoal: #2f302c;
  --cream: #fffdf6;
  --leaf: #5f7f50;
  --yellow: var(--logo-yellow);
  --ink: #182536;
  --muted: #607086;
  --line: #d7e5f3;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(18, 58, 109, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Ubuntu", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 253, 249, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a { padding: 10px 0; }
.main-nav a:hover { color: var(--blue-dark); }
.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 4px;
  color: var(--logo-charcoal);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.78rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.page { padding: 44px 5vw 72px; }
.section { max-width: 1180px; margin: 0 auto; }
.section + .section { margin-top: 52px; }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 0 5vw;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.98) 0%, rgba(255, 253, 246, 0.9) 43%, rgba(255, 253, 246, 0.2) 78%),
    url("assets/uma-store-hero-pipe-cleaner.png") center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 590px;
  padding-bottom: 8vh;
}

.eyebrow {
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1, h2 { font-family: "Ubuntu", ui-sans-serif, system-ui, sans-serif; color: var(--blue-dark); font-weight: 700; }
h1 { margin-top: 14px; font-size: clamp(2.8rem, 8vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { color: var(--ink); font-size: 1.05rem; }
p { margin: 0; color: var(--muted); }
.hero p { max-width: 510px; margin-top: 20px; font-size: 1.15rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--logo-yellow);
  color: var(--logo-charcoal);
  font-weight: 800;
  text-align: center;
}
.btn:hover { background: var(--logo-yellow-dark); color: var(--logo-charcoal); }
.btn.secondary {
  color: var(--logo-charcoal);
  background: white;
  border-color: var(--logo-yellow);
}
.btn.secondary:hover { background: var(--sun-soft); }
.btn.ghost {
  color: var(--logo-charcoal);
  background: transparent;
  border-color: var(--logo-yellow);
}
.btn.danger {
  color: #8f1f32;
  background: #fff1f2;
  border-color: #f4c7cf;
}
.btn.small { min-height: 34px; padding: 0 12px; font-size: 0.86rem; }
.btn.full { width: 100%; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.section-head p { max-width: 620px; margin-top: 10px; }

.grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.category-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.two-col { grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr); align-items: start; }
.admin-grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(18, 58, 109, 0.07);
}

.product-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.product-media {
  position: relative;
  min-height: 210px;
  background: var(--sky);
  overflow: hidden;
}
.product-media img { width: 100%; height: 230px; object-fit: cover; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--sun-soft);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
}
.product-media .badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.9); }
.product-body { display: grid; gap: 10px; padding: 16px; flex: 1; }
.price { color: var(--blue-dark); font-size: 1.2rem; font-weight: 900; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; font-weight: 600; margin-left: 6px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

.category-card { padding: 18px; display: grid; gap: 8px; }
.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 26px;
  background: #f2f8ff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature-band article { display: grid; gap: 8px; }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 12px;
  margin-bottom: 22px;
}

.field { display: grid; gap: 7px; }
.field label { color: var(--ink); font-size: 0.86rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(37, 99, 184, 0.18);
  border-color: var(--blue);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }

.detail-gallery img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.detail-panel { padding: 22px; display: grid; gap: 18px; position: sticky; top: 92px; }
.options-list { display: grid; gap: 12px; }

.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  padding: 14px;
  align-items: start;
}
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-control button { width: 34px; height: 34px; border: 0; background: white; font-weight: 900; }
.qty-control span { min-width: 34px; text-align: center; font-weight: 800; }
.summary { padding: 18px; display: grid; gap: 10px; position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; }
.summary-row.total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--blue-dark); font-size: 1.15rem; font-weight: 900; }

.checkout-layout { grid-template-columns: minmax(0, 1fr) 370px; }
.checkout-form { padding: 20px; display: grid; gap: 22px; }
.fieldset { display: grid; gap: 14px; }
.fieldset h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-weight: 800;
}

.admin-shell { max-width: 1280px; margin: 0 auto; }
.admin-sidebar {
  padding: 14px;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 92px;
}
.admin-sidebar a, .admin-sidebar button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  text-align: left;
}
.admin-sidebar a:hover, .admin-sidebar button:hover { color: var(--blue-dark); background: var(--sky); }
.admin-content { display: grid; gap: 18px; }
.stat-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.stat { padding: 18px; }
.stat strong { display: block; color: var(--blue-dark); font-size: 2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--blue-dark); background: var(--sky); font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.login-box {
  max-width: 430px;
  margin: 64px auto;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: white;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: white;
  background: #1f9d55;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 120%);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  color: white;
  background: var(--blue-dark);
  border-radius: var(--radius);
  opacity: 0;
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.footer {
  padding: 36px 5vw;
  color: var(--muted);
  background: #2c2324;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
}
.footer h3, .footer strong { color: white; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 14px 5vw;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: grid; }
  .hero { min-height: 640px; background-position: 58% center; }
  .hero-inner { padding: 64px 0 180px; }
  .two-col, .checkout-layout, .admin-grid, .feature-band, .footer-inner { grid-template-columns: 1fr; }
  .detail-panel, .summary, .admin-sidebar { position: static; }
  .filters { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; }
  .brand { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-logo { width: 30px; height: 30px; max-width: 30px; max-height: 30px; }
  .main-nav { top: 64px; }
  .page { padding: 30px 4vw 64px; }
  .hero { min-height: 650px; padding: 0 4vw; }
  .hero p { font-size: 1rem; }
  .section-head { display: grid; }
  .product-actions, .form-grid, .stat-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item > .row-actions { grid-column: 1 / -1; }
  .floating-whatsapp { right: 12px; bottom: 12px; }
}
