/* Phase 12 — Public site layout styles */

.container {
  width: 100%;
  max-width: var(--content-max-width, 1280px);
  margin-inline: auto;
  padding-inline: var(--space-4, 1rem);
}

/* ── Header ── */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 300;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-image: none;
  color: var(--color-text, #1a1a1a);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.site-header a {
  color: inherit;
}

.site-header a:hover {
  color: var(--color-primary, #1D358E);
}

.site-header--matchday {
  border-bottom-color: rgba(29, 53, 142, 0.25);
}

.site-header__matchday-strip {
  background: linear-gradient(90deg, #152a6e, #1D358E, #152a6e);
  color: #fff;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  min-height: 72px;
}

@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    grid-column-gap: var(--space-3, 0.75rem);
    column-gap: var(--space-3, 0.75rem);
  }

  .site-header__logo {
    grid-column: 1;
  }

  .site-header__nav-desktop {
    grid-column: 2;
  }

  .site-header__utilities {
    grid-column: 3;
  }
}

.site-header__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
}

.site-header__nav-desktop {
  display: none;
  flex: 1 1;
  min-width: 0;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.desktop-nav {
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.desktop-nav__bar {
  width: 100%;
  min-width: 0;
}

.desktop-nav__measure {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .site-header__nav-desktop { display: flex; }
  .mobile-nav__trigger { display: none; }
}

.site-header__utilities {
  display: none;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: var(--space-1, 0.25rem);
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  position: relative;
  z-index: 3;
}

@media (min-width: 1024px) {
  .site-header__utilities { display: flex; -webkit-margin-start: 0; margin-inline-start: 0; }
}

.site-header__utility {
  color: inherit;
  text-decoration: none;
  padding: var(--space-2, 0.5rem);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header__utility svg {
  display: block;
}

.site-header__lang {
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
  white-space: nowrap;
}

.site-header__tickets {
  min-height: 44px;
  align-self: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-nav__trigger {
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .mobile-nav__trigger { display: none; }
}

.mobile-nav__hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

/* Desktop nav */

.desktop-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  min-width: 0;
}

.desktop-nav__item {
  position: relative;
  flex-shrink: 0;
}

.desktop-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 44px;
  padding: var(--space-2, 0.5rem) clamp(0.375rem, 0.55vw, 0.75rem);
  font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm, 0.375rem);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.desktop-nav__link:hover,
.desktop-nav__link:focus-visible {
  background: rgba(var(--color-primary-rgb, 29, 53, 142), 0.08);
}

.desktop-nav__link--has-menu::after,
.mobile-nav__expand::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border: none;
  background-color: currentColor;
  -webkit-clip-path: polygon(18% 38%, 50% 68%, 82% 38%);
          clip-path: polygon(18% 38%, 50% 68%, 82% 38%);
  transform: rotate(0deg);
  transform-origin: center center;
  -webkit-margin-start: 0.35em;
          margin-inline-start: 0.35em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-nav__expand::after {
  width: 0.6em;
  height: 0.6em;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}

.desktop-nav__item--dropdown:hover .desktop-nav__link--has-menu::after,
.desktop-nav__item--dropdown:focus-within .desktop-nav__link--has-menu::after,
.mobile-nav__expand[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.desktop-nav__dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1a1a1a);
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.15));
  list-style: none;
  padding: var(--space-2, 0.5rem);
  z-index: 20;
  margin: 0;
  display: none;
}

.desktop-nav__item--dropdown:hover .desktop-nav__dropdown,
.desktop-nav__item--dropdown:focus-within .desktop-nav__dropdown {
  display: block;
}

.desktop-nav__dropdown-link {
  display: block;
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm, 0.375rem);
  cursor: pointer;
}

.desktop-nav__dropdown-link:hover {
  background: var(--color-background, #fafafa);
}

.desktop-nav__link--highlight {
  color: var(--color-primary, #1D358E);
}

.desktop-nav__dropdown--overflow {
  min-width: 240px;
}

.desktop-nav__dropdown-label {
  display: block;
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem) var(--space-1, 0.25rem);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  pointer-events: none;
}

[dir="rtl"] .desktop-nav__dropdown-label {
  letter-spacing: 0;
  text-transform: none;
}

.desktop-nav__dropdown-nested {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-1, 0.25rem);
}

/* Mobile nav drawer */
.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

.mobile-nav__drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: min(320px, 90vw);
  height: 100%;
  height: 100dvh;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1a1a1a);
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-nav__drawer--open {
  animation: mobile-drawer-in 0.25s ease forwards;
}

@keyframes mobile-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

[dir="rtl"] .mobile-nav__drawer--open {
  animation: mobile-drawer-in-rtl 0.25s ease;
}

@keyframes mobile-drawer-in-rtl {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4, 1rem);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.mobile-nav__sections {
  padding-bottom: var(--space-6, 1.5rem);
}

.mobile-nav__title {
  font-weight: 700;
  font-size: var(--font-size-lg, 1.125rem);
}

.mobile-nav__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav__list,
.mobile-nav__sublist,
.mobile-nav__quick-list {
  list-style: none;
}

.mobile-nav__expand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  text-align: start;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  gap: var(--space-2, 0.5rem);
}

.mobile-nav__group-label {
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem) var(--space-1, 0.25rem);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0;
}

.mobile-nav__sublink,
.mobile-nav__link,
.mobile-nav__quick-list a,
.mobile-nav__lang {
  cursor: pointer;
}

.mobile-nav__link,
.mobile-nav__sublink {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  text-align: start;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}

