/* ==========================================================================
   Mahfooz Trading — site styles
   Playfair Display (display) + Manrope (UI)
   ========================================================================== */

:root {
  --black: #0b0b0b;
  --charcoal: #171717;
  --gold: #c79a3b;
  --gold-champagne: #e5c77a;
  --gold-deep: #8b641f;
  --ivory: #f5f1e8;
  --ivory-deep: #ebe4d4;
  --white: #ffffff;
  --slate: #666666;
  --slate-soft: #8a8a8a;
  --line: rgba(199, 154, 59, 0.28);
  --line-strong: rgba(199, 154, 59, 0.55);
  --gold-grad: linear-gradient(90deg, #a87524, #e5c77a, #b98229);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 5.5rem;
  --container: 72rem;
  --container-wide: 80rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px rgba(11, 11, 11, 0.08);
  --radius: 2px;
  --focus: 0 0 0 2px var(--black), 0 0 0 4px var(--gold);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2rem, var(--container-wide));
  margin-inline: auto;
}

.gold-rule {
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold-grad);
  border: 0;
  margin: 1.25rem 0;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.ornament span {
  height: 1px;
  width: 2.5rem;
  background: var(--gold-grad);
}

.ornament i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head.center,
.center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--slate);
}

.muted {
  color: var(--slate);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

code {
  font-size: 0.88em;
  color: var(--gold-deep);
}

.placeholder-note {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--slate-soft);
  font-style: italic;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 280ms var(--ease), background 280ms var(--ease),
    color 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
  will-change: transform;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(199, 154, 59, 0.18);
}

.btn-primary:hover {
  background: var(--gold-champagne);
  border-color: var(--gold-champagne);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--gold);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--gold-champagne);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Header ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: height 320ms var(--ease), background 320ms var(--ease),
    border-color 320ms var(--ease);
}

.site-header.is-scrolled {
  height: 4.35rem;
  background: rgba(11, 11, 11, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--container-wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 3.35rem;
  width: auto;
  mix-blend-mode: screen;
  transition: height 320ms var(--ease);
}

.site-header.is-scrolled .logo img {
  height: 2.7rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.82);
  position: relative;
  padding: 0.35rem 0;
  transition: color 240ms var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-grad);
  transition: width 280ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-champagne);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--gold-champagne);
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11, 11, 11, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 380ms var(--ease);
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ivory);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(199, 154, 59, 0.15);
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--gold-champagne);
}

.mobile-nav .btn {
  margin-top: 1.75rem;
  align-self: flex-start;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.35) 0%, rgba(11, 11, 11, 0.72) 58%, rgba(11, 11, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0.2) 55%, rgba(11, 11, 11, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
  max-width: 46rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 500;
}

.hero p {
  max-width: 38rem;
  color: rgba(245, 241, 232, 0.82);
  font-size: 1.02rem;
  margin: 0.4rem 0 1.75rem;
}

.hero-gold-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-grad);
  opacity: 0.7;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* Trust strip -------------------------------------------------------------- */

.trust {
  background: var(--black);
  color: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.trust-item {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(199, 154, 59, 0.12);
  border-bottom: 1px solid rgba(199, 154, 59, 0.12);
}

.trust-item:nth-child(2n) {
  border-right: 0;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
  margin-bottom: 0.7rem;
}

.trust-item h3 {
  color: var(--gold-champagne);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.trust-item p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.68);
}

@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-item {
    padding: 1.75rem 1.25rem;
    border-bottom: 0;
  }

  .trust-item:nth-child(2n) {
    border-right: 1px solid rgba(199, 154, 59, 0.12);
  }

  .trust-item:last-child {
    border-right: 0;
  }
}

/* About -------------------------------------------------------------------- */

.about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.est-mark {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.est-mark strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.est-mark span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-media {
  position: relative;
  min-height: 18rem;
  background: var(--charcoal);
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

.crest-watermark {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: min(58%, 18rem);
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
  }

  .about-media,
  .about-media img {
    min-height: 28rem;
  }
}

/* Categories --------------------------------------------------------------- */

.categories {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.category-card {
  position: relative;
  min-height: 16.5rem;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease);
  z-index: -2;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.05) 10%, rgba(11, 11, 11, 0.82) 100%);
  z-index: -1;
  transition: background 320ms var(--ease);
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-body {
  padding: 1.4rem 1.25rem 1.3rem;
  width: 100%;
}

.category-body h3 {
  color: var(--white);
  font-size: 1.45rem;
}

.category-body p {
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.9rem;
  margin: 0.35rem 0 0.9rem;
}

.category-card .text-link {
  color: var(--gold-champagne);
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.text-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.text-link::after {
  content: "→";
  transition: transform 240ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Why ---------------------------------------------------------------------- */

.why {
  background: var(--ivory);
}

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  background: var(--white);
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(11, 11, 11, 0.06);
  box-shadow: var(--shadow);
  transition: border-color 280ms var(--ease), transform 280ms var(--ease);
}

.why-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.why-card .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.7rem;
}

