/* People Love Life - storefront styles */
:root {
  --ink: #16130f;
  --paper: #fbf7f0;
  --card: #ffffff;
  /* Brand palette - from the People Love Life logo (red / gold / green) */
  --red: #c41e3a;
  --gold: #e8b53a;
  --green: #1f8a3d;
  --sun: #e8b53a;       /* gold */
  --sun-deep: #1f8a3d;  /* green - primary accent (price, focus, active) */
  --coral: #c41e3a;     /* red */
  --teal: #1f8a3d;      /* green */
  --line: #ece4d6;
  --muted: #7a7264;
  --shadow: 0 10px 30px rgba(30, 20, 5, .08);
  --shadow-lg: 0 20px 50px rgba(30, 20, 5, .16);
  --radius: 16px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 11px; object-fit: cover; display: block;
  box-shadow: 0 3px 10px rgba(30, 20, 5, .22);
}
.brand small { display: block; font-weight: 500; font-size: .62rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.header-search { flex: 1; max-width: 440px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--line);
  border-radius: 100px; background: #fff; font-family: var(--font); font-size: .92rem;
}
.header-search input:focus { outline: none; border-color: var(--sun-deep); box-shadow: 0 0 0 3px rgba(31, 138, 61, .16); }
.header-search::before { content: "⌕"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.2rem; }
.cart-btn {
  position: relative; border: none; background: var(--ink); color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.15rem; display: grid; place-items: center;
  transition: transform .15s;
}
.cart-btn:hover { transform: scale(1.06); }
.cart-count {
  position: absolute; top: -4px; right: -4px; background: var(--coral); color: #fff;
  min-width: 20px; height: 20px; border-radius: 10px; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 5px;
}
.cart-count:empty, .cart-count[data-n="0"] { display: none; }

/* ---- Hero ---- */
.hero { padding: 62px 0 44px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 181, 58, .20), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(196, 30, 58, .15), transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(31, 138, 61, .15), transparent 45%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-char {
  position: absolute; z-index: 2; left: 34px; bottom: 0; width: 150px;
  animation: charRise 1s cubic-bezier(.2,.9,.35,1.25) .35s both;
}
.hero-char img { width: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(20,20,5,.16));
  transform-origin: 50% 100%; animation: charBob 3.6s ease-in-out infinite; }
