/* Site header — store-style navigation (RTL) */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazir-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazir-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #0066ff;
  --color-primary-hover: #0052cc;
  --color-secondary: #f8f8f8;
  --color-secondary-hover: #f0f0f0;
  --color-primary-gradient-start: #e6f0ff;
  --color-primary-gradient-end: #cce0ff;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --shadow-soft: 0 12px 40px rgba(0, 102, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.landing-section-accent {
  display: block;
  width: clamp(7rem, 14vw, 10.5rem);
  height: clamp(0.45rem, 0.8vw, 0.6rem);
  margin: 0 auto clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #000 0%,
    #000 74%,
    var(--color-primary) 74%,
    var(--color-primary) 100%
  );
}

:root {
  --font-sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: #1a1a1a;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: none;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.site-header__menu-toggle:hover {
  opacity: 0.7;
}

.site-header__menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-header__logo-img {
  display: block;
  height: 6rem;   /* adjust to taste */
  width: auto;
}
.site-header__logo:hover {
  opacity: 0.75;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-header__nav-link:hover {
  color: #000;
}

.site-header__nav-link--active {
  color: var(--color-primary);
  font-weight: 700;
}

.site-header__nav-link svg {
  width: 0.65rem;
  height: 0.65rem;
  opacity: 0.6;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.site-header__search-wrap {
  position: relative;
}

.site-header__cart-wrap {
  position: relative;
}

.site-header__cart-toggle.is-active {
  color: var(--color-primary);
}

.site-header__search-toggle.is-active {
  color: var(--color-primary);
}

.site-header__search-popover {
  position: fixed;
  z-index: 1100;
  width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.site-header__search-popover__title {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #111;
}

.site-header__search-popover input[type="search"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: #222;
}

.site-header__search-popover input[type="search"]:focus {
  outline: 2px solid rgba(0, 102, 255, 0.25);
  border-color: var(--color-primary);
}

.site-header__search-popover__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.site-header__search-popover__apply {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.25rem;
  border: none;
  background: none;
  color: #222;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.site-header__icon-btn:hover {
  opacity: 0.65;
}

.site-header__icon-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.site-header__icon-btn.site-header__cart-toggle {
  color: #111;
}

.site-header__icon-btn.site-header__cart-toggle .site-header__cart-icon {
  width: 1.45rem;
  height: 1.45rem;
  stroke: currentColor;
  fill: none;
}

.site-header__icon-btn.site-header__cart-toggle .site-header__cart-icon circle {
  fill: currentColor;
  stroke: none;
}

.site-header__icon-btn[aria-label="Shopping cart"] {
  color: #111;
}

.site-header__icon-btn[aria-label="Shopping cart"] svg {
  stroke: currentColor;
  fill: none;
}

.site-header__cart-badge {
  position: absolute;
  bottom: -0.35rem;
  right: -0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 0.35rem;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.site-header__cart-popover {
  position: fixed;
  z-index: 1100;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.site-header__cart-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.site-header__cart-popover__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #111;
}

.site-header__cart-popover__count {
  color: #666;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-header__cart-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 16rem;
  overflow: auto;
}

.site-header__cart-popover__item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f1f1;
}

.site-header__cart-popover__item:last-child {
  border-bottom: 0;
}

.site-header__cart-popover__thumb {
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #f3f4f6;
}

.site-header__cart-popover__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__cart-popover__thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
}

.site-header__cart-popover__thumb-placeholder svg {
  width: 1.2rem;
  height: 1.2rem;
}

.site-header__cart-popover__copy {
  min-width: 0;
}

.site-header__cart-popover__name {
  display: block;
  color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__cart-popover__name:hover {
  text-decoration: underline;
}

.site-header__cart-popover__variant,
.site-header__cart-popover__meta {
  display: block;
  margin-top: 0.15rem;
  color: #666;
  font-size: 0.74rem;
}

.site-header__cart-popover__more {
  margin: 0.35rem 0 0;
  color: #666;
  font-size: 0.76rem;
}

.site-header__cart-popover__pv-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ececec;
  color: #2563eb;
  font-size: 0.84rem;
}

.site-header__cart-popover__pv-total strong {
  color: #2563eb;
  font-size: 0.92rem;
}

.site-header__cart-popover__pv-total strong span {
  font-size: 0.74rem;
  font-weight: 600;
}

.site-header__cart-popover__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ececec;
  font-size: 0.84rem;
}

.site-header__cart-popover__subtotal strong {
  color: #111;
  font-size: 0.92rem;
}

.site-header__cart-popover__subtotal strong span {
  font-size: 0.74rem;
  font-weight: 600;
}

.site-header__cart-popover__empty {
  margin: 0;
  color: #666;
  font-size: 0.84rem;
}

.site-header__cart-popover__actions {
  margin-top: 0.85rem;
}

.site-header__cart-popover__view-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header__cart-popover__view-cart:hover {
  opacity: 0.92;
}

/* Mobile menu drawer */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

.site-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.site-menu__overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.site-menu.is-open .site-menu__overlay {
  opacity: 1;
}

.site-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 66.666vw;
  max-width: 24rem;
  height: 100%;
  padding: 1.25rem 1.5rem 2rem;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.site-menu.is-open .site-menu__panel {
  transform: translateX(0);
}

.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.site-menu__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.site-menu__close:hover {
  opacity: 0.65;
}

.site-menu__close svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.25rem 1.25rem;
}

