/* ============================================================
   Zariya London — storefront styles
   Warm-neutral, Pinterest-inspired, mobile-first. No frameworks.
   ============================================================ */
:root {
  --bg: #faf7f2;
  --bg-alt: #f3ece3;
  --card: #ffffff;
  --ink: #3a2e28;
  --ink-soft: #6f5f55;
  --muted: #9a8a7c;
  --brand: #8a5a44;
  --brand-dark: #6f4634;
  --brand-light: #f3e4d3;
  --gold: #c9a227;
  --line: #e8ddd2;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(90, 60, 40, 0.08);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 780px; }

/* ---------- header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-text { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--font-sans); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }

.search-bar { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search-bar input {
  flex: 1; padding: 0.55rem 0.9rem; font-size: 0.95rem;
  border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
  background: var(--bg);
}
.search-bar button {
  border: 1px solid var(--line); border-radius: 0 999px 999px 0;
  background: var(--brand); color: #fff; padding: 0 1rem; font-size: 1.1rem; cursor: pointer;
}
.search-bar button:hover { background: var(--brand-dark); }

.fav-link { text-decoration: none; font-size: 1.3rem; color: var(--ink); position: relative; padding: 0.3rem 0.5rem; }
.fav-count {
  font-size: 0.68rem; background: var(--brand); color: #fff; border-radius: 999px;
  padding: 0.05rem 0.4rem; vertical-align: super;
}
.fav-count[hidden] { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.5rem; cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }

.main-nav {
  max-width: 1240px; margin: 0 auto; padding: 0 1rem 0.55rem;
  display: flex; gap: 0.25rem; flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem;
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--brand-light), var(--bg)); padding: 2.6rem 0 2rem; text-align: center; }
.hero h1 { font-family: var(--font-serif); font-size: 2.4rem; margin: 0 0 0.2rem; font-weight: 600; }
.hero-tag { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--brand); margin: 0 0 0.6rem; }
.hero-sub { color: var(--ink-soft); max-width: 560px; margin: 0 auto 1.2rem; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; text-decoration: none; color: var(--ink-soft); font-size: 0.88rem;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- sections & masonry ---------- */
.section { padding: 2rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.section-head h2 { font-family: var(--font-serif); font-size: 1.6rem; margin: 0; }

.masonry { columns: 4 240px; column-gap: 1rem; }
.card {
  break-inside: avoid; margin-bottom: 1rem; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  position: relative; border: 1px solid var(--line);
}
.card-media { display: block; position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 0.7rem 0.9rem 0.9rem; }
.card-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.card-title { font-size: 0.98rem; margin: 0.25rem 0; line-height: 1.35; font-weight: 600; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand-dark); }
.card-price { color: var(--brand-dark); font-weight: 700; margin: 0.2rem 0 0; }

.badge {
  position: absolute; top: 0.6rem; left: 0.6rem; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 999px; color: #fff;
}
.badge-trending { background: #b3541e; }
.badge-pick { background: var(--gold); top: 2.4rem; }

.fav-btn {
  position: absolute; top: 0.55rem; right: 0.55rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95); font-size: 1.05rem; cursor: pointer; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.fav-btn.saved, .fav-btn[aria-pressed="true"] { color: #c2274b; border-color: #c2274b; }

/* ---------- ad slots ---------- */
.ad-slot {
  max-width: 1240px; margin: 1.2rem auto; padding: 0 1rem; text-align: center;
}
.ad-label {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.3rem;
}
.ad-body { display: flex; justify-content: center; }
.ad-body > * { max-width: 100%; }

/* ---------- page heads, breadcrumbs ---------- */
.page-head { padding: 1.6rem 0 0.6rem; }
.page-head h1 { font-family: var(--font-serif); font-size: 2rem; margin: 0 0 0.4rem; }
.page-sub { color: var(--ink-soft); max-width: 640px; }
.result-count { color: var(--muted); font-size: 0.9rem; }

.breadcrumbs { background: var(--bg-alt); font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0.5rem 1rem; max-width: 1240px; margin: 0 auto; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.4rem; color: var(--muted); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.pagination { display: flex; gap: 0.4rem; justify-content: center; padding: 1.6rem 0; flex-wrap: wrap; }
.page-link {
  border: 1px solid var(--line); background: var(--card); border-radius: 8px;
  padding: 0.4rem 0.8rem; text-decoration: none; color: var(--ink);
}
.page-link.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { padding: 0.4rem 0.2rem; color: var(--muted); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

.btn {
  display: inline-block; background: var(--card); border: 1px solid var(--brand);
  color: var(--brand-dark); border-radius: 10px; padding: 0.6rem 1.3rem;
  text-decoration: none; font-size: 0.95rem; cursor: pointer;
}
.btn:hover { background: var(--brand-light); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-shop { font-size: 1.05rem; padding: 0.8rem 2rem; font-weight: 700; }
/* ---------- product page ---------- */
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding-top: 1.4rem; padding-bottom: 1rem;
}
.gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--card);
}
.gallery-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.thumb {
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  padding: 0; cursor: pointer; background: var(--card); width: 72px;
}
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.product-info .product-cat { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.3rem; }
.product-info h1 { font-family: var(--font-serif); font-size: 1.9rem; margin: 0 0 0.6rem; line-height: 1.25; }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); margin: 0.4rem 0; }
.product-short { color: var(--ink-soft); }
.product-actions { display: flex; gap: 0.7rem; align-items: center; margin: 1.1rem 0; flex-wrap: wrap; position: relative; }
.product-actions .fav-btn { position: static; width: auto; height: auto; border-radius: 10px; padding: 0.7rem 1.1rem; font-size: 0.95rem; }
.affiliate-note {
  font-size: 0.8rem; color: var(--muted); background: var(--bg-alt);
  border-radius: 10px; padding: 0.6rem 0.9rem;
}
.product-merchant, .product-verified { font-size: 0.88rem; color: var(--ink-soft); }

.share-row { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.share-label { font-size: 0.85rem; color: var(--muted); }
.share-btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 0.35rem 0.85rem; font-size: 0.83rem; text-decoration: none; color: var(--ink-soft); cursor: pointer;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand-dark); }

