@import "tailwindcss";
@import "bootstrap/dist/css/bootstrap.rtl.min.css";

@layer base {
  button:not(:disabled),
  [role="button"]:not(:disabled) {
    cursor: pointer;
  }
}

:root {
  --court: #1a4a38;
  --court-deep: #10281f;
  --sage: #2f6b52;
  --paper: #f3f0e8;
  --paper-2: #fffcf7;
  --ink: #142018;
  --muted: #5c665e;
  --line: color-mix(in oklab, var(--ink) 12%, transparent);
  --accent: #c8e64e;
  --danger: #9b2c2c;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -28px rgb(20 32 24 / 0.55);
  --font: "Vazirmatn", system-ui, sans-serif;
  --bs-primary: #1a4a38;
  --bs-primary-rgb: 26, 74, 56;
  --bs-body-font-family: var(--font);
  --bs-body-color: #142018;
  --bs-body-bg: #f3f0e8;
  --bs-border-radius: 10px;
  --bs-link-color: #1a4a38;
  --bs-link-hover-color: #10281f;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}

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

a {
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell main {
  flex: 1;
}

.topbar {
  background: var(--court-deep);
  color: #e8efe9;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.topbar a {
  color: #e8efe9;
}

.topbar a:hover {
  color: var(--accent);
}

.navbar-trainus {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand-mark:hover {
  color: var(--court);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--court);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.brand-name strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-name span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.nav-link-fa {
  color: var(--ink) !important;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
}

.nav-link-fa.is-active,
.nav-link-fa.active,
.nav-link-fa:hover {
  background: color-mix(in oklab, var(--court) 10%, transparent);
  color: var(--court) !important;
}

.cart-chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.cart-chip .badge {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  background: var(--court);
}

.btn-court {
  --bs-btn-color: #f7faf7;
  --bs-btn-bg: var(--court);
  --bs-btn-border-color: var(--court);
  --bs-btn-hover-bg: var(--court-deep);
  --bs-btn-hover-border-color: var(--court-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--court-deep);
  --bs-btn-active-border-color: var(--court-deep);
  --bs-btn-active-color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-height: 44px;
}

.btn-ghost {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--court);
  --bs-btn-hover-color: var(--court);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-height: 44px;
}

.hero {
  position: relative;
  min-height: min(68vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--court-deep);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(16 40 31 / 0.18) 0%,
    rgb(16 40 31 / 0.45) 42%,
    rgb(16 40 31 / 0.88) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #f6f3ea;
  padding: 4.5rem 0 3.2rem;
}

.hero-copy .eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero-copy h1 {
  color: #fffcf7;
  font-size: clamp(2rem, 4vw + 1rem, 3.6rem);
  max-width: 16ch;
  line-height: 1.2;
}

.hero-copy p {
  max-width: 42ch;
  color: #d7e0d8;
  font-size: 1.05rem;
}

.trust-row {
  margin-top: -2.2rem;
  position: relative;
  z-index: 2;
}

.trust-card,
.surface-card,
.product-card,
.service-card,
.cat-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trust-card {
  padding: 1.15rem 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trust-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.icon-blob {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--court) 12%, white);
  color: var(--court);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.section {
  padding: 4.2rem 0;
}

.section-kicker {
  color: var(--sage);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.product-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -24px rgb(20 32 24 / 0.6);
}

.product-card .thumb {
  aspect-ratio: 1;
  background: #ece7db;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-card .body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card .brand {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.product-card h3 {
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.45;
}

.price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--court);
}

.price s {
  color: var(--muted);
  font-weight: 500;
  margin-inline-start: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--court-deep);
}

.pill-sale {
  background: #f3d3c8;
  color: var(--danger);
}

.cat-card {
  overflow: hidden;
  display: block;
  color: inherit;
  height: 100%;
}

.cat-card .media {
  height: 180px;
  overflow: hidden;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card .pad {
  padding: 1rem 1.1rem 1.2rem;
}

.service-card {
  padding: 1.35rem 1.25rem;
  height: 100%;
}

.split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.site-footer {
  background: var(--court-deep);
  color: #d5ddd6;
  padding: 3rem 0 1.4rem;
}

.site-footer h3,
.site-footer strong {
  color: #fffcf7;
}

.site-footer a {
  color: #d5ddd6;
}

.site-footer a:hover {
  color: var(--accent);
}

.gallery-main {
  background: #ece7db;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-thumbs button {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ece7db;
  width: 72px;
  height: 72px;
}

.gallery-thumbs button.active {
  border-color: var(--court);
  outline: 2px solid var(--court);
  outline-offset: 2px;
}

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

.spec-table {
  width: 100%;
}

.spec-table th,
.spec-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

.filter-chip {
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  min-height: 44px;
}

.filter-chip.active {
  background: var(--court);
  color: #fff;
  border-color: var(--court);
}

.page-hero {
  background:
    linear-gradient(180deg, rgb(16 40 31 / 0.55), rgb(16 40 31 / 0.72)),
    center / cover no-repeat;
  color: #fffcf7;
  padding: 4.5rem 0 3rem;
}

.page-hero h1 {
  color: #fffcf7;
}

.search-field {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  min-height: 48px;
  background: #fff;
}

.search-field:focus {
  border-color: var(--court);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--court) 18%, transparent);
  outline: none;
}

.qty-box {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-box button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
}

.qty-box span {
  min-width: 2.2rem;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.toast-cart {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: 1rem;
  z-index: 40;
  background: var(--court-deep);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(16 40 31 / 0.42);
}

.mobile-panel {
  background: var(--paper-2);
  width: min(84vw, 340px);
  height: 100%;
  padding: 1.2rem;
  margin-inline-start: auto;
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card .thumb img {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 62vh;
  }
  .hero-copy {
    padding-top: 5.5rem;
  }
}
