/* Classic: simple and clean, for any store and the Free plan. White, one easy sans-serif (Albert Sans), soft corners and
   big photos, close to the free themes shops start with. base.css holds the shared parts. */

/* ---------- header: name, links, cart ---------- */
.site-header { position: sticky; top: var(--ann-h, 0px); z-index: 20; background: var(--ground); border-bottom: 1px solid var(--border); }
.site-header__inner { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand__logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.brand__name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: none; }
.site-nav a { padding: 8px 0; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; justify-self: end; }
.cart-link:hover { background: var(--surface-soft); }
.cart-link__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
@media (min-width: 960px) {
  .menu { display: none; }
  /* Name on the left, links in the middle, cart on the right. */
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; min-height: 72px; }
  .brand { justify-content: flex-start; justify-self: start; }
  .brand__name { font-size: 21px; }
  .site-nav { display: flex; gap: 28px; min-width: 0; max-width: 62vw; overflow: hidden; }
  .site-nav a { color: var(--ink); }
  .site-nav a:hover { color: var(--muted); }
}

/* ---------- phone menu: a white panel from the left ---------- */
.menu__panel { inset: 0; z-index: 60; max-height: none; padding: 0; overflow: visible; background: none; border: 0; box-shadow: none; }
.menu__scrim { position: absolute; inset: 0; background: rgb(20 20 20 / 0.35); animation: menu-fade 0.25s ease both; }
.menu__sheet { position: absolute; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); display: flex; flex-direction: column; overflow-y: auto; padding: 12px 20px 20px; background: var(--ground); box-shadow: 0 0 40px rgb(0 0 0 / 0.12); animation: menu-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
.menu__sheet > * { flex-shrink: 0; }
.menu__head { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-bottom: 8px; }
.menu__name { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.menu__close { width: 44px; height: 44px; margin-right: -10px; border-radius: 8px; }
.menu__close:hover { background: var(--surface-soft); }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.menu__list li { border-bottom: 1px solid var(--border); }
.menu__list a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 18px; font-weight: 500; text-decoration: none; }
.menu__list a svg { color: var(--muted); }
.menu__list a[aria-current="page"] { font-weight: 700; }
.menu__small { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.menu__small a { display: flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; }
.menu__small a:hover { color: var(--ink); }
.menu__foot { margin-top: auto; padding-top: 20px; }
.menu__foot .button { width: 100%; }
html.menu-open { overflow: hidden; }
@keyframes menu-in { from { transform: translateX(-100%); } }
@keyframes menu-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .menu__sheet, .menu__scrim { animation: none; } }

