/*
  Anayek Design System
  Part 4: shared visual foundation only.

  Important:
  - This file defines reusable tokens and base components.
  - It does not implement any page-specific layout.
  - Public pages, dashboard, and panel pages will be built in later parts.
*/
@font-face {
  font-family: "Estedad";
  src: url("../fonts/Estedad/Estedad.a30f0be474a2.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn/Vazirmatn.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope.938c6e8019b6.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --font-sans: "Estedad", "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-latin: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;

  --page-bg: #f7f9fc;
  --page-bg-soft: #edf4fb;
  --surface: #ffffff;
  --surface-2: #f9fbfe;
  --surface-3: #eef5fb;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;

  --text: #10233d;
  --text-strong: #06172d;
  --text-muted: #61738b;
  --text-soft: #8797aa;
  --text-inverse: #ffffff;

  --border: #d9e5f1;
  --border-strong: #bfd2e5;
  --border-soft: rgba(31, 66, 104, 0.12);

  --primary: #1f5f99;
  --primary-600: #164f84;
  --primary-700: #103f6e;
  --primary-soft: #e6f3ff;
  --primary-glow: rgba(31, 95, 153, 0.25);

  --accent: #73c9f4;
  --accent-2: #9be7ff;
  --accent-soft: #e9f8ff;

  --rose: #f4a7b9;
  --rose-soft: #fff0f4;
  --gold: #e7b85f;
  --gold-soft: #fff7e5;

  --success: #21a67a;
  --success-soft: #e6f8f1;
  --warning: #d89922;
  --warning-soft: #fff5df;
  --danger: #dc4965;
  --danger-soft: #fff0f3;
  --info: #2d83c5;
  --info-soft: #e9f4ff;

  --shadow-xs: 0 2px 8px rgba(12, 35, 64, 0.06);
  --shadow-sm: 0 8px 24px rgba(12, 35, 64, 0.08);
  --shadow-md: 0 18px 48px rgba(12, 35, 64, 0.12);
  --shadow-lg: 0 28px 80px rgba(12, 35, 64, 0.16);
  --shadow-glow: 0 18px 48px rgba(31, 95, 153, 0.22);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 34px;
  --radius-pill: 999px;

  --container: 1180px;
  --container-narrow: 960px;
  --container-wide: 1320px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  --header-height: 84px;
  --mobile-header-height: 66px;
  --mobile-bottom-nav-height: 72px;

  --focus-ring: 0 0 0 4px rgba(115, 201, 244, 0.28);
  --transition-fast: 160ms ease;
  --transition: 220ms ease;
  --transition-slow: 340ms ease;

  --z-header: 50;
  --z-drawer: 80;
  --z-modal: 90;
  --z-toast: 100;
}

/* =========================================================
   Part 5 shared layout corrections
   Add near the Header, footer, mobile nav bases section.
   ========================================================= */

.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--text-strong);
  font-weight: 950;
  line-height: 1;
}

.site-brand:hover {
  color: var(--primary);
}

.site-brand__text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.site-search {
  width: min(320px, 34vw);
}

.site-search--mobile {
  width: 100%;
  
}

.site-search .form-control {
  width: auto;
  min-height: 42px;
  border-radius: var(--radius-pill);
  box-shadow: none;
}

.site-search--mobile .cluster {
  align-items: stretch;
}

.site-search--mobile .form-control {
  min-height: 46px;
      display: flex;
    gap: 16px;
}

.promo-bar__link {
  color: inherit;
  text-decoration: none;
}

.promo-bar__link:hover {
  color: inherit;
  opacity: 0.88;
}

.header-actions {
  flex-wrap: nowrap;
}

.header-action {
  position: relative;
}

