:root {
  --site-font: 'IRANSansX', 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
  --site-primary: #3654ff;
  --site-primary-dark: #273dd4;
  --site-primary-soft: rgba(54, 84, 255, 0.12);
  --site-accent: #20d6bc;
  --site-text: #1b254b;
  --site-muted: #6f7799;
  --site-border: rgba(27, 37, 75, 0.08);
  --site-surface: #ffffff;
  --site-background: #f3f6ff;
  --site-radius: 1.25rem;
  --site-radius-sm: 0.9rem;
  --site-shadow: 0 18px 45px rgba(35, 48, 120, 0.15);
  --site-header-height: 5.5rem;
  --site-footer-height: 4.25rem;
  --site-shell-offset: calc(var(--site-header-height) + var(--site-footer-height));
  --site-shadow-soft: 0 12px 30px rgba(27, 37, 75, 0.12);
  --auth-blue: #0b56c4;
  --auth-blue-dark: #083c8f;
  --auth-orange: #ff7a00;
  --auth-sky: #f4f8ff;
  --auth-cloud: #e9f1ff;
  --auth-text: #0f1b3f;
  --auth-muted: #5c688a;
  --auth-shadow: 0 40px 80px rgba(11, 86, 196, 0.18);
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 4.6rem;
    --site-footer-height: 3.8rem;
    --site-shell-offset: calc(var(--site-header-height) + var(--site-footer-height));
  }
}

@media (max-width: 576px) {
  :root {
    --site-header-height: 4.25rem;
    --site-footer-height: 3.6rem;
    --site-shell-offset: calc(var(--site-header-height) + var(--site-footer-height));
  }
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  color: var(--site-text);
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(54, 84, 255, 0.08), transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(32, 214, 188, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(247, 249, 255, 0.95), rgba(239, 244, 255, 0.95)),
    var(--site-background);
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 90px;
}

.site-body.is-mobile {
  padding-top: 80px;
}

.site-body--menu-open {
  overflow: hidden;
}

header {
  margin-bottom: 0;
  padding-inline: 0;
}

@media (max-width: 768px) {
  header {
    padding-inline: 0.75rem;
  }

  .site-navbar {
    padding: 0.55rem 1.1rem;
  }
}

.site-navbar {
  background: var(--site-surface);
  border-bottom: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
  padding: 0.65rem 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.site-navbar .container-fluid,
.site-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-navbar:hover {
  box-shadow: 0 22px 65px rgba(27, 37, 75, 0.16);
  transform: translateY(-2px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex-shrink: 0;
  max-width: fit-content;
}

.navbar-brand__logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.18), rgba(32, 214, 188, 0.22));
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--site-primary);
  box-shadow: 0 18px 35px rgba(52, 81, 242, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.navbar-brand__logo-img {
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 0.25rem;
  display: block;
}

@media (max-width: 768px) {
  .navbar-brand__logo-img {
    max-width: 38px;
    max-height: 38px;
  }
}

@media (max-width: 576px) {
  .navbar-brand__logo-img {
    max-width: 34px;
    max-height: 34px;
  }
}

.navbar-brand__text {
  display: inline-flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

@media (max-width: 992px) {
  .navbar-brand__text {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .navbar-brand__text {
    max-width: 120px;
    font-size: 0.9rem;
  }
}

.site-navbar__links {
  gap: 0.25rem;
}

.site-navbar__content {
  width: 100%;
  gap: 1rem;
}

.site-navbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.site-navbar__cart {
  position: relative;
  display: flex;
  align-items: center;
}

.site-navbar__search-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-navbar__cart-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  padding: 0.25rem;
}

.site-navbar__cart-icon-link:hover {
  opacity: 0.8;
  color: inherit;
}

.site-navbar__cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-navbar__cart-icon {
  font-size: 1.5rem;
  color: inherit;
}

.site-navbar__cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 1;
  white-space: nowrap;
}

.site-navbar__wishlist-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  padding: 0.25rem;
}

.site-navbar__wishlist-icon-link:hover {
  opacity: 0.8;
  color: inherit;
}

.site-navbar__wishlist-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-navbar__wishlist-icon {
  font-size: 1.5rem;
  color: inherit;
}

.site-navbar__wishlist-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 1;
  white-space: nowrap;
}

.cart-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: inherit;
}

.cart-preview__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.35rem;
  border-radius: var(--site-radius-md);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cart-preview__toggle:hover,
.cart-preview__toggle:focus-visible {
  color: var(--site-primary);
  transform: translateY(-1px);
  outline: none;
}

.cart-preview__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.16), rgba(32, 214, 188, 0.22));
  box-shadow: 0 14px 28px rgba(54, 84, 255, 0.18);
}

.cart-preview__icon .bi {
  font-size: 1.35rem;
  color: var(--site-primary);
}

.cart-preview__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.cart-preview__label {
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-preview__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0 0.45rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--site-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.cart-preview__dropdown {
    position: absolute;
    inset-block-start: calc(100% + 0.75rem);
    inset-inline-end: 0;
    right: 0;
    z-index: 1090;
    left: auto;
    background: var(--site-surface);
  border-radius: var(--site-radius-xl);
  border: 1px solid rgba(33, 37, 41, 0.08);
  box-shadow: 0 32px 64px rgba(15, 27, 63, 0.16);
  min-width: 320px;
  padding: 1.5rem;
  display: none;
  z-index: 1080;
}

.cart-preview__dropdown::before {
    content: "";
    position: absolute;
    inset-block-start: -0.6rem;
    inset-inline-end: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 1.25rem;
  height: 1.25rem;
  transform: rotate(45deg);
  background: var(--site-surface);
  border: 1px solid rgba(33, 37, 41, 0.06);
  border-bottom: none;
  border-inline-start: none;
  border-radius: 0.4rem;
  box-shadow: -6px -6px 18px rgba(15, 27, 63, 0.06);
}

.cart-preview--navbar:hover .cart-preview__dropdown,
.cart-preview--navbar:focus-within .cart-preview__dropdown {
  display: block;
}

.cart-preview__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-preview__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
}

.cart-preview__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--site-radius-md);
  border: 1px solid rgba(33, 37, 41, 0.08);
  box-shadow: 0 10px 22px rgba(33, 37, 41, 0.08);
}

.cart-preview__item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-preview__item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-preview__item-name:hover,
.cart-preview__item-name:focus-visible {
  color: var(--site-primary);
  outline: none;
}

.cart-preview__item-meta {
  display: inline-flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(33, 37, 41, 0.65);
}

.cart-preview__totals {
  margin-block-start: 1.25rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px dashed rgba(33, 37, 41, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-preview__total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.cart-preview__total-row--grand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--site-primary);
}

.cart-preview__total-row--discount {
  color: var(--site-success);
}

.cart-preview__actions {
  margin-block-start: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.cart-preview__action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--site-radius-md);
  border: 1px solid rgba(33, 37, 41, 0.12);
  text-decoration: none;
  font-weight: 600;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cart-preview__action:hover,
.cart-preview__action:focus-visible {
  border-color: rgba(54, 84, 255, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.cart-preview__action--accent {
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.22), rgba(32, 214, 188, 0.25));
  border: none;
  color: var(--site-primary);
  box-shadow: 0 16px 32px rgba(54, 84, 255, 0.18);
}

.cart-preview__empty {
  text-align: center;
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.cart-preview__more {
  margin-block-start: 0.85rem;
  font-size: 0.82rem;
  color: rgba(33, 37, 41, 0.65);
}

.cart-preview--empty .cart-preview__count {
  background: rgba(33, 37, 41, 0.08);
  color: rgba(33, 37, 41, 0.6);
}

.cart-preview--menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--site-radius-lg);
  background: linear-gradient(145deg, rgba(54, 84, 255, 0.08), rgba(32, 214, 188, 0.1));
  box-shadow: 0 18px 30px rgba(15, 27, 63, 0.1);
}

.cart-preview__menu-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-preview__menu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cart-preview__menu-count {
  font-size: 0.85rem;
  color: rgba(33, 37, 41, 0.7);
}

