/* ============================================================
   COPYCAT CONCEPT — styles
   §1 base  §2 header  §3 home grid  §4 product  §5 footer  §6 small screens
   ============================================================ */

/* §1 BASE — Dosis everywhere */
@font-face {
  font-family: "Dosis";
  src: url("fonts/dosis.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #111;
  --mute: #8a8a8a;
  --edge: rgba(0, 0, 0, .09);       /* see-through border */
  --edge-hover: rgba(0, 0, 0, .22);
  --radius: 18px;
  --track: .16em;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); }
body {
  font-family: "Dosis", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }
.caps { text-transform: uppercase; letter-spacing: var(--track); font-size: 13px; }
.mute { color: var(--mute); }
.center { text-align: center; }

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track);
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .8; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.off { background: transparent; color: var(--mute); border-color: var(--edge-hover); cursor: default; }
.btn.off:hover { opacity: 1; }

/* §2 HEADER — small logo, like studio.toys */
.site-header { position: relative; padding: 40px 20px 0; text-align: center; }
.site-logo { display: inline-block; }
.site-logo img { height: 50px; width: auto; margin: 0 auto; }
.site-account { position: absolute; top: 22px; right: 28px; display: flex; gap: 22px; }
.site-account a { color: var(--mute); transition: color .15s; }
.site-account a:hover, .site-account a.on { color: var(--ink); }

/* §3 HOME — three per row, no borders */
.tagline { margin: 22px 20px 34px; }
/* the slogan's style, shared by product names, prices and descriptions */
.tagline, .card .meta, .product .desc {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; line-height: 1.7;
}
.tagline { font-weight: 700; color: var(--ink); }
/* card: name and price centered, stacked under the color dots */
.card .meta { flex-direction: column; align-items: center; gap: 2px; margin-top: 18px; text-align: center; }
.grid {
  width: 77.5%;
  min-width: 800px;
  max-width: 1375px;
  margin: 44px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 20px;
}
.grid .card { width: calc((100% - 40px) / 3); }
.card {
  display: block;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  transition: border-color .2s, transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card .shot { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card .shot img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card .meta { display: flex; }

/* color dots */
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots.big { justify-content: flex-start; gap: 10px; margin: 6px 0 18px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .18); outline-offset: 3px;
}
.swatch.small { width: 13px; height: 13px; outline-offset: 2px; }
.swatch.on { outline: 1px solid var(--ink); }
.colorname { margin-top: 4px; }
.card .meta { display: flex; }

/* product drawing (garment + art) */
.mock { position: relative; width: 100%; aspect-ratio: 400 / 420; }
.mock svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock .print { position: absolute; left: 33.25%; top: 25%; width: 33.5%; height: 42.62%; overflow: hidden; }
.mock .print img { position: absolute; transform: translate(-50%, -50%); max-width: none; pointer-events: none; }

/* §4 PRODUCT */
.back { display: block; margin: 40px auto 0; text-align: center; }
.back:hover { color: var(--ink); }
.product {
  max-width: 1000px; margin: 34px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center;
}
.stage {
  border: 0; border-radius: var(--radius); background: transparent;
  padding: 0; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.stage img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button {
  width: 72px; height: 54px; border: 1px solid var(--edge); border-radius: 12px; background: transparent;
  padding: 6px; cursor: pointer;
}
.thumbs button.on { border-color: var(--ink); }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-weight: 600; font-size: 28px; margin: 4px 0 2px; letter-spacing: .01em; }
.product .price { font-size: 18px; margin-bottom: 20px; }
.product .desc { margin: 0 0 18px; }
.product .sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
#done { margin-top: 14px; }
.sleeves { display: flex; gap: 8px; margin: 0 0 16px; }
.sleeves[hidden] { display: none; }
.chip {
  border: 1px solid var(--edge-hover); background: transparent; border-radius: 999px; padding: 7px 16px;
  font-size: 13px; letter-spacing: .08em; cursor: pointer; color: var(--ink);
}
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px auto 0; }
.filters { gap: 4px; }
.filters .chip {
  border: 0; border-radius: 0; padding: 7px 12px; background: transparent;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.filters .chip:hover { color: var(--ink); }
.filters .chip.on { background: transparent; color: var(--ink); font-weight: 700; }
.card[hidden] { display: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.product .fine { font-size: 13px; margin-top: 14px; }

/* §5 LOGIN / ACCOUNT */
.narrow { max-width: 380px; margin: 50px auto 0; padding: 0 24px; }
.wide { max-width: 760px; margin: 50px auto 0; padding: 0 24px; }
h1.title { font-weight: 600; font-size: 26px; text-align: center; margin: 0 0 28px; }
label.f { display: block; margin-bottom: 16px; }
label.f span { display: block; margin-bottom: 6px; }
input.in {
  width: 100%; font-size: 16px; padding: 12px 14px; border: 1px solid var(--edge-hover); border-radius: 12px;
  background: #fff; outline: none;
}
input.in:focus { border-color: var(--ink); }
.err { color: #b00020; font-size: 14px; min-height: 22px; margin: 2px 0 10px; }
.swap { text-align: center; margin-top: 22px; }
.swap a, .link { border-bottom: 1px solid currentColor; }
.section-label { margin: 40px 0 14px; }
.favs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.favs .card { padding: 12px; }
.panel { border: 1px solid var(--edge); border-radius: var(--radius); padding: 18px 20px; }
.save { margin-top: 12px; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--mute); width: 100%; }
.save.on { color: var(--ink); }

/* account: backorder rows */
.list { display: grid; gap: 12px; }
.item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--edge); border-radius: var(--radius); padding: 10px 18px 10px 10px;
}
.item .thumb { width: 96px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.item .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item h4 { margin: 0; font-weight: 600; font-size: 15px; }
.tag { border: 1px solid var(--edge-hover); border-radius: 999px; padding: 3px 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 600px) { .item { grid-template-columns: 72px 1fr; } .item .thumb { width: 72px; } .item .tag { grid-column: 2; justify-self: start; } }

/* §6 FOOTER — studio.toys */
.site-footer { margin-top: 120px; padding: 30px 20px 40px; text-align: center; }
.site-footer img { width: 180px; margin: 0 auto 8px; }
.site-footer .credits { font-size: 12px; color: var(--mute); letter-spacing: .1em; }

/* §7 SMALL SCREENS — logo steps down like studio.toys */
@media (max-width: 1180px) { .site-logo img { height: 44px; } }
@media (max-width: 820px)  { .product { grid-template-columns: 1fr; gap: 30px; } .grid { width: auto; min-width: 0; margin: 0 20px; } .grid .card { width: calc(50% - 10px); } }
@media (max-width: 600px)  {
  .site-logo img { height: 36px; }
  .site-header { padding-top: 48px; }
  .site-account { top: 14px; right: 16px; }
  .grid { width: auto; min-width: 0; margin: 0 16px; gap: 22px 12px; }
  .grid .card { width: 100%; }
}

/* footer links */
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; font-size: 12px; }
.foot-links a { color: var(--mute); transition: color .15s; }
.foot-links a:hover { color: var(--ink); }

