/* ===========================================================================
   PumkinGrey — Homepage (editorial direction)
   Ported from the Claude Design project ("Home - PumkinGrey.html") and aligned
   to the already-integrated shop design system (includes/shop_landing.php):
   same tokens, same `.pgc .card` product card, same wishlist behaviour.
   Everything is scoped under .pg-home so it never collides with Bootstrap's
   .card / .row / .grid. Promo strip + topbar live in includes/topbar.php and the
   footer in footer.php — untouched here.
   =========================================================================== */

.pg-home {
  --ink:    #161514;
  --paper:  #FBFAF7;
  --surface:#FFFFFF;
  --line:   #ECE9E3;
  --line-2: #E2DED6;
  --muted:  #8A857C;
  --muted-2:#B6B1A8;
  --teal:   #00B0BA;
  --pink:   #FF3E6C;
  --yellow: #F4B400;
  --sale:   #D6443B;
  --accent: var(--teal);
  --accent-ink: #fff;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-align: left; /* override the site-wide body{text-align:center} that leaks in */
}
.pg-home * { box-sizing: border-box; }
.pg-home a { color: inherit; text-decoration: none; }
.pg-home button { font-family: inherit; cursor: pointer; }
.pg-home img { display: block; max-width: 100%; }
.pg-home h2, .pg-home h3, .pg-home h5 { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------------------------
   Hero — dark copy panel + product image, side by side
   --------------------------------------------------------------------------- */
.pg-home .home__hero {
  position: relative; display: flex; align-items: stretch; overflow: hidden;
  width: 100%; /* full-bleed edge-to-edge, matching the design */
}
.pg-home .home__hero__panel {
  flex: 0 0 42%; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 48px;
}
.pg-home .home__hero__kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--yellow); }
.pg-home .home__hero__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; margin: 0; }
.pg-home .home__hero__lede { font-size: 14px; color: rgba(251,250,247,.72); line-height: 1.55; margin: 0; max-width: 320px; }
.pg-home .home__hero__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; align-self: flex-start;
  border: 1px solid rgba(251,250,247,.45); border-radius: 100px; padding: 12px 26px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--paper);
  transition: border-color .15s, background .15s;
}
.pg-home .home__hero:hover .home__hero__cta { border-color: var(--paper); background: rgba(251,250,247,.1); }
.pg-home .home__hero__media { flex: 1; width: 58%; height: auto; object-fit: cover; display: block; margin: auto; align-self: stretch; }
@media (max-width: 720px) {
  .pg-home .home__hero { flex-direction: column; }
  .pg-home .home__hero__panel { flex: none; padding: 40px 24px; }
  .pg-home .home__hero__media { width: 100%; height: 320px; }
}

/* ---------------------------------------------------------------------------
   Section shell
   --------------------------------------------------------------------------- */
.pg-home .home__section { padding: 88px 48px 8px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 720px) { .pg-home .home__section { padding: 56px 24px 8px; } }
.pg-home .home__section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }
.pg-home .home__section__head h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; font-size: clamp(22px, 2.6vw, 30px); }
.pg-home .home__section__head a { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.pg-home .home__section__head a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------------------------------------------------------------------------
   Category rail — image + caption below, no overlay
   --------------------------------------------------------------------------- */
.pg-home .home__cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 900px) { .pg-home .home__cats { grid-template-columns: repeat(3, 1fr); gap: 22px 14px; } }
@media (max-width: 620px) { .pg-home .home__cats { grid-template-columns: repeat(2, 1fr); } }
.pg-home .home__cat { display: block; color: var(--ink); }
.pg-home .home__cat__frame { aspect-ratio: 3/4; border-radius: 2px; overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.pg-home .home__cat__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pg-home .home__cat:hover .home__cat__frame img { transform: scale(1.04); }
.pg-home .home__cat__label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.pg-home .home__cat__label svg { opacity: 0; transition: opacity .15s; }
.pg-home .home__cat:hover .home__cat__label svg { opacity: .6; }

/* ---------------------------------------------------------------------------
   Editorial split banner (asymmetric text + image + product grid)
   --------------------------------------------------------------------------- */
.pg-home .home__editorial { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
@media (max-width: 900px) { .pg-home .home__editorial { grid-template-columns: 1fr; gap: 28px; } }
.pg-home .home__editorial__frame { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; }
.pg-home .home__editorial__frame img { width: 100%; height: 100%; object-fit: cover; }
.pg-home .home__editorial__copy .home__section__head { margin-bottom: 20px; }
.pg-home .home__editorial__lede { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 420px; margin: 0 0 28px; }
.pg-home .home__editorial .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------------------------------------------------------------------------
   Product grid + card — mirrors includes/shop_landing.php exactly (`.pgc .card`)
   so home cards are identical to shop cards.
   --------------------------------------------------------------------------- */
.pg-home .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
/* reset Bootstrap's .card (white bg + border + radius) so the body blends with the page */
.pg-home .card { position: relative; background: transparent; border: 0; border-radius: 0; padding: 0; display: block; }
.pg-home .card__media { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #fff; aspect-ratio: 3/4; }
.pg-home .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pg-home .card:hover .card__media img { transform: scale(1.045); }
.pg-home .card__cover { position: absolute; inset: 0; z-index: 1; }
.pg-home .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pg-home .badge-tag { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; padding: 4px 8px; border-radius: 100px; background: var(--ink); color: var(--paper); width: fit-content; }
.pg-home .badge-tag.sale { background: var(--sale); color: #fff; }
.pg-home .badge-tag.new { background: var(--accent); color: var(--accent-ink); }
.pg-home .wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink); transition: transform .12s, background .15s; }
.pg-home .wish:hover { transform: scale(1.1); }
.pg-home .wish.is-on { color: var(--pink); }
.pg-home .wish.is-on svg { fill: var(--pink); }
.pg-home .quickadd { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; border: 0; border-radius: 100px; padding: 11px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s, background .15s; }
.pg-home .card:hover .quickadd { opacity: 1; transform: none; }
.pg-home .quickadd:hover { background: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .pg-home .quickadd { opacity: 1; transform: none; } }
.pg-home .card__body { padding: 12px 2px 0; display: block; background: transparent; }
.pg-home .card__brand { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--muted); }
.pg-home .card__name { font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 1.25; margin: 4px 0 0; letter-spacing: -.01em; color: var(--ink); }
.pg-home .card__color { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-home .card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-family: var(--font-mono); }
.pg-home .card__price .now { font-size: 14px; font-weight: 700; }
@media (max-width: 720px) { .pg-home .grid { gap: 14px; } }

/* ---------------------------------------------------------------------------
   Collection link list
   --------------------------------------------------------------------------- */
.pg-home .home__links { border-top: 1px solid var(--line); }
.pg-home .home__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--ink); padding: 24px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em;
  transition: padding-left .15s, color .15s;
}
.pg-home .home__link:hover { color: var(--accent); padding-left: 10px; }
.pg-home .home__link svg { flex: none; opacity: .4; transition: opacity .15s, transform .15s; }
.pg-home .home__link:hover svg { opacity: 1; transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   Info strip
   --------------------------------------------------------------------------- */
.pg-home .home__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 88px auto 0; background: var(--line); max-width: 1400px; }
@media (max-width: 720px) { .pg-home .home__info { grid-template-columns: 1fr; margin: 56px 24px 0; } }
.pg-home .home__info a {
  background: var(--paper); padding: 34px 20px; text-align: center;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ink);
  transition: background .15s, color .15s;
}
.pg-home .home__info a:hover { background: var(--surface); color: var(--accent); }