.cart-preview__menu-body {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-preview__menu-total {
  font-weight: 700;
}

.cart-preview__menu-discount {
  color: var(--site-success);
}

.cart-preview__menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: var(--site-radius-md);
  background: var(--site-surface);
  border: 1px solid rgba(33, 37, 41, 0.12);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cart-preview__menu-cta:hover,
.cart-preview__menu-cta:focus-visible {
  border-color: rgba(54, 84, 255, 0.45);
  transform: translateY(-1px);
  outline: none;
}

.cart-preview__menu-empty {
  font-size: 0.9rem;
  color: rgba(33, 37, 41, 0.7);
  margin: 0;
}

.site-navbar__mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: var(--site-radius-sm);
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-navbar__mobile-toggle:hover,
.site-navbar__mobile-toggle:focus {
  border-color: rgba(54, 84, 255, 0.4);
  box-shadow: 0 18px 40px rgba(27, 37, 75, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.site-navbar__mobile-toggle-bar {
  display: block;
  width: 65%;
  height: 2px;
  border-radius: 999px;
  background: var(--site-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-navbar__mobile-toggle.is-active .site-navbar__mobile-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(-45deg);
}

.site-navbar__mobile-toggle.is-active .site-navbar__mobile-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-navbar__mobile-toggle.is-active .site-navbar__mobile-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1080;
}

.site-menu.is-active {
  pointer-events: auto;
  opacity: 1;
}

.site-menu__overlay {
  flex: 1 1 auto;
  background: rgba(15, 27, 63, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-menu.is-active .site-menu__overlay {
  opacity: 1;
}

.site-menu__panel {
  width: min(360px, 86vw);
  max-width: 400px;
  max-height: 100%;
  background: var(--site-surface);
  box-shadow: 0 32px 70px rgba(27, 37, 75, 0.24);
  border-radius: 1.75rem 0 0 1.75rem;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  padding: 1.85rem 1.7rem 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-inline-start: auto;
}

.site-menu.is-active .site-menu__panel {
  transform: translateX(0);
}

.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-menu__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-menu__brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.18), rgba(32, 214, 188, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--site-primary);
  box-shadow: 0 18px 35px rgba(52, 81, 242, 0.18);
}

.site-menu__brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.2;
}

.site-menu__brand-sub {
  font-size: 0.85rem;
  color: var(--site-muted);
}

.site-menu__close {
  border: 0;
  background: rgba(54, 84, 255, 0.08);
  color: var(--site-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-menu__close:hover,
.site-menu__close:focus {
  background: rgba(54, 84, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.site-menu__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--site-text);
}

.site-menu__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.site-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-menu__links--secondary {
  gap: 0.6rem;
}

.site-menu__link,
.site-menu__logout {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--site-radius-sm);
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  color: var(--site-muted);
  text-decoration: none;
  border: 1px solid rgba(27, 37, 75, 0.08);
  background: rgba(244, 248, 255, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-menu__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.site-menu__link-icon--image {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.site-menu__link-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-menu__link:hover,
.site-menu__link:focus,
.site-menu__logout:hover,
.site-menu__logout:focus {
  color: var(--site-primary);
  background: rgba(54, 84, 255, 0.1);
  border-color: rgba(54, 84, 255, 0.25);
  transform: translateY(-1px);
}

.site-menu__logout-form {
  margin: 0;
}

.site-menu__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(270deg, rgba(27, 37, 75, 0.05), rgba(27, 37, 75, 0.12), rgba(27, 37, 75, 0.05));
}

.site-menu__user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--site-radius-sm);
  background: rgba(54, 84, 255, 0.08);
  color: var(--site-primary);
  box-shadow: inset 0 0 0 1px rgba(54, 84, 255, 0.15);
}

.site-menu__user-avatar {
  font-size: 1.4rem;
}

.site-menu__user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-menu__user-name {
  font-weight: 700;
  color: var(--site-text);
}

.site-menu__user-role {
  font-size: 0.85rem;
  color: var(--site-muted);
}

.site-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-menu__primary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--site-radius);
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3654ff, #4f78ff);
  text-decoration: none;
  box-shadow: 0 24px 48px rgba(54, 84, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-menu__primary-action:hover,
.site-menu__primary-action:focus {
  transform: translateY(-2px);
  box-shadow: 0 32px 62px rgba(54, 84, 255, 0.32);
}

@media (min-width: 992px) {
  .site-navbar__mobile-toggle {
    display: none;
  }

  .site-menu {
    display: none;
  }
}

.site-navbar__links .nav-link {
  position: relative;
  font-weight: 600;
  color: var(--site-muted);
  padding: 0.65rem 1.1rem;
  border-radius: var(--site-radius-sm);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-link-icon--image {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.nav-link-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  margin-left: 0.5rem;
}

.dropdown-item-icon--image {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
}

.dropdown-item-icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-navbar__links .nav-link:hover,
.site-navbar__links .nav-link:focus,
.site-navbar__links .nav-link.active {
  color: var(--site-primary);
  background: var(--site-primary-soft);
  transform: translateY(-1px);
}

/* Dropdown menu for navigation - no scroll, allow nested dropdowns */
.site-navbar__links > .nav-item > .dropdown-menu {
  overflow: visible !important;
  text-align: right;
  direction: rtl;
}

/* Nested dropdown menus - position them to avoid clipping (all levels) */
.site-navbar__links .dropdown-menu .dropdown-menu {
  position: absolute;
  top: 0;
  right: 100%;
  margin-right: 0.125rem;
  overflow: visible !important;
  text-align: right;
  direction: rtl;
}

/* Ensure nested dropdowns are visible even when parent has overflow */
.site-navbar__links .dropdown.dropend {
  position: static;
}

/* All nested dropdown items should be relative for proper positioning */
.site-navbar__links .dropdown-menu .dropdown.dropend,
.site-navbar__links .dropdown-menu .dropdown-menu .dropdown.dropend,
.site-navbar__links .dropdown-menu .dropdown-menu .dropdown-menu .dropdown.dropend {
  position: relative;
}

/* Critical: Prevent parent from clipping nested dropdowns at all levels */
.site-navbar__links .dropdown-menu,
.site-navbar__links .dropdown-menu .dropdown-menu,
.site-navbar__links .dropdown-menu .dropdown-menu .dropdown-menu,
.site-navbar__links .dropdown-menu .dropdown-menu .dropdown-menu .dropdown-menu {
  overflow: visible !important;
}


/* Right-align dropdown items and position icon/image on left */
.site-navbar__links .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  direction: rtl;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  flex-direction: row;
}

/* Position icon/image on the left side (in RTL layout) */
.site-navbar__links .dropdown-item-icon {
  order: 0;
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0;
}

.site-navbar__links .dropdown-item-text {
  order: 1;
  flex: 1;
  text-align: right;
}

.navbar-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navbar-auth {
  display: inline-flex;
  align-items: center;
}

.navbar-user__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: var(--site-radius-sm);
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  font-weight: 600;
  color: var(--site-muted);
  box-shadow: var(--site-shadow-soft);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.navbar-user__toggle:hover,
.navbar-user__toggle:focus {
  color: var(--site-primary);
  background: var(--site-primary-soft);
  box-shadow: 0 12px 30px rgba(27, 37, 75, 0.12);
  transform: translateY(-1px);
}

.navbar-user__avatar {
  font-size: 1.1rem;
}

.navbar-user__menu {
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  box-shadow: 0 18px 40px rgba(27, 37, 75, 0.16);
  z-index: 1090;
  padding: 0.35rem 0;
  min-width: 200px;
  text-align: right;
}

.navbar-user__menu .dropdown-item {
  font-weight: 500;
  padding: 0.45rem 1.25rem;
  color: var(--site-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-user__menu .dropdown-item:hover,
.navbar-user__menu .dropdown-item:focus {
  background: var(--site-primary-soft);
  color: var(--site-primary);
}

.navbar-user__logout-form {
  margin: 0;
  padding: 0;
}

.navbar-user__logout-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  font-weight: 500;
  padding: 0.45rem 1.25rem;
  color: var(--site-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-user__logout-button:hover,
.navbar-user__logout-button:focus {
  color: var(--site-danger, #e63946);
  background: rgba(230, 57, 70, 0.08);
}

.navbar-auth__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--site-radius-sm);
  background: var(--site-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 35px rgba(52, 81, 242, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-auth__btn:hover,
.navbar-auth__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(52, 81, 242, 0.28);
  color: #fff;
}

.site-container {
  flex: 1 1 auto;
  padding-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
}

/* Fix container centering and alignment */
.container.site-container {
  max-width: 1200px;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1400px) {
  .container.site-container,
  .site-navbar .container {
    max-width: 1320px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .container.site-container,
  .site-navbar .container {
    max-width: 1140px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .container.site-container,
  .site-navbar .container {
    max-width: 960px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .container.site-container,
  .site-navbar .container {
    max-width: 720px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .container.site-container,
  .site-navbar .container {
    max-width: 540px;
  }
}


.auth-page {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.25rem 1.5rem 4.5rem;
  min-height: 100%;
}

.auth-layout {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(11, 86, 196, 0.08), rgba(255, 122, 0, 0.06)), var(--auth-sky);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--auth-shadow);
}

.auth-layout__visual {
  position: relative;
  background: linear-gradient(155deg, rgba(11, 86, 196, 0.98) 0%, #082f75 100%);
  padding: 4rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-layout__visual::before,
.auth-layout__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.auth-layout__visual::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), transparent 70%);
  inset-inline-end: -140px;
  top: -180px;
}

.auth-layout__visual::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(255, 122, 0, 0.55), transparent 70%);
  inset-inline-start: -120px;
  bottom: -150px;
}

.auth-visual {
  position: relative;
  max-width: 360px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.auth-visual__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(8, 47, 117, 0.35);
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-visual__badge-icon {
  font-size: 1.35rem;
}

.auth-visual__badge-text {
  letter-spacing: 0.02em;
}

.auth-illustration {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2.5rem;
  padding: 1.75rem 1.5rem;
  gap: 1.5rem;
  position: relative;
}

.auth-illustration__half {
  position: relative;
  width: 120px;
  aspect-ratio: 1 / 1.35;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-illustration__half--left {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  color: var(--auth-blue);
}

.auth-illustration__half--right {
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.9), rgba(255, 122, 0, 0.6));
  color: #fff;
}

.auth-illustration__divider {
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.auth-illustration__symbol {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-illustration__symbol--plus {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid currentColor;
}

.auth-illustration__symbol--plus::before,
.auth-illustration__symbol--plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.auth-illustration__symbol--plus::before {
  width: 2px;
  height: 18px;
}

.auth-illustration__symbol--plus::after {
  width: 18px;
  height: 2px;
}

.auth-illustration__symbol--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
}

.auth-illustration__symbol--spark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: currentColor;
  transform: rotate(45deg);
}

.auth-illustration__half--left .auth-illustration__symbol--plus {
  top: 18%;
  inset-inline-end: 12%;
}

.auth-illustration__half--left .auth-illustration__symbol--dot {
  bottom: 16%;
  inset-inline-start: 20%;
}

.auth-illustration__half--right .auth-illustration__symbol--plus {
  bottom: 18%;
  inset-inline-start: 18%;
}

.auth-illustration__half--right .auth-illustration__symbol--spark {
  top: 20%;
  inset-inline-end: 16%;
}

.auth-visual__caption {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
}

.auth-layout__panel {
  background: #fff;
  padding: 4rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-layout__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(11, 86, 196, 0.08), transparent 55%);
  pointer-events: none;
}

.auth-card {
  width: min(420px, 100%);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-card__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.auth-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-card__logo-icon {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 26px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(11, 86, 196, 0.18), rgba(255, 255, 255, 0.95));
  box-shadow: 0 22px 45px rgba(11, 86, 196, 0.2);
  overflow: hidden;
}

.auth-card__logo-icon-part {
  flex: 1;
  border-radius: 18px;
}

.auth-card__logo-icon-part--left {
  background: linear-gradient(180deg, rgba(11, 86, 196, 0.92), rgba(11, 86, 196, 0.65));
}

.auth-card__logo-icon-part--right {
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.95), rgba(255, 122, 0, 0.7));
}

.auth-card__logo-icon-divider {
  width: 4px;
  margin: 0 4px;
  border-radius: 999px;
  background: rgba(15, 27, 63, 0.16);
}

.auth-card__title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--auth-text);
}

.auth-card__subtitle {
  color: var(--auth-muted);
  font-size: 1rem;
  margin: 0;
}

.auth-card__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.auth-card__validation {
  color: #e63946;
  font-size: 0.9rem;
}

.auth-card__message {
  border-radius: 1.25rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.94rem;
  line-height: 1.7;
}

.auth-card__message--info {
  background: rgba(11, 86, 196, 0.1);
  color: var(--auth-blue);
}

.auth-card__message--error {
  background: rgba(230, 61, 79, 0.12);
  color: #d62839;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.auth-field__label {
  font-weight: 600;
  color: var(--auth-text);
}

.auth-field__control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(11, 86, 196, 0.18);
  background: #fff;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 18px 40px rgba(8, 47, 117, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field__control:focus-within {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(11, 86, 196, 0.12);
}

