:root {
  --blue: var(--ip-blue);--blue-text:var(--ip-blue-text);--blue-bright:var(--ip-blue-bright);--blue-hover:var(--ip-blue-hover);
  --blue-dark: var(--ip-blue-hover);
  --surface: #eef6ff;
  --ink: var(--ip-ink);
  --muted: var(--ip-muted);
  --line: var(--ip-line);
  --white: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--surface); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(231, 237, 243, .85);
  background: rgba(238, 246, 255, .94);
  backdrop-filter: blur(14px);
}

.catalog-brand { display: grid; gap: 1px; }
.catalog-brand strong { color: var(--blue-text); font: 800 24px/1 Sora, sans-serif; }
.catalog-brand span { color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.track-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #a9d5ff;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}
.track-link:hover { background: #fff; transform: translateY(-1px); }
.track-link:focus-visible { outline: 3px solid rgba(10,140,255,.24); outline-offset: 2px; }
.track-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-link {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.cart-link:hover { background: #fff; transform: translateY(-1px); }
.cart-link:focus-visible { outline: 3px solid rgba(10,140,255,.24); outline-offset: 2px; }
.cart-link img { width: 23px; height: 23px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
}

main { width: min(1180px, 100%); margin: auto; padding: 16px; }
.catalog-hero {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(8, 42, 74, .14);
}
.catalog-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .2)); }
.catalog-hero-content { position: relative; z-index: 1; width: min(630px, 100%); padding: 28px 24px; color: white; }
.catalog-hero-content > span, .catalog-heading span, .product-category {
  color: var(--blue-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.catalog-hero h1 { margin: 7px 0; font: 700 clamp(25px, 5vw, 38px)/1.17 Sora, sans-serif; }
.catalog-hero p { max-width: 490px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 13px; }

.catalog-section { padding: 30px 0 40px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.catalog-heading h2 { margin: 4px 0 0; font: 700 24px/1.25 Sora, sans-serif; }
.catalog-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 230, 239, .85);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(8, 42, 74, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:not(.is-coming-soon):hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(8, 42, 74, .14); }
.product-image { position: relative; height: 220px; overflow: hidden; background: #dce8ef; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:not(.is-coming-soon):hover .product-image img { transform: scale(1.025); }
.availability {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #647484;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.availability.is-ready { background: #e6f4ff; color: #075f9f; }
.product-content { display: grid; gap: 8px; padding: 21px 22px 23px; }
.product-content h3 { margin: 0; font: 600 20px/1.3 Sora, sans-serif; }
.product-content h3 small { font: inherit; }
.product-content p { min-height: 44px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  transition: background .16s ease;
}
.product-action:hover { background: var(--blue-dark); }
.product-action b { font-size: 20px; }
.product-action:disabled { background: #eaf0f5; color: #81909e; cursor: not-allowed; }
.product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 9px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  transition: background .16s ease;
}
.product-link:hover { background: #e2f0ff; }
.product-link:focus-visible { outline: 3px solid rgba(10, 140, 255, .28); outline-offset: 2px; }
.product-card.is-coming-soon .product-image img { filter: saturate(.72); }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 86px;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
  font-size: 12px;
}
footer strong { color: var(--blue-text); font: 800 18px Sora, sans-serif; }
footer a { margin-left: 12px; color: var(--blue-dark); font-weight: 700; }

.contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 19px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #06c755;
  box-shadow: 0 12px 28px rgba(4, 94, 40, .26);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease;
}
.contact-fab:hover { background: #05b44d; transform: translateY(-2px); }
.contact-fab:focus-visible { outline: 3px solid rgba(10, 140, 255, .45); outline-offset: 3px; }
.contact-fab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .catalog-header { min-height: 71px; }
  main { padding: 14px 16px 28px; }
  .catalog-hero { min-height: 172px; border-radius: 16px; }
  .catalog-hero-content { padding: 23px 20px; }
  .catalog-hero h1 { font-size: 23px; }
  .catalog-heading { display: block; }
  .catalog-heading p { margin-top: 8px; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { border-radius: 16px; }
  .product-image { height: 220px; }
  .product-content { padding: 20px 18px 22px; }
  .product-content p { min-height: 0; }
  footer { flex-wrap: wrap; }
  .contact-fab { right: 16px; bottom: 16px; min-height: 48px; padding: 0 17px; }
}

@media (max-width: 390px) {
  .catalog-brand span { display: none; }
  .header-actions { gap: 7px; }
  .track-link { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .catalog-heading h2 { font-size: 21px; }
  .product-content h3 { font-size: 18px; }
  footer span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Category strip: one row of tiles that scrolls sideways, with a "next" arrow */
.category-strip { position: relative; z-index: 5; margin-top: 20px; }
.category-list {
  display: flex; gap: 12px; margin: 0; padding: 0 0 4px; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }
.category-list li { flex: 0 0 150px; scroll-snap-align: start; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px; height: 152px; padding: 14px 8px;
  box-sizing: border-box; border-radius: 6px; background: #f3f3f3; color: var(--ink); text-align: center; text-decoration: none;
}
a.category-tile:hover { background: #e8eef5; }
a.category-tile:focus-visible, .category-next:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.category-thumb { display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border-radius: 6px; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-thumb.is-icon { border-radius: 50%; background: var(--white); }
.category-thumb svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category-name { font-size: 13px; line-height: 1.35; }
.category-tile.is-soon { opacity: .55; cursor: default; }
.category-next, .category-prev {
  position: absolute; top: 50%; right: -8px; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; background: #222; color: #fff; cursor: pointer; transform: translateY(-50%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}
.category-next svg, .category-prev svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.category-prev { right: auto; left: -8px; }
.category-next[hidden], .category-prev[hidden] { display: none; }
@media (max-width: 760px) {
  .category-list li { flex-basis: 120px; }
  .category-tile { height: 136px; }
  .category-next, .category-prev { display: none; }
}
.category-list { cursor: grab; }
.category-list.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }

/* The floating LINE button must not cover the footer links or the last card's button (QA 2026-10-09). */
footer { padding-bottom: calc(52px + 24px + 20px); }
.contact-fab { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 760px) {
  footer { padding-bottom: calc(48px + 16px + 20px); }
  .contact-fab { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
/* On the dark hero photo the label needs a light blue to stay readable. */
.catalog-hero-content > span { color: #7cc3ff; }
