/* ============================================================================
   brand-page.css — modern brand landing page (PRD FR-3, UI/UX redesign)
   Scoped under .brand-page. Uses design tokens from hierarchy-refinement
   (--ink-*, --accent-*, --surface-*, --radius-*, --shadow-*, --space-*) so the
   page matches the current site theme (etalase/detailprod/index).
   Product cards themselves come from hierarchy-refinement (.product-list grid
   + .product-home-item) — this file only styles the page chrome.
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.bp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 14px 0 4px;
  font-size: 13px;
  color: var(--ink-tertiary, #525e76);
}
.bp-crumbs a { color: var(--ink-secondary, #344054); text-decoration: none; }
.bp-crumbs a:hover { color: var(--bp-primary, #8a4400); text-decoration: underline; }
.bp-crumbs .sep { color: var(--ink-disabled, #98a2b3); }
.bp-crumbs .here { color: var(--ink-primary, #101828); font-weight: 600; }

/* ---------- Hero ---------- */
.bp-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 16px);
  margin: 10px 0 20px;
  min-height: 320px;
  /* Left-anchored vertical scrim: guarantees dark contrast behind the overlay
     text zone (H1/sub/CTA live in the left ~70%) no matter what the banner
     image contains; right side stays transparent to show the banner art.
     Alphas chosen so white text keeps >= 7.9:1 (WCAG AAA) even over the
     brightest yellow banner (lum ~220): 0.68 alpha is the proven floor. */
  background: linear-gradient(90deg, rgba(16, 10, 6, 0.97) 0%, rgba(16, 10, 6, 0.9) 40%, rgba(16, 10, 6, 0.68) 70%, rgba(16, 10, 6, 0) 84%);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(16, 24, 40, 0.08));
}
.bp-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bp-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 44px 30px;
  min-height: 320px;
  color: #fff;
}
.bp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc48a;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.bp-hero-overlay h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.bp-hero-sub {
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.93);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.bp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Buttons */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md, 8px);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.bp-btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }
.bp-btn-primary { background: var(--bp-primary, #8a4400); color: var(--bp-on-primary, #fff); box-shadow: var(--shadow-sm); }
.bp-btn-primary:hover { background: var(--bp-primary-hover, var(--accent-hover, #a34d00)); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.bp-btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(4px); }
.bp-btn-ghost:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

/* ---------- Trust bar ---------- */
.bp-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}
@media (min-width: 640px) { .bp-trust { grid-template-columns: repeat(4, 1fr); } }
.bp-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-base, #fff);
  border: 1px solid var(--border-base, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(16, 24, 40, 0.04));
}
.bp-trust-item i { font-size: 20px; color: var(--bp-primary, #8a4400); flex-shrink: 0; }
.bp-trust-item b { display: block; font-size: 13px; color: var(--ink-primary, #101828); line-height: 1.3; }
.bp-trust-item span { display: block; font-size: 11.5px; color: var(--ink-tertiary, #525e76); line-height: 1.4; }

/* ---------- Category cards (tag_link_strip / topnav) ---------- */
.bp-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 26px;
}
@media (min-width: 640px) { .bp-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .bp-cats { grid-template-columns: repeat(5, 1fr); } }
.bp-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
  background: var(--surface-base, #fff);
  border: 1px solid var(--border-base, #e5e7eb);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(16, 24, 40, 0.04));
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bp-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 4px 8px rgba(16, 24, 40, 0.08)); border-color: var(--border-strong, #d0d5dd); }
.bp-cat-card:focus-visible { outline: 3px solid var(--bp-subtle, #fff4e6); outline-offset: 2px; }
.bp-cat-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.bp-cat-card .bp-cat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary, #101828);
}
.bp-cat-card .bp-cat-label i { color: var(--bp-primary, #8a4400); font-size: 13px; }
.bp-cat-card--textonly {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  text-align: center;
  padding: 14px;
}

/* ---------- Sticky section nav (scrollspy) ---------- */
.bp-section-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin: 0 0 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-base, #e5e7eb);
  border-radius: 14px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(16, 24, 40, 0.06));
  scrollbar-width: none;
}
.bp-section-nav::-webkit-scrollbar { display: none; }
.bp-section-nav a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary, #344054);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bp-section-nav a:hover { color: var(--bp-primary, #8a4400); background: var(--bp-subtle, #fff4e6); }
.bp-section-nav a.is-active { background: var(--bp-primary, #8a4400); color: var(--bp-on-primary, #fff); border-color: var(--bp-primary, #8a4400); }

/* ---------- Product sections ---------- */
.bp-section { margin: 32px 0 0; scroll-margin-top: 84px; }
.bp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-base, #e5e7eb);
  margin-bottom: 16px;
}
.bp-section-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink-primary, #101828); }
.bp-section-head h2 a { color: inherit; text-decoration: none; }
.bp-section-head h2 a:hover { color: var(--bp-primary, #8a4400); }
.bp-section-count { font-size: 13px; font-weight: 500; color: var(--ink-tertiary, #525e76); margin-left: 8px; }
.bp-seeall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-primary, #8a4400);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 999px;
  background: var(--surface-base, #fff);
  transition: background 0.15s ease, color 0.15s ease;
}
.bp-seeall:hover { background: var(--bp-subtle, #fff4e6); }

/* Product card sizing — the theme (.product-list grid + .product-home-item)
   already handles the modern cards; we only widen thumbnails for the grid. */
.brand-page .product-list { padding: var(--space-lg, 16px) !important; }
.brand-page .product-home-item > a .thumb img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- About / brand story ---------- */
.bp-about {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}
@media (min-width: 720px) { .bp-about { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.bp-about-card {
  padding: 22px;
  background: var(--surface-base, #fff);
  border: 1px solid var(--border-base, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(16, 24, 40, 0.04));
}
.bp-about-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--ink-primary, #101828); }
.bp-about-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-secondary, #344054); white-space: pre-line; }
.bp-about-side { display: grid; gap: 10px; }
.bp-about-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid var(--border-subtle, #eef0f2);
  border-radius: var(--radius-md, 8px);
}
.bp-about-stat i { font-size: 18px; color: var(--bp-primary, #8a4400); }
.bp-about-stat b { display: block; font-size: 14px; color: var(--ink-primary, #101828); }
.bp-about-stat span { font-size: 12px; color: var(--ink-tertiary, #525e76); }

/* ---------- CTA strip ---------- */
.bp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 8px;
  padding: 24px 26px;
  border-radius: var(--radius-lg, 12px);
  color: #fff;
  background: linear-gradient(120deg, #1c130c 0%, var(--bp-secondary, #8a4400) 100%);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(16, 24, 40, 0.08));
}
.bp-cta h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.bp-cta p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }
.bp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .bp-hero-overlay { padding: 32px 22px; min-height: 300px; }
  .bp-hero-sub { font-size: 14px; }
  .bp-section-head h2 { font-size: 18px; }
  /* Mobile overlay text wraps full width — darken the whole hero width
     so no text touches the transparent right edge. */
  .bp-hero { background: linear-gradient(90deg, rgba(16, 10, 6, 0.96) 0%, rgba(16, 10, 6, 0.92) 60%, rgba(16, 10, 6, 0.7) 100%); }
}

/* Desktop: brand pages are wide landing pages — collapse the category
   mega-menu and let the main content span the full width (mirrors the
   legacy brand-responsive.css behavior, scoped to this page). */
@media (min-width: 1100px) {
  .brand-page nav.main-nav .category-menu,
  .brand-page nav.main-nav .marketplace-wrapper,
  .brand-page nav.main-nav .nav-ads-wrapper,
  .brand-page nav.main-nav > div > ul {
    display: none;
  }
  .brand-page main div.main-wrapper {
    padding-left: 0 !important;
  }
}
