:root {
  --ink: #181728;
  --ink-soft: #55536e;
  --paper: #fffaf3;
  --card: #ffffff;
  --coral: #ff5044;
  --coral-light: #fff0ee;
  --sun: #ffd027;
  --sun-light: #fffbe6;
  --mint: #4cdbb5;
  --mint-light: #eefcf8;
  --sky: #8fc7ff;
  --sky-light: #f0f7ff;
  --purple: #845ef7;
  --purple-light: #f3f0ff;
  --line: #ebdcca;
  --r: 16px;
  --r-sm: 10px;
  --max: 1280px;
  --shadow: 0 10px 28px rgba(24, 23, 40, 0.08);
  --shadow-hover: 0 16px 36px rgba(24, 23, 40, 0.14);
  --font: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --h1: clamp(2rem, 1.3rem + 3.2vw, 3.4rem);
  --h2: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sun);
  color: var(--ink);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(24, 23, 40, 0.2);
}
.btn.alt { background: #fff; color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.coral { background: var(--coral); color: #fff; }
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* top announcement bar */
.bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
}

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo img { width: 40px; height: 40px; }

nav.main {
  display: flex;
  gap: 1rem;
  margin-left: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
}
nav.main a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
nav.main a:hover,
nav.main a[aria-current="page"] {
  border-color: var(--coral);
  color: var(--coral);
}

.tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.tools form { display: flex; }
.tools input[type="search"] {
  width: clamp(130px, 16vw, 220px);
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px 0 0 999px;
  font: inherit;
  background: #fff;
}
.tools .go {
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: var(--sun);
  font-weight: 800;
  cursor: pointer;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.cart-link:hover { transform: translateY(-1px); }
.cart-link b {
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.8rem;
  text-align: center;
}

.menu-btn { display: none; }

@media (max-width: 1024px) {
  nav.main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--ink);
    margin: 0;
    box-shadow: var(--shadow);
  }
  nav.main.open { display: flex; }
  .menu-btn {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 800;
    margin-left: auto;
    cursor: pointer;
  }
  .tools input[type="search"] { display: none; }
  .tools .go {
    border-left: 2px solid var(--ink);
    border-radius: 999px;
  }
}

/* hero slider */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.slides { display: grid; }
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.slide.on {
  opacity: 1;
  visibility: visible;
}
.slide .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  min-height: min(520px, 72vh);
}

.s1 { background: #ffe761; }
.s2 { background: #5de4c2; }
.s3 { background: #ff756b; color: #fff; }
.s3 h1, .s3 h2, .s3 p.lead { color: #fff; }
.s4 { background: #96ccff; }
.s5 { background: #d0bfff; }

.slide p.lead {
  font-size: 1.2rem;
  max-width: 40ch;
  color: var(--ink);
  line-height: 1.5;
  margin: 0.6rem 0 1.2rem;
}
.slide .cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.collage a {
  display: block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  transform: rotate(var(--rot, 0deg));
}
.collage a:nth-child(1) { --rot: -3deg; }
.collage a:nth-child(2) { --rot: 2deg; margin-top: 1.5rem; }
.collage a:nth-child(3) { --rot: -1.5deg; }
.collage a:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-hover);
}
.collage img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 10;
}
.dots button {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dots button[aria-current="true"] {
  background: var(--ink);
  transform: scale(1.25);
}

@media (max-width: 860px) {
  .slide .wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .slide p.lead { margin: 0.5rem auto 1rem; }
  .slide .cta { justify-content: center; }
  .collage { max-width: 440px; margin: 1rem auto 0; }
}

/* trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 1.25rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
.trust-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* brand / IP quick filter avatars */
.ip-strip {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}
.ip-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.ip-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  width: 104px;
  text-align: center;
  transition: transform 0.15s ease;
}
.ip-bubble:hover { transform: translateY(-4px); }
.ip-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(24, 23, 40, 0.08);
}
.ip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ip-name {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

/* sections */
.block {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sec-head h2 { margin: 0; }
.sec-head a.more {
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.15rem;
}
.sec-head a.more:hover { color: var(--coral); border-color: var(--coral); }

/* product grid & card */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card a.img {
  display: block;
  background: #fdf6ec;
  overflow: hidden;
  position: relative;
}
.card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.05);
}
.card .body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.card .meta-ip {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.card h3 {
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: auto;
  padding-top: 0.35rem;
}
.price s {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  letter-spacing: 0.03em;
}
.badge.sale { background: var(--sun); color: var(--ink); }
.badge.new { background: var(--mint); color: var(--ink); }
.badge.out { background: #e0deda; color: #666; border-color: #999; }

/* chips & filters */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover,
.chip.active {
  background: var(--ink);
  color: #fff;
}

/* explainer banner */
.explain {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  box-shadow: var(--shadow);
}
.explain ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .explain { grid-template-columns: 1fr; }
}

/* accordion FAQ */
details {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.2rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(24, 23, 40, 0.04);
}
summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.9rem 0;
  min-height: 48px;
  list-style-position: inside;
}
details p {
  margin: 0.2rem 0 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* breadcrumbs */
.crumbs {
  font-size: 0.9rem;
  padding: 1rem 0;
  color: var(--ink-soft);
}
.crumbs a {
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover { color: var(--coral); }

/* PDP */
.pdp {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
}

.gal .main {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: #fdf6ec;
  box-shadow: var(--shadow);
}
.gal .main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.thumbs button {
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  min-height: 48px;
  transition: border-color 0.15s ease;
}
.thumbs button[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.buy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.buy .price {
  font-size: 1.85rem;
  font-weight: 900;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.opt input {
  position: absolute;
  opacity: 0;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.opt input:checked + span {
  background: var(--ink);
  color: #fff;
}
.opt input:focus-visible + span {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}
.opt input:disabled + span {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}

.qty {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty button, .qty input {
  min-height: 48px;
  border: 0;
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-align: center;
}
.qty button {
  width: 48px;
  cursor: pointer;
  font-size: 1.2rem;
}
.qty input {
  width: 56px;
  font-size: 1.1rem;
}

.trust-box {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 12px rgba(24, 23, 40, 0.05);
}
.trust-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trust-box li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.prose {
  max-width: 72ch;
  line-height: 1.65;
}
.prose p, .prose ul, .prose ol {
  margin: 0.3rem 0 1.1rem;
}
.prose h3 { margin-top: 1.5rem; }

.msg {
  min-height: 1.5rem;
  font-weight: 800;
  color: #0b8a5d;
}

/* cart table */
table.cart {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
}
.cart th, .cart td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.cart th {
  background: #fbf5eb;
  font-weight: 800;
  font-size: 0.95rem;
}
.cart img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.cart .rm {
  background: none;
  border: 0;
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
}
.sum {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* free shipping progress */
.shipping-progress {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.shipping-bar-track {
  background: #e6dfd5;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid var(--ink);
}
.shipping-bar-fill {
  background: var(--coral);
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.pagination a:hover,
.pagination span.current {
  background: var(--ink);
  color: #fff;
}

/* footer */
footer.site {
  background: var(--ink);
  color: #fff;
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  footer .cols { grid-template-columns: 1fr 1fr; }
}
footer a {
  color: #fff;
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  min-height: 34px;
}
footer a:hover { color: var(--sun); }
footer h2 {
  font-size: 1.05rem;
  color: var(--sun);
  margin-bottom: 1rem;
}
footer p {
  color: #b5b3c7;
  max-width: 36ch;
  line-height: 1.5;
}
footer small {
  display: block;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #8c89a3;
  font-size: 0.82rem;
  line-height: 1.6;
}