.product-details { padding-bottom: 1rem; }
.product-details h2 { font-family: var(--font-serif); font-size: 1.35rem; margin: 1.6rem 0 0.6rem; }
.attr-list { display: grid; gap: 0.4rem; }
.attr-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.attr-list dt { font-weight: 600; color: var(--ink-soft); }
.attr-list dd { margin: 0; }

.rich-text { line-height: 1.75; }
.rich-text h2, .rich-text h3 { font-family: var(--font-serif); margin: 1.4em 0 0.5em; }
.rich-text ul, .rich-text ol { padding-left: 1.4rem; }
.rich-text blockquote { border-left: 3px solid var(--brand-light); margin: 1rem 0; padding: 0.4rem 1rem; color: var(--ink-soft); font-style: italic; }

/* ---------- collections & guides ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.collection-card {
  position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); display: block;
}
.collection-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.collection-title {
  display: block; padding: 0.7rem 1rem; font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--ink);
}
.collection-banner { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 1; object-fit: cover; margin-bottom: 1rem; }

.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: block;
}
.guide-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.guide-title { display: block; padding: 0.8rem 1rem 0.2rem; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.guide-excerpt { display: block; padding: 0 1rem 1rem; color: var(--ink-soft); font-size: 0.9rem; }

.article-head h1 { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1.25; margin: 0 0 0.5rem; }
.article-excerpt { font-size: 1.1rem; color: var(--ink-soft); }
.article-meta { font-size: 0.85rem; color: var(--muted); }
.article-image { border-radius: var(--radius); margin: 1rem 0; width: 100%; }
.article { padding-bottom: 2rem; }
.static-page { padding: 1rem 0 2.5rem; }
.static-page h1 { font-family: var(--font-serif); font-size: 2rem; }
.static-page h2 { font-family: var(--font-serif); font-size: 1.4rem; margin-top: 1.6em; }

.search-page { margin: 1rem 0; max-width: none; }
.search-page button { border-radius: 0 999px 999px 0; }

/* ---------- footer ---------- */
.site-footer { background: #2e2420; color: #d9c9b8; margin-top: 2rem; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 2.2rem 1rem;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.6rem;
}
.footer-brand p { margin: 0.5rem 0; font-size: 0.92rem; }
.footer-note { font-size: 0.8rem; color: #a98f7a; }
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a, .footer-social a { color: #d9c9b8; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover, .footer-social a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-bottom { text-align: center; padding: 1rem; font-size: 0.82rem; color: #a98f7a; border-top: 1px solid #453830; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; flex-direction: column; padding-bottom: 0.8rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0.7rem; border-top: 1px solid var(--line); border-radius: 0; }
  .header-inner { flex-wrap: wrap; }
  .search-bar { order: 3; flex-basis: 100%; max-width: none; }
  .hero h1 { font-size: 1.9rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .attr-list > div { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
