/* KICKSTW reskin: home page (templates/home/page.php), per site_prototype/home.html and
   assets/css/home.css there. Everything is under .kt-chrome; buttons, links, the eyebrow and the
   block title (.h-section) come from chrome.css, the product cards from card.css.
   Type (site_prototype/DESIGN.md): the hero's title is the page's one display line; the h1 under
   it and every section title are block titles.
   The page-wide pieces of the prototype's site.css that only this page uses so far in the plugin
   (.container, .section, .section-head, .chips, .brand-card) live here until a second page needs them. */

.kt-chrome.kt-home { display: block; width: 100%; min-width: 0; background: var(--white); color: var(--ink); }
.kt-chrome.kt-home h1,
.kt-chrome.kt-home h2,
.kt-chrome.kt-home h3 { margin: 0; color: var(--ink); letter-spacing: 0; text-transform: none; }
.kt-chrome.kt-home p { margin: 0; }
.kt-chrome .container { width: auto; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kt-chrome .section { padding-top: var(--section-gap); }
.kt-chrome .section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; }
.kt-chrome .section-head > div { display: flex; flex-direction: column; gap: 8px; }
.kt-chrome .section-head .link-more { margin: -12px 0; } /* the 44px touch height does not push the heading row apart */

/* ---- Hero: the photo, then the words under it ---- */
.kt-chrome .hero { display: flex; flex-direction: column; }
.kt-chrome .hero picture { display: block; }
.kt-chrome .hero img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; min-height: 240px; max-height: 60vh; object-fit: cover; object-position: 55% 45%; background: var(--brand-bg); }
.kt-chrome .hero__box { width: 100%; max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kt-chrome.kt-home h2.hero__title { font: var(--type-display); letter-spacing: -0.02em; text-transform: uppercase; }
.kt-chrome .hero__text { font: 400 16px/1.55 var(--font-body); color: var(--muted); }
.kt-chrome .hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---- Chips over "Just landed" ---- */
.kt-chrome .chips { display: flex; gap: 8px; overflow-x: auto; }
.kt-chrome .new-chips { padding: 0 0 20px; }
.kt-chrome .chip { flex: 0 0 auto; min-height: 40px; margin: 0; padding: 0 16px; border: 1px solid var(--chip-line); border-radius: 0; background: var(--white); color: var(--ink); font: 500 13px var(--font-body); cursor: pointer; }
.kt-chrome .chip:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.kt-chrome .chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.kt-chrome .chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- A row of product cards: four in view, the rest by scrolling sideways ---- */
.kt-chrome ul.kt-home__row { display: flex; flex-wrap: nowrap; gap: 20px; margin: 0; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; }
.kt-chrome ul.kt-home__row::before,
.kt-chrome ul.kt-home__row::after { content: none; }
.kt-chrome ul.kt-home__row > li { flex: 0 0 var(--rail-card); float: none; width: auto; min-width: 0; margin: 0; scroll-snap-align: start; }

/* ---- The floors' rows (18 Nov) and On sale (20 Nov: as wide as New in): the last card in view
   is cut, so the row says there is more: four and a part on a computer at every width, three and a
   part to 1024px, two and a part on a phone. Set for these rows only; --rail-card stays as it is for
   the other rows. ---- */
.kt-chrome ul.kt-home__row--peek > li { flex-basis: calc((100% - 80px) / 4.4); }
@media (max-width: 1024px) {
  .kt-chrome ul.kt-home__row--peek > li { flex-basis: calc((100% - 60px) / 3.4); }
}

/* ---- Featured brands ---- */
.kt-chrome .brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.kt-chrome .brand-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.kt-chrome .brand-card:hover { color: var(--ink); }
.kt-chrome .brand-card__img { aspect-ratio: 4 / 5; background: var(--brand-bg); overflow: hidden; }
.kt-chrome .brand-card__img picture { display: block; width: 100%; height: 100%; }
.kt-chrome .brand-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kt-chrome .brand-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kt-chrome .brand-card__foot > div { display: flex; flex-direction: column; gap: 4px; }
.kt-chrome .brand-card__name { font: var(--type-block); }
.kt-chrome .brand-card__cta { display: inline-flex; align-items: center; min-height: 44px; font: 600 14px var(--font-body); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.kt-chrome .brand-card:hover .brand-card__cta { text-decoration-thickness: 2px; }
.kt-chrome .brand-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- Visit us: the two shops, side by side ---- */
.kt-chrome .visit { margin-top: var(--section-gap); background: var(--panel); }
.kt-chrome .visit__inner { padding-top: clamp(48px, 5vw, 80px); padding-bottom: clamp(48px, 5vw, 80px); }
.kt-chrome .visit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.kt-chrome .store-card { display: flex; flex-direction: column; gap: 16px; background: var(--white); padding-bottom: 24px; }
.kt-chrome .store-card__img { aspect-ratio: 3 / 2; background: var(--brand-bg); overflow: hidden; }
.kt-chrome .store-card__img picture { display: block; width: 100%; height: 100%; }
.kt-chrome .store-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kt-chrome .store-card__body { padding: 0 24px; display: flex; flex-direction: column; gap: 12px; }
.kt-chrome .store-card:first-child:not(:has(.store-card__img)) { padding-top: 24px; }
.kt-chrome .store-card h3 { font: var(--type-block); }
.kt-chrome .store-card p { font: 400 14px/1.5 var(--font-body); color: var(--ink); }
.kt-chrome .store-card p.hours { color: var(--muted); }
.kt-chrome .store-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.kt-chrome .store-card__links .link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: var(--ink); }

@media (max-width: 720px) {
  .kt-chrome .hero img { aspect-ratio: 4 / 3; max-height: 56vh; }
  .kt-chrome ul.kt-home__row--peek > li { flex-basis: calc((100% - 40px) / 2.3); }
  /* The link sits under the title in both rows: beside it there is room for the first title and not for the second. */
  .kt-chrome .floor .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
