/* affected — shared styles. Everything is Times New Roman, black on white. */
:root {
  --black: #000;
  --white: #fff;
  --grey: #d9d9d9;
  --side: 5.6vw;              /* left/right margin from the layouts */
  --nav: 92px;                /* nav bar height */
  --t-nav: clamp(18px, 1.5vw, 30px);      /* shop / affected / cart */
  --t-big: clamp(18px, 1.62vw, 32px);     /* product page text */
  --t-small: clamp(13px, 1vw, 18px);      /* grid captions */
  --t-body: clamp(13px, 0.9vw, 16px);     /* cart, checkout, policies */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--black); }
body {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--black); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side);
  background: var(--white);
  font-size: var(--t-nav);
  z-index: 100;
}
.nav-title { justify-self: center; display: block; }
.nav-title img { width: 3.1em; height: auto; display: block; }
.nav-cart { justify-self: end; }
.nav a:hover, .nav-cart:hover { opacity: .5; }

.menu-btn {
  justify-self: start;
  font-size: var(--t-nav);
  width: .95em; height: .42em;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .3s ease;
}
.menu-btn span { display: block; height: 1.5px; background: var(--black); }
.menu-btn:hover span { opacity: .5; }
.menu-open .menu-btn { transform: rotate(90deg); }

.menu {
  position: fixed; top: var(--nav); left: 0;
  padding: 8px var(--side) 32px;
  background: var(--white);
  font-size: var(--t-nav);
  line-height: 1.5;
  z-index: 99;
  display: none;
}
.menu-open .menu { display: block; }
.menu a, .menu button { display: block; text-align: left; }
.menu a:hover, .menu button:hover { opacity: .5; }
.menu-sub { padding-left: 1.2em; font-size: .75em; line-height: 1.6; }
.menu-sub[hidden] { display: none; }

main { padding-top: var(--nav); }

/* ---------- home ---------- */
.home {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--nav) var(--side) calc(var(--nav) * .6);
}
.home img { width: 79.6vw; height: auto; }

/* ---------- shop grid ---------- */
.shop { padding: calc(var(--nav) + 65px) var(--side) 120px; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 12.4vw);
  justify-content: space-between;
  row-gap: 52px;
}
.card { display: block; }
.card-img { aspect-ratio: 199 / 252; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-cap { font-size: var(--t-small); line-height: 1.15; padding-top: 8px; }
.card-cap span { display: block; padding-bottom: 1px; }
.card-cap span + span { font-size: .78em; }
.card:hover .card-img { opacity: .85; }

/* ---------- product page ---------- */
.product {
  padding: calc(var(--nav) + 24px) var(--side) 120px;
  display: grid;
  grid-template-columns: 36.7vw 1fr;
  column-gap: calc(58.2vw - 36.7vw - var(--side));
  align-items: start;
}
.gallery {
  aspect-ratio: 589 / 744;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }

.info { padding-top: 3.2vw; font-size: var(--t-big); line-height: 1.27; max-width: 30vw; }
.info-block + .info-block { margin-top: 70px; }
.size-row { display: flex; align-items: baseline; gap: 2.6vw; }
.sizes {
  display: flex; gap: 1.6em; flex: 1; max-width: 13vw;
  font-size: .75em;
}
.size-opt { opacity: .35; }
.size-opt:hover { opacity: .7; }
.size-opt.on { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.size-opt:disabled { opacity: .15; text-decoration: line-through; cursor: default; }
.add { margin-top: 28px; display: inline-block; }
.add:hover { opacity: .5; }
.add:disabled { opacity: .35; cursor: default; }
.add-msg { font-size: .6em; margin-top: 8px; min-height: 1.2em; }
.desc { font-size: .7em; line-height: 1.5; }
.desc p + p, .desc ul { margin-top: 1em; }
.desc ul { list-style: none; }

.policy + .policy { margin-top: 10px; }
.policy-btn { display: flex; justify-content: space-between; width: 100%; text-align: left; gap: 24px; }
.policy-btn:hover { opacity: .5; }
.policy-body {
  margin-top: 12px; font-size: var(--t-body); line-height: 1.45;
  max-height: 320px; overflow-y: auto;
}
.policy-body p + p { margin-top: 10px; }
.policy-body a { text-decoration: underline; }

/* ---------- cart drawer ---------- */
.cart-overlay { position: fixed; inset: var(--nav) 0 0 0; background: rgba(0,0,0,.08); z-index: 95; }
.cart-overlay[hidden] { display: none; }
.cart {
  position: fixed; top: var(--nav); right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--white);
  border-left: 1px solid var(--black);
  display: flex; flex-direction: column;
  font-size: var(--t-body);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 96;
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; padding: 16px 32px; border-bottom: 1px solid var(--black); border-top: 1px solid var(--black); }
.cart-items { flex: 1; overflow-y: auto; padding: 0 32px; }
.item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--grey); }
.thumb { width: 72px; aspect-ratio: 199 / 252; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.item-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dim { opacity: .5; }
.qty { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.remove { margin-left: auto; opacity: .5; }
.cart button:hover, .cart a:hover { opacity: .5; }
.cart-empty { padding: 24px 0; line-height: 1.6; }
.cart-empty a { text-decoration: underline; }
.cart-foot { padding: 16px 32px 24px; border-top: 1px solid var(--black); }
.row { display: flex; justify-content: space-between; }
.note { opacity: .5; margin: 6px 0 16px; }
.btn {
  display: block; width: 100%; text-align: center;
  padding: 14px; border: 1px solid var(--black);
  background: var(--white); color: var(--black);
}
.btn:hover { background: var(--black); color: var(--white); opacity: 1 !important; }
body.cart-is-open { overflow: hidden; }

/* ---------- checkout page ---------- */
.checkout {
  padding: calc(var(--nav) + 48px) var(--side) 120px;
  font-size: var(--t-body);
  display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start;
}
.checkout h1 { font: inherit; font-size: var(--t-big); padding-bottom: 12px; border-bottom: 1px solid var(--black); }
.co-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--grey); }
.co-item .thumb { width: 96px; }
.co-summary { position: sticky; top: calc(var(--nav) + 48px); }
.co-summary .row { padding: 10px 0; border-bottom: 1px solid var(--grey); }
.co-summary .row.total { border-bottom: 1px solid var(--black); }
.co-summary .note { margin: 10px 0 16px; }
.co-edit { display: inline-block; margin-top: 12px; opacity: .5; text-decoration: underline; }
.co-edit:hover { opacity: 1; }
.co-msg { margin-top: 12px; min-height: 1.4em; }
.co-empty { padding: 24px 0; }
.co-empty a { text-decoration: underline; }

