/* ==========================================================================
   My Ethnic Pride — modern stylesheet (2024 rebuild)
   Pure CSS, no external fonts or frameworks: fully offline-safe.
   Palette drawn from the original 2001 logo: red / gold on near-black.
   ========================================================================== */

:root {
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #21232b;
  --ink-soft: #565a66;
  --ink-faint: #8a8e99;
  --line: #e4e0d6;
  --dark: #13151b;
  --dark-soft: #1d2029;
  --red: #c8102e;
  --red-dark: #a30d26;
  --gold: #e9b41f;
  --gold-soft: #f7e3ad;
  --green: #169b62;
  --blue: #2f6db5;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(19, 21, 27, .06), 0 6px 18px rgba(19, 21, 27, .07);
  --shadow-lift: 0 2px 4px rgba(19, 21, 27, .08), 0 14px 32px rgba(19, 21, 27, .12);
  --maxw: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #13151b; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: linear-gradient(180deg, #16181f 0%, #101218 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
}

.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand img { width: 210px; height: auto; border-radius: 6px; }
.brand:hover { text-decoration: none; }

.site-nav { margin-left: auto; }
.site-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: block; color: #e8e6df; font-weight: 600; font-size: .95rem;
  padding: 9px 13px; border-radius: 8px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .09); text-decoration: none; }
.site-nav .current > a { color: var(--gold); }