.header-action__badge {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #ffffff;
  font-family: var(--font-latin);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

html[data-theme="dark"] .header-action__badge,
[data-theme="dark"] .header-action__badge {
  border-color: var(--surface);
  color: #ffffff;
}
html[data-theme="dark"],
[data-theme="dark"] {
  color-scheme: dark;

  --page-bg: #010b19;
  --page-bg-soft: #061326;
  --surface: #07182c;
  --surface-2: #0b1d33;
  --surface-3: #102641;
  --surface-glass: rgba(7, 24, 44, 0.78);
  --surface-strong: #0e223b;

  --text: #eaf6ff;
  --text-strong: #ffffff;
  --text-muted: #abc0d6;
  --text-soft: #7f98b4;
  --text-inverse: #06172d;

  --border: rgba(148, 197, 233, 0.18);
  --border-strong: rgba(155, 231, 255, 0.32);
  --border-soft: rgba(155, 231, 255, 0.12);

  --primary: #73c9f4;
  --primary-600: #4fb4e6;
  --primary-700: #319bd1;
  --primary-soft: rgba(115, 201, 244, 0.14);
  --primary-glow: rgba(115, 201, 244, 0.34);

  --accent: #9be7ff;
  --accent-2: #d8f8ff;
  --accent-soft: rgba(155, 231, 255, 0.14);

  --rose: #ffb1c5;
  --rose-soft: rgba(255, 177, 197, 0.13);
  --gold: #f2c76d;
  --gold-soft: rgba(242, 199, 109, 0.13);

  --success: #44d09d;
  --success-soft: rgba(68, 208, 157, 0.13);
  --warning: #f0bb4f;
  --warning-soft: rgba(240, 187, 79, 0.13);
  --danger: #ff6f8b;
  --danger-soft: rgba(255, 111, 139, 0.13);
  --info: #73c9f4;
  --info-soft: rgba(115, 201, 244, 0.13);

  --shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 20px 56px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 88px rgba(0, 0, 0, 0.52);
  --shadow-glow: 0 0 44px rgba(115, 201, 244, 0.26);
}

/* Reset and base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(115, 201, 244, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--page-bg-soft), var(--page-bg));
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

[dir="ltr"] body,
body.ltr {
  direction: ltr;
  text-align: left;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.is-disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

::selection {
  color: var(--text-inverse);
  background: var(--primary);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-strong);
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 4.6rem);
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 3rem);
}

h3 {
  font-size: clamp(1.28rem, 1.8vw, 2rem);
}

h4 {
  font-size: 1.18rem;
}

p {
  color: var(--text-muted);
}

.text-latin {
  font-family: var(--font-latin);
  direction: ltr;
  unicode-bidi: plaintext;
}

.text-muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-strong {
  color: var(--text-strong);
}

.text-primary {
  color: var(--primary);
}

.text-danger {
  color: var(--danger);
}

.text-success {
  color: var(--success);
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.text-end {
  text-align: end;
}

/* Layout helpers */

.container,
.anayek-container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 32px, var(--container-narrow));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 32px, var(--container-wide));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-16);
}

.section-sm {
  padding-block: var(--space-10);
}

.section-lg {
  padding-block: var(--space-20);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

.inline-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-5));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--auto-grid-min, 220px)), 1fr));
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hide {
  display: none !important;
}

/* Surfaces and cards */

.card,
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.card-pad {
  padding: var(--space-6);
}

.card-hover {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Buttons */

.btn,
.button,
button.btn {
  --btn-bg: var(--surface-2);
  --btn-color: var(--text-strong);
  --btn-border: var(--border);
  --btn-shadow: var(--shadow-xs);

  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.78rem 1.25rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--btn-shadow);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn:hover,
.button:hover {
  color: var(--btn-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active,
.button:active {
  transform: translateY(0);
}

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--primary), var(--primary-700));
  --btn-color: #ffffff;
  --btn-border: transparent;
  --btn-shadow: var(--shadow-glow);
}