/* ---------- hero: the banner in a rounded box, the words over it ---------- */
.hero { padding-top: 16px; }
.hero__inner { position: relative; display: grid; align-items: end; min-height: clamp(380px, 64vh, 620px); overflow: hidden; border-radius: var(--r-panel); background: var(--deep); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Darker toward the words so white text reads on pale photos too. */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.1) 25%, rgb(0 0 0 / 0.62) 72%, rgb(0 0 0 / 0.72) 100%); }
.hero__copy { text-shadow: 0 1px 14px rgb(0 0 0 / 0.35); }
.hero--colour .hero__copy, .hero--plain .hero__copy, .hero__button { text-shadow: none; }
.hero__copy { display: grid; justify-items: start; gap: 14px; padding: 28px 22px; }
.hero__title { max-width: 18ch; font-weight: 700; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero__text { max-width: 46ch; font-size: 17px; color: rgb(255 255 255 / 0.9); }
.hero__button { margin-top: 6px; min-height: 50px; padding-inline: 26px; background: #fff; color: var(--ink); border-color: #fff; }
.hero__button:hover { background: rgb(255 255 255 / 0.88); }
@media (min-width: 720px) { .hero__copy { padding: 48px; } }
/* Brand → Cover as a colour: the colour (or blend) fills the box, text in the colour that reads on it. */
.hero--colour .hero__inner { min-height: clamp(300px, 48vh, 480px); background: var(--cover-bg); color: var(--cover-ink); }
.hero--colour .hero__text { color: inherit; opacity: 0.86; }
.hero--colour .hero__button { background: var(--cover-ink); color: var(--cover-bg); border-color: var(--cover-ink); }
.hero--plain .hero__inner { min-height: 0; background: var(--surface-soft); color: var(--ink); }
.hero--plain .hero__copy { padding-block: 64px 48px; }
.hero--plain .hero__text { color: var(--muted); }
.hero--plain .hero__button { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 8px; }
@media (min-width: 960px) { .section { padding-top: 80px; } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head--stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.section__title, .page-title { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.section__link { color: var(--ink); font-size: 15px; font-weight: 600; text-underline-offset: 5px; }
.section__link:hover { color: var(--muted); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tile { display: block; text-decoration: none; }
.tile__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-card); background: var(--surface-soft); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 16px; }
.tile__name span { color: var(--muted); font-weight: 400; font-size: 14px; white-space: nowrap; }

.category-nav { margin: 4px 0 24px; }
.category-nav ul { display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 2px; list-style: none; scrollbar-width: none; }
.category-nav ul::-webkit-scrollbar { display: none; }
.category-nav li { flex: none; }
.category-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.category-nav a:hover { border-color: var(--ink); }
.category-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- product grid ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1040px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.card__media { position: relative; display: block; aspect-ratio: 1; margin-bottom: 8px; overflow: hidden; border-radius: var(--r-card); background: var(--surface-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card__media img { transform: scale(1.03); }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }
.card__tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--ground); font-size: 12px; font-weight: 600; }
.card__tag--sale { background: var(--ink); color: #fff; }
.card__title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.card__price { font-size: 15px; color: var(--muted); }
.card__price .price { color: var(--ink); font-weight: 600; }

/* ---------- story ---------- */
.story { display: grid; gap: 14px; justify-items: center; margin-top: 72px; padding: 56px 22px; border-radius: var(--r-panel); background: var(--surface-soft); text-align: center; }
.story__title { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; }
.story__text { max-width: 58ch; color: var(--muted); font-size: 17px; white-space: pre-line; }

/* ---------- product page ---------- */
.product { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 24px; }
@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-top: 16px; }
  .product__info { position: sticky; top: 100px; align-self: start; }
  .gallery__track { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
  .gallery__slide { flex-basis: auto; }
  .gallery__slide:first-child, .gallery__slide:only-child { grid-column: 1 / -1; }
  .gallery__thumbs { display: none; }
}
.product__title { font-weight: 600; }
.product__price .price { font-weight: 500; }
.product__actions .button { min-height: 54px; }

/* reviews: score on the left, list on the right */
.reviews { display: grid; gap: 28px; }
.reviews__head { display: flex; flex-direction: column; gap: 8px; }
.reviews__big { font: 600 56px/1 var(--font-display); letter-spacing: -0.03em; }
.reviews__list { gap: 0; }
.review { padding: 22px 0; border: 0; border-top: 1px solid var(--border); background: none; }
.stars__star--on { color: var(--ink); }
@media (min-width: 960px) { .reviews { grid-template-columns: 280px 1fr; gap: 64px; } }

/* ---------- cart ---------- */
.line { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; padding: 20px 0; grid-template-columns: 96px minmax(0, 1fr); }
.line__media { width: 96px; border-radius: 8px; overflow: hidden; }
.checkout, .discount { background: var(--surface-soft); border: 0; }

/* ---------- footer: light grey, plain columns ---------- */
.site-footer { margin-top: 80px; padding: 48px 0 24px; background: var(--surface-soft); color: var(--muted); font-size: 15px; }
.site-footer__inner { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.site-footer__store { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.site-footer__name { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.site-footer__desc { max-width: 44ch; }
.site-footer__heading { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.site-footer__powered { opacity: 1; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } .site-footer__store { grid-column: auto; } }

/* ---------- email list: a plain band above the footer ---------- */
.newsletter { margin-top: 80px; border-top: 1px solid var(--border); }
.newsletter__title { font-weight: 700; letter-spacing: -0.025em; }
.newsletter__field input { border-color: var(--border); }
.newsletter__submit { background: var(--ink); color: #fff; }
.newsletter + .site-footer { margin-top: 0; }
