/* Globalink Trendy — « Galerie Brume » */
:root {
  --bg: #e6eaed;
  --bg-2: #f3f5f7;
  --surface: #fafbfc;
  --ink: #1a1f24;
  --muted: #5a6570;
  --line: #c8d0d6;
  --accent: #5c6b2f;
  --accent-ink: #f7f8f2;
  --olive-deep: #3f4a22;
  --fog: #d5dde3;
  --font-display: "Albert Sans", "Segoe UI", sans-serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --radius: 2px;
  --wrap: 1120px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dfe8ee 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e8ebe3 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
.brand,
.nav a,
.btn,
.price,
.eyebrow,
.cat-link {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-menu {
  display: none;
}

@media (max-width: 720px) {
  .nav-menu { display: block; }
}

.nav-menu > summary {
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #8a2a2a;
  font-size: 0.9rem;
  margin: 0.25rem 0;
  min-height: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  cursor: pointer;
}

.cart-link {
  font-weight: 700;
}

.cart-count {
  display: inline-block;
  min-width: 1.25rem;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-size: 0.8rem;
  padding: 0.05rem 0.35rem;
  margin-left: 0.25rem;
}

/* Hero — full bleed photo plane */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #f7f8f9;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 31, 36, 0.15) 0%,
    rgba(26, 31, 36, 0.55) 55%,
    rgba(26, 31, 36, 0.78) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--wrap));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
  max-width: 36rem;
}

.hero .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  color: #eef1f3;
}

.hero p {
  margin: 0 0 1.4rem;
  color: #dce2e7;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--olive-deep);
  color: var(--accent-ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: var(--space) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.lead {
  color: var(--muted);
  max-width: 40rem;
}

/* Category bands — not equal cards */
.cat-bands {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--surface);
  min-height: 220px;
}

.cat-band:nth-child(even) .cat-band-media {
  order: 2;
}

.cat-band-media {
  min-height: 220px;
  background: var(--fog) center / cover no-repeat;
}

.cat-band-copy {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-band-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.cat-band-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--fog);
  border-radius: var(--radius);
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.product-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.price {
  font-size: 1rem;
  color: var(--ink);
}

/* Note monetization */
.monetization {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page hero (interior) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fog) 55%, transparent), transparent);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* PDP */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pdp-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--fog);
}

.pdp-info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pdp-info .price {
  font-size: 1.35rem;
  margin: 0.5rem 0 1rem;
}

.pdp-info .desc {
  color: var(--muted);
}

.size-guide {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.field select,
.field input,
.field textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.specs {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.specs dt {
  font-family: var(--font-display);
  color: var(--ink);
  margin-top: 0.65rem;
}

.specs dd {
  margin: 0.15rem 0 0;
}

/* Cart / checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table img {
  width: 72px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.qty-input {
  width: 4.5rem;
}

.empty-note {
  color: var(--muted);
  padding: 1rem 0 2rem;
}

.shipping-box {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 36rem;
}

.shipping-box .field {
  margin-bottom: 0.75rem;
}

.shipping-box select {
  width: 100%;
  max-width: 28rem;
}

.shipping-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.65rem 0 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.notice {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.notice-ok {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

/* Editorial / legal prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.article-hero {
  margin-bottom: 1.75rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.sponsor-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 0.85rem;
  margin: 1rem 0 1.5rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #1a1f24;
  color: #d7dde3;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: #e8eef2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-grid h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa7b2;
  margin: 0 0 0.75rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0.35rem 0;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-legal {
  border-top: 1px solid #2c343c;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #9aa7b2;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 60;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 28px rgba(26, 31, 36, 0.12);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Motion — content stays visible; animate transform only */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s ease both;
  }

  @keyframes rise {
    from {
      transform: translateY(12px);
    }
    to {
      transform: translateY(0);
    }
  }

  .product-card img {
    transition: transform 0.35s ease;
  }

  .product-card:hover img {
    transform: scale(1.02);
  }

  .btn {
    transition: background 0.2s ease, transform 0.2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise,
  .product-card img,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pdp,
  .cat-band,
  .cat-band:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .cat-band:nth-child(even) .cat-band-media {
    order: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.is-open,
  .nav-menu[open] + .nav {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }
}

/* Header: keep on one line (721px+) */
@media (min-width: 721px) {
  .nav-menu { display: none; }
  .nav-toggle { display: none; }
  .nav { display: flex !important; flex-wrap: nowrap; }
  .nav a, .brand { white-space: nowrap; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .header-inner { gap: 0.75rem; }
  .nav { gap: 0 0.7rem; }
  .nav a { font-size: 0.85rem; }
  .brand { font-size: 1.15rem; }
}