.hero-char-bubble {
  position: absolute; top: 6px; right: -46px; z-index: 3; background: #fff; color: var(--ink);
  border: 2.5px solid var(--ink); padding: 6px 13px; border-radius: 16px; font-weight: 800; font-size: .92rem;
  white-space: nowrap; box-shadow: var(--shadow); animation: charSay 1.4s ease-out 1s both;
}
.hero-char-bubble::after {
  content: ""; position: absolute; left: -9px; bottom: 8px; width: 0; height: 0;
  border: 8px solid transparent; border-right-color: var(--ink); border-left: 0;
}
@keyframes charRise { from { transform: translateY(115%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes charBob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes charSay { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 60% { transform: translateY(-2px) scale(1.06); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 900px) { .hero-char { width: 108px; left: 12px; } .hero-char-bubble { right: -38px; font-size: .8rem; padding: 4px 9px; } }
@media (max-width: 560px) { .hero-char { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-char { animation: none; } .hero-char img { animation: none; } .hero-char-bubble { animation: none; opacity: 1; } }
.hero-globe {
  position: absolute; z-index: 0; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: 560px; height: 560px; border-radius: 50%; pointer-events: none; opacity: .38;
  background-color: #eaf4ed;
  background-image:
    radial-gradient(circle at 30% 27%, rgba(255,255,255,.7), rgba(255,255,255,0) 46%),
    repeating-linear-gradient(90deg, rgba(31,138,61,.42) 0 1.5px, transparent 1.5px 26px),
    repeating-linear-gradient(180deg, rgba(31,138,61,.22) 0 1.5px, transparent 1.5px 30px);
  background-size: 100% 100%, 312px 100%, 100% 100%;
  box-shadow: inset -34px -30px 74px rgba(20,45,28,.20), 0 24px 70px rgba(31,138,61,.10);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 72%);
  animation: globeSpin 22s linear infinite;
}
@keyframes globeSpin { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, -312px 0, 0 0; } }
@media (max-width: 720px) { .hero-globe { width: 340px; height: 340px; } }
@media (prefers-reduced-motion: reduce) { .hero-globe { animation: none; } }
.hero .eyebrow {
  display: inline-block; font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sun-deep); background: rgba(31, 138, 61, .1); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; max-width: 15ch; margin: 0 auto; }
.hero h1 .grad { background: linear-gradient(100deg, var(--red), var(--gold) 50%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 56ch; margin: 18px auto 0; color: var(--muted); font-size: 1.06rem; }
.hero .stats { display: flex; gap: 34px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero .stats b { font-size: 1.5rem; display: block; }
.hero .stats span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Filter bar ---- */
.filters { position: sticky; top: 70px; z-index: 40; background: var(--paper); padding: 16px 0; border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  padding: 8px 16px; border-radius: 100px; font-family: var(--font); font-size: .86rem; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--sun-deep); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .result-count { margin-left: auto; color: var(--muted); font-size: .85rem; }

/* ---- Grid ---- */
.grid-section { padding: 34px 0 80px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 1; background: #f2ede3; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; opacity: 0; }
.card .thumb img.loaded { opacity: 1; }
.card .region-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(22, 19, 15, .78); color: #fff;
  font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px;
}
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card h3 .flag { width: 26px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.card .swatches { display: flex; gap: 5px; margin-top: auto; }
.card .sw { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.card .price { font-weight: 700; color: var(--sun-deep); font-size: .95rem; }
.card .meta { display: flex; justify-content: space-between; align-items: center; }
.card .meta small { color: var(--muted); font-size: .74rem; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* ---- Product page ---- */
.pp { padding: 34px 0 90px; }
.crumb { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.crumb a:hover { color: var(--sun-deep); }
.pp-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery .main {
  background: #f2ede3; border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line);
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { position: relative; }
.gallery .main video { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.gallery .main .main-worn {
  position: absolute; left: 14px; bottom: 14px; background: rgba(22,19,15,.82); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 7px 13px; border-radius: 100px; backdrop-filter: blur(4px);
}
.gallery .thumbs .thumb-worn {
  position: absolute; top: 3px; right: 3px; background: var(--coral); color: #fff;
  font-size: .6rem; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; line-height: 1;
}
.gallery .thumbs button { position: relative; }
.gallery .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .thumb-360 {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  background: rgba(22,19,15,.82); color: #fff; font-size: .52rem; font-weight: 700; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 100px; pointer-events: none;
}
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button {
  width: 66px; height: 66px; border-radius: 11px; overflow: hidden; border: 2px solid var(--line);
  padding: 0; cursor: pointer; background: #f2ede3;
}
.gallery .thumbs button.active { border-color: var(--sun-deep); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pp-info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.pp-info h1 .pp-flag { width: 44px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); vertical-align: middle; margin-right: 12px; }
.pp-info .region-line { color: var(--teal); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.pp-info .price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.pp-info .price { font-size: 1.9rem; font-weight: 800; }
.pp-info .price-note { color: var(--muted); font-size: .85rem; }
.pp-info .desc { color: #4a4436; margin: 18px 0 26px; }
.opt-label { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: flex; justify-content: space-between; }
.opt-label span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.colour-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.colour {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); transition: transform .12s;
}
.colour:hover { transform: scale(1.08); }
.colour.active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px #fff, 0 0 0 4px var(--sun-deep); }
.size-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.size {
  min-width: 52px; padding: 11px 8px; text-align: center; border: 1.5px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: .9rem; background: #fff; transition: all .12s;
}
.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.add-row { display: flex; gap: 12px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 42px; border: none; background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty span { width: 42px; text-align: center; font-weight: 700; }
.btn-add {
  flex: 1; border: none; background: linear-gradient(100deg, var(--red), var(--gold)); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 1rem; border-radius: 12px; cursor: pointer;
  padding: 14px; transition: filter .15s, transform .1s;
}
.btn-add:hover { filter: brightness(1.05); }
.btn-add:active { transform: scale(.99); }
.trust { display: flex; flex-direction: column; gap: 9px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust div { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: #4a4436; }
.trust .ic { color: var(--teal); font-weight: 700; }
.sizeguide { margin-top: 28px; }
.sizeguide summary { cursor: pointer; font-weight: 600; }
.sizeguide img { margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }

/* ---- Customer marquee (real people wearing the tees) ---- */
.marquee { padding: 26px 0 10px; overflow: hidden; }
.marquee-lead {
  text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.marquee-lead .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,138,61,.16); animation: pulseDot 1.8s ease-in-out infinite; }
.marquee-lead .stars { color: var(--gold); letter-spacing: 1px; }
.marquee-lead b { color: var(--ink); }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.marquee-viewport {
  position: relative; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 200px; width: auto; aspect-ratio: 1 / 1; object-fit: cover; flex: none;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #f2ede3;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee-track img { height: 148px; } .marquee-track { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- Cart drawer ---- */
.overlay { position: fixed; inset: 0; background: rgba(22, 19, 15, .5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(410px, 92vw); background: var(--paper);
  z-index: 100; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.2);
}
.drawer.open { transform: translateX(0); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.15rem; }
.drawer .close { border: none; background: none; font-size: 1.5rem; cursor: pointer; line-height: 1; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: #f2ede3; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-info b { font-size: .9rem; display: block; }
.cart-item .ci-info small { color: var(--muted); font-size: .78rem; }
.cart-item .ci-x { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.cart-item .ci-price { font-weight: 700; font-size: .9rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 0; }
.drawer footer { padding: 20px 22px; border-top: 1px solid var(--line); }
.drawer .subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.btn-checkout {
  width: 100%; border: none; background: var(--ink); color: #fff; font-family: var(--font); font-weight: 700;
  font-size: 1rem; padding: 15px; border-radius: 12px; cursor: pointer;
}
.btn-checkout:hover { background: #2a251d; }
.drawer .ship-note { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 10px; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%); background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 100px; font-weight: 600; font-size: .9rem; z-index: 120; box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translate(-50%, 0); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #cfc7b8; padding: 46px 0 30px; margin-top: 40px; }
.site-footer .cols { display: flex; gap: 60px; flex-wrap: wrap; justify-content: space-between; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.site-footer p { font-size: .88rem; max-width: 34ch; }
.site-footer .links { display: flex; gap: 28px; flex-wrap: wrap; font-size: .88rem; align-items: center; }
.site-footer .social { display: flex; gap: 12px; margin-top: 16px; }
.site-footer .social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: #cfc7b8; transition: background .15s, color .15s, transform .15s;
}
.site-footer .social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.site-footer .bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #9a9284; }

.skeleton { animation: pulse 1.4s ease-in-out infinite; background: #efe8dc; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

@media (max-width: 820px) {
  .pp-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .site-header .wrap { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .filters { top: 0; }
}