.auth-field__icon {
  font-size: 1.3rem;
  color: var(--auth-blue);
}

.auth-field__input {
  border: none;
  outline: none;
  flex: 1;
  background: transparent;
  font-size: 1rem;
  color: var(--auth-text);
}

.auth-field__input::placeholder {
  color: rgba(15, 27, 63, 0.45);
}

.auth-consent {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

.auth-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 500;
}

.auth-consent__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(11, 86, 196, 0.35);
  margin-top: 0.25rem;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

.auth-consent__checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 86, 196, 0.18);
}

.auth-consent__checkbox:checked {
  background: var(--auth-blue);
  border-color: var(--auth-blue);
  box-shadow: 0 14px 28px rgba(11, 86, 196, 0.28);
}

.auth-consent__checkbox:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 12px;
  border: 2px solid #fff;
  border-top: 0;
  border-inline-start: 0;
  transform: translateY(1px) rotate(45deg);
}

.auth-link {
  color: var(--auth-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--auth-orange);
}

.auth-button {
  width: 100%;
  border: none;
  border-radius: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-dark));
  box-shadow: 0 24px 55px rgba(11, 86, 196, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:hover,
.auth-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 28px 60px rgba(11, 86, 196, 0.35);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-button--confirm {
  background: linear-gradient(135deg, var(--auth-orange), #ff9a3c);
  box-shadow: 0 26px 60px rgba(255, 122, 0, 0.35);
}

.auth-button--confirm:hover,
.auth-button--confirm:focus {
  box-shadow: 0 30px 70px rgba(255, 122, 0, 0.35);
}

.auth-button--ghost {
  background: transparent;
  color: var(--auth-blue);
  border: 1px dashed rgba(11, 86, 196, 0.4);
  box-shadow: none;
}

.auth-button--ghost:hover,
.auth-button--ghost:focus {
  color: var(--auth-blue-dark);
  border-color: rgba(11, 86, 196, 0.6);
  transform: translateY(-1px);
}

.auth-form__error {
  color: #d62839;
  font-size: 0.85rem;
}

.auth-card--verify .auth-card__subtitle {
  line-height: 1.8;
}

.auth-card__subtitle-strong {
  color: var(--auth-blue);
  font-weight: 700;
}

.auth-card__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-form__code-intro {
  background: rgba(11, 86, 196, 0.08);
  border-radius: 1.5rem;
  padding: 1.15rem 1.25rem;
  font-size: 0.95rem;
  color: var(--auth-text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-code__inputs {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.5rem 0 0.85rem;
  direction: ltr;
}

.auth-code__input {
  width: 3.1rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(11, 86, 196, 0.35);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--auth-text);
  box-shadow: 0 14px 30px rgba(8, 47, 117, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-code__input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(11, 86, 196, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.auth-form__error--code {
  text-align: center;
}

.auth-code__timer {
  margin: 0;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  font-weight: 700;
  color: var(--auth-blue);
}

.auth-code__timer--expired {
  color: #d62839;
}

.auth-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--auth-muted);
}

.auth-card__footer-link {
  width: 100%;
  max-width: 260px;
  border-radius: 1.2rem;
  background: rgba(11, 86, 196, 0.08);
  color: var(--auth-blue);
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(11, 86, 196, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card__footer-link:hover,
.auth-card__footer-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(11, 86, 196, 0.2);
}

.auth-card__footer-note {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
    border-radius: 1.9rem;
  }

  .auth-layout__panel {
    order: 1;
    padding: 3rem 2.5rem 2.7rem;
  }

  .auth-layout__visual {
    order: 2;
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 2.5rem 1rem 3.4rem;
  }

  .auth-layout {
    border-radius: 1.6rem;
  }

  .auth-layout__visual {
    min-height: 280px;
    padding: 2.5rem 1.9rem;
  }

  .auth-visual {
    gap: 1.4rem;
  }

  .auth-layout__panel {
    padding: 2.5rem 1.9rem 2.35rem;
  }

  .auth-card {
    gap: 1.9rem;
  }
}

@media (max-width: 576px) {
  .auth-page {
    padding: 2rem 0.75rem 2.9rem;
  }

  .auth-layout {
    border-radius: 1.35rem;
  }

  .auth-layout__visual {
    padding: 2rem 1.4rem;
  }

  .auth-layout__panel {
    padding: 2.05rem 1.3rem 2.2rem;
  }

  .auth-card__title {
    font-size: 1.58rem;
  }

  .auth-field__control {
    padding: 0.8rem 0.9rem;
  }

  .auth-code__inputs {
    gap: 0.55rem;
  }

  .auth-code__input {
    width: 2.6rem;
    height: 2.85rem;
    font-size: 1.1rem;
  }

  .auth-card__footer-link {
    max-width: none;
  }
}

.site-main {
  background: var(--site-surface);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  padding: 2.5rem 3rem;
  margin-top: 2rem;
}

.site-container--auth {
  max-width: 1100px;
  width: 100%;
  padding-bottom: 0;
}

.site-main--auth {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.95), rgba(233, 241, 255, 0.75));
  box-shadow: none;
  margin-top: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--site-shell-offset));
}

.site-main--auth .auth-page {
  flex: 1 1 auto;
}

.site-main--auth .auth-card {
  margin-bottom: 0;
  z-index: 2;
}

.footer {
  background: transparent;
}

.footer .container {
  padding-block: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--site-muted);
}

.footer .container a {
  color: var(--site-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  background: transparent;
}

.footer .container a:hover,
.footer .container a:focus {
  color: #fff;
  background: var(--site-primary);
}

.btn {
  border-radius: var(--site-radius-sm);
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  transition: all 0.25s ease;
  border-width: 1px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.8), 0 0 0 0.35rem rgba(54, 84, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--site-primary), #4f6afc);
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(54, 84, 255, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--site-primary-dark), #3d56f9);
  box-shadow: 0 20px 42px rgba(37, 61, 212, 0.4);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--site-primary);
  border-color: rgba(54, 84, 255, 0.45);
  background: rgba(54, 84, 255, 0.08);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--site-primary), #4f6afc);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(54, 84, 255, 0.35);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(27, 37, 75, 0.08);
  color: var(--site-text);
}

.btn-light:hover,
.btn-light:focus {
  border-color: rgba(54, 84, 255, 0.22);
  color: var(--site-primary);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--site-muted);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.app-alert {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
  --app-alert-ring: #3b82f6;
  --app-alert-confirm-bg: #3654ff;
  --app-alert-confirm-hover: #2743d3;
  --app-alert-cancel-bg: #f1f5f9;
  --app-alert-cancel-border: #e2e8f0;
  --app-alert-cancel-color: #475569;
}

