/* Alathath Group — Luxury Interior Editorial */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* التمرير العمودي يبقى يعمل؛ إخفاء شريط التمرير + منع التمرير الأفقي */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

body.site-body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  transition: background 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
  width: 100%;
  min-height: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
  -ms-overflow-style: none;
}

.site-header,
.site-main,
.site-footer {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* Fixed positioning avoids widening document (RTL / mobile horizontal scroll) */
.skip-link {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 10001;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: var(--color-surface);
  text-decoration: none;
  font-size: 0.9rem;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— App-style mobile Back (fixed pill, RTL-aware) ——— */
.mobile-app-back {
  display: none;
}

@media (max-width: 959px) {
  .mobile-app-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    position: fixed;
    z-index: 95;
    inset-inline-start: max(0.6rem, env(safe-area-inset-left, 0px));
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    min-width: 48px;
    padding: 0.5rem 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 35%, transparent);
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-app-back:active {
    transform: scale(0.98);
  }

  .mobile-app-back__chev {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    border-inline-start: 2.5px solid currentColor;
    border-block-end: 2.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -1px;
  }

  [dir='rtl'] .mobile-app-back__chev {
    transform: scaleX(-1) rotate(45deg);
  }

  .mobile-app-back__label {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Admin: same offset above admin bottom bar */
  .admin-body .mobile-app-back {
    bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-back-wrap--desktop {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .mobile-app-back {
    display: none !important;
  }
}

.container {
  width: 100%;
  max-width: min(112rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 4vw, 1rem);
  box-sizing: border-box;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 18%, transparent);
  transition: background 0.4s ease;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 4.25rem;
  padding: 0.5rem clamp(0.5rem, 3vw, 1rem);
  max-width: 112rem;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}

.is-rtl .header-tools {
  justify-self: end;
}

.site-logo {
  justify-self: center;
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
  text-align: center;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: min(14rem, 78vw);
  margin-inline: auto;
  line-height: 1.2;
}

.site-logo img {
  max-height: 2.5rem;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  justify-self: end;
}

.is-rtl .nav-desktop {
  justify-self: start;
}

.nav-desktop a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
  transition: opacity 0.35s ease, color 0.35s ease;
}
.nav-desktop a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.cart-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  text-align: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 999px;
  vertical-align: middle;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.lang-switch a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.lang-switch a.is-active {
  color: var(--color-secondary);
  font-weight: 600;
}
.lang-sep {
  opacity: 0.4;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-text);
  border-radius: 0.35rem;
  transition: background 0.3s ease;
}
.icon-btn:hover {
  background: color-mix(in srgb, var(--color-muted) 12%, transparent);
}

.theme-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}
.theme-icon--moon {
  box-shadow: inset -4px -2px 0 0 currentColor;
  opacity: 0.85;
}
.theme-icon--sun {
  border: 2px solid currentColor;
  display: none;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}
[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.is-rtl .nav-toggle {
  justify-self: start;
}
.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.35s ease;
}

.mobile-drawer {
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 15%, transparent);
  padding: 1rem;
  animation: fadeSlide 0.4s ease;
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-drawer__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.05rem;
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-drawer {
    display: none !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  max-width: 100%;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background: var(--color-bg) center / cover no-repeat;
  background-image: var(--hero-bg);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 8s ease-out;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 75%, transparent) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem clamp(1rem, 4vw, 1.5rem);
  max-width: min(48rem, 100%);
  width: 100%;
  box-sizing: border-box;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #faf8f4;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: color-mix(in srgb, #faf8f4 88%, transparent);
  font-weight: 300;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-secondary), color-mix(in srgb, var(--color-secondary) 70%, #fff));
  color: var(--color-primary);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--color-secondary) 35%, transparent);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--color-secondary) 45%, transparent);
}

