:root {
  --navy: #073a64;
  --navy-deep: #052944;
  --teal: #0595a0;
  --teal-dark: #00747d;
  --mint: #e8f6f5;
  --orange: #f4a640;
  --green: #16a36b;
  --ink: #203646;
  --muted: #6f828e;
  --line: #d9e4e8;
  --paper: #ffffff;
  --page: #f3f7f8;
  --shadow: 0 18px 55px rgba(5, 41, 68, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 52%, #086d7a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #61d2cf, var(--orange));
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: .25;
  pointer-events: none;
}

.hero-orb-one {
  width: 310px;
  height: 310px;
  top: -145px;
  right: 5%;
  background: #16c8c1;
}

.hero-orb-two {
  width: 190px;
  height: 190px;
  bottom: -110px;
  left: 33%;
  background: var(--orange);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  padding: 8px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.eyebrow {
  margin: 0 0 7px;
  color: #9fe6e6;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--teal-dark); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: #d9edf2;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hero-actions a { text-decoration: none; }

.ghost-button, .cart-button {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.ghost-button {
  color: #fff;
  background: rgba(255,255,255,.09);
}

.cart-button {
  color: var(--navy);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: .77rem;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.toolbar-shell {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 24px 0 30px;
  padding: 15px;
  border: 1px solid rgba(217, 228, 232, .86);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 32px rgba(5,41,68,.08);
  backdrop-filter: blur(14px);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box, .sort-box {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f9fbfc;
}

.search-box {
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box span { color: var(--teal); font-size: 1.45rem; }

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.sort-box {
  padding-left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.sort-box select {
  height: 46px;
  border: 0;
  outline: 0;
  padding: 0 30px 0 4px;
  color: var(--navy);
  background: transparent;
  font-weight: 800;
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--navy);
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.filter-chip.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

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

.catalog-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
}

.result-count {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

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

.product-card {
  min-height: 280px;
  display: grid;
  grid-template-columns: 126px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(5,41,68,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #b9d7dc;
  box-shadow: var(--shadow);
}

.product-card.selected { border-color: var(--teal); }

.product-image-wrap {
  position: relative;
  min-height: 100%;
  padding: 16px 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #f7fafb, #eaf3f4);
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-chip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  min-height: 25px;
  padding: 5px 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  font-size: .62rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.product-content {
  min-width: 0;
  padding: 17px 16px 15px;
  display: flex;
  flex-direction: column;
}

.category-label {
  color: var(--teal-dark);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.product-name {
  margin: 7px 0 6px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.product-detail {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.product-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.price-label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
}

.product-price {
  color: var(--green);
  font-size: 1.22rem;
  letter-spacing: -.025em;
}

.add-button, .quantity-control {
  width: 100%;
  min-height: 38px;
  border-radius: 11px;
}

.add-button {
  border: 0;
  color: #fff;
  background: var(--teal);
  font-size: .76rem;
  font-weight: 900;
}

.add-button:hover { background: var(--teal-dark); }

.quantity-control {
  border: 1px solid #9ed4d5;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  color: var(--navy);
  background: var(--mint);
}

.quantity-control button {
  height: 36px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 900;
}

.quantity-control span {
  text-align: center;
  font-weight: 900;
}

.empty-state {
  min-height: 320px;
  border: 1px dashed #bdd1d7;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.empty-state span { color: var(--teal); font-size: 3rem; }
.empty-state h3 { margin: 6px 0; color: var(--navy); }
.empty-state p { margin: 0; }

.service-strip {
  margin: 38px 0;
  padding: 22px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  color: #fff;
  background: var(--navy);
}

.service-strip div { display: grid; gap: 4px; }
.service-strip strong { font-size: .9rem; }
.service-strip span { color: #c6e4e9; font-size: .73rem; }

.drawer-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(2, 22, 36, .48);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(470px, 100%);
  height: 100dvh;
  padding: 22px;
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform .24s ease;
  background: #fff;
  box-shadow: -20px 0 60px rgba(5,41,68,.22);
}

.cart-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header h2 { margin-bottom: 0; color: var(--navy); font-size: 1.8rem; }

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--page);
  font-size: 1.7rem;
}

.cart-items { margin: 24px 0 12px; display: grid; gap: 10px; }

.cart-line {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 11px;
  align-items: center;
}

.cart-line img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--page);
}

.cart-line strong { color: var(--navy); font-size: .8rem; line-height: 1.2; }
.cart-line small { display: block; margin-top: 4px; color: var(--muted); }
.cart-line-controls { display: grid; justify-items: end; gap: 7px; }

.mini-qty { display: flex; align-items: center; gap: 6px; }
.mini-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 900;
}
.mini-qty span { min-width: 22px; text-align: center; font-size: .8rem; font-weight: 900; }
.line-total { color: var(--green); font-size: .77rem; font-weight: 900; }

.cart-empty {
  margin: 25px 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  background: var(--page);
  text-align: center;
}

.cart-empty span { color: var(--teal); font-size: 1.8rem; }
.cart-empty p { margin: 0; max-width: 280px; font-size: .82rem; line-height: 1.4; }

.customer-fields {
  margin-top: 18px;
  display: grid;
  gap: 11px;
}

.customer-fields label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
}

.customer-fields input, .customer-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.customer-fields input:focus, .customer-fields textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(5,149,160,.1);
}

.cart-total {
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.cart-total strong { color: var(--navy); font-size: 1.55rem; }
.price-note { margin: 11px 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.whatsapp-button, .clear-button {
  width: 100%;
  min-height: 49px;
  border-radius: 13px;
  font-weight: 900;
}

.whatsapp-button {
  border: 0;
  color: #fff;
  background: #1dac68;
  box-shadow: 0 10px 24px rgba(29,172,104,.24);
}

.whatsapp-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.clear-button {
  margin-top: 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
}

.mobile-cart-bar {
  position: fixed;
  z-index: 30;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 40px rgba(5,41,68,.32);
}

.mobile-cart-bar span { font-size: .8rem; }
.mobile-cart-bar span:last-child { color: #aee9df; font-weight: 900; }

footer {
  padding: 26px max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: #c7dce2;
  background: var(--navy-deep);
}

footer img { width: 52px; height: 52px; padding: 4px; border-radius: 12px; background: #fff; }
footer div { display: grid; gap: 3px; }
footer strong { color: #fff; font-size: .85rem; }
footer span, footer small { font-size: .68rem; }

@media (max-width: 1060px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { align-items: flex-end; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 720px) {
  .hero-inner { width: min(100% - 28px, 1180px); padding: 22px 0 27px; display: block; }
  .brand-block { align-items: flex-start; gap: 15px; }
  .logo { width: 82px; height: 82px; border-radius: 18px; }
  h1 { font-size: 2.15rem; }
  .hero-copy { font-size: .86rem; }
  .hero-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1.3fr; }
  .download-link { grid-column: 1 / -1; justify-content: center; }
  .ghost-button, .cart-button { justify-content: center; padding: 0 10px; font-size: .78rem; }
  main { width: min(100% - 24px, 1180px); }
  .toolbar-shell { top: 8px; margin-top: 14px; padding: 10px; border-radius: 16px; }
  .toolbar { grid-template-columns: 1fr; }
  .sort-box { display: none; }
  .category-filters { padding-top: 9px; }
  .catalog-heading { align-items: start; }
  .catalog-heading h2 { font-size: 1.8rem; }
  .result-count { margin-top: 23px; white-space: nowrap; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { min-height: 235px; grid-template-columns: 118px 1fr; border-radius: 18px; }
  .product-image { height: 138px; }
  .product-content { padding: 14px 13px 13px; }
  .product-name { font-size: .93rem; }
  .service-strip { grid-template-columns: 1fr; margin-bottom: 92px; }
  .mobile-cart-bar[hidden] { display: none; }
  .mobile-cart-bar { display: flex; }
  footer { padding-bottom: 100px; grid-template-columns: auto 1fr; }
  footer small { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .brand-block { display: grid; grid-template-columns: 72px 1fr; }
  .logo { width: 72px; height: 72px; }
  h1 { font-size: 1.95rem; }
  .hero-copy { grid-column: 1 / -1; }
  .product-card { grid-template-columns: 105px 1fr; }
  .product-image { height: 126px; }
  .brand-chip { font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