.site-menu__link {
  display: block;
  padding: 0.85rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-menu__link:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

body.site-menu-open {
  overflow: hidden;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-landing .site-main {
  max-width: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Landing hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: visible;
  padding-bottom: 0.5rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "content media";
  align-items: stretch;
  column-gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  overflow: visible;
}

.hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30rem;
  min-width: 0;
}

.hero__intro {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero__media {
  grid-area: media;
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: stretch;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.hero__stats {
  position: relative;
  z-index: 3;
  width: calc(100% + 2.5rem + 42%);
  margin-inline-end: calc(-2.5rem - 42%);
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__badge-icon {
  width: 1rem;
  height: 1rem;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__title-row {
  margin-bottom: 1.25rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.hero__title-line {
  display: block;
}

.hero__title-accent-row {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.75rem;
}

.hero__title-phrase {
  color: #000;
}

.hero__title-brand {
  color: var(--color-primary);
}

.hero__title-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(2.5rem, 5vw, 2.5rem);
  height: clamp(2.5rem, 5vw, 2.5rem);
  color: var(--color-primary);
}

.hero__description {
  max-width: 34rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero__btn:hover {
  transform: translateY(-1px);
}

.hero__btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 144, 229, 0.28);
}

.hero__btn--primary:hover {
  background: var(--color-primary-hover);
}

.hero__btn--secondary {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.hero__btn-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}

.hero__btn-icon--solid {
  background: rgba(255, 255, 255, 0.18);
}

.hero__btn-icon--outline {
  background: rgba(30, 144, 229, 0.08);
}

.hero__btn-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.hero__btn-icon--outline svg {
  fill: currentColor;
  stroke: none;
}

.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.hero__feature + .hero__feature {
  border-inline-start: 1px solid var(--color-border);
}

.hero__feature-icon {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #222;
}

.hero__feature-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.4;
}

.hero__feature-text strong {
  color: #000;
  font-size: 0.80rem;
  font-weight: 700;
}

.hero__feature-text span {
  color: var(--color-text-muted);
  font-size: 0.70rem;
}

.hero__image {
  display: block;
  width: 100%;
  height: 30rem;
  object-fit: cover;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-card);
}

.hero__stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 1.35rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--color-secondary);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.hero__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0 0.75rem;
}

.hero__stat + .hero__stat {
  border-inline-start: 1px solid #e0e0e0;
}

.hero__stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  background: none;
  color: #222;
}

.hero__stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__stat-value {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.hero__stat-label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .hero {
    padding-bottom: 1rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "features"
      "stats";
    row-gap: 0.75rem;
    column-gap: 0;
    padding: 1rem 1rem 1.5rem;
  }

  .hero__content {
    display: contents;
    min-height: 0;
  }

  .hero__intro {
    grid-area: intro;
    text-align: center;
  }

  .hero__media {
    grid-area: media;
  }

  .hero__features {
    grid-area: features;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.25rem 0;
  }

  .hero__stats {
    grid-area: stats;
    width: 100%;
    max-width: none;
    margin: 0.25rem 0 0;
    margin-inline-end: 0;
  }

  .hero__badge {
    margin-inline: auto;
    margin-bottom: 1rem;
  }

  .hero__title-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .hero__title-accent-row {
    justify-content: center;
  }

  .hero__title-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .hero__description {
    max-width: none;
    margin-inline: auto;
    line-height: 1.75;
  }

  .hero__image {
    height: auto;
    min-height: 12rem;
    max-height: 18rem;
    border-radius: 1.25rem;
  }

  .hero__feature {
    padding: 0.5rem 0.35rem;
  }

  .hero__feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .hero__feature-text strong {
    font-size: 0.68rem;
  }

  .hero__feature-text span {
    font-size: 0.58rem;
  }

  .hero__stats-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .hero__stat {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .hero__stat-value {
    font-size: 0.9rem;
  }

  .hero__stat-label {
    font-size: 0.62rem;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero__title-accent-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__title-icon {
    width: 1.6rem;
    height: 1.6rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__btn {
    justify-content: center;
    width: 100%;
  }
}

.site-toast-stack {
  position: fixed;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.site-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  animation: site-toast-in 0.28s ease-out;
}

.site-toast.is-leaving {
  animation: site-toast-out 0.22s ease-in forwards;
}

.site-toast__icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.8rem;
}

.site-toast__content {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f2937;
}

.site-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.site-toast__close svg {
  width: 0.95rem;
  height: 0.95rem;
}

.site-toast__close:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
}

.site-toast--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.site-toast--success .site-toast__icon {
  background-color: #22c55e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l3.5 3.5L18 7.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-toast--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.site-toast--error .site-toast__icon {
  background-color: #ef4444;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.site-toast--warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.site-toast--warning .site-toast__icon {
  background-color: #f59e0b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 8v5M12 16h.01' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.site-toast--info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.site-toast--info .site-toast__icon {
  background-color: #3b82f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 8v5M12 16h.01' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

@keyframes site-toast-in {
  from {
    opacity: 0;
    transform: translateY(-0.65rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-0.45rem) scale(0.98);
  }
}

@media (max-width: 640px) {
  .site-toast-stack {
    top: auto;
    bottom: 1rem;
    inset-inline-start: 1rem;
    inset-inline-end: 1rem;
    width: auto;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__logo-img {
    height: 4.5rem;
  }
}

/* Add-to-cart modal */
body.cart-added-modal-open {
  overflow: hidden;
}

.cart-added-modal[hidden] {
  display: none !important;
}

.cart-added-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cart-added-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.cart-added-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cart-added-modal__close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #444;
  cursor: pointer;
}

.cart-added-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.cart-added-modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-top: 0.25rem;
  text-align: center;
}

.cart-added-modal__success-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #ecfdf3;
  color: #15803d;
}