html[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary {
  --btn-bg: linear-gradient(135deg, #73c9f4, #267eb8);
  --btn-color: #06172d;
}

.btn-secondary {
  --btn-bg: var(--primary-soft);
  --btn-color: var(--primary);
  --btn-border: var(--border-strong);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text-strong);
  --btn-border: transparent;
  --btn-shadow: none;
}

.btn-outline {
  --btn-bg: transparent;
  --btn-color: var(--text-strong);
  --btn-border: var(--border-strong);
  --btn-shadow: none;
}

.btn-danger {
  --btn-bg: var(--danger-soft);
  --btn-color: var(--danger);
  --btn-border: rgba(220, 73, 101, 0.25);
}

.btn-success {
  --btn-bg: var(--success-soft);
  --btn-color: var(--success);
  --btn-border: rgba(33, 166, 122, 0.24);
}

.btn-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn-sm {
  min-height: 36px;
  padding: 0.58rem 0.95rem;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Forms */

.form,
.anayek-form {
  display: grid;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-group {
  display: grid;
  gap: var(--space-2);
}

.form-label,
label {
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-help,
.helptext,
small {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.form-control,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  padding: 0.78rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

textarea,
.form-textarea {
  min-height: 130px;
  resize: vertical;
}

select,
.form-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-inline-end: 2.5rem;
}

[dir="rtl"] select,
[dir="rtl"] .form-select {
  background-position:
    18px 50%,
    12px 50%;
  padding-inline-end: 1rem;
  padding-inline-start: 2.5rem;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.field-error,
.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-error-box {
  border: 1px solid rgba(220, 73, 101, 0.28);
  border-radius: var(--radius-lg);
  background: var(--danger-soft);
  color: var(--danger);
  padding: var(--space-4);
}

/* Badges and chips */

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 30px;
  padding: 0.34rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.badge-primary,
.chip-primary {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-success {
  border-color: transparent;
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  border-color: transparent;
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-danger {
  border-color: transparent;
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-gold {
  border-color: transparent;
  background: var(--gold-soft);
  color: var(--gold);
}

/* Alerts */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}

.alert-info {
  border-color: rgba(45, 131, 197, 0.25);
  background: var(--info-soft);
  color: var(--info);
}

.alert-success {
  border-color: rgba(33, 166, 122, 0.25);
  background: var(--success-soft);
  color: var(--success);
}

.alert-warning {
  border-color: rgba(216, 153, 34, 0.25);
  background: var(--warning-soft);
  color: var(--warning);
}

.alert-danger {
  border-color: rgba(220, 73, 101, 0.25);
  background: var(--danger-soft);
  color: var(--danger);
}

/* Image sizing classes */

.image-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
}

.site-logo-img,
.footer-logo-img,
.trust-badge-img {
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.site-logo-img {
  width: auto;
  max-width: 200px;
  max-height: 100px;
}






.footer-logo-img {
  width: auto;
  max-width: 170px;
  max-height: 68px;
}

.hero-media__img,
.category-card__img,
.product-card__img,
.product-gallery__main-img,
.product-gallery__thumb-img,
.cart-item__img,
.checkout-item__img,
.dashboard-product-img,
.panel-product-thumb,
.panel-image-preview,
.blog-card__img,
.instagram-card__img,
.avatar-img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-position: center;
}

.hero-media__img {
  height: min(560px, 54vw);
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.category-card__img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.product-card__img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.product-gallery__main-img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.product-gallery__thumb-img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.cart-item__img,
.checkout-item__img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.dashboard-product-img,
.panel-product-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.panel-image-preview {
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.trust-badge-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.instagram-card__img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.avatar-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

/* Product card base */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-3);
}

.product-card__body {
  display: grid;
  gap: var(--space-2);
  padding-inline: var(--space-2);
  padding-block-end: var(--space-2);
}

.product-card__title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.55;
}

.product-card__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
}

.product-card__price {
  color: var(--text-strong);
  font-weight: 900;
  font-size: 1.05rem;
}

.product-card__compare-price {
  color: var(--text-soft);
  font-size: 0.82rem;
  text-decoration: line-through;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-2);
}

.product-card__wishlist {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: 1;
}

.product-card__badge {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  z-index: 1;
}

.product-card.is-unavailable {
  opacity: 0.78;
}

.product-card.is-unavailable .product-card__media::after {
  content: "ناموجود";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(1, 11, 25, 0.54);
  color: #ffffff;
  font-weight: 900;
}

/* Dashboard cards */

.dashboard-card,
.panel-card,
.admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dashboard-card__header,
.panel-card__header,
.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}

.dashboard-card__body,
.panel-card__body,
.admin-card__body {
  padding: var(--space-6);
}

.stat-card {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.stat-card__label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.stat-card__value {
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 950;
  line-height: 1.2;
}

.stat-card__hint {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* Tables */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.table,
.panel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td,
.panel-table th,
.panel-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-soft);
  text-align: start;
  vertical-align: middle;
}

.table th,
.panel-table th {
  color: var(--text-muted);
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.table td,
.panel-table td {
  color: var(--text);
}

.table tr:last-child td,
.panel-table tr:last-child td {
  border-bottom: 0;
}

/* Empty states */

.empty-state {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-2xl);
  background: var(--surface-glass);
  text-align: center;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-state__title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.2rem;
}

.empty-state__text {
  max-width: 520px;
  margin: 0;
  color: var(--text-muted);
}

/* Header, footer, mobile nav bases */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}

.promo-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-4);
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.86rem;
  font-weight: 800;
}

html[data-theme="dark"] .promo-bar,
[data-theme="dark"] .promo-bar {
  color: #06172d;
}

.desktop-nav,
.mobile-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.mobile-header {
  min-height: var(--mobile-header-height);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-muted);
}

.mobile-bottom-nav {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-header);
  min-height: var(--mobile-bottom-nav-height);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-glass);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.mobile-bottom-nav__item {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-bottom-nav__item.is-active,
.mobile-bottom-nav__item:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Drawers and modals */

.drawer-backdrop,
.modal-backdrop,
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(1, 11, 25, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.drawer,
.mobile-menu {
  position: fixed;
  z-index: var(--z-drawer);
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 88vw);
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

[dir="rtl"] .drawer,
[dir="rtl"] .mobile-menu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-inline-start: 0;
  border-inline-end: 1px solid var(--border);
  transform: translateX(450px);
}

.drawer.is-open,
.mobile-menu.is-open {
  transform: translateX(0);
}

.drawer-backdrop.is-open,
.modal-backdrop.is-open,
.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer__header,
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-soft);
}

.drawer__body,
.mobile-menu__body {
  padding: var(--space-5);
}

.modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: var(--z-modal);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal__header,
.modal__body,
.modal__footer {
  padding: var(--space-5);
}

.modal__header {
  border-bottom: 1px solid var(--border-soft);
}

.modal__footer {
  border-top: 1px solid var(--border-soft);
}

/* Toasts */

