/* =========================================================
   RAHAM TEJARAT — Design tokens & base
   Persian (RTL) B2B trading company site
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root {
  /* --- Color: warm near-black + antique gold, grounded in the brand's own key art --- */
  --ink: #0b0a08;
  /* primary dark surface (not pure black) */
  --ink-2: #15130f;
  /* raised dark surface / cards on dark */
  --ink-3: #201c15;
  /* borders on dark */
  --gold: #c9a45c;
  /* primary accent */
  --gold-light: #e8d5a3;
  /* headline highlight, hover */
  --gold-deep: #8a6a34;
  /* pressed / hairlines */
  --parchment: #f4efe3;
  /* light section bg */
  --parchment-2: #e9e0cb;
  /* light card bg */
  --ash: #6d6553;
  /* muted text on light */
  --cream: #ece4d3;
  /* text on dark */
  --cream-dim: #b7ac93;
  /* muted text on dark */
  --good: #6f8f5b;

  --radius-s: 3px;
  --radius-m: 6px;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  direction: rtl;
}

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: var(--parchment);
  color: #1c1912;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Focus visibility (accessibility floor) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* headings */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #151009;
}

.eyebrow {
  font-size: .85rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: .5rem;
}

.section {
  padding-block: clamp(56px, 8vw, 110px);
}

.section--dark {
  background: var(--ink);
  color: var(--cream);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.3;
}

.section-head p {
  color: var(--ash);
  margin-top: .75rem;
  font-size: 1.02rem;
}

.section--dark .section-head p {
  color: var(--cream-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.btn--gold {
  background: var(--gold);
  color: #1a1508;
}

.btn--gold:hover {
  background: var(--gold-light);
}

.btn--ghost {
  border-color: rgba(236, 228, 211, .35);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--outline {
  border-color: var(--gold-deep);
  color: #1a1508;
}

.btn--outline:hover {
  background: var(--parchment-2);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn[disabled],
.btn.is-loading {
  opacity: .65;
  pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 8, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text b {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-text span {
  color: var(--gold);
  font-size: .68rem;
  letter-spacing: .15em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: var(--cream-dim);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding-block: .3rem;
  transition: color .15s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--cream);
}

.main-nav a.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.header-actions .btn {
  padding: .6rem 1.3rem;
  font-size: .88rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--cream-dim);
  border: 1px solid var(--ink-3);
  transition: border-color .15s ease, color .15s ease;
}

.icon-btn:hover {
  color: var(--gold);
  border-color: var(--gold-deep);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  color: var(--cream);
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--cream);
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  padding: .4rem .9rem .4rem .5rem;
}

.user-chip .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1508;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 76px;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--gutter);
    gap: 1.4rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn--ghost span.long {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 7, 5, .96) 0%, rgba(8, 7, 5, .66) 42%, rgba(8, 7, 5, .28) 68%, rgba(8, 7, 5, .55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 64px clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.24;
  color: #fbf6ea;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p.lede {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  gap: .9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  border-inline-start: 1px solid rgba(236, 228, 211, .22);
  padding-inline-start: clamp(20px, 3vw, 40px);
  display: grid;
  gap: 1.4rem;
}

.hero-stats .stat b {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--gold-light);
  font-weight: 800;
}

.hero-stats .stat span {
  color: var(--cream-dim);
  font-size: .88rem;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 44px 32px;
  }

  .hero-stats {
    border-inline-start: none;
    border-top: 1px solid rgba(236, 228, 211, .22);
    padding-inline-start: 0;
    padding-top: 1.4rem;
    grid-auto-flow: column;
    justify-content: space-between;
  }
}

/* =========================================================
   CAPABILITY STRIP
   ========================================================= */
.capabilities {
  background: var(--ink-2);
  color: var(--cream);
  border-bottom: 1px solid var(--ink-3);
}

.capabilities .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cap-item {
  padding: 26px clamp(14px, 2vw, 28px);
  border-inline-start: 1px solid var(--ink-3);
  display: flex;
  align-items: center;
  gap: .9rem;
}

.cap-item:first-child {
  border-inline-start: none;
}

.cap-item svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex: none;
}

.cap-item b {
  display: block;
  font-size: .95rem;
}

.cap-item span {
  display: block;
  font-size: .8rem;
  color: var(--cream-dim);
  margin-top: .15rem;
}

@media (max-width: 860px) {
  .capabilities .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-item:nth-child(3) {
    border-inline-start: none;
  }
}

@media (max-width: 520px) {
  .capabilities .container {
    grid-template-columns: 1fr;
  }

  .cap-item {
    border-inline-start: none !important;
    border-top: 1px solid var(--ink-3);
  }

  .cap-item:first-child {
    border-top: none;
  }
}

/* =========================================================
   CATEGORY MOSAIC (asymmetric, not uniform cards)
   ========================================================= */
.cat-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}

.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: transform .5s ease, opacity .3s ease;
}