.app-alert.is-active {
  opacity: 1;
  pointer-events: auto;
}

.app-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.app-alert__dialog {
  position: relative;
  max-width: 430px;
  width: min(430px, 100%);
  background: var(--site-surface);
  border-radius: 1.75rem;
  padding: 3.75rem 2.75rem 2.4rem;
  box-shadow: 0 40px 70px rgba(15, 23, 42, 0.25);
  transform: translateY(40px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  text-align: center;
}

.app-alert.is-active .app-alert__dialog {
  transform: translateY(0);
  opacity: 1;
}

.app-alert__close {
  position: absolute;
  inset-inline-end: 1rem;
  top: 1rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 50%;
  padding: 0.45rem;
  color: #1e293b;
  opacity: 0.8;
}

.app-alert__icon {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 6px solid var(--app-alert-ring);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5.5rem auto 0.5rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  color: var(--app-alert-ring);
  overflow: hidden;
}

.app-alert__icon-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(252, 252, 253, 0.85);
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.08);
}

.app-alert__icon-mark {
  position: relative;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}

.app-alert__icon svg {
  position: relative;
  width: 40px;
  height: 40px;
}

.app-alert__title {
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 1.3rem;
}

.app-alert__message {
  margin: 0.75rem 0 0;
  color: var(--site-muted);
  line-height: 1.85;
}

.app-alert__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.app-alert__confirm,
.app-alert__cancel {
  border-radius: 999px;
  padding: 0.75rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-alert__confirm {
  background: var(--app-alert-confirm-bg);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(54, 84, 255, 0.22);
}

.app-alert__confirm:hover,
.app-alert__confirm:focus-visible {
  background: var(--app-alert-confirm-hover);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(39, 67, 211, 0.28);
}

.app-alert__cancel {
  background: var(--app-alert-cancel-bg);
  color: var(--app-alert-cancel-color);
  border: 1px solid var(--app-alert-cancel-border);
}

.app-alert__cancel:hover,
.app-alert__cancel:focus-visible {
  background: #ffffff;
  color: var(--app-alert-cancel-color);
  box-shadow: 0 10px 18px rgba(148, 163, 184, 0.12);
}

.app-alert__cancel[hidden] {
  display: none;
}

.app-toast-stack {
  position: fixed;
  top: clamp(1rem, 3vh, 2.5rem);
  inset-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1060;
  pointer-events: none;
}

.app-toast {
  --app-toast-bg: #eff6ff;
  --app-toast-border: rgba(59, 130, 246, 0.2);
  --app-toast-color: #1d4ed8;
  --app-toast-icon-bg: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: min(92vw, 24rem);
  max-width: min(92vw, 28rem);
  background: var(--app-toast-bg);
  border: 1px solid var(--app-toast-border);
  color: var(--app-toast-color);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast.is-hiding {
  opacity: 0;
  transform: translateY(-16px);
}

.app-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--app-toast-icon-bg);
  font-size: 1.35rem;
  line-height: 1;
}

.app-toast__icon-mark {
  font-weight: 600;
}

.app-toast__body {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
}

.app-toast__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.app-toast__close:hover,
.app-toast__close:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.app-toast--success {
  --app-toast-bg: #ecfdf3;
  --app-toast-border: rgba(16, 185, 129, 0.25);
  --app-toast-color: #047857;
  --app-toast-icon-bg: rgba(16, 185, 129, 0.18);
}

.app-toast--danger {
  --app-toast-bg: #fef2f2;
  --app-toast-border: rgba(239, 68, 68, 0.25);
  --app-toast-color: #b91c1c;
  --app-toast-icon-bg: rgba(239, 68, 68, 0.18);
}

.account-settings {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.account-settings__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--site-radius);
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.12), rgba(32, 214, 188, 0.08));
  border: 1px solid rgba(54, 84, 255, 0.12);
}

.account-settings__title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.account-settings__subtitle {
  margin: 0;
  color: var(--site-muted);
}

.account-settings__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--site-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 37, 75, 0.08);
  color: var(--site-muted);
  font-size: 0.9rem;
}

.account-settings__meta-label {
  font-weight: 600;
}

.account-settings__meta-value {
  color: var(--site-text);
  font-weight: 700;
}

.account-settings__content {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .account-settings__content {
    grid-template-columns: 1fr;
  }
}

.account-card {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.25rem 2rem;
  border-radius: var(--site-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 255, 0.92));
  border: 1px solid rgba(27, 37, 75, 0.08);
  box-shadow: var(--site-shadow);
}

.account-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  align-self: center;
  background: rgba(54, 84, 255, 0.1);
  display: grid;
  place-items: center;
}

.account-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-card__avatar-placeholder {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--site-primary);
}

.account-card__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-card__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.account-card__email {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.95rem;
}

.account-card__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--site-radius-sm);
  background: rgba(54, 84, 255, 0.08);
  border: 1px dashed rgba(54, 84, 255, 0.2);
  font-size: 0.95rem;
}

.account-card__stats-label {
  display: block;
  color: var(--site-muted);
  font-weight: 600;
}

.account-card__stats-value {
  color: var(--site-text);
  font-weight: 700;
}

.account-settings__main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.account-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(27, 37, 75, 0.08);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  padding: 2.25rem 2.5rem;
}