/* cart */
.cart { max-width: 720px; margin: 40px auto 0; }
.cart h1 { text-align: center; text-transform: uppercase; letter-spacing: .12em; }
.cart .line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--edge); }
.cart .line .thumb img { width: 110px; aspect-ratio: 4 / 3; object-fit: contain; }
.cart .line h4 { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.cart .line .detail { font-size: 13px; color: var(--mute); }
.cart .qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart .qty button { width: 28px; height: 28px; border: 1px solid var(--edge-hover); border-radius: 999px; background: none; cursor: pointer; font: inherit; }
.cart .qty .rm { width: auto; border: 0; color: var(--mute); text-decoration: underline; font-size: 13px; margin-left: 8px; }
.cart .amt { font-weight: 600; text-align: right; }
.cart .sum { margin: 22px 0 0 auto; max-width: 320px; }
.cart .sum div { display: flex; justify-content: space-between; padding: 5px 0; }
.cart .sum .tot { font-weight: 700; border-top: 1px solid var(--edge); margin-top: 6px; padding-top: 10px; }
.cart .freebar { text-align: center; font-size: 13px; letter-spacing: .08em; color: var(--mute); margin: 18px 0 0; }
.cart .actions { max-width: 320px; margin: 18px 0 0 auto; }
@media (max-width: 600px) { .cart .line { grid-template-columns: 80px 1fr; } .cart .line .thumb img { width: 80px; } .cart .amt { grid-column: 2; text-align: left; } }

/* policy page */
.policy { max-width: 680px; margin: 40px auto 0; line-height: 1.65; }
.policy h1 { text-align: center; letter-spacing: .12em; }
.policy h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin: 38px 0 8px; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.policy th, .policy td { border-bottom: 1px solid var(--edge); padding: 8px 6px; text-align: center; }
.policy th:first-child, .policy td:first-child { text-align: left; }

/* shake the size buttons when someone forgets to pick one */
@keyframes nudge { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sizes.nudge { animation: nudge .3s ease 2; }
.sizes.nudge .chip { border-color: #b00020; }

.product[hidden] { display: none; }

/* second payment button (outlined) */
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--ink); margin-top: 10px; }
.btn[hidden] { display: none; }