.btn--ghost {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  color: var(--color-text);
  margin-top: 0.75rem;
  width: 100%;
}
.btn--ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--text {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.link-arrow {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: letter-spacing 0.35s ease;
}
.link-arrow:hover {
  letter-spacing: 0.04em;
}

/* ——— Sections ——— */
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--muted {
  background: color-mix(in srgb, var(--color-muted) 8%, var(--color-bg));
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0 0 2rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 100%;
  min-width: 0;
}

.section__head > * {
  min-width: 0;
}

.page-head {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.page-lead {
  color: var(--color-muted);
  margin: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  max-width: 100%;
}

.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.chip:hover,
.chip.is-active {
  border-color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary) 12%, transparent);
}

/* ——— Category grid ——— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

.cat-card {
  display: flex;
  align-items: flex-end;
  min-height: 11rem;
  padding: 1.25rem;
  text-decoration: none;
  color: #f5f0e8;
  background: linear-gradient(160deg, var(--color-primary), color-mix(in srgb, var(--color-accent) 55%, var(--color-primary)));
  border-radius: 3px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.cat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.cat-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

/* ——— Product grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 100%;
  overflow-x: hidden;
}

.product-grid--large {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.product-card__link {
  text-decoration: none;
  color: inherit;
}

.product-card__img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: color-mix(in srgb, var(--color-muted) 12%, transparent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.5s ease, transform 0.6s ease;
}

.product-card:hover .product-card__img-wrap {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.14);
  transform: scale(1.02);
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 2px;
}

.product-card__body {
  padding-top: 1rem;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-current {
  font-weight: 600;
  color: var(--color-text);
}

.price-old {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 0.9rem;
}

/* ——— Why grid ——— */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
}

.why-item {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  padding: 1.75rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 18%, transparent);
  border-radius: 2px;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.why-item:hover {
  border-color: var(--color-secondary);
  background: color-mix(in srgb, var(--color-secondary) 6%, transparent);
}

/* ——— Story sections ——— */
.story {
  display: grid;
  gap: 0;
  min-height: min(70vh, 36rem);
  overflow-x: hidden;
  max-width: 100%;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr;
  }
  .story--two .story__text {
    order: 0;
  }
}

.story__media {
  min-height: 20rem;
  background: var(--color-muted) center / cover no-repeat;
  transition: transform 0.6s ease-out;
}

.story__text {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-surface);
}

.story__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.story__text p {
  margin: 0;
  color: var(--color-muted);
  max-width: 32rem;
}

/* ——— Product page ——— */
.product-layout {
  display: grid;
  gap: 2.5rem;
  padding-block: 2rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.product-layout > * {
  min-width: 0;
}

.product-gallery__main {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: color-mix(in srgb, var(--color-muted) 10%, transparent);
}

.product-gallery__slide {
  display: none;
  height: 100%;
}
.product-gallery__slide.is-active {
  display: block;
}

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
  opacity: 1;
  border-color: var(--color-secondary);
}

.product-gallery__thumb img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  display: block;
}

.product-info__cat a {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.product-info__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  margin: 0.35rem 0 1rem;
}

.product-info__price {
  margin-bottom: 1.5rem;
}

.editorial-text {
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ——— Cart & checkout ——— */
.cart-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.cart-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 15%, transparent);
}

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 4rem 1fr;
    grid-template-rows: auto auto;
  }
  .cart-row__qty,
  .cart-row .btn--text {
    grid-column: 2;
  }
}

.cart-row__img img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
  aspect-ratio: 1;
}

.cart-row__info a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.cart-row__qty input {
  width: 4rem;
  padding: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent);
  border-radius: 2px;
  background: var(--color-surface);
  color: var(--color-text);
}

.cart-summary {
  max-width: 24rem;
}

.checkout-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr 22rem;
  }
}

.card-form {
  padding: 1.5rem;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--color-muted) 15%, transparent);
  background: var(--color-surface);
}