.account-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.account-section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.account-section__subtitle {
  margin: 0.35rem 0 0;
  color: var(--site-muted);
  font-size: 0.95rem;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.account-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.account-form__grid--columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.account-form__control {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-form__control--wide {
  grid-column: 1 / -1;
}

.account-form__validation {
  margin: 0;
  border-radius: var(--site-radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(254, 226, 226, 0.65);
  color: #b91c1c;
  padding: 0.85rem 1.1rem;
}

.account-form__validation:empty {
  display: none;
}

.account-form__validation.validation-summary-valid {
  display: none;
}

.account-form__footer {
  display: flex;
  justify-content: flex-end;
}

.account-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-upload__preview {
  width: 140px;
  height: 140px;
  border-radius: var(--site-radius-sm);
  overflow: hidden;
  border: 1px dashed rgba(54, 84, 255, 0.2);
  background: rgba(54, 84, 255, 0.06);
  display: grid;
  place-items: center;
}

.account-upload__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-upload__placeholder {
  color: var(--site-muted);
  font-weight: 600;
}

.app-alert--info {
  --app-alert-ring: #3b82f6;
  --app-alert-confirm-bg: #3654ff;
  --app-alert-confirm-hover: #2743d3;
}

.app-alert--success {
  --app-alert-ring: #1fc89e;
  --app-alert-confirm-bg: #16a077;
  --app-alert-confirm-hover: #138962;
}

.app-alert--warning {
  --app-alert-ring: #f2c037;
  --app-alert-confirm-bg: #f59e0b;
  --app-alert-confirm-hover: #d97706;
}

.app-alert--danger {
  --app-alert-ring: #f2c037;
  --app-alert-confirm-bg: #d81b60;
  --app-alert-confirm-hover: #b81752;
}

@media (max-width: 575.98px) {
  .app-alert__dialog {
    padding: 3.4rem 1.75rem 2.2rem;
    border-radius: 1.5rem;
  }

  .app-alert__icon {
    width: 88px;
    height: 88px;
    border-width: 5px;
    margin-top: -4.8rem;
  }

  .app-alert__icon-ring {
    inset: 12px;
  }

  .app-alert__title {
    font-size: 1.15rem;
  }

  .app-alert__actions {
    flex-wrap: nowrap;
  }

  .app-alert__confirm,
  .app-alert__cancel {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  header {
    padding-inline: 0.5rem;
  }

  .site-navbar {
    border-radius: 1rem;
  }

  .site-navbar__links {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .site-navbar__links .nav-link {
    padding: 0.65rem 0.9rem;
  }

  .navbar-user,
  .navbar-auth {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .navbar-user__toggle,
  .navbar-auth__btn {
    width: min(320px, 100%);
  }

  .navbar-user__menu {
    min-width: min(320px, 100%);
  }

  .site-main {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .site-body {
    padding-top: 0.75rem;
  }

  header {
    margin-bottom: 0;
  }

  .site-main {
    padding: 1.5rem 1.35rem;
    margin-top: 1.35rem;
  }

  .site-navbar__links {
    background: rgba(54, 84, 255, 0.04);
    border-radius: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .site-body {
    padding-top: 0.5rem;
  }

  header {
    padding-inline: 0.5rem;
  }

  .navbar-brand__text {
    font-size: 1rem;
  }

  .site-container {
    padding-inline: 1.2rem;
  }

  .app-alert__dialog {
    padding: 2rem 1.75rem 1.6rem;
  }
}

/* --------------------------------------------------------------
   Home page styles
-------------------------------------------------------------- */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  padding: 2.5rem 0 4rem;
}

.home-container {
  max-width: 1220px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 3rem;
  padding: 3.5rem;
  border-radius: 2.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(32, 214, 188, 0.14), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(255, 132, 78, 0.24), transparent 65%),
    linear-gradient(135deg, rgba(246, 249, 255, 0.95), rgba(225, 235, 255, 0.92));
  box-shadow: 0 45px 95px rgba(27, 37, 75, 0.18);
  direction: rtl;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -90px;
  inset-block-end: -130px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(54, 84, 255, 0.15), transparent 70%);
  z-index: 0;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.home-hero__badge {
  align-self: flex-start;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  background: rgba(54, 84, 255, 0.12);
  color: var(--site-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-hero__title {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--site-text);
}

.home-hero__subtitle {
  font-size: 1.05rem;
  color: var(--site-muted);
  line-height: 2;
  margin: 0;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.6rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, #ff8a4d, #ff5d3b);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 24px 45px rgba(255, 109, 63, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-hero__cta:hover,
.home-hero__cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 28px 58px rgba(255, 109, 63, 0.42);
  color: #fff;
}

.home-hero__link {
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
}

.home-hero__link:hover,
.home-hero__link:focus {
  color: var(--site-primary-dark);
  text-decoration: underline;
}

.home-hero__insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.home-insight {
  padding: 1rem 1.2rem;
  border-radius: 1.6rem;
  background: rgba(54, 84, 255, 0.08);
  border: 1px solid rgba(54, 84, 255, 0.12);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-insight__label {
  font-size: 0.95rem;
  color: var(--site-muted);
}

.home-insight__value {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--site-primary);
}

.home-hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-core {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(54, 84, 255, 0.18), rgba(255, 122, 0, 0.18));
  box-shadow: 0 30px 60px rgba(27, 37, 75, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.hero-core__icon {
  font-size: 2.5rem;
}

.hero-core__title {
  font-weight: 700;
  font-size: 1.3rem;
}

.hero-core__subtitle {
  color: var(--site-muted);
  font-size: 0.95rem;
}

.hero-orbit {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px dashed rgba(54, 84, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--site-primary);
  font-weight: 600;
}

.hero-orbit--secondary {
  width: 280px;
  height: 280px;
  border-color: rgba(255, 122, 0, 0.25);
  color: #ff6d3f;
}

.hero-orbit__icon {
  font-size: 1.8rem;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.7rem;
  background: #fff;
  box-shadow: 0 24px 54px rgba(27, 37, 75, 0.15);
  border: 1px solid rgba(27, 37, 75, 0.05);
}

.hero-card--top {
  inset-inline-start: 15%;
  inset-block-start: 14%;
}

.hero-card--bottom {
  inset-inline-end: 10%;
  inset-block-end: 12%;
}

.hero-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(54, 84, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.hero-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.hero-card__title {
  font-weight: 600;
  color: var(--site-text);
}

.hero-card__value {
  color: var(--site-muted);
  font-size: 0.9rem;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding: 0 0.5rem;
  direction: rtl;
}

.home-section__header {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-section__header--center {
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.home-section__badge {
  align-self: flex-start;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(54, 84, 255, 0.12);
  color: var(--site-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.home-section__header--center .home-section__badge {
  align-self: center;
}

.home-section__title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--site-text);
}

.home-section__subtitle {
  color: var(--site-muted);
  line-height: 2;
  margin: 0;
}

.home-journey {
  background: linear-gradient(135deg, rgba(54, 84, 255, 0.12), rgba(32, 214, 188, 0.12));
  padding: 3.25rem 3rem;
  border-radius: 2.2rem;
  box-shadow: 0 38px 70px rgba(27, 37, 75, 0.14);
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem;
  position: relative;
}

.journey-steps::before {
  content: "";
  position: absolute;
  inset-inline: 4rem;
  inset-block-start: 65px;
  height: 2px;
  background: linear-gradient(90deg, rgba(54, 84, 255, 0.35), rgba(255, 122, 0, 0.35));
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.6rem 1.4rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 45px rgba(27, 37, 75, 0.12);
  backdrop-filter: blur(6px);
}

.journey-step__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(54, 84, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--site-primary);
}

.journey-step__title {
  font-weight: 700;
  font-size: 1.2rem;
}

.journey-step__text {
  color: var(--site-muted);
  margin: 0;
  line-height: 1.85;
}

.home-knowledge {
  padding: 0 0.5rem;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.knowledge-card {
  padding: 2rem 1.75rem;
  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 32px 58px rgba(27, 37, 75, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid rgba(27, 37, 75, 0.05);
}

.knowledge-card__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.knowledge-card__text {
  color: var(--site-muted);
  line-height: 1.9;
  margin: 0;
}

.knowledge-card__meta {
  color: var(--site-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-brands {
  padding: 3.2rem 2.5rem;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, rgba(54, 84, 255, 0.95), rgba(23, 63, 173, 0.92));
  color: #fff;
  box-shadow: 0 40px 75px rgba(21, 49, 142, 0.32);
}

.home-brands .home-section__title {
  color: #fff;
}

.home-brands .home-section__badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.brand-card {
  display: grid;
  place-items: center;
  padding: 1.4rem 1rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 1200px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 3rem;
    text-align: center;
  }

  .home-hero__content {
    align-items: center;
    text-align: center;
  }

  .home-hero__badge {
    align-self: center;
  }

  .home-hero__insights {
    justify-items: center;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-section__header {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .home-section__badge {
    align-self: center;
  }

  .journey-steps,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-steps::before {
    inset-inline: 3rem;
  }
}

@media (max-width: 768px) {
  .home-main {
    padding: 1.5rem 0 3rem;
    gap: 3.5rem;
  }

  .home-hero {
    padding: 2.6rem 1.8rem;
  }

  .journey-steps,
  .knowledge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-steps::before {
    display: none;
  }

  .home-journey {
    padding: 2.6rem 1.6rem;
  }

  .home-brands {
    padding: 2.6rem 1.6rem;
  }
}

@media (max-width: 576px) {
  .home-hero__insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    border-radius: 1.8rem;
  }

  .journey-step,
  .knowledge-card,
  .brand-card {
    border-radius: 1.4rem;
  }
}

/* === Blog components === */
.home-blog-slider {
  margin-top: 4rem;
}

.blog-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  column-gap: 1.5rem;
  overflow: hidden;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
}

.blog-slider__slide {
  scroll-snap-align: start;
}

.blog-slider__card {
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-slider__card:hover,
.blog-slider__card:focus {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(27, 37, 75, 0.18);
}

.blog-slider__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-slider__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-slider__card:hover .blog-slider__media img,
.blog-slider__card:focus .blog-slider__media img {
  transform: scale(1.05);
}

.blog-slider__body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-slider__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--site-muted);
}

.blog-slider__dot {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--site-muted);
}

.blog-slider__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

.blog-slider__excerpt {
  color: var(--site-muted);
  line-height: 1.9;
  flex: 1;
}

.blog-slider__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-slider__tag {
  background: var(--site-primary-soft);
  color: var(--site-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.blog-slider__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  box-shadow: var(--site-shadow-soft);
  color: var(--site-text);
  font-size: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-slider__control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.blog-slider__control:not(:disabled):hover,
.blog-slider__control:not(:disabled):focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(27, 37, 75, 0.16);
  border-color: rgba(54, 84, 255, 0.4);
}

.blog-slider__footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.blog-slider__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-slider__more::after {
  content: "→";
  font-size: 1rem;
}

@media (max-width: 992px) {
  .blog-slider {
    align-items: stretch;
  }

  .blog-slider__control {
    display: none;
  }

  .blog-slider__track {
    overflow-x: auto;
    padding-bottom: 1.25rem;
    scroll-padding-inline: 1rem;
  }
}

.blog-container {
  padding-bottom: 4rem;
}

.blog-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  background: var(--site-surface);
  border-radius: calc(var(--site-radius) * 1.2);
  border: 1px solid var(--site-border);
  padding: 3.5rem 3.75rem;
  box-shadow: var(--site-shadow);
  margin-bottom: 3.5rem;
}

.blog-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  font-weight: 600;
}

.blog-hero__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.5;
}

.blog-hero__subtitle {
  color: var(--site-muted);
  line-height: 2;
}

.blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-hero__primary,
.blog-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: var(--site-radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.blog-hero__primary {
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
  color: #fff;
  box-shadow: var(--site-shadow);
}

.blog-hero__secondary {
  border: 1px solid var(--site-border);
  color: var(--site-text);
  background: rgba(255, 255, 255, 0.82);
}

.blog-hero__visual {
  position: relative;
}

.blog-hero__glow {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--site-radius) * 1.2);
  background: radial-gradient(circle at 30% 30%, rgba(54, 84, 255, 0.22), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(32, 214, 188, 0.18), transparent 50%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem;
}

.blog-card {
  height: 100%;
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  height: 100%;
  box-shadow: var(--site-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card__link:hover,
.blog-card__link:focus {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(27, 37, 75, 0.18);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card__link:hover .blog-card__media img,
.blog-card__link:focus .blog-card__media img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 1.9rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--site-muted);
  font-size: 0.95rem;
}

.blog-card__title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.6;
}

.blog-card__summary {
  color: var(--site-muted);
  line-height: 1.95;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card__avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.blog-card__author-name {
  font-weight: 600;
}

.blog-card__author-role {
  font-size: 0.9rem;
  color: var(--site-muted);
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card__tag {
  background: rgba(54, 84, 255, 0.12);
  color: var(--site-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.blog-empty {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.blog-empty__card {
  text-align: center;
  padding: 3rem;
  background: var(--site-surface);
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
}

.blog-empty__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-empty__text {
  color: var(--site-muted);
  margin-bottom: 2rem;
}

.blog-empty__link {
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
}

.blog-detail {
  background: var(--site-surface);
  border-radius: calc(var(--site-radius) * 1.1);
  border: 1px solid var(--site-border);
  padding: 3.2rem 3.4rem;
  box-shadow: var(--site-shadow);
}

.blog-detail__header {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.blog-detail__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
}

.blog-detail__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
  color: var(--site-primary);
  font-weight: 600;
}

.blog-detail__title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.5;
}

.blog-detail__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-detail__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-detail__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--site-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.blog-detail__author-name {
  font-weight: 600;
}

.blog-detail__author-role,
.blog-detail__timing {
  color: var(--site-muted);
}

.blog-detail__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-detail__tags li {
  background: rgba(54, 84, 255, 0.12);
  color: var(--site-primary);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.blog-detail__cover {
  margin: 2.5rem 0;
  border-radius: var(--site-radius);
  overflow: hidden;
}

.blog-detail__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-detail__quote {
  position: relative;
  margin: 2rem 0 3rem;
  padding: 1.75rem 2.5rem;
  border-radius: var(--site-radius);
  background: rgba(32, 214, 188, 0.12);
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 600;
}

.blog-detail__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  line-height: 2.1;
  color: var(--site-text);
}

.blog-detail__section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.blog-detail__section p {
  margin: 0;
  color: var(--site-muted);
}

.blog-detail__section--highlight {
  padding: 1.5rem 1.75rem;
  border-radius: var(--site-radius);
  background: rgba(54, 84, 255, 0.08);
}

.blog-detail__insights {
  margin-top: 3rem;
  padding: 2rem 2.4rem;
  border-radius: var(--site-radius);
  background: rgba(54, 84, 255, 0.1);
}

.blog-detail__insights h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.blog-detail__insights ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.blog-detail__insights li {
  position: relative;
  padding-right: 1.6rem;
  color: var(--site-text);
  font-weight: 500;
}

.blog-detail__insights li::before {
  content: "•";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--site-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.blog-related {
  margin-top: 4rem;
}

.blog-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.blog-related__title {
  font-size: 1.8rem;
  font-weight: 700;
}

.blog-related__more {
  color: var(--site-primary);
  text-decoration: none;
  font-weight: 600;
}

.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.blog-related__card {
  background: var(--site-surface);
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
  overflow: hidden;
}

.blog-related__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-related__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related__body {
  padding: 1.4rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.blog-related__body time {
  font-size: 0.9rem;
  color: var(--site-muted);
}

.blog-related__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.blog-related__body p {
  color: var(--site-muted);
  line-height: 1.8;
}

.blog-comments {
  margin-top: 4rem;
  padding: 2.5rem 3rem;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-comments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-comments__title {
  font-size: 1.7rem;
  font-weight: 700;
}

.blog-comments__empty {
  margin: 0;
  color: var(--site-muted);
  font-style: italic;
}

.blog-comments__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.blog-comment {
  list-style: none;
}

.blog-comment__card {
  background: rgba(54, 84, 255, 0.06);
  border: 1px solid rgba(54, 84, 255, 0.14);
  border-radius: var(--site-radius-sm);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-comment__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.blog-comment__avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--site-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.blog-comment__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-comment__author-name {
  font-weight: 600;
}

.blog-comment__date {
  font-size: 0.85rem;
  color: var(--site-muted);
}

.blog-comment__content {
  margin: 0;
  line-height: 1.9;
  color: var(--site-text);
}

.blog-comment__replies {
  list-style: none;
  padding: 0 0 0 1.8rem;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  border-right: 2px solid rgba(54, 84, 255, 0.1);
}

.blog-comments__form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2rem;
  border-radius: var(--site-radius-sm);
  border: 1px dashed rgba(54, 84, 255, 0.35);
  background: rgba(54, 84, 255, 0.08);
}

.blog-comments__form-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.blog-comments__form-subtitle {
  margin: 0;
  color: var(--site-muted);
}

.blog-comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.blog-comment-form__row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.blog-comment-form__field {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-comment-form__field .form-control,
.blog-comment-form__field textarea {
  border-radius: var(--site-radius-sm);
  border: 1px solid rgba(27, 37, 75, 0.15);
  padding: 0.85rem 1rem;
}

.blog-comment-form__field textarea {
  resize: vertical;
}

.blog-comment-form__submit {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(54, 84, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-comment-form__submit:hover,
.blog-comment-form__submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(54, 84, 255, 0.25);
}

.blog-comment-form__submit:focus {
  outline: none;
}

@media (max-width: 992px) {
  .blog-hero {
    grid-template-columns: 1fr;
    padding: 2.8rem;
  }

  .blog-detail {
    padding: 2.5rem;
  }

  .blog-detail__title {
    font-size: 2rem;
  }

  .blog-comments {
    padding: 2.2rem;
  }

  .blog-comment__replies {
    padding-right: 1.2rem;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    padding: 2.2rem;
  }

  .blog-card__body {
    padding: 1.5rem;
  }

  .blog-detail {
    padding: 2rem 1.6rem;
  }

  .blog-detail__title {
    font-size: 1.8rem;
  }

  .blog-detail__quote {
    padding: 1.4rem 1.6rem;
  }

  .blog-comments {
    padding: 1.6rem;
    gap: 2rem;
  }

  .blog-comment__card {
    padding: 1.2rem 1.3rem;
  }

  .blog-comment__replies {
    padding-right: 0.9rem;
  }

  .blog-comment-form__row {
    flex-direction: column;
  }

  .blog-comment-form__field {
    min-width: 100%;
  }
}

.product-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.product-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.product-slider__track::-webkit-scrollbar {
  height: 0.5rem;
}

.product-slider__track::-webkit-scrollbar-thumb {
  background: rgba(54, 84, 255, 0.25);
  border-radius: 999px;
}

.product-slider__slide {
  scroll-snap-align: start;
}

.product-slider__control {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: none;
  background: var(--site-surface);
  color: var(--site-text);
  box-shadow: var(--site-shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-slider__control:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

.product-slider__control:not(:disabled):hover,
.product-slider__control:not(:disabled):focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(27, 37, 75, 0.18);
  outline: none;
}

.product-slider__footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.product-slider__more {
  color: var(--site-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-inline-end: 1.25rem;
}

.product-slider__more::after {
  content: '\203a';
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--site-surface);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  overflow: hidden;
  color: inherit;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(27, 37, 75, 0.22);
  outline: none;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  flex: 1 1 auto;
}

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img,
.product-card:focus .product-card__media img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  inset: auto 1rem 1rem auto;
  background: rgba(32, 214, 188, 0.9);
  color: #043135;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1 1 auto;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.product-card__dot {
  opacity: 0.4;
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--site-text);
  margin: 0;
}

.product-card__excerpt {
  color: var(--site-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--site-text);
}

.product-card__price-current {
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card__price-original {
  font-size: 0.9rem;
  color: var(--site-muted);
  text-decoration: line-through;
}

.product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--site-muted);
  font-size: 0.9rem;
}

.product-card__rating-icon {
  color: #ffb547;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.product-card__tag {
  background: rgba(54, 84, 255, 0.12);
  color: var(--site-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.6rem 1.6rem;
  border-top: 1px solid var(--site-border);
  flex-wrap: wrap;
}

.product-card__cart-form {
  margin: 0;
}

.product-card__cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--site-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-card__cart-button:hover,
.product-card__cart-button:focus-visible {
  background: var(--site-primary-dark, #2434ff);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(54, 84, 255, 0.25);
  outline: none;
}

.product-card__cart-icon {
  font-size: 1.1rem;
}

.product-card__details-link {
  color: var(--site-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card__details-link:hover,
.product-card__details-link:focus-visible {
  color: var(--site-primary);
  text-decoration: underline;
  outline: none;
}

.products-page {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  padding: 0;
}

.products-page__filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--site-header-height) + 1.5rem);
  align-self: flex-start;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(27, 37, 75, 0.08);
  border: 1px solid rgba(27, 37, 75, 0.06);
}

.products-filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(27, 37, 75, 0.08);
  margin-bottom: 0.5rem;
}

.products-filters__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--site-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-filters__title::before {
  content: '🎯';
  font-size: 1.75rem;
}

.products-filters__reset {
  font-size: 0.875rem;
  color: var(--site-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(54, 84, 255, 0.08);
  transition: all 0.2s ease;
  font-weight: 600;
}

.products-filters__reset:hover {
  background: rgba(54, 84, 255, 0.15);
  transform: translateY(-1px);
}

.products-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.04), rgba(0, 119, 190, 0.04));
  border: 1px solid rgba(0, 91, 150, 0.1);
  transition: all 0.3s ease;
}

.products-filter-group:hover {
  border-color: rgba(54, 84, 255, 0.2);
  box-shadow: 0 2px 12px rgba(54, 84, 255, 0.08);
}

.products-filter-group--inline {
  gap: 0.5rem;
}

.products-filter__label {
  font-weight: 700;
  color: var(--site-text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.products-filter__search {
  display: flex;
  gap: 0.6rem;
}

.products-filter__search input {
  flex: 1;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(27, 37, 75, 0.12);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.products-filter__search input:focus {
  outline: none;
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px rgba(54, 84, 255, 0.1);
}

.products-filter__search input::placeholder {
  color: var(--site-muted);
  opacity: 0.7;
}

.products-filter__search-btn,
.products-filter__apply {
  border: none;
  background: linear-gradient(135deg, #005b96 0%, #0077be 100%);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.25);
  position: relative;
  overflow: hidden;
}

.products-filter__search-btn::before,
.products-filter__apply::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.products-filter__search-btn:hover::before,
.products-filter__apply:hover::before {
  opacity: 1;
}

.products-filter__search-btn:hover,
.products-filter__apply:hover,
.products-filter__search-btn:focus,
.products-filter__apply:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 91, 150, 0.35);
  outline: none;
}

.products-filter__search-btn:active,
.products-filter__apply:active {
  transform: translateY(0);
}

.products-filter__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--site-text);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.products-filter__option:hover {
  background: rgba(54, 84, 255, 0.06);
}

.products-filter__option input {
  accent-color: var(--site-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.products-filter__option span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.products-filter__option:has(input:checked) span {
  color: var(--site-primary);
  font-weight: 600;
}

.products-filter__range {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.5rem;
  align-items: center;
}

.products-filter__range input {
  width: 100%;
  border-radius: var(--site-radius-sm);
  border: 1px solid var(--site-border);
  padding: 0.55rem 0.75rem;
}

.products-filter__range-separator {
  color: var(--site-muted);
}

.products-filter__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--site-muted);
}

.products-filter__actions {
  display: flex;
  justify-content: flex-start;
}

.products-page__content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(27, 37, 75, 0.06);
  border: 1px solid rgba(27, 37, 75, 0.05);
}

.products-header__info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
}

.products-header__count {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--site-text);
}

.products-header__active {
  color: var(--site-primary);
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.12), rgba(0, 119, 190, 0.12));
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(54, 84, 255, 0.2);
}

.products-header__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.products-header__sort-label {
  font-weight: 600;
  color: var(--site-text);
}

.products-header__sort-select {
  border-radius: 0.75rem;
  border: 1.5px solid rgba(27, 37, 75, 0.12);
  padding: 0.625rem 1rem;
  font-weight: 500;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.products-header__sort-select:hover,
.products-header__sort-select:focus {
  border-color: var(--site-primary);
  box-shadow: 0 0 0 3px rgba(54, 84, 255, 0.1);
  outline: none;
}

.products-empty {
  text-align: center;
  padding: 4rem 3rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.06), rgba(0, 119, 190, 0.06));
  border: 2px dashed rgba(0, 91, 150, 0.2);
}

.products-empty::before {
  content: '🔍';
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.products-empty__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--site-text);
  margin-bottom: 1rem;
}

.products-empty__text {
  color: var(--site-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.products-empty__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #005b96 0%, #0077be 100%);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 0.875rem;
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.25);
  transition: all 0.3s ease;
}

.products-empty__reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 91, 150, 0.35);
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.products-grid__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(27, 37, 75, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(27, 37, 75, 0.06);
  position: relative;
}

.products-grid__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #005b96, #0077be, #00a0e3);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 10;
}

.products-grid__card:hover::before {
  transform: scaleX(1);
}

.products-grid__card:hover,
.products-grid__card:focus {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 91, 150, 0.2);
  outline: none;
  border-color: rgba(0, 91, 150, 0.2);
}

.products-grid__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.products-grid__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.products-grid__card:hover .products-grid__media::after {
  opacity: 1;
}

.products-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid__card:hover .products-grid__media img {
  transform: scale(1.1);
}

.products-grid__badge {
  position: absolute;
  inset: 1rem 1rem auto auto;
  background: linear-gradient(135deg, #005b96 0%, #0077be 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 91, 150, 0.4);
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-100px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-grid__card:hover .products-grid__badge {
  transform: translateY(0);
}

.products-grid__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 2rem 2rem;
}

.products-grid__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--site-text);
  font-size: 0.875rem;
}

.products-grid__category {
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.12), rgba(0, 119, 190, 0.12));
  color: var(--site-primary);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 91, 150, 0.15);
}