.cat-tile:hover img {
  transform: scale(1.06);
  opacity: .68;
}

.cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 5, 4, .92), rgba(6, 5, 4, .15) 65%);
}

.cat-tile-label {
  position: relative;
  z-index: 1;
}

.cat-tile-label b {
  font-size: 1.02rem;
  display: block;
}

.cat-tile-label span {
  font-size: .78rem;
  color: var(--cream-dim);
}

.cat-tile.is-large {
  grid-column: span 3;
  grid-row: span 2;
}

.cat-tile.is-large .cat-tile-label b {
  font-size: 1.3rem;
}

.cat-tile.is-mid {
  grid-column: span 3;
  grid-row: span 1;
}

.cat-tile.is-small {
  grid-column: span 2;
  grid-row: span 1;
}

@media (max-width: 900px) {
  .cat-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }

  .cat-tile.is-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .cat-tile.is-mid,
  .cat-tile.is-small {
    grid-column: span 1;
  }
}

/* =========================================================
   ADVANTAGES (checklist, grounded content)
   ========================================================= */
.advantages {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.advantages-media {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.advantages-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advantages-list {
  display: grid;
  gap: 1.1rem;
}

.advantages-list li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.advantages-list svg {
  width: 20px;
  height: 20px;
  color: var(--gold-deep);
  flex: none;
  margin-top: .2rem;
}

.advantages-list b {
  display: block;
  font-size: 1rem;
}

.advantages-list span {
  color: var(--ash);
  font-size: .92rem;
}

@media (max-width: 860px) {
  .advantages {
    grid-template-columns: 1fr;
  }

  .advantages-media {
    order: -1;
    aspect-ratio: 16/9;
  }
}

/* =========================================================
   PROCESS (genuine sequence -> numbering is earned)
   ========================================================= */
.process {
  background: var(--ink);
  color: var(--cream);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.process-step {
  padding: 26px 18px;
  border-inline-start: 1px solid var(--ink-3);
  position: relative;
}

.process-step:first-child {
  border-inline-start: none;
}

.process-step .num {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 800;
}

.process-step h4 {
  color: var(--cream);
  font-size: .98rem;
  margin-top: .6rem;
}

.process-step p {
  color: var(--cream-dim);
  font-size: .82rem;
  margin-top: .4rem;
}

@media (max-width: 900px) {
  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(odd) {
    border-inline-start: none;
  }

  .process-step {
    border-top: 1px solid var(--ink-3);
  }

  .process-step:nth-child(-n+2) {
    border-top: none;
  }
}

@media (max-width: 560px) {
  .process-track {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-inline-start: none !important;
  }
}

/* =========================================================
   FEATURED PRODUCTS (index) + PRODUCT GRID (listing page)
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card-media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--parchment-2);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 999px;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.product-card-cat {
  font-size: .76rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.product-card-title {
  font-size: .98rem;
  font-weight: 700;
  color: #1c1912;
  line-height: 1.5;
}

.product-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.product-card-title {
  position: relative;
}

.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 800;
  color: #1c1912;
  font-size: .98rem;
}

.price small {
  font-weight: 500;
  color: var(--ash);
  font-size: .76rem;
}

.price.is-quote {
  color: var(--gold-deep);
  font-size: .86rem;
}

.mini-btn {
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--parchment-2);
  padding: .4rem .8rem;
  border-radius: var(--radius-s);
  position: relative;
  z-index: 1;
}

.mini-btn:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

/* =========================================================
   PRODUCTS PAGE — sidebar + toolbar
   ========================================================= */
.catalog {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-m);
  padding: 22px;
  position: sticky;
  top: 96px;
}

.filters h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  border-top: 1px solid var(--parchment-2);
  padding-block: 16px;
}

.filter-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.filter-group legend,
.filter-group .fg-title {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .7rem;
  display: block;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: #3a3527;
  padding-block: .28rem;
}

.filter-check input {
  accent-color: var(--gold-deep);
  width: 16px;
  height: 16px;
}

.filter-check .cnt {
  margin-inline-start: auto;
  color: var(--ash);
  font-size: .78rem;
}

.range-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.range-row input[type="number"] {
  width: 100%;
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-s);
  padding: .5rem .6rem;
  font-size: .85rem;
}

.filters-apply {
  margin-top: 6px;
}

.filters-reset {
  display: block;
  text-align: center;
  font-size: .82rem;
  color: var(--ash);
  margin-top: .7rem;
}

.filters-reset:hover {
  color: var(--gold-deep);
}

.filters-scrim {
  display: none;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-s);
  padding: .6rem .9rem;
  background: #fff;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.search-box svg {
  width: 17px;
  height: 17px;
  color: var(--ash);
  flex: none;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: .9rem;
  background: transparent;
}

.sort-select {
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-s);
  padding: .6rem .9rem;
  font-size: .88rem;
  background: #fff;
  color: #1c1912;
}

.result-count {
  color: var(--ash);
  font-size: .86rem;
}