.cart-added-modal__success-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-added-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}

.cart-added-modal__subtitle {
  margin: 0;
  color: #666;
  font-size: 0.86rem;
}

.cart-added-modal__list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid #f0f0f0;
  border-radius: 0.85rem;
}

.cart-added-modal__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #f3f4f6;
}

.cart-added-modal__item:last-child {
  border-bottom: 0;
}

.cart-added-modal__thumb {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #f3f4f6;
}

.cart-added-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-added-modal__thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
}

.cart-added-modal__thumb-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cart-added-modal__copy {
  min-width: 0;
}

.cart-added-modal__name {
  display: block;
  color: #111;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.45;
}

.cart-added-modal__name:hover {
  text-decoration: underline;
}

.cart-added-modal__variant,
.cart-added-modal__meta {
  display: block;
  color: #666;
  font-size: 0.76rem;
  line-height: 1.4;
}

.cart-added-modal__line-total {
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-added-modal__line-total span {
  font-size: 0.72rem;
  font-weight: 500;
}

.cart-added-modal__more {
  margin: 0 0 0.75rem;
  color: #666;
  font-size: 0.8rem;
}

.cart-added-modal__pv-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.88rem;
}

.cart-added-modal__pv-total strong {
  color: #2563eb;
  font-size: 0.98rem;
}

.cart-added-modal__pv-total strong span {
  font-size: 0.78rem;
  font-weight: 600;
}

.cart-added-modal__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #444;
  font-size: 0.88rem;
}

.cart-added-modal__subtotal strong {
  color: #111;
  font-size: 0.98rem;
}

.cart-added-modal__subtotal strong span {
  font-size: 0.78rem;
  font-weight: 500;
}

.cart-added-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.cart-added-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cart-added-modal__btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
}

.cart-added-modal__btn--primary {
  border: 0;
  background: #111;
  color: #fff;
}

@media (max-width: 560px) {
  .cart-added-modal__actions {
    grid-template-columns: 1fr;
  }

  .cart-added-modal__item {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .cart-added-modal__line-total {
    grid-column: 1 / -1;
    justify-self: start;
    padding-top: 0.15rem;
  }
}

/* Wishlist-added modal */
body.wishlist-added-modal-open {
  overflow: hidden;
}

.wishlist-added-modal[hidden] {
  display: none !important;
}

.wishlist-added-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wishlist-added-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.wishlist-added-modal__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.wishlist-added-modal__close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #444;
  cursor: pointer;
}

.wishlist-added-modal__close svg {
  width: 1rem;
  height: 1rem;
}

.wishlist-added-modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-top: 0.25rem;
  text-align: center;
}

.wishlist-added-modal__success-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
}

.wishlist-added-modal__success-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.wishlist-added-modal--removed .wishlist-added-modal__success-icon {
  background: #f3f4f6;
  color: #666;
}

.wishlist-added-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
}

.wishlist-added-modal__subtitle {
  margin: 0;
  color: #666;
  font-size: 0.86rem;
}

.wishlist-added-modal__product {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #f0f0f0;
  border-radius: 0.85rem;
  background: #fafafa;
}

.wishlist-added-modal__thumb {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #f3f4f6;
}

.wishlist-added-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-added-modal__thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
}

.wishlist-added-modal__thumb-placeholder svg {
  width: 1.25rem;
  height: 1.25rem;
}

.wishlist-added-modal__copy {
  min-width: 0;
}

.wishlist-added-modal__name {
  display: block;
  color: #111;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.45;
}

.wishlist-added-modal__name:hover {
  text-decoration: underline;
}

.wishlist-added-modal__price {
  display: block;
  margin-top: 0.25rem;
  color: #111;
  font-size: 0.82rem;
  font-weight: 800;
}

.wishlist-added-modal__price span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #666;
}

.wishlist-added-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.wishlist-added-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.wishlist-added-modal__btn--secondary {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
}

.wishlist-added-modal__btn--primary {
  border: 0;
  background: #111;
  color: #fff;
}

@media (max-width: 560px) {
  .wishlist-added-modal__actions {
    grid-template-columns: 1fr;
  }
}