.why-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.why-card p {
  margin-top: 0.45rem;
  color: var(--slate);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Brands ------------------------------------------------------------------- */

.brands {
  background: var(--white);
}

.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.brand-slot {
  min-height: 6.5rem;
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--slate-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.brand-slot img {
  max-height: 3.2rem;
  width: auto;
  margin: 0 auto;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.7;
  transition: filter 280ms var(--ease), opacity 280ms var(--ease);
}

.brand-slot:hover img {
  filter: grayscale(0) sepia(0.25) saturate(1.4);
  opacity: 1;
}

@media (min-width: 800px) {
  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Serve -------------------------------------------------------------------- */

.serve {
  background: var(--charcoal);
  color: var(--ivory);
}

.serve .section-head h2,
.serve .section-head p {
  color: var(--ivory);
}

.serve .section-head p {
  color: rgba(245, 241, 232, 0.72);
}

.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(199, 154, 59, 0.18);
  border: 1px solid rgba(199, 154, 59, 0.18);
}

.serve-item {
  background: var(--charcoal);
  padding: 1.35rem 1.15rem;
}

.serve-item h3 {
  color: var(--gold-champagne);
  font-size: 1.2rem;
}

.serve-item p {
  margin-top: 0.35rem;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .serve-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Wholesale CTA ------------------------------------------------------------ */

.wholesale-cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--ivory);
  text-align: center;
  border-block: 1px solid var(--line);
}

.wholesale-cta .crest-watermark {
  left: 50%;
  right: auto;
  bottom: -30%;
  width: min(70%, 28rem);
  transform: translateX(-50%);
  opacity: 0.08;
}

.wholesale-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.wholesale-cta p {
  max-width: 32rem;
  margin: 0.85rem auto 1.6rem;
  color: rgba(245, 241, 232, 0.78);
}

.wholesale-cta .cta-actions {
  justify-content: center;
}

/* Contact ------------------------------------------------------------------ */

.contact {
  background: var(--ivory);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.contact-list dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.contact-list dd {
  color: var(--charcoal);
  margin-top: 0.2rem;
}

.phone-stack {
  display: grid;
  gap: 0.35rem;
}

.phone-stack a {
  color: var(--charcoal);
  font-weight: 600;
}

.phone-stack a:hover {
  color: var(--gold-deep);
}

.map-wrap {
  min-height: 22rem;
  background: var(--charcoal);
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: stretch;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 100%;
    height: 100%;
  }
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--black);
  color: rgba(245, 241, 232, 0.78);
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand img {
  height: 3.6rem;
  width: auto;
  mix-blend-mode: screen;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.92rem;
}

.footer-col h3 {
  color: var(--gold-champagne);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-col a:not(.btn),
.footer-col li {
  display: block;
  padding: 0.22rem 0;
  font-size: 0.92rem;
}

.footer-col .btn {
  margin-top: 0.35rem;
}

.footer-col a:hover {
  color: var(--gold-champagne);
}

.footer-base {
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(199, 154, 59, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--slate-soft);
}

.footer-base a:hover {
  color: var(--gold-champagne);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  }
}

/* Products page ------------------------------------------------------------ */

.page-hero {
  background: var(--black);
  color: var(--ivory);
  padding: 4rem 0 3.2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero p {
  max-width: 34rem;
  color: rgba(245, 241, 232, 0.75);
}

.toolbar {
  position: sticky;
  top: 4.35rem;
  z-index: 40;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 11, 11, 0.06);
  padding: 0.9rem 0;
}

.toolbar-inner {
  display: grid;
  gap: 0.85rem;
}

.search {
  position: relative;
}

.search input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(11, 11, 11, 0.14);
  background: var(--white);
  padding: 0.6rem 0.9rem 0.6rem 2.5rem;
  font-size: 0.95rem;
}

.search svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--slate);
  fill: none;
}

.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
}

.filter-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(11, 11, 11, 0.12);
  background: var(--white);
  color: var(--charcoal);
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--black);
  color: var(--gold-champagne);
  border-color: var(--black);
}

.results-meta {
  font-size: 0.85rem;
  color: var(--slate);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(11, 11, 11, 0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardIn 380ms var(--ease) both;
}

.product-card .media {
  background: var(--ivory-deep);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card .body {
  padding: 1.15rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

.product-card h3 {
  font-size: 1.3rem;
}

.product-card .desc {
  color: var(--slate);
  font-size: 0.9rem;
  flex: 1;
}

.product-card .btn {
  margin-top: 0.85rem;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--line-strong);
  background: var(--white);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .toolbar-inner {
    grid-template-columns: 22rem 1fr auto;
    align-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Modal -------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.72);
}

.modal-panel {
  position: relative;
  width: min(100%, 36rem);
  max-height: min(92vh, 46rem);
  overflow: auto;
  background: var(--ivory);
  padding: 1.5rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modal-panel h2 {
  font-size: 1.8rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--black);
  font-size: 1.4rem;
  line-height: 1;
}

.selected-product {
  margin: 0.7rem 0 1rem;
  padding: 0.7rem 0.8rem;
  border-left: 2px solid var(--gold);
  background: var(--white);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 2rem;
  }
}

/* Legal / 404 -------------------------------------------------------------- */

.legal,
.error-page {
  background: var(--ivory);
  min-height: 60vh;
}

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  line-height: 1;
}

.error-page h1 {
  margin: 0.4rem 0 0.8rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal .prose {
  max-width: 44rem;
}

.legal .prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}

.legal .prose h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.4rem 0 0.45rem;
}

.legal .prose a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0.4rem 0 1.5rem;
}

.legal .prose p,
.legal .prose li {
  color: var(--slate);
  margin-bottom: 0.8rem;
}

.legal .prose ul {
  padding-left: 1.1rem;
  list-style: disc;
}

/* Reveal ------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Loading skeleton --------------------------------------------------------- */

.skeleton {
  background: linear-gradient(90deg, #ebe4d4 25%, #f5f1e8 50%, #ebe4d4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  min-height: 18rem;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Reduced motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Tiny screens ------------------------------------------------------------- */

@media (max-width: 374px) {
  .hero h1 {
    font-size: 2.05rem;
  }

  .btn {
    width: 100%;
  }

  .trust-grid,
  .serve-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }
}