.mobile-nav__link--highlight {
  color: var(--color-primary, #1D358E);
  font-weight: 700;
}

.mobile-nav__sublink {
  -webkit-padding-start: var(--space-8, 2rem);
          padding-inline-start: var(--space-8, 2rem);
  font-size: var(--font-size-sm, 0.875rem);
}

.mobile-nav__quick {
  padding: var(--space-4, 1rem);
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.mobile-nav__lang {
  display: block;
  padding: var(--space-4, 1rem);
  text-align: center;
  font-weight: 600;
  color: var(--color-primary, #1D358E);
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg, var(--color-background-dark, #0d0d0d));
  color: var(--footer-text, var(--color-text-inverse, #fff));
  margin-top: auto;
}

.site-footer__complaints {
  background: var(--color-primary, #1D358E);
  text-align: center;
  padding: var(--space-3, 0.75rem);
}

.site-footer__complaints-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer__main {
  display: grid;
  grid-gap: var(--space-8, 2rem);
  gap: var(--space-8, 2rem);
  padding-block: var(--space-12, 3rem);
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.site-footer__club-name {
  font-size: var(--font-size-xl, 1.25rem);
  font-weight: 800;
  margin-top: var(--space-3, 0.75rem);
}

.site-footer__tagline {
  opacity: 0.85;
  margin-top: var(--space-1, 0.25rem);
}

.site-footer__location {
  font-size: var(--font-size-sm, 0.875rem);
  opacity: 0.65;
  margin-top: var(--space-2, 0.5rem);
}

.site-footer__brand img {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer__links {
  list-style: none;
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  display: block;
  padding-block: var(--space-1, 0.25rem);
}

.site-footer__links a:hover { opacity: 1; }

.site-footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.site-footer__newsletter-form input {
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-sm, 0.375rem);
  border: 1px solid var(--color-border, #e5e7eb);
}

.site-footer__bar {
  padding: var(--space-4, 1rem);
  text-align: center;
  font-size: var(--font-size-sm, 0.875rem);
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Page hero ── */
.page-hero {
  position: relative;
  background: var(--gradient-primary-linear, linear-gradient(135deg, #2B4CB8, #1D358E));
  color: var(--color-text-inverse, #fff);
  padding-block: var(--section-spacing-md, 5rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 16px,
      rgba(255, 255, 255, 0.03) 16px,
      rgba(255, 255, 255, 0.03) 32px
    );
  pointer-events: none;
}

.page-hero__content {
  position: relative;
}

.page-hero__title {
  font-size: var(--font-size-4xl, 2.25rem);
  margin-bottom: var(--space-4, 1rem);
}

.page-hero__intro {
  font-size: var(--font-size-lg, 1.125rem);
  opacity: 0.9;
  max-width: 60ch;
}

.content-page {
  padding-block: var(--section-spacing-md, 5rem);
}

/* ── Homepage ── */
.homepage-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary, radial-gradient(ellipse, #2B4CB8, #1D358E));
  color: #fff;
}

.homepage-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-4, 1rem);
}

.section-dark {
  background: var(--section-dark-bg, #0d0d0d);
  color: var(--section-dark-text, #fff);
}

.section-light {
  background: var(--section-light-bg, #fafafa);
  color: var(--section-light-text, #1a1a1a);
}

.section-title {
  font-size: var(--font-size-2xl, 1.5rem);
  margin-bottom: var(--space-6, 1.5rem);
  text-align: center;
}

.homepage-ticker {
  background: linear-gradient(90deg, #152a6e, #1D358E, #152a6e);
  background-size: 200% 100%;
  animation: ticker-shimmer 8s ease infinite;
  color: #fff;
  padding: var(--space-3, 0.75rem);
}

@keyframes ticker-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.homepage-ticker__label {
  flex-shrink: 0;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

.homepage-ticker__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: ticker-pulse 1.5s ease infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.homepage-ticker__inner {
  display: flex;
  gap: var(--space-4, 1rem);
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.homepage-ticker__text {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .homepage-ticker {
    animation: none;
  }
}

.homepage-match,
.homepage-news,
.homepage-players,
.homepage-standings {
  padding-block: var(--section-spacing-md, 5rem);
}

.match-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6, 1.5rem);
  padding: var(--space-8, 2rem);
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  margin-bottom: var(--space-4, 1rem);
}

.news-grid {
  display: grid;
  grid-gap: var(--space-6, 1.5rem);
  gap: var(--space-6, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-bottom: var(--space-6, 1.5rem);
}

.news-card {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 4px 6px rgba(0,0,0,0.1));
}

.news-card__image {
  height: 160px;
  background: var(--color-border, #e5e7eb);
}

.news-card__title,
.news-card__excerpt {
  padding-inline: var(--space-4, 1rem);
}

.news-card__title { padding-top: var(--space-4, 1rem); }

.player-scroll {
  display: flex;
  gap: var(--space-4, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4, 1rem);
}

.player-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-4, 1rem);
  text-align: center;
}

.player-card__number {
  display: block;
  font-size: var(--font-size-3xl, 1.875rem);
  font-weight: 800;
  color: var(--color-primary, #1D358E);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
}

.standings-table th,
.standings-table td {
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  text-align: start;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.standings-table__highlight {
  background: rgba(29, 53, 142, 0.08);
  font-weight: 700;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: var(--space-4, 1rem);
  gap: var(--space-4, 1rem);
}

.sponsor-grid__item {
  height: 64px;
  background: var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 0.375rem);
}

.homepage-banner {
  padding-block: var(--section-spacing-lg, 7rem);
  text-align: center;
}

.homepage-banner__inner h2 {
  font-size: var(--font-size-3xl, 1.875rem);
  margin-bottom: var(--space-2, 0.5rem);
}

.homepage-newsletter {
  padding-block: var(--section-spacing-md, 5rem);
  text-align: center;
}

.homepage-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 0.5rem);
  justify-content: center;
  margin-top: var(--space-4, 1rem);
}

.homepage-newsletter__form input {
  padding: var(--space-3, 0.75rem);
  border-radius: var(--radius-sm, 0.375rem);
  border: none;
  min-width: 240px;
}

/* ── Forms ── */
.contact-form,
.search-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-1, 0.25rem);
  font-weight: 600;
}

.search-form {
  flex-direction: row;
  max-width: 100%;
}

.search-form__input { flex: 1 1; }

.search-results {
  margin-top: var(--space-8, 2rem);
}

.search-results__hint {
  color: var(--color-text-muted, #6b7280);
  margin-top: var(--space-6, 1.5rem);
}

.search-results__count {
  font-weight: 600;
  margin-bottom: var(--space-4, 1rem);
}

.search-results__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 0.75rem);
}

.search-results__link {
  display: block;
  padding: var(--space-4, 1rem);
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-results__link:hover {
  border-color: rgba(var(--color-primary-rgb, 29, 53, 142), 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.search-results__type {
  display: inline-block;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary, #1D358E);
  margin-bottom: var(--space-1, 0.25rem);
}

.search-results__title {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-lg, 1.125rem);
}

.search-results__excerpt {
  display: block;
  margin-top: var(--space-2, 0.5rem);
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.5;
}

.search-results__suggestions {
  margin-top: var(--space-4, 1rem);
  -webkit-padding-start: var(--space-5, 1.25rem);
          padding-inline-start: var(--space-5, 1.25rem);
  color: var(--color-text-muted, #6b7280);
}

/* ── Error pages ── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8, 2rem);
}

.error-page__code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--color-primary, #1D358E);
  line-height: 1;
}

/* ── Sports / media listing ── */
.listing-grid {
  display: grid;
  grid-gap: var(--space-6, 1.5rem);
  gap: var(--space-6, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.listing-card {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-4, 1rem);
  box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.08));
}

.public-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-background, #fafafa);
}

.public-layout__main {
  flex: 1 1;
  overflow-x: hidden;
}

.breadcrumb {
  padding-block: var(--space-3, 0.75rem);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 0.5rem);
  list-style: none;
  font-size: var(--font-size-sm, 0.875rem);
}

.breadcrumb__item:not(:last-child)::after {
  content: "/";
  -webkit-margin-start: var(--space-2, 0.5rem);
          margin-inline-start: var(--space-2, 0.5rem);
  opacity: 0.5;
}

/* Store, cart & checkout — Al-Yarmouk FC shop */

/* ── Store page ── */
.store-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-10, 2.5rem);
}

.store-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 1rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #152a6e 0%, #1D358E 45%, #2B4CB8 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(29, 53, 142, 0.25);
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.15), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.2), transparent 50%);
  pointer-events: none;
}

.store-hero__content {
  position: relative;
  max-width: 36rem;
}

.store-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.store-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.store-hero__intro {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
  margin: 0;
}

.store-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--color-primary, #1D358E);
  display: inline-block;
}

/* ── Product grid & cards ── */
.store-product-grid {
  gap: var(--space-5, 1.25rem);
}

.store-product-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  border: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(29, 53, 142, 0.12);
}

.store-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.store-product-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.store-product-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.04));
}