.form-row {
  margin-bottom: 1.1rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
  border-radius: 2px;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.form-error {
  color: #b54a4a;
  margin-bottom: 1rem;
}

.form-success {
  color: #3d7a4a;
  margin-bottom: 1rem;
}

.checkout-aside {
  padding: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 25%, transparent);
  border-radius: 3px;
  height: fit-content;
}

.checkout-total {
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.hint {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ——— Auth ——— */
.auth-page {
  display: flex;
  justify-content: center;
  padding-block: 3rem;
}

.auth-card {
  width: min(26rem, 100%);
  padding: 2rem;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--color-muted) 15%, transparent);
  background: var(--color-surface);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.auth-tab.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-secondary);
}

.auth-panel[hidden] {
  display: none !important;
}

/* ——— Tables ——— */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: start;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 12%, transparent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table a {
  color: var(--color-secondary);
}

.order-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.order-lines li {
  padding: 0.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 10%, transparent);
}
.order-lines a {
  color: var(--color-text);
}

.muted {
  color: var(--color-muted);
}

.empty-state {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 3rem 1rem 6.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 12%, transparent);
  margin-top: 3rem;
}

@media (min-width: 960px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.footer-inner {
  max-width: 112rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-tag {
  color: var(--color-muted);
  margin: 0.25rem 0 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-back-wrap {
  max-width: 112rem;
  margin: 1.75rem auto 0;
  padding-inline: clamp(0.75rem, 4vw, 1rem);
  display: flex;
  justify-content: center;
}

.footer-back {
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.65rem 1.5rem;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 45%, transparent);
  background: transparent;
  color: var(--color-secondary);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-back:hover,
.footer-back:focus-visible {
  background: color-mix(in srgb, var(--color-secondary) 14%, transparent);
  color: var(--color-text);
  outline: none;
}

.is-rtl .footer-back {
  letter-spacing: 0.01em;
}

.footer-copy {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* ——— Bottom nav (mobile) ——— */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 12%, transparent);
  z-index: 90;
}

@media (min-width: 960px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: clamp(0.58rem, 2.8vw, 0.65rem);
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  transition: color 0.3s ease;
}

.bottom-nav__item span:last-child {
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.15;
}
.bottom-nav__item:hover,
.bottom-nav__item:focus {
  color: var(--color-secondary);
}

.bn-ico {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  opacity: 0.85;
}
.bn-ico--home {
  border-radius: 2px;
}
.bn-ico--cart::after {
  content: '';
  display: block;
  margin: 0.2rem auto 0;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Parallax soft ——— */
[data-parallax='soft'] .hero__slide.is-active {
  will-change: transform;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Admin (shared bits) ——— */
.admin-body {
  padding-bottom: 5rem;
}
@media (min-width: 900px) {
  .admin-body {
    padding-bottom: 1rem;
  }
}

.admin-nav-desk {
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .admin-nav-desk {
    display: flex;
  }
}

.admin-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 15%, transparent);
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  z-index: 100;
}
@media (min-width: 900px) {
  .admin-bottom {
    display: none;
  }
}

.admin-bottom a {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-decoration: none;
  text-align: center;
  max-width: 4.5rem;
}
.admin-bottom a.is-active {
  color: var(--color-secondary);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  padding: 1.25rem;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--color-muted) 12%, transparent);
  background: var(--color-surface);
}
.admin-stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.admin-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.btn--danger {
  background: #8b3a3a;
  color: #fff;
}

/* Storefront: clip horizontal bleed; clip avoids the overflow-x:hidden + overflow-y:visible → y:auto quirk */
body.site-body:not(.admin-body) div {
  max-width: 100%;
}
@supports (overflow-x: clip) {
  body.site-body:not(.admin-body) div {
    overflow-x: clip;
  }
}

body.site-body:not(.admin-body) textarea {
  overflow-x: clip;
  overflow-y: auto;
  max-width: 100%;
}

body.site-body:not(.admin-body) .allow-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
