:root {
  --ink: #111;
  --muted: #555;
  --bar: #f2f2f2;
  --accent: #f2b705; /* star yellow: the rule under each product title */
  --font: 'Varela Round', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
}

a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.7; }

/* Announcement bar */
.announce {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 64px;
  background: var(--bar);
  font-size: 18px;
  text-align: center;
}
.announce button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

/* Top nav */
.nav-wrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; padding: 16px 32px 0 72px; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(16px, 3vw, 40px);
  flex: 1 1 560px;
  margin: 0 auto;
  max-width: 1000px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.nav a {
  padding: 12px 0;
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 19px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Logo */
.logo { display: block; flex: none; width: 96px; }
.logo img { display: block; width: 100%; height: auto; }

/* Garment toggle */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 72px; padding: 0 32px; }
.pills button {
  height: 48px;
  padding: 0 28px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
}
.pills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Design tiles: 5 across on desktop */
.grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 32px 120px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.tile-img { display: block; aspect-ratio: 1 / 1; background: var(--bar); border-radius: 12px; overflow: hidden; }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile h2 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase; }
.rule { width: 32px; height: 2px; background: var(--accent); }
.price { font-size: 18px; }

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 32px 56px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 48px;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.footer-links a { padding: 12px 0; font-size: 18px; }
.search { position: relative; width: 480px; max-width: 100%; }
.search input {
  width: 100%;
  height: 52px;
  padding: 0 56px 0 18px;
  border: 1px solid #333;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
}
.search button {
  position: absolute;
  right: 4px;
  top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.copyright { margin: 0; color: #666; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Product page */
.product {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}
.product-media { display: flex; flex-direction: column; gap: 24px; flex: 1 1 460px; min-width: 0; }
.product-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.back {
  align-self: flex-start;
  padding: 12px 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-info { display: flex; flex-direction: column; gap: 28px; flex: 1 1 360px; min-width: 0; padding-top: 72px; }
.product-head { display: flex; flex-direction: column; gap: 16px; }
.product-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.product-head .price { font-size: 22px; }
.desc { margin: 0; max-width: 52ch; color: #444; font-size: 17px; line-height: 1.6; }
.option { display: flex; flex-direction: column; gap: 14px; }
.label { color: var(--muted); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 16px; }
.sizes { gap: 10px; }
.swatch {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bbb;
  border-radius: 50%;
  outline: 2px solid transparent;
  outline-offset: 3px;
  cursor: pointer;
}
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.size {
  min-width: 56px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}
.size[aria-pressed="true"] { background: var(--ink); color: #fff; }
.add {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
/* Design page */
.design { max-width: 1280px; margin: 0 auto; padding: 24px 32px 120px; }
.design .back { display: inline-block; }
.design h1 { margin: 8px 0 48px; font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.prow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
@media (max-width: 960px) { .prow { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.pcard { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gallery { position: relative; aspect-ratio: 1 / 1; background: var(--bar); border-radius: 12px; overflow: hidden; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }
.dots { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.dot.on { background: var(--ink); }
.pmeta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pmeta h2 { margin: 0; font-size: 22px; font-weight: 400; }
.pmeta .price { font-size: 22px; }
.cname { color: var(--muted); font-size: 15px; }

/* Our Story page */
.story { max-width: 680px; margin: 0 auto; padding: 24px 32px 120px; }
.story h1 { margin: 8px 0 40px; font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.story p { margin: 0 0 24px; font-size: 19px; line-height: 1.7; }
.story .sign { margin-top: 48px; }
.story .sign p { margin: 0; }

/* Image zoom */
.zoomable { cursor: zoom-in; }
.zoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  cursor: zoom-out;
}
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Cart page */
.cart { max-width: 820px; margin: 0 auto; padding: 24px 32px 120px; }
.cart h1 { margin: 0 0 32px; font-size: 28px; font-weight: 400; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #ddd; }
.cart-row img { width: 96px; height: 96px; object-fit: contain; background: var(--bar); border-radius: 8px; }
.cart-info h2 { margin: 0 0 6px; font-size: 17px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; }
.cart-info p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; font-family: inherit; font-size: 18px; cursor: pointer; }
.cart-remove { border: 0; background: none; color: var(--muted); font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cart-sum { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.cart-sum > div { display: flex; justify-content: space-between; font-size: 18px; }
.cart-sum .total { padding-top: 12px; border-top: 1px solid var(--ink); font-size: 22px; }
.cart-note { margin: 0; color: var(--muted); font-size: 15px; }
.cart-sum .add { margin-top: 12px; }
.cart-empty { text-align: center; font-size: 19px; }
.cart-empty a { text-decoration: underline; }