/* Shell styles ported from mockups/site.css. Page stories add their own
   sections (cards, shop, product…) from the same mockup file. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* components with display:flex/grid must still hide */
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.blue { color: var(--blue); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; white-space: nowrap; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand__name { font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; font-size: 24px; line-height: 1; padding: 8px; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* sections */
.section { padding: 88px 0; }
.section--sky { background: var(--sky); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head h2 { font-size: 44px; margin: 8px 0 0; }
.section__head p { color: var(--gray); max-width: 520px; margin: 10px 0 0; }
.link-arrow { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* page heads (placeholder home, 404, shop…) */
.page-head { background: var(--sky); padding: 56px 0 40px; }
.page-head h1 { font-size: 56px; margin: 8px 0 10px; }
.page-head p { color: #444; max-width: 620px; margin: 0; font-size: 17px; }
.page-head__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* product cards (mockups/site.css) */
.section--tight { padding: 40px 0 88px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 12px 28px -14px rgba(17,17,17,.35); }
.card__img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; background: var(--sky); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 17px; }
.price-note { color: var(--gray); font-size: 13px; margin: 0 0 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue); white-space: nowrap; }
.badge--free { background: #E7F8EE; color: #137A3F; }
.empty { color: var(--gray); }

/* shop chips — hidden until shop.js runs (without JS every product shows) */
.chips { display: none; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; }
.js .chips { display: flex; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font: inherit; font-weight: 600; font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* product page */
.crumbs { font-size: 14px; color: var(--gray); padding-top: 28px; margin: 0; }
.crumbs a:hover { color: var(--blue); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 28px 0 72px; align-items: start; }
.product__cover { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.product__cover img { width: 100%; height: auto; }
.product h1 { font-size: 30px; line-height: 1.2; margin: 10px 0 14px; font-family: var(--body); font-weight: 700; }
.product .price { font-size: 30px; display: block; margin-bottom: 4px; }
.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 14px 0 24px; display: grid; gap: 12px; }
.buy-box .btn { justify-content: center; font-size: 16px; padding: 15px; cursor: pointer; font-family: inherit; }
.buy-box__note { margin: 0; font-size: 13px; color: var(--gray); text-align: center; }
.included__title { font-size: 16px; margin: 0 0 8px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; font-size: 14px; color: #444; }
.facts li::before { content: '•'; color: var(--blue); margin-right: 8px; font-weight: 700; }
.desc { color: #333; font-size: 15px; }
.desc h3 { font-size: 17px; margin: 22px 0 8px; }
.desc a { color: var(--blue); text-decoration: underline; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF4E5; border: 1px solid #F5C77E; border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; font-size: 14px; }
.notice__close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.related__title { font-size: 32px; margin: 0; }
.related { margin-bottom: 80px; }

/* footer */
.site-footer { background: var(--ink); color: #C9CDD4; padding: 56px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer a.brand { display: flex; padding: 0; }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 2px; }
.quote { font-family: var(--display); color: #fff; font-size: 20px; letter-spacing: .03em; margin-top: 18px; text-transform: uppercase; }
.socials { display: flex; gap: 0 18px; flex-wrap: wrap; }
.legal-row { border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* phone */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-header .header-cta { display: none; }
  /* With JavaScript the nav folds behind ☰; without it, it simply wraps. */
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 60px; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; flex-wrap: wrap; gap: 6px 18px; }
  .js .menu-btn { display: block; }
  .js .nav { display: none; }
  /* order: 3 puts the open list on its own row under the logo and ☰ */
  .js .site-header.is-open .nav { display: flex; flex-direction: column; order: 3; width: 100%; gap: 0; padding: 0 0 6px; }
  .js .site-header.is-open .nav a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .section { padding: 60px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head h2 { font-size: 34px; }
  .page-head h1 { font-size: 40px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: 13px; }
  .card__foot { flex-wrap: wrap; }
  .price { font-size: 15px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .product { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .product h1 { font-size: 24px; }
  .product .price { font-size: 26px; }
  .buy-box { padding: 16px; }
  .related__title { font-size: 26px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