.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: " ▾"; font-size: .7em; opacity: .75; }
.site-nav .sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 215px; max-height: 70vh; overflow: auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lift);
  display: none; z-index: 60;
}
.site-nav .has-sub:hover .sub,
.site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .sub li a { color: var(--ink); font-weight: 500; padding: 8px 10px; border-radius: 7px; }
.site-nav .sub li a:hover { background: #f2efe8; color: var(--red); }

.nav-toggle {
  display: none; margin-left: auto;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
}

@media (max-width: 960px) {
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; margin: 0; padding: 8px 0 14px; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 11px 10px; border-radius: 8px; }
  .site-nav .sub {
    position: static; display: block; box-shadow: none; border: 0;
    background: transparent; max-height: none; padding: 0 0 6px 18px;
    background: transparent;
  }
  .site-nav .sub li a { color: #cfd2da; }
  .site-nav .sub li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .header-inner { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(200, 16, 46, .32), transparent 60%),
    radial-gradient(900px 380px at 8% 115%, rgba(233, 180, 31, .2), transparent 55%),
    linear-gradient(180deg, #171a22 0%, #101218 100%);
  color: #fff;
  padding: 58px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.hero .accent { color: var(--gold); }
.hero p.lede { color: #c9ccd6; font-size: 1.08rem; margin: 0 0 26px; max-width: 55ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid rgba(255,255,255,.12); }
.hero-note { margin-top: 14px; color: #9aa0ad; font-size: .85rem; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 46px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 11px 22px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(200, 16, 46, .3); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #1d1405; box-shadow: 0 6px 16px rgba(233, 180, 31, .28); }
.btn-gold:hover { background: #f2c33c; color: #1d1405; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .55); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-ghost { background: #f1ede4; color: var(--ink); }
.btn-ghost:hover { background: #e8e3d6; color: var(--ink); }

/* --------------------------------------------------------------------------
   Sections / generic blocks
   -------------------------------------------------------------------------- */

.section { padding: 52px 0; }
.section-tight { padding: 30px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2, .section h2.center { font-size: 1.75rem; letter-spacing: -.4px; margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.eyebrow.gold { color: #b58610; }

.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: 2rem; letter-spacing: -.5px; margin: 0 0 10px; }
.page-head .lede { color: var(--ink-soft); max-width: 70ch; margin: 0; }

.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .87rem; color: var(--ink-faint); }
.breadcrumbs li + li::before { content: "›"; margin: 0 7px; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); font-weight: 600; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: block; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.card h3 { margin: 0 0 6px; font-size: 1.06rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.card .flag { font-size: 1.9rem; line-height: 1; margin-bottom: 10px; display: block; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .88rem; color: var(--red); }

/* Category / country tiles with image */
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: block; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); text-decoration: none; }
.tile .tile-media { aspect-ratio: 4 / 3; background: #eceae3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile .tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile .tile-body { padding: 15px 16px 17px; }
.tile h3 { margin: 0 0 4px; font-size: 1.02rem; }
.tile p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.product-media {
  aspect-ratio: 5 / 4; background: #f0eee8;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-media .zoomable { cursor: zoom-in; }

.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px;
  background: linear-gradient(145deg, #edeae2 0%, #e2ded2 100%);
  color: var(--ink-faint);
}
.ph .ph-code { font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: #7d818c; word-break: break-word; }
.ph .ph-note { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }

.product-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { margin: 0; font-size: .99rem; line-height: 1.35; }
.product-body .desc { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; flex: 1; }

.chip {
  align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; color: var(--red-dark); background: #fbe9ec;
  border: 1px solid #f2c9d0; border-radius: 999px; padding: 3px 10px;
}
.chip.gold { color: #8a6a08; background: #fdf4d7; border-color: #f0dfa4; }

.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.price .unit { font-size: .78rem; color: var(--ink-faint); font-weight: 600; }
.btn-order {
  font-size: .84rem; font-weight: 700; padding: 8px 14px; border-radius: 8px;
  background: var(--dark); color: #fff; white-space: nowrap;
}
.btn-order:hover { background: var(--red); color: #fff; text-decoration: none; }

/* --------------------------------------------------------------------------
   Notice / callout blocks
   -------------------------------------------------------------------------- */

.notice {
  background: #fdf6e3; border: 1px solid #f0e2b6; border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm); padding: 16px 20px; color: #574310; font-size: .95rem;
}
.notice a { color: var(--red-dark); font-weight: 700; }
.notice.dark { background: #eef4fb; border-color: #c9dcf2; border-left-color: var(--blue); color: #1d3a5f; }
.notice.green { background: #edf7f2; border-color: #c4e6d6; border-left-color: var(--green); color: #14523a; }

.order-note { margin: 26px auto 0; max-width: 860px; }

/* --------------------------------------------------------------------------
   Tables (catalog, size guides)
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: #f2efe8; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td code { background: #f4f1ea; border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: .82rem; font-weight: 700; color: var(--red-dark); }
table.data tbody tr:hover { background: #fbfaf6; }

/* --------------------------------------------------------------------------
   Feature list / why-us / steps
   -------------------------------------------------------------------------- */

.feature { text-align: center; padding: 10px; }
.feature .ico {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red) 0%, #e05a3a 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(200, 16, 46, .25);
}
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* --------------------------------------------------------------------------
   FAQ (details/summary)
   -------------------------------------------------------------------------- */

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-list summary::after { content: "+"; font-size: 1.3rem; color: var(--red); font-weight: 700; transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 20px 18px; color: var(--ink-soft); margin: 0; }
.faq-list summary:hover { background: #fbfaf6; }

/* --------------------------------------------------------------------------
   Page CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, #171a22 0%, #23202b 60%, #2a1a1e 100%);
  color: #fff; border-radius: var(--radius); padding: 38px 34px; text-align: center;
  box-shadow: var(--shadow-lift);
}
.cta-band h2, .cta-band h2 { margin: 0 0 10px; font-size: 1.6rem; }
.cta-band p { color: #c3c7d1; margin: 0 0 22px; }
.cta-band .hero-cta { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--dark); color: #b9bdc7; margin-top: 64px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; padding: 46px 0 30px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b9bdc7; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer .about-blurb { font-size: .92rem; line-height: 1.65; }
.footer-brand img { width: 190px; border-radius: 6px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #8b8f9a;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Catalog page helpers
   -------------------------------------------------------------------------- */

.catalog-cols { columns: 3; column-gap: 34px; }
@media (max-width: 900px) { .catalog-cols { columns: 2; } }
@media (max-width: 560px) { .catalog-cols { columns: 1; } }
.catalog-cols ul { list-style: none; margin: 0 0 20px; padding: 0; break-inside: avoid-column; }
.catalog-cols li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; break-inside: avoid; }
.catalog-cols li code { font-weight: 700; color: var(--red-dark); margin-right: 8px; font-size: .82rem; }
.catalog-cols li .item-price { color: var(--ink-faint); font-size: .8rem; float: right; }

/* --------------------------------------------------------------------------
   Misc utilities
   -------------------------------------------------------------------------- */

.muted { color: var(--ink-faint); }
.small { font-size: .85rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.country-link-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.country-link-list a {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; font-size: .92rem; color: var(--ink);
  box-shadow: var(--shadow);
}
.country-link-list a:hover { border-color: var(--red); color: var(--red); text-decoration: none; transform: translateY(-1px); }

figure.guide-figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
figure.guide-figure img { border-radius: 8px; margin: 0 auto; }
figure.guide-figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.breadcrumb-adj { margin-bottom: 6px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10, 11, 15, .86);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(920px, 94vw); max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 16px; right: 22px; font-size: 2rem; color: #fff;
  background: none; border: 0; cursor: pointer; line-height: 1;
}