.toast-region {
  position: fixed;
  z-index: var(--z-toast);
  inset-block-start: var(--space-5);
  inset-inline-end: var(--space-5);
  display: grid;
  gap: var(--space-3);
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

[dir="rtl"] .toast-region {
  inset-inline-start: var(--space-5);
  inset-inline-end: auto;
}

.toast {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  transform: translateY(-8px);
  opacity: 0;
  animation: anayek-toast-in var(--transition) forwards;
}

.toast__title {
  color: var(--text-strong);
  font-weight: 900;
}

.toast__message {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toast--success {
  border-color: rgba(33, 166, 122, 0.28);
}

.toast--danger {
  border-color: rgba(220, 73, 101, 0.28);
}

.toast--warning {
  border-color: rgba(216, 153, 34, 0.28);
}

.toast--info {
  border-color: rgba(45, 131, 197, 0.28);
}

@keyframes anayek-toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utilities */

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.mt-0 {
  margin-block-start: 0;
}

.mb-0 {
  margin-block-end: 0;
}

.no-scroll {
  overflow: hidden;
}

/* Responsive base */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .desktop-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-block-end: var(--mobile-bottom-nav-height);
    font-size: 14px;
  }

  .container,
  .anayek-container,
  .container-narrow,
  .container-wide {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding-block: var(--space-10);
  }

  .section-lg {
    padding-block: var(--space-12);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-bottom-nav {
    display: grid;
  }

    .mobile-only {
    display: block !important;
    }

    .mobile-header.mobile-only {
    display: flex !important;
    }

    .mobile-bottom-nav.mobile-only {
    display: grid !important;
    }

  .toast-region {
    inset-block-start: auto;
    inset-block-end: calc(var(--mobile-bottom-nav-height) + var(--space-4));
    inset-inline: var(--space-3);
    width: auto;
  }

  [dir="rtl"] .toast-region {
    inset-inline: var(--space-3);
  }

  .hero-media__img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .cart-item__img,
  .checkout-item__img {
    width: 72px;
    height: 72px;
  }
  .site-search{
        display: flex;
    gap: 16px;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

html {
  direction: rtl;
}

body {
  direction: rtl;
  text-align: right;
}

input,
textarea,
select {
  direction: rtl;
  text-align: right;
}

.text-latin,
[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* =========================================================
   Part 30.1 Luxury brand logo frame
   ========================================================= */

.site-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  direction: ltr;
  isolation: isolate;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 76px;
  padding: 0.38rem 0.92rem 0.38rem 0.42rem;
  border: 1px solid rgba(127, 166, 187, 0.34);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(241, 247, 250, 0.68)),
    radial-gradient(circle at 22% 24%, rgba(127, 166, 187, 0.24), transparent 42%);
  color: #102a4a;
  box-shadow:
    0 14px 34px rgba(12, 35, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  text-decoration: none;
  line-height: 1;
  overflow: visible;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.site-brand::before {
  content: "";
  position: absolute;
  inset: 0.24rem;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(231, 184, 95, 0.17), rgba(115, 201, 244, 0.16));
  pointer-events: none;
}

.site-brand:hover {
  color: #102a4a;
  transform: translateY(-1px);
  border-color: rgba(127, 166, 187, 0.56);
  box-shadow:
    0 18px 44px rgba(12, 35, 64, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-brand-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  margin-block: -0.44rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.98), rgba(230, 241, 247, 0.42) 48%, rgba(231, 184, 95, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(127, 166, 187, 0.22),
    0 9px 22px rgba(12, 35, 64, 0.12);
}

.site-brand-frame::after {
  content: "";
  position: absolute;
  inset: -0.23rem;
  border: 1px solid rgba(231, 184, 95, 0.30);
  border-radius: inherit;
  pointer-events: none;
}

.site-brand-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  overflow: visible;
}

.site-brand .site-logo-img {
  width: 98px;
  height: 98px;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  transform: translateY(-10px) scale(1.03) translateX(-10px);
  filter: drop-shadow(0 8px 14px rgba(12, 35, 64, 0.18));
}

.site-brand-name {
  display: inline-block;
  padding-inline-end: 0.08rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.68rem, 2.4vw, 2.38rem);
  font-weight: 500;
  letter-spacing: 0.018em;
  line-height: 1;
  background: linear-gradient(135deg, #06172d 0%, #1f5f99 48%, #7fa6bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(12, 35, 64, 0.10);
  transform: translateY(2px);
  white-space: nowrap;
}

.site-logo-fallback {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, #102a4a, #7fa6bb);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="dark"] .site-brand,
[data-theme="dark"] .site-brand {
  border-color: rgba(201, 216, 226, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 24, 44, 0.90), rgba(16, 38, 65, 0.76)),
    radial-gradient(circle at 22% 24%, rgba(115, 201, 244, 0.14), transparent 42%);
  color: #d9e6ef;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-brand:hover,
[data-theme="dark"] .site-brand:hover {
  color: #ffffff;
  border-color: rgba(201, 216, 226, 0.36);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(115, 201, 244, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .site-brand::before,
[data-theme="dark"] .site-brand::before {
  background: linear-gradient(135deg, rgba(201, 216, 226, 0.12), rgba(115, 201, 244, 0.10));
}

html[data-theme="dark"] .site-brand-frame,
[data-theme="dark"] .site-brand-frame {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.18), rgba(115, 201, 244, 0.10) 48%, rgba(1, 11, 25, 0.40));
  box-shadow:
    inset 0 0 0 1px rgba(201, 216, 226, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .site-brand-frame::after,
[data-theme="dark"] .site-brand-frame::after {
  border-color: rgba(201, 216, 226, 0.22);
}

html[data-theme="dark"] .site-brand-name,
[data-theme="dark"] .site-brand-name {
  background: linear-gradient(135deg, #ffffff 0%, #d9e6ef 45%, #89aebe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 28px rgba(217, 230, 239, 0.12);
}

html[data-theme="dark"] .site-brand .site-logo-img,
[data-theme="dark"] .site-brand .site-logo-img {
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 10px rgba(137, 174, 190, 0.10));
}

.mobile-header .site-brand {
  min-height: 58px;
  gap: 0.34rem;
  padding: 0.30rem 0.62rem 0.30rem 0.34rem;
}

.mobile-header .site-brand-frame {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  margin-block: -0.28rem;
}

.mobile-header .site-brand .site-logo-img {
  width: 74px;
  height: 74px;
  transform: translateY(-7px) scale(1.02) translateX(-7px);
}

.mobile-header .site-brand-name {
  font-size: 1.48rem;
}

@media (max-width: 520px) {
  .mobile-header .site-brand-name {
    display: none;
  }

  .mobile-header .site-brand {
    padding: 0.28rem;
  }
}

@media (max-width: 380px) {
  .mobile-header .site-brand-frame {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .mobile-header .site-brand .site-logo-img {
    width: 68px;
    height: 68px;
  }
}

/* =========================================================
   Part 30.1.1 Dark mode brand contrast
   ========================================================= */

html[data-theme="dark"] .site-brand,
[data-theme="dark"] .site-brand {
  border-color: rgba(231, 184, 95, 0.28);
  background:
    linear-gradient(135deg, rgba(7, 24, 44, 0.92), rgba(16, 38, 65, 0.80)),
    radial-gradient(circle at 24% 30%, rgba(231, 184, 95, 0.12), transparent 38%),
    radial-gradient(circle at 78% 26%, rgba(115, 201, 244, 0.13), transparent 42%);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(115, 201, 244, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .site-brand::before,
[data-theme="dark"] .site-brand::before {
  background:
    linear-gradient(135deg, rgba(231, 184, 95, 0.16), rgba(137, 174, 190, 0.12));
  opacity: 0.95;
}

html[data-theme="dark"] .site-brand-frame,
[data-theme="dark"] .site-brand-frame {
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.98), rgba(230, 241, 247, 0.86) 42%, rgba(191, 210, 229, 0.72) 68%, rgba(231, 184, 95, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.56),
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(217, 230, 239, 0.20);
}

html[data-theme="dark"] .site-brand-frame::after,
[data-theme="dark"] .site-brand-frame::after {
  border-color: rgba(231, 184, 95, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(231, 184, 95, 0.12);
}

html[data-theme="dark"] .site-brand .site-logo-img,
[data-theme="dark"] .site-brand .site-logo-img {
  filter:
    drop-shadow(0 8px 14px rgba(1, 11, 25, 0.30))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));
}

html[data-theme="dark"] .site-brand-name,
[data-theme="dark"] .site-brand-name {
  background:
    linear-gradient(135deg, #ffffff 0%, #eaf6ff 34%, #d9e6ef 58%, #e7b85f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 8px 24px rgba(217, 230, 239, 0.12),
    0 0 18px rgba(231, 184, 95, 0.08);
}

html[data-theme="dark"] .site-brand:hover,
[data-theme="dark"] .site-brand:hover {
  border-color: rgba(231, 184, 95, 0.42);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.48),
    0 0 38px rgba(115, 201, 244, 0.14),
    0 0 24px rgba(231, 184, 95, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Part 30.1.2 Mobile brand HTML modifier
   ========================================================= */

.site-brand--desktop {
  flex-shrink: 0;
}

.site-brand--mobile {
  flex-shrink: 0;
}

.site-brand--mobile .site-brand-frame {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  margin-block: -0.34rem;
}

.site-brand--mobile .site-logo-img {
  width: 82px;
  height: 82px;
  transform: translateY(-9px) scale(1.02) translateX(-8px);
}

.site-brand--mobile .site-brand-name {
  font-size: 1.52rem;
  transform: translateY(1px);
}

.site-brand--drawer {
  width: fit-content;
  min-height: 62px;
  padding: 0.30rem 0.72rem 0.30rem 0.36rem;
}

.site-brand--drawer .site-brand-frame {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  margin-block: -0.28rem;
}

.site-brand--drawer .site-logo-img {
  width: 82px;
  height: 82px;
  transform: translateY(-9px) scale(1.02) translateX(-8px);
}

.site-brand--drawer .site-brand-name {
  font-size: 1.55rem;
}

@media (max-width: 420px) {
  .site-brand--mobile .site-brand-name {
    display: none;
  }

  .site-brand--mobile {
    padding: 0.26rem;
  }

  .site-brand--mobile .site-brand-frame {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .site-brand--mobile .site-logo-img {
    width: 76px;
    height: 76px;
    transform: translateY(-8px) scale(1.02) translateX(-7px);
  }
}

/* =========================================================
   Part 30.1.3 Footer brand logo frame
   ========================================================= */

.site-footer-brand {
  position: relative;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  direction: ltr;
  isolation: isolate;
  min-height: 72px;
  padding: 0.36rem 0.88rem 0.36rem 0.42rem;
  border: 1px solid rgba(127, 166, 187, 0.30);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(241, 247, 250, 0.62)),
    radial-gradient(circle at 24% 28%, rgba(127, 166, 187, 0.20), transparent 42%);
  color: #102a4a;
  box-shadow:
    0 12px 30px rgba(12, 35, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-decoration: none;
  line-height: 1;
  overflow: visible;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.site-footer-brand::before {
  content: "";
  position: absolute;
  inset: 0.24rem;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(231, 184, 95, 0.14), rgba(115, 201, 244, 0.13));
  pointer-events: none;
}

.site-footer-brand:hover {
  color: #102a4a;
  transform: translateY(-1px);
  border-color: rgba(127, 166, 187, 0.50);
  box-shadow:
    0 16px 38px rgba(12, 35, 64, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.site-footer-brand-frame {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  margin-block: -0.36rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.98), rgba(230, 241, 247, 0.42) 48%, rgba(231, 184, 95, 0.15));
  box-shadow:
    inset 0 0 0 1px rgba(127, 166, 187, 0.20),
    0 8px 20px rgba(12, 35, 64, 0.10);
}

.site-footer-brand-frame::after {
  content: "";
  position: absolute;
  inset: -0.22rem;
  border: 1px solid rgba(231, 184, 95, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.site-footer-brand-mark {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: transparent;
  overflow: visible;
}

.site-footer-brand .footer-logo-img {
  width: 90px;
  height: 90px;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  transform: translateY(-8px) scale(1.02) translateX(-8px);
  filter: drop-shadow(0 7px 12px rgba(12, 35, 64, 0.16));
}

.site-footer-brand-name {
  display: inline-block;
  padding-inline-end: 0.08rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  font-weight: 500;
  letter-spacing: 0.018em;
  line-height: 1;
  background: linear-gradient(135deg, #06172d 0%, #1f5f99 48%, #7fa6bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 20px rgba(12, 35, 64, 0.08);
  transform: translateY(2px);
  white-space: nowrap;
}

.site-footer-logo-fallback {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #102a4a, #7fa6bb);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="dark"] .site-footer-brand,
[data-theme="dark"] .site-footer-brand {
  border-color: rgba(231, 184, 95, 0.26);
  background:
    linear-gradient(135deg, rgba(7, 24, 44, 0.90), rgba(16, 38, 65, 0.74)),
    radial-gradient(circle at 24% 30%, rgba(231, 184, 95, 0.11), transparent 38%),
    radial-gradient(circle at 78% 26%, rgba(115, 201, 244, 0.11), transparent 42%);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(115, 201, 244, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .site-footer-brand::before,
[data-theme="dark"] .site-footer-brand::before {
  background: linear-gradient(135deg, rgba(231, 184, 95, 0.14), rgba(137, 174, 190, 0.10));
}

html[data-theme="dark"] .site-footer-brand-frame,
[data-theme="dark"] .site-footer-brand-frame {
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.96), rgba(230, 241, 247, 0.82) 42%, rgba(191, 210, 229, 0.68) 68%, rgba(231, 184, 95, 0.17));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.50),
    0 9px 24px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(217, 230, 239, 0.16);
}

html[data-theme="dark"] .site-footer-brand-frame::after,
[data-theme="dark"] .site-footer-brand-frame::after {
  border-color: rgba(231, 184, 95, 0.38);
  box-shadow: 0 0 18px rgba(231, 184, 95, 0.10);
}

html[data-theme="dark"] .site-footer-brand .footer-logo-img,
[data-theme="dark"] .site-footer-brand .footer-logo-img {
  filter:
    drop-shadow(0 8px 14px rgba(1, 11, 25, 0.28))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

html[data-theme="dark"] .site-footer-brand-name,
[data-theme="dark"] .site-footer-brand-name {
  background: linear-gradient(135deg, #ffffff 0%, #eaf6ff 36%, #d9e6ef 60%, #e7b85f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 8px 22px rgba(217, 230, 239, 0.10),
    0 0 16px rgba(231, 184, 95, 0.07);
}

@media (max-width: 768px) {
  .site-footer-brand {
    min-height: 64px;
    padding: 0.30rem 0.72rem 0.30rem 0.34rem;
  }

  .site-footer-brand-frame {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .site-footer-brand .footer-logo-img {
    width: 82px;
    height: 82px;
    transform: translateY(-8px) scale(1.02) translateX(-7px);
  }

  .site-footer-brand-name {
    font-size: 1.55rem;
  }
}

@media (max-width: 420px) {
  .site-footer-brand-name {
    display: none;
  }

  .site-footer-brand {
    padding: 0.28rem;
  }
}

/* =========================================================
   Part 31 Footer contact completion
   ========================================================= */

.site-footer-contact {
  min-width: 0;
}

.site-footer-contact h3 {
  color: var(--text-strong);
}

.site-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--text-muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.site-footer-contact-item span:first-child {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  line-height: 1;
  margin-block-start: 0.18rem;
}

.site-footer-contact a.site-footer-contact-item:hover,
a.site-footer-contact-item:hover {
  color: var(--primary);
}

.site-footer-contact-empty {
  color: var(--text-soft);
  line-height: 1.9;
}

html[data-theme="dark"] .site-footer-contact-item span:first-child,
[data-theme="dark"] .site-footer-contact-item span:first-child {
  background: rgba(115, 201, 244, 0.14);
  color: var(--primary);
}
.site-footer-trust {
  display: grid;
  gap: var(--space-3);
}

.site-footer-trust-title {
  margin: 0;
  color: var(--text-strong);
}

.site-footer-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: var(--space-3);
}

.site-footer-trust-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  color: var(--text-muted);
  text-align: center;
}

.site-footer-trust-card:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.site-footer-trust-img {
  max-width: 100%;
  max-height: 76px;
  display: block;
  object-fit: contain;
}

.site-footer-trust-fallback {
  font-weight: 900;
  line-height: 1.8;
}


/* Part 02.6-pre-FINAL - Footer trust badges clean final layout */
.site-footer-main-grid {
  align-items: start;
}

.site-footer-trust--inline-left {
  min-width: 0;
}

.site-footer-trust--inline-left .site-footer-trust-title {
  margin: 0 0 var(--space-3);
}

.site-footer-trust--inline-left .site-footer-trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-start;
}

.site-footer-trust--inline-left .site-footer-trust-card {
  width: 92px;
  min-height: 92px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-glass);
  border: 1px solid var(--border-soft);
}

.site-footer-trust--inline-left .site-footer-trust-img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.site-footer-bottom {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-5);
  border-top: 1px solid var(--border-soft);
}

@media (min-width: 992px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .site-footer .container {
    overflow-x: visible !important;
  }

  .site-footer .site-footer-main-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: clamp(16px, 2vw, 34px) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
  }

  .site-footer .site-footer-main-grid > section {
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 0 !important;
  }

  .site-footer .site-footer-main-grid > section:first-child {
    flex: 1.15 1 0 !important;
    min-width: 0 !important;
    max-width: 260px !important;
  }

  .site-footer .site-footer-contact {
    flex: 1.1 1 0 !important;
    min-width: 0 !important;
    max-width: 270px !important;
  }

  .site-footer .site-footer-main-grid > .site-footer-trust,
  .site-footer .site-footer-main-grid > .site-footer-trust--inline-left {
    flex: 0 1 120px !important;
    min-width: 104px !important;
    max-width: 132px !important;
    order: 999 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    align-self: flex-start !important;
    justify-self: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .site-footer .site-footer-main-grid h3,
  .site-footer .site-footer-main-grid p,
  .site-footer .site-footer-main-grid a,
  .site-footer .site-footer-contact-item,
  .site-footer .site-footer-brand {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .site-footer .site-footer-main-grid p,
  .site-footer .site-footer-main-grid a,
  .site-footer .site-footer-contact-item span {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .site-footer .site-footer-brand-frame {
    width: 74px !important;
    height: 74px !important;
    flex: 0 0 74px !important;
  }

  .site-footer .site-footer-brand-name {
    font-size: clamp(1.6rem, 2vw, 2.4rem) !important;
  }

  .site-footer .site-footer-trust--inline-left {
    display: block !important;
    text-align: right !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-title {
    white-space: normal !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 8px !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-card {
    width: 86px !important;
    min-width: 86px !important;
    height: 86px !important;
    min-height: 86px !important;
    padding: 10px !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-img {
    max-width: 100% !important;
    max-height: 62px !important;
    object-fit: contain !important;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .site-footer .site-footer-main-grid {
    gap: 14px !important;
  }

  .site-footer .site-footer-main-grid > section:first-child {
    max-width: 230px !important;
  }

  .site-footer .site-footer-contact {
    max-width: 240px !important;
  }

  .site-footer .site-footer-main-grid > .site-footer-trust,
  .site-footer .site-footer-main-grid > .site-footer-trust--inline-left {
    flex-basis: 104px !important;
    min-width: 96px !important;
    max-width: 112px !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-card {
    width: 78px !important;
    min-width: 78px !important;
    height: 78px !important;
    min-height: 78px !important;
  }

  .site-footer .site-footer-trust--inline-left .site-footer-trust-img {
    max-height: 56px !important;
  }
}

@media (max-width: 991px) {
  .site-footer .site-footer-main-grid {
    display: grid !important;
  }

  .site-footer .site-footer-main-grid > .site-footer-trust,
  .site-footer .site-footer-main-grid > .site-footer-trust--inline-left {
    max-width: none !important;
    justify-self: stretch !important;
  }

  .site-footer-trust--inline-left .site-footer-trust-grid {
    justify-content: flex-start;
  }
}

/* ANAYEK FIX START: clean-header-wishlist-badge-ui */

/* =========================================================
   Clean header icon badges
   ========================================================= */

.site-header .site-header__icon-link.btn-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: visible;
  flex: 0 0 44px;
}

.site-header .site-header__icon-symbol {
  display: inline-grid;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
  font-size: 1rem;
}

.site-header .site-header__icon-badge {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(6, 23, 45, 0.2);
  pointer-events: none;
  z-index: 2;
}

.site-header .site-header__wishlist-link.is-active .site-header__icon-symbol {
  filter: saturate(1.25);
}

html[data-theme="dark"] .site-header .site-header__icon-badge,
[data-theme="dark"] .site-header .site-header__icon-badge {
  border-color: #07182c;
}

/* ANAYEK FIX END: clean-header-wishlist-badge-ui */

/* ANAYEK FIX START: mobile-wishlist-and-centered-heart */

/* =========================================================
   Header wishlist/cart icon alignment
   ========================================================= */

.site-header .site-header__icon-link.btn-icon {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  line-height: 1 !important;
}

.site-header .site-header__icon-link .site-header__icon-symbol {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: 1rem !important;
  text-align: center !important;
  pointer-events: none !important;
  transform: translateY(1px) !important;
}

.site-header .site-header__wishlist-link .site-header__icon-symbol {
  font-size: 1.02rem !important;
  transform: translateY(1px) translateX(0) !important;
}

.site-header .site-header__cart-link .site-header__icon-symbol {
  font-size: 1.02rem !important;
  transform: translateY(1px) !important;
}

.site-header .site-header__icon-badge {
  position: absolute !important;
  inset-block-start: -5px !important;
  inset-inline-end: -4px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--surface) !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  color: var(--text-inverse) !important;
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 16px rgba(6, 23, 45, 0.2) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.site-header .site-header__wishlist-link.is-active .site-header__icon-symbol {
  filter: saturate(1.2);
}

@media (max-width: 768px) {
  .mobile-header .cluster {
    align-items: center !important;
  }

  .mobile-header .site-header__wishlist-link {
    display: inline-grid !important;
  }

  .mobile-header .site-header__icon-link.btn-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-basis: 42px !important;
  }

  .mobile-header .site-header__icon-badge {
    inset-block-start: -5px !important;
    inset-inline-end: -5px !important;
  }
}

html[data-theme="dark"] .site-header .site-header__icon-badge,
[data-theme="dark"] .site-header .site-header__icon-badge {
  border-color: #07182c !important;
}

/* ANAYEK FIX END: mobile-wishlist-and-centered-heart */

/* ANAYEK FIX START: wishlist-button-state-text */

/* =========================================================
   Wishlist button state/text
   ========================================================= */

.product-detail__wishlist-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  min-height: 46px !important;
  padding-inline: 1rem !important;
  white-space: nowrap !important;
}

.product-detail__wishlist-button .wishlist-button__icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 1.15em !important;
  height: 1.15em !important;
  line-height: 1 !important;
  font-size: 1.05rem !important;
  color: currentColor !important;
  transform: translateY(1px) !important;
}

.product-detail__wishlist-button.is-active .wishlist-button__icon,
.product-card__wishlist.is-active [data-wishlist-icon] {
  color: #ff477e !important;
  filter: saturate(1.25) drop-shadow(0 4px 10px rgba(255, 71, 126, 0.28)) !important;
}

.product-detail__wishlist-button.is-active {
  border-color: rgba(255, 71, 126, 0.34) !important;
  background: rgba(255, 71, 126, 0.08) !important;
}

.product-card__wishlist [data-wishlist-icon] {
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

/* ANAYEK FIX END: wishlist-button-state-text */

/* ANAYEK FIX START: smooth-mobile-category-tree */
.mobile-category-tree {
  padding: var(--space-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
}

.mobile-category-tree__list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-category-tree__list--child {
  margin-block-start: var(--space-2);
  margin-inline-start: var(--space-3);
  padding-inline-start: var(--space-3);
  border-inline-start: 1px solid var(--border-soft);
}

.mobile-category-tree__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mobile-category-tree__link {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-strong);
  font-weight: 900;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.mobile-category-tree__link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-category-tree__icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.mobile-category-tree__toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
  transition:
    transform 240ms ease,
    color var(--transition-fast),
    background var(--transition-fast);
}

.mobile-category-tree__item.is-open > .mobile-category-tree__row .mobile-category-tree__toggle {
  transform: rotate(180deg);
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-category-tree__children {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height 320ms ease,
    opacity 240ms ease,
    transform 240ms ease;
}

.mobile-category-tree__item.is-open > .mobile-category-tree__children {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
}
/* ANAYEK FIX END: smooth-mobile-category-tree */

/* ANAYEK FIX START: refine-mobile-category-arrow-soft-ui */

/* Softer mobile category tree arrow and borders */
.mobile-category-tree {
  border-color: rgba(115, 201, 244, 0.14) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
}

.mobile-category-tree__row {
  min-height: 44px;
  padding: 0.18rem 0.28rem;
  border: 1px solid rgba(115, 201, 244, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.052), rgba(255,255,255,0.022));
}

.mobile-category-tree__link {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-category-tree__toggle {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text-muted);
  box-shadow: none !important;
  transform: rotate(0deg);
  transition:
    transform 240ms ease,
    color 180ms ease,
    background 180ms ease;
}

.mobile-category-tree__item.is-open > .mobile-category-tree__row .mobile-category-tree__toggle {
  transform: rotate(180deg);
  color: var(--primary);
  background: rgba(115, 201, 244, 0.10) !important;
}

/* ANAYEK FIX END: refine-mobile-category-arrow-soft-ui */