/* ---------- placeholder pages ---------- */
.simple { padding: calc(var(--nav) + 65px) var(--side); font-size: var(--t-big); }

@media (prefers-reduced-motion: reduce) { .cart, .menu-btn { transition: none; } }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --nav: 64px; --side: 16px; --t-nav: 18px; --t-big: 18px; --t-small: 13px; --t-body: 14px; }
  .menu { right: 0; }
  .home img { width: 92vw; }
  .shop { padding-top: calc(var(--nav) + 24px); }
  .grid { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 32px; }
  .product { grid-template-columns: 1fr; }
  .info { padding-top: 32px; max-width: none; }
  .info-block + .info-block { margin-top: 36px; }
  .sizes { max-width: none; }
  .cart { width: 100%; border-left: 0; }
  .cart-head, .cart-items, .cart-foot { padding-left: 16px; padding-right: 16px; }
  .checkout { grid-template-columns: 1fr; gap: 40px; }
  .co-summary { position: static; }
}

/* ---------- contact page ---------- */
.contact {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  gap: .8em;
  padding: var(--nav) var(--side) 60px;
  font-size: clamp(18px, 1.78vw, 34px);
}
.contact img { width: 1.45em; height: auto; flex: none; }
.contact a:hover { opacity: .5; }
@media (max-width: 760px) { .contact { font-size: 16px; } }

/* ---------- socials page ---------- */
.socials {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  gap: 1.1em;
  padding: var(--nav) var(--side) 60px;
  font-size: var(--t-big);
  line-height: 1.27;
}
.socials img { height: 4.6em; width: auto; flex: none; }
.socials a { display: block; }
.socials a:hover { opacity: .5; }

/* ---------- product photo scale by type ----------
   evens out the photos so tees and hoodies look the same real-world size.
   1 = full frame. lower = smaller. */
[data-type="hoodie"] img, [data-type="zip up"] img { transform: scale(1); }
[data-type="tee"] img { transform: scale(.8); }
[data-type="hat"] img { transform: scale(.55); }

/* ---------- collections page ---------- */
.collections {
  padding: calc(var(--nav) + 108px) var(--side) 120px;
  font-size: var(--t-big);
  display: flex; flex-direction: column; align-items: flex-start; gap: 46px;
}
.coll { display: flex; align-items: center; gap: .5em; }
.coll img { width: 1.65em; height: auto; }
a.coll:hover { opacity: .5; }
.coll.soon { cursor: default; }
@media (max-width: 760px) { .collections { padding-top: calc(var(--nav) + 40px); gap: 28px; } }