.products-grid__dot {
  opacity: 0.4;
}

.products-grid__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--site-text);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.products-grid__card:hover .products-grid__title {
  color: var(--site-primary);
}

.products-grid__excerpt {
  color: var(--site-muted);
  line-height: 1.7;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.products-grid__price {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.products-grid__price-current {
  color: var(--site-primary);
  font-weight: 800;
  font-size: 1.25rem;
}

.products-grid__price-original {
  font-size: 0.95rem;
  color: var(--site-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.products-grid__rating {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--site-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.products-grid__rating-icon {
  color: #fbbf24;
  font-size: 1rem;
}

.products-grid__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(27, 37, 75, 0.06);
}

.products-grid__tag {
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.08), rgba(0, 119, 190, 0.08));
  color: var(--site-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 91, 150, 0.1);
  transition: all 0.2s ease;
}

.products-grid__tag:hover {
  background: linear-gradient(135deg, rgba(0, 91, 150, 0.15), rgba(0, 119, 190, 0.15));
  border-color: rgba(0, 91, 150, 0.2);
  transform: translateY(-1px);
}

.product-hero {
  position: relative;
  border-radius: calc(var(--site-radius) * 1.1);
  overflow: hidden;
  padding: 3.5rem;
  color: #fff;
  margin-bottom: 3rem;
  background-size: cover;
  background-position: center;
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 27, 65, 0.78), rgba(23, 40, 92, 0.65));
}