.store-product-card__image::after {
  content: attr(data-initial);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(29, 53, 142, 0.12);
  text-transform: uppercase;
}

.store-product-card__image--featured {
  background: linear-gradient(145deg, #fde8ec 0%, #f5d0d8 100%);
}

.store-product-card__badges {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 1;
}

.store-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-badge--sale {
  background: var(--color-primary, #1D358E);
  color: #fff;
}

.store-badge--new {
  background: #111827;
  color: #fff;
}

.store-product-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1;
}

.store-product-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--color-text, #111827);
}

.store-product-card__price {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary, #1D358E);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-product-card__price--was {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neutral-500, #6b7280);
  text-decoration: line-through;
}

.store-product-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary, #1D358E);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}

.store-product-card:hover .store-product-card__cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Product detail ── */
.store-product-detail {
  display: grid;
  grid-gap: var(--space-8, 2rem);
  gap: var(--space-8, 2rem);
}

.store-product-detail__back {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: -moz-fit-content;
  width: fit-content;
  text-decoration: none;
  font-weight: 600;
}

.store-product-detail__back-icon {
  font-size: 1.1rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .store-product-detail {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.store-product-detail__media {
  aspect-ratio: 1;
  border-radius: var(--radius-xl, 1rem);
  background: linear-gradient(145deg, #fde8ec 0%, #f3f4f6 50%, #e5e7eb 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border, #e5e7eb);
  display: grid;
  place-items: center;
}

.store-product-detail__media::after {
  content: attr(data-initial);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 900;
  color: rgba(29, 53, 142, 0.1);
  text-transform: uppercase;
}

.store-product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-product-detail__sku {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500, #6b7280);
  margin: 0;
}

.store-product-detail__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.store-product-detail__price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fff5f7, #fff);
  border: 1px solid #fecdd3;
  border-radius: var(--radius-lg, 0.75rem);
}

.store-product-detail__price--sale {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary, #1D358E);
}

.store-product-detail__price--was {
  font-size: 1rem;
  color: var(--neutral-500, #6b7280);
  text-decoration: line-through;
}

.store-product-detail__description {
  line-height: 1.7;
  color: var(--neutral-700, #374151);
}

.store-product-detail__links {
  font-size: 0.9rem;
  color: var(--neutral-600, #4b5563);
}

.store-product-detail__links a {
  color: var(--color-primary, #1D358E);
  font-weight: 600;
}

.store-product-detail__related {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.store-product-reviews {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.store-product-reviews h3,
.store-product-reviews h4 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.store-product-reviews__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.store-product-review {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1rem 1.25rem;
}

.store-product-review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.store-product-review__stars {
  color: #f59e0b;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.store-product-review__title {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.store-product-review__body {
  margin: 0;
  line-height: 1.6;
  color: var(--neutral-700, #374151);
}

.store-product-reviews__empty {
  margin: 0 0 1.5rem;
  color: var(--neutral-600, #4b5563);
}

.store-product-reviews__form-wrap {
  background: var(--neutral-50, #fafafa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.25rem 1.5rem;
}

.store-product-reviews__form {
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
}

.store-product-reviews__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.store-product-reviews__form input,
.store-product-reviews__form select,
.store-product-reviews__form textarea {
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
}

.store-product-reviews__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.store-product-detail__related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-product-detail__related-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s;
}

.store-product-detail__related-list a:hover {
  border-color: var(--color-primary, #1D358E);
  color: var(--color-primary, #1D358E);
}

/* ── Add to cart ── */
.add-to-cart__row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.add-to-cart__qty {
  width: 4.5rem;
  text-align: center;
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem;
}

.add-to-cart .btn--primary {
  flex: 1 1;
  min-width: 10rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: 0 4px 14px rgba(29, 53, 142, 0.3);
}

/* ── Cart ── */
.cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-xl, 1rem);
  border: 2px dashed var(--color-border, #e5e7eb);
}

.cart-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.cart-empty p {
  font-size: 1.1rem;
  color: var(--neutral-600, #4b5563);
  margin-bottom: 1.5rem;
}

.cart-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 1.5rem);
}

.cart-layout__grid {
  display: grid;
  grid-gap: var(--space-6, 1.5rem);
  gap: var(--space-6, 1.5rem);
}

@media (min-width: 900px) {
  .cart-layout__grid {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

.cart-view__table-wrap {
  background: #fff;
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid var(--color-border, #e5e7eb);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cart-view__table {
  width: 100%;
  border-collapse: collapse;
}

.cart-view__table th {
  text-align: start;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neutral-500, #6b7280);
  background: var(--neutral-50, #fafafa);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.cart-view__table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  vertical-align: middle;
}

.cart-view__table tr:last-child td {
  border-bottom: none;
}

.cart-view__product-name {
  font-weight: 700;
  color: var(--color-text, #111827);
}

.cart-view__qty {
  width: 4rem;
  text-align: center;
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.4rem;
  font-weight: 600;
}

.cart-view__remove {
  background: none;
  border: none;
  color: var(--color-primary, #1D358E);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-view__remove:hover {
  color: #152a6e;
}

.cart-view__summary {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  position: -webkit-sticky;
  position: sticky;
  top: 6rem;
}

.cart-view__summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary, #1D358E);
}

.cart-view__summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--neutral-600, #4b5563);
}

.cart-view__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text, #111827);
}

.cart-view__summary-total span:last-child {
  color: var(--color-primary, #1D358E);
}

.cart-view__summary .btn--primary {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md, 0.5rem);
  text-align: center;
  display: block;
  box-shadow: 0 4px 14px rgba(29, 53, 142, 0.25);
}

.cart-view__trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  font-size: 0.8rem;
  color: var(--neutral-500, #6b7280);
  line-height: 1.5;
}

/* ── Checkout ── */
.checkout-layout {
  display: grid;
  grid-gap: var(--space-8, 2rem);
  gap: var(--space-8, 2rem);
}

@media (min-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checkout-form__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checkout-form__card {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.checkout-form__card-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--color-text, #111827);
}

.checkout-form__section {
  border: none;
  padding: 0;
  margin: 0;
}

.checkout-form__section legend {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--color-text, #111827);
}

.checkout-form__options {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .checkout-form__options--payment {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.checkout-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.checkout-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-option__box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 0.75rem);
  background: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkout-option input:checked + .checkout-option__box {
  border-color: var(--color-primary, #1D358E);
  background: #fff5f7;
  box-shadow: 0 0 0 1px var(--color-primary, #1D358E);
}

.checkout-option__icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-border, #d1d5db);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.checkout-option input:checked + .checkout-option__box .checkout-option__icon {
  border-color: var(--color-primary, #1D358E);
  background: var(--color-primary, #1D358E);
  box-shadow: inset 0 0 0 3px #fff;
}

.checkout-form__section label:not(.checkout-option) {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--neutral-700, #374151);
}

.checkout-form__section input:not([type="radio"]):not([type="checkbox"]),
.checkout-form__section select,
.checkout-form__section textarea {
  width: 100%;
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.checkout-form__section input:focus,
.checkout-form__section select:focus,
.checkout-form__section textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1D358E);
  box-shadow: 0 0 0 3px rgba(29, 53, 142, 0.12);
}

.checkout-form__row {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.checkout-form__row--promo {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.checkout-form__row--promo .checkout-form__section {
  flex: 1 1;
}

@media (min-width: 560px) {
  .checkout-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkout-form__consents {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-form__consents label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkout-form__consents input {
  margin-top: 0.2rem;
  accent-color: var(--color-primary, #1D358E);
}

.checkout-form .btn--primary {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: var(--radius-md, 0.5rem);
  box-shadow: 0 6px 20px rgba(29, 53, 142, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.checkout-form .btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29, 53, 142, 0.35);
}

.checkout-form .btn--primary:disabled {
  opacity: 0.7;
}

.checkout-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 6rem;
}

.checkout-summary {
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: #fff;
  border-radius: var(--radius-xl, 1rem);
  padding: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.checkout-summary__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.checkout-summary__items {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 220px;
  overflow-y: auto;
}

.checkout-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.checkout-summary__item-name {
  opacity: 0.9;
  flex: 1 1;
}

.checkout-summary__item-qty {
  opacity: 0.6;
  font-size: 0.8rem;
}

.checkout-summary__item-price {
  font-weight: 700;
  white-space: nowrap;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.35rem;
  font-weight: 800;
}

.checkout-summary__secure {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  opacity: 0.75;
  line-height: 1.5;
}

.checkout-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.checkout-step {
  flex: 1 1;
  min-width: 5rem;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--neutral-100, #f5f5f5);
  color: var(--neutral-500, #6b7280);
}

.checkout-step--done {
  background: #dcfce7;
  color: #15803d;
}

.checkout-step--active {
  background: var(--color-primary, #1D358E);
  color: #fff;
}

.form-error {
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md, 0.5rem);
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success {
  color: #15803d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Order confirmation ── */
.order-confirmation {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid var(--color-border, #e5e7eb);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.order-confirmation::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #15803d;
  font-size: 1.75rem;
  font-weight: 800;
}

.order-confirmation__message {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1.75rem;
  color: var(--color-text, #111827);
}

.order-confirmation__details {
  display: grid;
  grid-gap: 0.85rem;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  text-align: start;
  background: var(--neutral-50, #fafafa);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 1.25rem;
}

.order-confirmation__details > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.order-confirmation__details dt {
  font-weight: 600;
  color: var(--neutral-600, #4b5563);
}

.order-confirmation__details dd {
  margin: 0;
  font-weight: 800;
  color: var(--color-text, #111827);
}

.order-confirmation__links {
  font-size: 0.95rem;
}

.order-confirmation__links a {
  color: var(--color-primary, #1D358E);
  font-weight: 700;
}

@media (max-width: 640px) {
  .cart-view__table thead {
    display: none;
  }

  .cart-view__table tr {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
  }

  .cart-view__table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border: none;
  }

  .cart-view__table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--neutral-500, #6b7280);
  }

  .cart-view__table td:last-child {
    justify-content: flex-end;
    padding-top: 0.75rem;
  }
}

/* ── Salla-style storefront ── */
.salla-store {
  background: #fff;
  color: #1a1a1a;
}

.salla-store__hero {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.salla-store__hero-inner {
  max-width: 42rem;
  margin-inline: auto;
}

.salla-store__tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.salla-store__hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #111;
  text-transform: none;
  letter-spacing: normal;
}

.salla-store__hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.salla-store__hero-cta {
  box-shadow: 0 8px 24px rgba(29, 53, 142, 0.25);
}

.salla-store__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.salla-store__section-head h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 0;
  text-transform: none;
}

.salla-store__view-all {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary, #1D358E);
  text-decoration: none;
  white-space: nowrap;
}

.salla-store__categories {
  padding: 2rem 0 0.5rem;
}

.salla-store__category-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.salla-store__category-card {
  flex: 0 0 auto;
  min-width: 8rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.salla-store__category-card:hover {
  border-color: rgba(29, 53, 142, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.salla-store__category-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.salla-store__products {
  padding: 2rem 0 3rem;
}

.salla-store__product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .salla-store__product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .salla-store__product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.salla-product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.salla-product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.salla-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.salla-product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f9fafb, #f3f4f6);
  display: grid;
  place-items: center;
}

.salla-product-card__media::after {
  content: attr(data-initial);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(29, 53, 142, 0.1);
}

.salla-product-card__badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.salla-product-card__badge--sale {
  background: var(--color-primary, #1D358E);
  color: #fff;
}

.salla-product-card__badge--new {
  background: #111;
  color: #fff;
}

.salla-product-card__body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1;
}

.salla-product-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  text-transform: none;
}

.salla-product-card__price {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary, #1D358E);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.salla-product-card__price-was {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
}

.salla-store__trust {
  background: #fafafa;
  border-block: 1px solid #f0f0f0;
  padding: 2.5rem 0;
}

.salla-store__trust-grid {
  display: grid;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .salla-store__trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.salla-store__trust-item {
  text-align: center;
  padding: 0.5rem;
}

.salla-store__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.salla-store__trust-item h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  text-transform: none;
}

.salla-store__trust-item p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7280;
}

.salla-store__testimonials {
  padding: 3rem 0 4rem;
}

.salla-store__testimonials-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 1.75rem;
  text-transform: none;
}

.salla-store__testimonials-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .salla-store__testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .salla-store__testimonials-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.salla-testimonial {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.salla-testimonial__quote {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #374151;
  flex: 1 1;
}

.salla-testimonial__quote::before {
  content: "\201C";
  color: var(--color-primary, #1D358E);
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.3em;
  -webkit-margin-end: 0.15rem;
          margin-inline-end: 0.15rem;
}

.salla-testimonial__author {
  font-size: 0.85rem;
  font-weight: 800;
  color: #111;
}

/* Homepage visual polish — Al-Yarmouk FC */

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8, 2rem);
}

.section-header__eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary, #1D358E);
  margin-bottom: var(--space-2, 0.5rem);
}

[dir="rtl"] .section-header__eyebrow {
  letter-spacing: 0.05em;
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: inherit;
}

.section-header__line {
  width: 64px;
  height: 4px;
  margin: var(--space-4, 1rem) auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary, #1D358E),
    transparent
  );
}

/* ── Quick access pills ── */
.homepage-quick {
  background: var(--color-surface, #fff);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  padding-block: var(--space-5, 1.25rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.homepage-quick__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--space-3, 0.75rem);
  gap: var(--space-3, 0.75rem);
}

@media (min-width: 640px) {
  .homepage-quick__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.homepage-quick__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  padding: var(--space-4, 1rem);
  text-decoration: none;
  color: var(--color-text, #1a1a1a);
  background: var(--color-background, #fafafa);
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid transparent;
  transition:
    transform var(--transition-fast, 150ms ease),
    box-shadow var(--transition-fast, 150ms ease),
    border-color var(--transition-fast, 150ms ease),
    background var(--transition-fast, 150ms ease);
}

.homepage-quick__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--color-primary-rgb, 29, 53, 142), 0.12);
  border-color: rgba(var(--color-primary-rgb, 29, 53, 142), 0.2);
  background: #fff;
}

.homepage-quick__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2B4CB8, #1D358E);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 29, 53, 142), 0.35);
}

.homepage-quick__icon svg {
  display: block;
}

.homepage-quick__label {
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 700;
  text-align: center;
}

/* ── Homepage sections ── */
.homepage-section {
  padding-block: var(--section-spacing-md, 5rem);
}

.homepage-section--alt {
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
}

.homepage-section--match {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--color-primary-rgb, 29, 53, 142), 0.06), transparent),
    var(--color-background, #fafafa);
}

.homepage-section__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6, 1.5rem);
}

/* ── Stats showcase ── */
.homepage-stats-showcase {
  position: relative;
  padding-block: var(--section-spacing-lg, 7rem);
  background:
    linear-gradient(135deg, #0d0d0d 0%, #121826 40%, #152a6e 100%);
  color: #fff;
  overflow: hidden;
}

.homepage-stats-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.homepage-stats-showcase .section-header__eyebrow {
  color: var(--color-accent-light, #e8e8e8);
}

.homepage-stats-showcase .section-header__title {
  color: #fff;
}

.homepage-stats-showcase .section-header__line {
  background: linear-gradient(90deg, transparent, #fff, transparent);
}

.homepage-stats-showcase__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: var(--space-4, 1rem);
  gap: var(--space-4, 1rem);
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .homepage-stats-showcase__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.homepage-stats-showcase .animated-stat {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-6, 1.5rem) var(--space-4, 1rem);
  transition: transform var(--transition-base, 250ms ease), background var(--transition-base, 250ms ease);
}

.homepage-stats-showcase .animated-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.homepage-stats-showcase .animated-stat__value {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
}

.homepage-stats-showcase .animated-stat__label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

[dir="rtl"] .homepage-stats-showcase .animated-stat__label {
  letter-spacing: 0;
  text-transform: none;
}

/* ── News cards ── */
.news-card {
  transition:
    transform var(--transition-base, 250ms ease),
    box-shadow var(--transition-base, 250ms ease);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.news-card__image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #152a6e 0%, #1D358E 50%, #2B4CB8 100%);
  overflow: hidden;
}

.news-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.03) 8px,
      rgba(255, 255, 255, 0.03) 16px
    );
}

.news-card__badge {
  position: absolute;
  top: var(--space-3, 0.75rem);
  inset-inline-start: var(--space-3, 0.75rem);
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary, #1D358E);
}

.news-card__body {
  padding: var(--space-4, 1rem);
}

.news-card__title {
  padding: 0;
  font-size: var(--font-size-lg, 1.125rem);
  margin-bottom: var(--space-2, 0.5rem);
  line-height: 1.3;
}

.news-card__excerpt {
  padding: 0;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-muted, #6b7280);
  margin-bottom: var(--space-3, 0.75rem);
  line-height: 1.5;
}

.news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-inline: var(--space-4, 1rem);
  padding-bottom: var(--space-4, 1rem);
  font-weight: 700;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-primary, #1D358E);
  text-decoration: none;
}

.news-card__read:hover {
  text-decoration: underline;
}

/* ── Standings card ── */
.standings-card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-xl, 1rem);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border, #e5e7eb);
}

.standings-card .standings-table {
  border-radius: 0;
}

.standings-table thead {
  background: linear-gradient(135deg, #1D358E, #152a6e);
  color: #fff;
}

.standings-table thead th {
  border-bottom: none;
  font-weight: 700;
  font-size: var(--font-size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[dir="rtl"] .standings-table thead th {
  letter-spacing: 0;
  text-transform: none;
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table__highlight td:first-child {
  position: relative;
}

.standings-table__highlight td:first-child::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary, #1D358E);
}

/* ── CTA banner ── */
.homepage-banner {
  position: relative;
  overflow: hidden;
}

.homepage-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(196, 30, 58, 0.3), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.homepage-banner__inner {
  position: relative;
}

.homepage-banner__inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-3, 0.75rem);
}

.homepage-banner__inner p {
  font-size: var(--font-size-lg, 1.125rem);
  opacity: 0.9;
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: var(--space-6, 1.5rem);
}

/* ── Newsletter ── */
.homepage-newsletter {
  position: relative;
  overflow: hidden;
}

.homepage-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.homepage-newsletter__inner {
  position: relative;
}

.homepage-newsletter__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-2, 0.5rem);
}

.homepage-newsletter__inner p {
  opacity: 0.85;
  margin-bottom: var(--space-4, 1rem);
}

.homepage-newsletter__form input {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── Player scroll track ── */
.homepage-players .player-scroll {
  padding-block: var(--space-2, 0.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.homepage-players .player-card-animated__front {
  border: 2px solid rgba(var(--color-primary-rgb, 29, 53, 142), 0.1);
}

.homepage-players .player-card-animated:hover .player-card-animated__front {
  border-color: rgba(var(--color-primary-rgb, 29, 53, 142), 0.3);
  box-shadow: 0 12px 28px rgba(var(--color-primary-rgb, 29, 53, 142), 0.15);
}

/* ── Match countdown wrapper ── */
.homepage-match__countdown {
  margin-top: var(--space-6, 1.5rem);
  padding: var(--space-6, 1.5rem);
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.homepage-match .match-card-interactive {
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid rgba(var(--color-primary-rgb, 29, 53, 142), 0.12);
  background: linear-gradient(180deg, #fff 0%, #fefefe 100%);
}

.homepage-match .match-countdown__unit {
  background: var(--color-background, #fafafa);
  border-radius: var(--radius-md, 0.5rem);
  padding: var(--space-3, 0.75rem);
  min-width: 72px;
  border: 1px solid var(--color-border, #e5e7eb);
}

.homepage-match .match-countdown__value {
  color: var(--color-primary, #1D358E);
}

/* ── Product cards on homepage ── */
.homepage-products .product-card-preview {
  border: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.homepage-products .product-card-preview__image {
  background: linear-gradient(145deg, #152a6e 0%, #1D358E 40%, #1a1a1a 100%);
}

.homepage-products .product-card-preview__name {
  font-weight: 700;
}

.homepage-products .product-card-preview__price {
  font-size: var(--font-size-sm, 0.875rem);
}

/* Public UI polish — Al-Yarmouk FC */

/* ── Button alias (legacy BEM class) ── */
.btn--primary {
  background: var(--color-primary, #1D358E);
  color: var(--color-text-inverse, #fff);
  border: 2px solid var(--color-primary, #1D358E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 0.5rem);
  padding: var(--input-padding-y, 0.65rem) var(--space-7, 1.75rem);
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-light, #2B4CB8);
  border-color: var(--color-primary-light, #2B4CB8);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 53, 142, 0.28);
}

.btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Page hero ── */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #152a6e 0%, #1D358E 50%, #2B4CB8 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 48px;
  background: var(--color-background, #f4f5f7);
  -webkit-clip-path: ellipse(55% 100% at 50% 100%);
          clip-path: ellipse(55% 100% at 50% 100%);
  pointer-events: none;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.page-hero__intro {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.95;
}

/* ── Content area ── */
.content-page {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.content-page__body {
  max-width: 72rem;
  margin-inline: auto;
}

/* ── Listing cards ── */
.listing-grid {
  gap: var(--space-5, 1.25rem);
}

.listing-card {
  border: 1px solid var(--color-border, #e5e7eb);
  padding: var(--space-5, 1.25rem);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(29, 53, 142, 0.2);
}

.listing-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.listing-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary, #1D358E);
  margin-top: auto;
}

.listing-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--neutral-100, #f3f4f6);
  color: var(--neutral-700, #374151);
}

[dir="rtl"] .listing-card__badge {
  letter-spacing: 0;
  text-transform: none;
}

.listing-card--platinum .listing-card__badge {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #f9fafb;
}

.listing-card--gold .listing-card__badge {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
}

.listing-card--silver .listing-card__badge {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
  color: #fff;
}

.listing-card--partner .listing-card__badge {
  background: #fff5f7;
  color: var(--color-primary, #1D358E);
  border: 1px solid #fecdd3;
}

.listing-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted, #6b7280);
  background: #fff;
  border: 2px dashed var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  font-size: 1.05rem;
}

/* ── Sponsor sections ── */
.sponsor-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-10, 2.5rem);
}

.sponsor-section__title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--color-primary, #1D358E);
  display: inline-block;
}

.sponsor-grid {
  align-items: stretch;
}

.sponsor-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.sponsor-card__link:hover {
  transform: translateY(-2px);
}

.sponsor-card__link--static {
  cursor: default;
}

.sponsor-card__link--static:hover {
  transform: none;
}

.sponsor-card__logo {
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  background: var(--neutral-50, #fafafa);
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid var(--color-border, #e5e7eb);
}

.sponsor-card__logo:not(:has(.sponsor-card__logo-img))::after {
  content: attr(data-initial);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(29, 53, 142, 0.15);
}

.sponsor-card__logo-img {
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sponsor-card__visit {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #1D358E);
}

/* ── FAQ ── */
.faq-list {
  counter-reset: faq;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 48rem;
}

.faq-item {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(29, 53, 142, 0.25);
}

.faq-item[open] {
  border-color: var(--color-primary, #1D358E);
  box-shadow: 0 8px 24px rgba(29, 53, 142, 0.1);
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  color: var(--color-text, #111827);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff5f7;
  color: var(--color-primary, #1D358E);
  font-size: 0.75rem;
  font-weight: 800;
}

.faq-item__question::after {
  float: none;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--neutral-100, #f3f4f6);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  background: var(--color-primary, #1D358E);
  color: #fff;
}

.faq-item__answer {
  padding-inline: 1.25rem 1.25rem;
  -webkit-padding-start: calc(1.25rem + 2rem + 0.85rem);
          padding-inline-start: calc(1.25rem + 2rem + 0.85rem);
  padding-bottom: 1.15rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.7;
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.faq-item__answer p {
  margin: 0.85rem 0 0;
}

[dir="rtl"] .faq-item__answer {
  -webkit-padding-start: 1.25rem;
          padding-inline-start: 1.25rem;
  -webkit-padding-end: calc(1.25rem + 2rem + 0.85rem);
          padding-inline-end: calc(1.25rem + 2rem + 0.85rem);
}

/* ── Contact details ── */
.contact-details {
  max-width: 40rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.contact-details__lead {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary, #1D358E);
  margin: 0 0 1.25rem;
}

[dir="rtl"] .contact-details__lead {
  letter-spacing: 0;
  text-transform: none;
}

.contact-details__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-details__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-details__item--location {
    grid-column: 1 / -1;
  }
}

.contact-details__item {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-details__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  border-color: rgba(29, 53, 142, 0.2);
}

.contact-details__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.65rem;
  border-radius: 0.65rem;
  background: rgba(29, 53, 142, 0.08);
  color: var(--color-primary, #1D358E);
}

.contact-details__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
}

.contact-details__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  text-decoration: none;
  word-break: break-word;
  margin: 0;
}

.contact-details__value--phone,
.contact-details__value[dir="ltr"] {
  direction: ltr;
  unicode-bidi: -webkit-isolate;
  unicode-bidi: isolate;
  text-align: start;
}

[dir="rtl"] .contact-details__value--phone,
[dir="rtl"] .contact-details__value[dir="ltr"] {
  text-align: end;
}

.contact-details__value--location {
  line-height: 1.5;
}

.contact-details__value:hover {
  color: var(--color-primary, #1D358E);
}

/* ── Forms (public) ── */
.contact-form input,
.contact-form select,
.contact-form textarea,
.search-form input {
  border: 2px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-md, 0.5rem);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.search-form input:focus {
  outline: none;
  border-color: var(--color-primary, #1D358E);
  box-shadow: 0 0 0 3px rgba(29, 53, 142, 0.12);
}

.form-error {
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md, 0.5rem);
  color: #b91c1c;
  font-weight: 600;
}

.form-success {
  padding: 0.85rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md, 0.5rem);
  color: #15803d;
  font-weight: 600;
}

/* ── Navigation highlights ── */
.desktop-nav__link--highlight {
  background: var(--color-primary, #1D358E);
  color: #fff !important;
  padding-inline: 1rem !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(29, 53, 142, 0.25);
  -webkit-margin-start: 0.35rem;
          margin-inline-start: 0.35rem;
  white-space: nowrap;
}

.desktop-nav__link--highlight::after {
  display: none !important;
}

.desktop-nav__link--highlight:hover,
.desktop-nav__link--highlight:focus-visible {
  background: var(--color-primary-light, #2B4CB8) !important;
  color: #fff !important;
}

.public-layout {
  background: #f4f5f7;
}

/* ── Sponsors page — bright, logo-first layout ── */

.sponsors-showcase {
  --sponsors-surface: #fafafa;
  --sponsors-surface-alt: #ffffff;
  --sponsors-border: rgba(0, 0, 0, 0.07);
  --sponsors-text: #141414;
  --sponsors-text-muted: #6b7280;
  --sponsors-accent: var(--color-primary, #1D358E);
}

/* ── Compact dark hero ── */
.sponsors-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0508 55%, #2a0010 100%);
  color: #fff;
}

.sponsors-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 120% at 0% 100%, rgba(29, 53, 142, 0.18), transparent 55%);
}

.sponsors-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.sponsors-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sponsors-accent);
}

[dir="rtl"] .sponsors-hero__eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.sponsors-hero__headline {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sponsors-hero__tagline {
  margin: 0.65rem 0 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

/* ── Light content area ── */
.sponsors-showcase__body {
  background: var(--sponsors-surface);
  color: var(--sponsors-text);
}

/* Shared section heading */
.sponsors-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.sponsors-section-head__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sponsors-accent);
}

[dir="rtl"] .sponsors-section-head__label {
  letter-spacing: 0;
  text-transform: none;
}

.sponsors-section-head__rule {
  width: 2.5rem;
  height: 2px;
  background: var(--sponsors-accent);
  border-radius: 1px;
  opacity: 0.75;
}

/* ── Main partner spotlight ── */
.sponsors-main {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--sponsors-surface-alt);
  border-bottom: 1px solid var(--sponsors-border);
}

.sponsors-main__spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--sponsors-surface-alt);
  border: 1px solid var(--sponsors-border);
  border-top: 2px solid var(--sponsors-accent);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sponsors-main__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(6rem, 16vw, 9rem);
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.sponsors-main__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sponsors-main__logo-link:hover,
.sponsors-main__logo-link:focus-visible {
  transform: translateY(-2px);
}

.sponsors-main__logo {
  width: auto;
  height: auto;
  max-width: min(100%, 26rem);
  max-height: clamp(4.5rem, 12vw, 7.5rem);
  object-fit: contain;
}

.sponsors-main__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sponsors-text-muted);
}

.sponsors-main__visit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sponsors-accent);
  text-decoration: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sponsors-main__spotlight:has(.sponsors-main__logo-link:hover) .sponsors-main__visit,
.sponsors-main__spotlight:has(.sponsors-main__logo-link:focus-visible) .sponsors-main__visit,
.sponsors-main__visit:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.sponsors-main__visit--visible {
  opacity: 1;
  transform: none;
}

.sponsors-main__visit:hover,
.sponsors-main__visit:focus-visible {
  text-decoration: underline;
}

/* ── Logo wall ── */
.sponsors-wall {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.sponsors-wall + .sponsors-wall {
  padding-top: 0;
}

.sponsors-wall__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: clamp(1.25rem, 3vw, 2rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  justify-items: center;
}

@media (min-width: 640px) {
  .sponsors-wall__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sponsors-wall__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.25rem);
  }
}

.sponsors-wall__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 13.5rem;
  min-height: 5.75rem;
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 2.5vw, 1.35rem);
  background: var(--sponsors-surface-alt);
  border: 1px solid var(--sponsors-border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sponsors-wall__cell--link:hover,
.sponsors-wall__cell--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 53, 142, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.sponsors-wall__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 3.5rem;
  object-fit: contain;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

@media (min-width: 768px) {
  .sponsors-wall__img {
    max-height: 3.75rem;
    filter: grayscale(0.2) opacity(0.88);
  }

  .sponsors-wall__cell--link:hover .sponsors-wall__img,
  .sponsors-wall__cell--link:focus-visible .sponsors-wall__img {
    filter: grayscale(0) opacity(1);
  }
}

/* ── In-page partner strip ── */
.sponsors-strip {
  padding: clamp(2rem, 5vw, 2.75rem) 0;
  background: var(--sponsors-surface-alt);
  border-top: 1px solid var(--sponsors-border);
}

.sponsors-strip__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
          mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

[dir="rtl"] .sponsors-strip__viewport {
  -webkit-mask-image: linear-gradient(
    270deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
          mask-image: linear-gradient(
    270deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.sponsors-strip__viewport--static {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sponsors-strip__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: sponsors-strip-ltr linear infinite;
}

.sponsors-strip__viewport--paused .sponsors-strip__track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .sponsors-strip__viewport:hover .sponsors-strip__track {
    animation-play-state: paused;
  }
}

.sponsors-strip__track--rtl {
  animation-name: sponsors-strip-rtl;
}

@keyframes sponsors-strip-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes sponsors-strip-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

.sponsors-strip__sequence {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2rem, 5vw, 3.5rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.sponsors-strip__static {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.sponsors-strip__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sponsors-strip__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.sponsors-strip__link:not(.sponsors-strip__link--static):hover,
.sponsors-strip__link:not(.sponsors-strip__link--static):focus-visible {
  transform: translateY(-2px) scale(1.03);
}

.sponsors-strip__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  height: 3.5rem;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.sponsors-strip__img {
  width: auto;
  height: auto;
  max-width: 6.5rem;
  max-height: 2.75rem;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.14));
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.sponsors-strip__link:not(.sponsors-strip__link--static):hover .sponsors-strip__img,
.sponsors-strip__link:not(.sponsors-strip__link--static):focus-visible .sponsors-strip__img {
  opacity: 1;
  filter:
    drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.16))
    drop-shadow(0 3px 10px rgba(29, 53, 142, 0.1));
}

/* ── Empty state ── */
.sponsors-empty {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--sponsors-surface);
  text-align: center;
  color: var(--sponsors-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sponsors-main__logo-link,
  .sponsors-wall__cell,
  .sponsors-wall__img,
  .sponsors-strip__link,
  .sponsors-strip__img,
  .sponsors-main__visit {
    transition: none;
  }

  .sponsors-strip__track {
    animation: none;
  }

  .sponsors-wall__img {
    filter: none;
    opacity: 1;
  }
}

@media (max-width: 639px) {
  .sponsors-wall__img {
    max-height: 3rem;
    filter: none;
    opacity: 1;
  }

  .sponsors-main__logo {
    max-height: clamp(3.5rem, 14vw, 5rem);
  }

  .sponsors-main__visit {
    opacity: 1;
    transform: none;
  }
}

/* Phase 13 — Motion & Interaction Styles */

/* ── Button glow ── */
.btn-glow {
  /* inherits flat button hover from design system */
}

:root[style*="--motion-button-glow: 1"] .btn-glow:hover,
:root[style*="--motion-button-glow: 1"] .btn-glow:focus-visible {
  box-shadow: none;
  transform: none;
}

/* ── Page transitions ── */
.page-transition {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.page-transition--visible {
  opacity: 1;
  transform: translateY(0);
}

.page-transition--slide-up.page-transition--visible {
  animation: motion-page-in 400ms ease both;
}

.page-transition--fade.page-transition--visible {
  animation: motion-fade-in 350ms ease both;
}

@keyframes motion-page-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motion-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Hero slider ── */
.hero-slider {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  background: var(--gradient-primary, radial-gradient(ellipse at 30% 20%, #2B4CB8, #1D358E 45%, #152a6e 100%));
  color: #fff;
}

.hero-slider::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-slider__track {
  position: relative;
  min-height: 85vh;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 900ms ease;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-slider__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(13, 13, 13, 0.82) 0%, rgba(122, 0, 24, 0.55) 45%, rgba(29, 53, 142, 0.35) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.015) 20px,
      rgba(255, 255, 255, 0.015) 40px
    );
  pointer-events: none;
}

.hero-slider__slide--active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}

.hero-slider__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-12, 3rem);
  max-width: 720px;
}

.hero-slider__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  margin-bottom: var(--space-4, 1rem);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  animation: hero-badge-in 800ms ease 200ms both;
}

[dir="rtl"] .hero-slider__badge {
  letter-spacing: 0.05em;
}

@keyframes hero-badge-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: hero-title-in 900ms ease 300ms both;
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 42ch;
  line-height: 1.5;
  animation: hero-title-in 900ms ease 450ms both;
}

.hero-slider__content .btn {
  animation: hero-title-in 900ms ease 600ms both;
}

.hero-slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease, width 200ms ease;
}

.hero-slider__dot--active {
  background: #fff;
  width: 28px;
  border-radius: 999px;
  transform: none;
}

.hero-slider--crossfade .hero-slider__slide--leaving {
  opacity: 0;
}

.hero-slider--slide .hero-slider__slide {
  transform: translateX(30px);
}

.hero-slider--slide .hero-slider__slide--active {
  transform: translateX(0);
}

.hero-slider--zoom .hero-slider__slide {
  transform: scale(1.08);
}

.hero-slider--zoom .hero-slider__slide--active {
  transform: scale(1);
}

/* ── Match countdown ── */
.match-countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.match-countdown__unit {
  text-align: center;
  min-width: 64px;
}

.match-countdown__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary, #1D358E);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.match-countdown--animated .match-countdown__value {
  animation: motion-count-pulse 1s ease;
}

@keyframes motion-count-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.match-countdown__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ── Interactive match card ── */
.match-card-interactive {
  position: relative;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-xl, 1rem);
  padding: 2rem;
  text-align: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
  box-shadow: 0 8px 32px rgba(var(--color-primary-rgb, 29, 53, 142), 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-card-interactive--clickable:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg, 0 12px 24px rgba(29, 53, 142,0.15));
}

.match-card-interactive--live {
  border: 2px solid var(--color-error, #dc2626);
}

.match-card-interactive__live {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  background: var(--color-error, #dc2626);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  animation: motion-pulse-live 1.5s infinite;
}

@keyframes motion-pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.match-card-interactive__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.match-card-interactive__vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D358E, #152a6e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.match-card-interactive__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── Player card animated ── */
.player-card-animated {
  position: relative;
  width: 140px;
  height: 180px;
  perspective: 800px;
  flex-shrink: 0;
}

.player-card-animated__front,
.player-card-animated__back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--color-surface, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.1));
  transition: transform 500ms ease;
}

.player-card-animated__back {
  transform: rotateY(180deg);
  background: var(--color-primary, #1D358E);
  color: #fff;
}

.player-card-animated--flipped .player-card-animated__front {
  transform: rotateY(-180deg);
}

.player-card-animated--flipped .player-card-animated__back {
  transform: rotateY(0);
}

.player-card-animated__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary, #1D358E);
}

.player-card-animated__back .player-card-animated__number {
  color: #fff;
}

.player-card-animated__link {
  text-decoration: none;
  color: inherit;
}

/* ── Product hover preview ── */
.product-card-preview {
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  background: var(--color-surface, #fff);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.product-card-preview--hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 12px 24px rgba(0,0,0,0.12));
}

.product-card-preview__image {
  height: 200px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-card-preview__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: motion-fade-in 200ms ease;
}

.product-card-preview__name,
.product-card-preview__price {
  padding: 0.75rem 1rem;
}

.product-card-preview__sale {
  color: var(--color-primary, #1D358E);
  font-weight: 700;
  -webkit-margin-end: 0.5rem;
          margin-inline-end: 0.5rem;
}

.product-card-preview__was {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animated stats ── */
.animated-stat {
  text-align: center;
  padding: 1rem;
}

.animated-stat__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary, #1D358E);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.animated-stat__label {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ── Parallax ── */
.parallax-section--active > * {
  transform: translateY(var(--parallax-offset, 0));
  will-change: transform;
}

/* ── Sponsor carousel ── */
.sponsor-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.sponsor-carousel__track {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.sponsor-carousel__item {
  width: 120px;
  height: 56px;
  background: var(--color-border, #e5e7eb);
  border-radius: var(--radius-sm, 0.375rem);
  flex-shrink: 0;
}

/* ── Smooth dialog ── */
.motion-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(480px, 90vw);
}

.motion-dialog::-webkit-backdrop {
  background: rgba(0,0,0,0.5);
  animation: motion-fade-in 200ms ease;
}

.motion-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  animation: motion-fade-in 200ms ease;
}

.motion-dialog[open] .motion-dialog__panel {
  animation: motion-scale-in 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes motion-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.motion-dialog__panel {
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,0.2));
}

.motion-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.motion-dialog__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.motion-dialog__body {
  padding: 1.25rem;
}

/* ── Smooth menus (enhance existing nav) ── */
.desktop-nav__dropdown {
  transition: opacity 200ms ease, transform 200ms ease;
  transform-origin: top center;
}

[dir="rtl"] .desktop-nav__dropdown {
  transform-origin: top right;
}

[dir="ltr"] .desktop-nav__dropdown {
  transform-origin: top left;
}

.desktop-nav__item--dropdown:hover .desktop-nav__dropdown {
  animation: motion-menu-in 200ms ease;
}

@keyframes motion-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav__drawer {
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__drawer--open {
  animation: motion-drawer-in 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes motion-drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

[dir="rtl"] .mobile-nav__drawer--open {
  animation-name: motion-drawer-in-rtl;
}

@keyframes motion-drawer-in-rtl {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ── Celebration theme mode ── */
.theme-celebration {
  --header-bg: linear-gradient(135deg, #FFD700 0%, #1D358E 50%, #152a6e 100%);
  --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.45);
}

.theme-celebration .hero-slider {
  background: linear-gradient(135deg, #FFD700 0%, #1D358E 60%, #152a6e 100%);
}

.theme-celebration .btn-glow:hover {
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.5);
}

/* ── Celebration confetti overlay ── */
.celebration-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__badge,
  .hero-slider__title,
  .hero-slider__subtitle,
  .hero-slider__content .btn {
    animation: none !important;
  }

  .page-transition,
  .scroll-reveal,
  .match-card-interactive,
  .player-card-animated__front,
  .player-card-animated__back,
  .product-card-preview,
  .sponsor-carousel__track,
  .motion-dialog__panel {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-slider__slide:not(.hero-slider__slide--active) {
    pointer-events: none !important;
  }

  .hero-slider__slide--active {
    pointer-events: auto !important;
  }

  .match-countdown--animated .match-countdown__value {
    animation: none;
  }

  .parallax-section--active > * {
    transform: none !important;
  }
}

.motion-root[style*="--motion-enabled: 0"] .scroll-reveal {
  opacity: 1;
  transform: none;
}