.filters-toggle {
  display: none;
}

@media (max-width: 900px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    top: auto;
    max-height: 82vh;
    overflow: auto;
    border-radius: 16px 16px 0 0;
    transform: translateY(110%);
    transition: transform .25s ease;
    z-index: 60;
  }

  .filters.is-open {
    transform: translateY(0);
  }

  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--parchment-2);
    border-radius: var(--radius-s);
    padding: .6rem 1rem;
    background: #fff;
    font-size: .88rem;
    font-weight: 700;
  }

  .filters-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 7, .5);
    z-index: 55;
  }

  .filters-scrim.is-open {
    display: block;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid var(--parchment-2);
  font-size: .88rem;
  font-weight: 600;
}

.pagination .is-active {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--ash);
}

.empty-state svg {
  width: 46px;
  height: 46px;
  color: var(--parchment-2);
  margin-bottom: 1rem;
}

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}

.pd-gallery-main {
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--parchment-2);
  margin-bottom: 12px;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 10px;
}

.pd-gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-s);
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: none;
}

.pd-gallery-thumbs button.is-active {
  border-color: var(--gold-deep);
}

.pd-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-breadcrumb {
  font-size: .82rem;
  color: var(--ash);
  margin-bottom: 14px;
}

.pd-breadcrumb a:hover {
  color: var(--gold-deep);
}

.pd-cat {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: .82rem;
}

.pd-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: .5rem;
  line-height: 1.35;
}

.pd-meta {
  display: flex;
  gap: 1.2rem;
  margin-top: .8rem;
  color: var(--ash);
  font-size: .86rem;
}

.pd-price-row {
  margin-top: 22px;
  padding-block: 20px;
  border-top: 1px solid var(--parchment-2);
  border-bottom: 1px solid var(--parchment-2);
}

.pd-price {
  font-size: 1.7rem;
  font-weight: 800;
}

.pd-price small {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ash);
}

.pd-quote-note {
  color: var(--ash);
  font-size: .88rem;
  margin-top: .4rem;
}

.pd-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-actions .btn {
  flex: 1;
  min-width: 180px;
}

.pd-specs {
  margin-top: 28px;
}

.pd-specs h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.pd-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.pd-specs td {
  padding: .6rem 0;
  border-bottom: 1px solid var(--parchment-2);
}

.pd-specs td:first-child {
  color: var(--ash);
  width: 38%;
}

.pd-desc {
  margin-top: 26px;
  color: #3a3527;
  font-size: .96rem;
  line-height: 1.9;
}

@media (max-width: 860px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}

/* Consultation / quote request modal content (rendered via GymUI.Modal) */
.quote-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: .4rem;
}

.field label {
  font-size: .86rem;
  font-weight: 600;
  color: #3a3527;
}

.field input,
.field select,
.field textarea,
my-input {
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-s);
  padding: .75rem .9rem;
  font-size: .92rem;
  width: 100%;
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-hint {
  font-size: .78rem;
  color: var(--ash);
}

/* =========================================================
   AUTH PAGES (login / register)
   ========================================================= */
.auth-shell {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-visual {
  position: relative;
  color: var(--cream);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 6, 4, .95), rgba(7, 6, 4, .4));
}

.auth-visual>* {
  position: relative;
  z-index: 1;
}

.auth-visual blockquote {
  font-size: 1.3rem;
  line-height: 1.7;
  max-width: 26ch;
  color: #fbf6ea;
}

.auth-visual cite {
  display: block;
  margin-top: 1rem;
  color: var(--gold-light);
  font-style: normal;
  font-size: .88rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--parchment-2);
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-bottom: 28px;
}

.auth-tabs button {
  flex: 1;
  padding: .75rem;
  border: none;
  background: #fff;
  font-weight: 700;
  font-size: .92rem;
  color: var(--ash);
}

.auth-tabs button.is-active {
  background: var(--ink);
  color: var(--gold-light);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: .4rem;
}

.auth-card>p {
  color: var(--ash);
  font-size: .92rem;
  margin-bottom: 1.6rem;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-panel-view {
  display: none;
}

.auth-panel-view.is-active {
  display: block;
}

.form-links {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-top: -4px;
}

.form-links a:hover {
  color: var(--gold-deep);
}

.divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ash);
  font-size: .8rem;
  margin-block: 22px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--parchment-2);
}

.otp-note {
  background: var(--parchment);
  border-radius: var(--radius-s);
  padding: .9rem 1rem;
  font-size: .85rem;
  color: var(--ash);
}

@media (max-width: 900px) {
  .auth-visual {
    display: none;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--cream-dim);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-3);
}

.footer-brand p {
  font-size: .9rem;
  margin-top: 14px;
  max-width: 34ch;
}

.footer-col h4 {
  color: var(--cream);
  font-size: .95rem;
  margin-bottom: 1.1rem;
}

.footer-col li {
  margin-bottom: .65rem;
  font-size: .88rem;
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}