.product-hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.75rem;
  align-items: start;
}

.product-hero__info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-hero__category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.product-hero__title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0;
}

.product-hero__description {
  font-size: 1.05rem;
  line-height: 1.9;
}

.product-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 500;
}

.product-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-hero__rating-icon {
  color: #ffd772;
}

.product-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-hero__tag {
  background: rgba(255, 255, 255, 0.16);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.product-hero__pricing {
  background: rgba(10, 16, 46, 0.72);
  padding: 2.2rem;
  border-radius: calc(var(--site-radius) * 0.9);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-hero__pricing-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.product-hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.product-hero__price-current {
  font-size: 1.6rem;
  font-weight: 800;
}

.product-hero__price-original {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.6;
}

.product-hero__benefits {
  margin: 0;
  padding-inline-start: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-hero__cart-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-hero__quantity {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-hero__quantity-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.product-hero__quantity-input {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.5rem;
  border-radius: var(--site-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-hero__quantity-input input {
  width: 3.5rem;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  appearance: textfield;
}

.product-hero__quantity-input input::-webkit-outer-spin-button,
.product-hero__quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-hero__quantity-button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-hero__quantity-button:hover,
.product-hero__quantity-button:focus {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.product-hero__cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--site-radius-sm);
  border: none;
  background: linear-gradient(135deg, #20d6bc, #53e3f0);
  color: #042b30;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-hero__cart-button:hover,
.product-hero__cart-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(32, 214, 188, 0.4);
}

.product-hero__cart-icon {
  font-size: 1.2rem;
}

.product-hero__cart-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.product-hero__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--site-accent);
  color: #043135;
  border-radius: var(--site-radius-sm);
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-hero__cta:hover,
.product-hero__cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(32, 214, 188, 0.35);
}

.product-hero__note {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.product-section {
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--site-radius);
  padding: 2.5rem;
  box-shadow: var(--site-shadow);
}

.product-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.product-section__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  color: var(--site-text);
}

.product-section__subtitle {
  margin: 0;
  color: var(--site-muted);
}

.product-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-module {
  background: rgba(54, 84, 255, 0.08);
  border-radius: var(--site-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-module__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.product-module__description {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.product-module__duration {
  color: var(--site-primary);
  font-weight: 600;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.product-stat {
  background: rgba(54, 84, 255, 0.08);
  border-radius: var(--site-radius-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.product-stat__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--site-primary);
}

.product-stat__label {
  color: var(--site-muted);
}

.product-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-faq__item {
  background: rgba(54, 84, 255, 0.06);
  border-radius: var(--site-radius-sm);
  padding: 1.1rem 1.4rem;
}

.product-faq__question {
  font-weight: 700;
}

.product-faq__answer {
  margin: 0.75rem 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.product-comments.blog-comments {
  margin-top: 4rem;
}

.product-comments .blog-comments__header {
  flex-wrap: wrap;
  gap: 1rem;
}

.product-comments .blog-comments__subtitle {
  color: var(--site-muted);
}

.product-comments__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-comments__empty {
  color: var(--site-muted);
}

.product-comment__card {
  position: relative;
  padding: 1.6rem 1.8rem;
}

.product-comment__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-comment__identity {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.product-comment__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-comment__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(250, 204, 21, 0.15);
  color: #b45309;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}

.product-comment__rating-icon {
  color: #facc15;
}

.product-comments__count {
  color: var(--site-muted);
  font-weight: 600;
}

.product-comment__replies {
  border-right-color: rgba(54, 84, 255, 0.18);
}

.product-comments__alert {
  margin-top: 1rem;
  margin-bottom: 0;
  border-radius: var(--site-radius-sm);
}

.product-comments__form .blog-comment-form__row {
  gap: 1rem 1.5rem;
}

.product-comments__form .blog-comment-form__field {
  min-width: 220px;
}

.product-comments__form .blog-comment-form__field select {
  border-radius: var(--site-radius-sm);
  border: 1px solid rgba(27, 37, 75, 0.15);
  padding: 0.75rem 1rem;
}

.product-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-related__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: rgba(54, 84, 255, 0.06);
  border-radius: var(--site-radius-sm);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-related__card:hover,
.product-related__card:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(27, 37, 75, 0.18);
}

.product-related__media {
  border-radius: var(--site-radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.product-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-related__title {
  margin: 0;
  font-weight: 700;
}

.product-related__excerpt {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.6;
}

.product-related__price {
  font-weight: 700;
  color: var(--site-primary);
}

@media (max-width: 1200px) {
  .products-page {
    grid-template-columns: 1fr;
  }

  .products-page__filters {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(54, 84, 255, 0.06);
    padding: 1.5rem;
    border-radius: var(--site-radius);
  }

  .products-filter-group {
    flex: 1 1 280px;
  }

  .product-hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero__pricing {
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .product-slider {
    grid-template-columns: 1fr;
  }

  .product-slider__control {
    display: none;
  }

  .product-slider__track {
    grid-auto-columns: minmax(240px, 80%);
    padding-inline: 0.25rem;
  }

  .products-page {
    padding: 1.5rem;
  }

  .products-filter-group {
    flex: 1 1 100%;
  }

  .product-hero {
    padding: 2.2rem;
  }

  .product-hero__cart-form {
    align-items: stretch;
  }

  .product-hero__cart-button,
  .product-hero__cta {
    width: 100%;
  }

  .product-section {
    padding: 1.8rem;
  }
}

@media (max-width: 576px) {
  .products-page {
    padding: 1.25rem;
  }

  .product-hero__title {
    font-size: 1.8rem;
  }

  .product-section__title {
    font-size: 1.5rem;
  }
}

/* Cart styles */
.cart-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.cart__header {
    margin-bottom: 2rem;
    text-align: center;
}

.cart__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cart__subtitle {
    color: var(--color-muted);
    margin: 0;
}

.cart__alert {
    max-width: 48rem;
    margin: 0 auto 1.5rem;
}

.cart-empty {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 30, 56, 0.08);
}

.cart-empty__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-empty__text {
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.cart-empty__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cart-empty__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 111, 238, 0.25);
}

.cart-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(54, 84, 255, 0.08), rgba(32, 214, 188, 0.1));
    box-shadow: 0 24px 48px rgba(15, 27, 63, 0.1);
    align-items: center;
}

.cart-overview__metric {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cart-overview__metric-label {
    font-size: .85rem;
    color: rgba(16, 24, 40, 0.6);
}

.cart-overview__metric-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}

.cart-overview__cta {
    justify-self: end;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(0, 111, 238, 0.24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cart-overview__cta:hover,
.cart-overview__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(0, 111, 238, 0.28);
    color: #fff;
    outline: none;
}

.cart-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 30, 56, 0.08);
}

.cart-table th,
.cart-table td {
    padding: 1.25rem 1.5rem;
    text-align: right;
}

.cart-table thead {
    background: #f7f8fb;
    color: #1d2939;
    font-weight: 600;
}

.cart-item__product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item__thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef1f6;
}

.cart-item__name {
    font-weight: 600;
    color: #101828;
}

.cart-item__type {
    display: block;
    font-size: .875rem;
    color: var(--color-muted);
    margin-top: .25rem;
}

.cart-item__price {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-weight: 600;
}

.cart-item__price-original {
    font-size: .875rem;
    text-decoration: line-through;
    color: var(--color-muted);
}

.cart-item__quantity-form .input-group {
    display: flex;
    gap: .5rem;
}

.cart-item__quantity-input {
    min-width: 5.5rem;
    max-width: 8.5rem;
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background-color: #ffffff;
    color: #101828;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
}

.cart-item__quantity-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.15);
    outline: none;
}

.cart-item__quantity-input[readonly] {
    background-color: #f1f5f9;
    color: #475569;
    cursor: default;
}

.cart-item__quantity-button {
    white-space: nowrap;
}

.cart-item__total {
    font-weight: 700;
    color: #101828;
}

.cart-item__remove {
    color: #dc3545;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.cart-summary__card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(15, 30, 56, 0.08);
    position: sticky;
    top: 120px;
}

.cart-summary__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-summary__details {
    margin: 0;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: .75rem;
    font-size: 1rem;
}

.cart-summary__row--total {
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-summary__divider {
    height: 1px;
    background: #e4e7ec;
    margin: 1rem 0;
}

.cart-summary__discount-form {
    margin-top: 1.5rem;
    display: grid;
    gap: .75rem;
}

.cart-summary__discount-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.25rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    font-weight: 600;
    transition: background .2s ease;
}

.cart-summary__discount-button:hover {
    background: #1e40af;
}

.cart-summary__discount-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.cart-summary__discount-remove button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-weight: 600;
}

.cart-summary__cta {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.cart-summary__checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2a 100%);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.cart-summary__continue {
    display: inline-flex;
    justify-content: center;
    padding: .65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    color: #101828;
    font-weight: 600;
}

.cart-table__actions {
    text-align: center;
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-overview {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .cart-overview__cta {
        justify-self: stretch;
    }

    .cart-summary__card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        border-bottom: 1px solid #e4e7ec;
        padding: 1.5rem 1rem;
    }

    .cart-table td {
        padding: .5rem 0;
        text-align: left;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .85rem;
        color: var(--color-muted);
        margin-bottom: .25rem;
    }

    .cart-table__actions {
        text-align: left;
    }
}

/* ===============================================
   Sticky Navbar & Scroll to Top
   =============================================== */

/* Sticky Navbar Dynamic Classes */
.site-navbar.navbar-visible {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Animation for scroll to top button */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scroll-to-top.animate-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced navbar shadow on scroll */
.site-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.completion-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 21, 46, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}

.completion-overlay--active {
    opacity: 1;
    pointer-events: auto;
}

.completion-dialog {
    width: min(420px, 92vw);
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.completion-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(54, 84, 255, 0.08), rgba(32, 214, 188, 0.12));
    opacity: 0.9;
    z-index: 0;
}

.completion-dialog > * {
    position: relative;
    z-index: 1;
}

.completion-spinner {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 4px solid rgba(54, 84, 255, 0.15);
    border-top-color: rgba(54, 84, 255, 0.9);
    border-right-color: rgba(32, 214, 188, 0.9);
    animation: completion-rotate 1.15s linear infinite;
    box-shadow: 0 0 18px rgba(54, 84, 255, 0.25);
}

.completion-message h5 {
    font-weight: 700;
    color: #152149;
    margin-bottom: 0.4rem;
}

.completion-progress {
    margin-top: 1.25rem;
}

.completion-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(21, 33, 73, 0.1);
    overflow: hidden;
    position: relative;
}

.completion-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #3654ff 0%, #20d6bc 100%);
    transition: width 0.35s ease;
}

.completion-progress-text {
    margin-top: 0.75rem;
    font-weight: 600;
    color: #152149;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

@keyframes completion-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* RTL support for scroll to top button */
html[dir="rtl"] .scroll-to-top {
    left: auto;
    right: 30px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .scroll-to-top {
        left: auto;
        right: 20px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    display: none;
    justify-content: space-around;
    align-items: center;
    direction: rtl;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8e8e8e;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
    flex: 1 1 0;
    min-width: 0;
    max-width: 20%;
    gap: 0.35rem;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item:hover {
    color: #3654ff;
    text-decoration: none;
}

.mobile-bottom-nav-item:hover .mobile-bottom-nav-icon {
    color: #3654ff;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-bottom-nav-item.active {
    color: #3654ff !important;
}

.mobile-bottom-nav-item.active i {
    color: #3654ff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-bottom-nav-icon-wrapper {
    position: relative;
    display: inline-block;
}

.mobile-bottom-nav-icon {
    font-size: 1.6rem;
    line-height: 1;
    transition: color 0.2s ease;
    color: #8e8e8e;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.mobile-bottom-nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .mobile-bottom-nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
        padding: 0 3px;
        border-width: 1.5px;
    }
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    color: #3654ff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: normal !important;
}

.mobile-bottom-nav-item.active i.mobile-bottom-nav-icon {
    color: #3654ff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    color: #8e8e8e;
    transition: color 0.2s ease;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
    font-weight: 500;
    color: #3654ff;
}

/* Add padding to body on mobile and tablet to prevent content from being hidden behind bottom nav */
@media screen and (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-main {
        margin-bottom: 75px !important;
    }
    
    .site-container {
        margin-bottom: 75px !important;
    }
    
    footer {
        margin-bottom: 75px;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .mobile-bottom-nav {
        padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-nav-item {
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
    }
    
    .mobile-bottom-nav-icon {
        font-size: 1.5rem;
    }
    
    .mobile-bottom-nav-label {
        font-size: 0.65rem;
    }
    
    .mobile-bottom-nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -6px;
        right: -6px;
        padding: 0 3px;
        border-width: 1.5px;
    }
}

/* Hide on desktop (lg and above) */
@media screen and (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
        visibility: hidden !important;
    }
}