/* ============================================
   amedical — RTL Arabic homepage
   Mobile-first, soft medical-beauty aesthetic
   ============================================ */

:root {
  /* خلفيات: أبيض + أوف وايت */
  --color-white: #ffffff;
  --color-off-white: #f7f7f5;
  --color-off-white-2: #f0f0ec;
  --color-paper: var(--color-white);
  --color-mist: var(--color-off-white);
  --color-beige: var(--color-off-white-2);

  /* أزرار أساسية: كحلي + hover أزرق أفتح */
  --color-navy: #1a2d45;
  --color-navy-hover: #3d5a8c;
  --color-navy-light: #e8eef6;

  /* تفاصيل: روز فاتح / أخضر نعناعي */
  --color-accent-rose: #fdf2f6;
  --color-accent-rose-border: #f5e3ec;
  --color-accent-mint: #f0faf6;
  --color-accent-mint-border: #d5ebe3;
  --color-blush: var(--color-accent-rose);
  --color-mint: var(--color-accent-mint);

  /* نصوص */
  --color-ink: #1c1917;
  --color-muted: #64748b;

  /* ظلال خفيفة للكروت */
  --shadow-soft: 0 4px 24px -6px rgba(26, 45, 69, 0.07);
  --shadow-card: 0 2px 20px -4px rgba(26, 45, 69, 0.09);

  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font: "Cairo", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* توافق مع قواعد قديمة */
  --color-rose-deep: var(--color-navy);
  --color-rose: var(--color-navy-hover);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-copy,
  .hero-visual,
  .hero-float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: top 0.2s, background 0.2s;
}

.skip-link:focus {
  top: 1rem;
  background: var(--color-navy-hover);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ----- Brand strip (homepage only) ----- */
.brand-strip--home {
  background: #fff;
  border: 0;
  padding: 0.65rem 0 0.75rem;
  margin: 0;
  border-top: 1px solid rgba(26, 45, 69, 0.06);
}

.page-home .top-header {
  border-bottom-color: transparent;
}

.page-home .site-sub-nav-outer .sub-nav {
  border-top-color: transparent;
  background: #fff;
}

.brand-strip--static .brand-strip__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  direction: ltr;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.brand-strip--static .brand-strip__row::-webkit-scrollbar {
  display: none;
}

.brand-strip--static .brand-strip__marquee,
.brand-strip--static .brand-strip__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
  direction: ltr;
  animation: none;
  transform: none;
  will-change: auto;
}

.brand-strip__marquee {
  overflow: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.brand-strip__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: max-content;
  direction: ltr;
  padding-inline: 0.5rem;
}

.brand-strip:not(.brand-strip--static) .brand-strip__track {
  --brand-marquee-start: 0px;
  --brand-marquee-shift: 50%;
  animation: brand-strip-scroll 38s linear infinite;
  will-change: transform;
}

.brand-strip:not(.brand-strip--static) .brand-strip__marquee:hover .brand-strip__track,
.brand-strip:not(.brand-strip--static) .brand-strip__marquee:focus-within .brand-strip__track {
  animation-play-state: paused;
}

@keyframes brand-strip-scroll {
  from {
    transform: translate3d(var(--brand-marquee-start), 0, 0);
  }
  to {
    transform: translate3d(calc(var(--brand-marquee-start) - var(--brand-marquee-shift)), 0, 0);
  }
}

.brand-strip__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  max-width: 8rem;
  height: 2.65rem;
  padding: 0.15rem 0.25rem;
  text-decoration: none;
  opacity: 0.9;
  filter: grayscale(0.12);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.brand-strip__logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.brand-strip__logo:focus-visible {
  outline: 2px solid rgba(26, 45, 69, 0.35);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.brand-strip__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 2.35rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-strip--home {
    padding: 0.85rem 0 0.95rem;
  }

  .brand-strip__logo {
    height: 3rem;
    max-width: 9rem;
  }

  .brand-strip__logo img {
    max-height: 2.55rem;
  }
}

@media (max-width: 767px) {
  .brand-strip--static .brand-strip__row {
    justify-content: flex-start;
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-strip:not(.brand-strip--static) .brand-strip__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
    padding-inline: 1rem;
    gap: 1rem 1.75rem;
  }

  .brand-strip:not(.brand-strip--static) .brand-strip__marquee {
    mask-image: none;
  }
}

/* ----- Header ----- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 45, 69, 0.08);
  transition: box-shadow 0.3s var(--ease-out), transform 0.25s var(--ease-out);
}

.top-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.top-header.is-hidden {
  transform: translateY(-100%);
}

.header-shell {
  position: relative;
}

.header-grid,
.header-grid--desktop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.header-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 0.55rem;
  min-height: 3.1rem;
  overflow: visible;
}

.header-mobile-bar .logo {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-mist);
  color: var(--color-navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.header-menu-toggle:hover {
  background: var(--color-navy-light);
}

.header-menu-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 0.75rem;
  border-block: 2px solid currentColor;
  box-sizing: border-box;
  position: relative;
}

.header-menu-toggle__bars::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}

.header-mobile-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  max-width: min(58%, 17rem);
  justify-content: flex-end;
  overflow: visible;
}

.header-mobile-tools .icon-btn {
  overflow: visible;
  flex-shrink: 0;
}

.header-mobile-tools .search-wrap {
  flex: 1;
  min-width: 0;
}

.header-mobile-tools .search-field {
  max-width: none;
  margin: 0;
  padding-inline-start: 0.7rem;
  padding-inline-end: 0.2rem;
}

.header-mobile-tools .search-field input {
  padding: 0.45rem 0;
  font-size: 0.8rem;
}

.header-mobile-tools .search-btn {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.header-mobile-tools .cart-badge {
  display: inline-flex !important;
}

.header-mobile-tools .cart-badge[hidden] {
  display: inline-flex !important;
}

.header-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(26, 45, 69, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.header-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.header-drawer__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(20.5rem, 92vw);
  max-width: 100%;
  background: var(--color-white);
  box-shadow: 8px 0 32px rgba(11, 31, 58, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.28s var(--ease-out), visibility 0.28s;
  pointer-events: auto;
  padding-top: env(safe-area-inset-top, 0);
  overflow: hidden;
}

#header.is-drawer-open .header-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#header.is-drawer-open .header-drawer {
  pointer-events: auto;
}

#header.is-drawer-open .header-drawer__panel {
  transform: translateX(0);
  visibility: visible;
}

html[dir="rtl"] .header-drawer__panel {
  transform: translateX(100%);
}

html[dir="rtl"] #header.is-drawer-open .header-drawer__panel {
  transform: translateX(0);
}

/* ——— Side cart (mini cart) ——— */
.side-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(26, 45, 69, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

body.side-cart-open .side-cart-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-cart {
  position: fixed;
  inset: 0;
  z-index: 156;
  pointer-events: none;
}

.side-cart__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(22rem, 92vw);
  max-width: 100%;
  background: var(--color-white);
  box-shadow: 8px 0 32px rgba(11, 31, 58, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.28s var(--ease-out), visibility 0.28s;
  pointer-events: auto;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  max-height: 100dvh;
  min-height: -webkit-fill-available;
}

body.side-cart-open .side-cart__panel {
  transform: translateX(0);
  visibility: visible;
}

body.lang-en .side-cart__panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
  transform: translateX(100%);
}

body.lang-en.side-cart-open .side-cart__panel {
  transform: translateX(0);
}

.side-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(26, 45, 69, 0.1);
  flex-shrink: 0;
}

.side-cart__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-ink);
}

.side-cart__close {
  flex-shrink: 0;
}

.side-cart__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
}

.side-cart__empty {
  margin: 0;
  padding: 0.5rem 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.side-cart__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.side-cart__item {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  gap: 0.55rem 0.65rem;
  align-items: start;
  padding: 0.55rem;
  background: var(--color-mist);
  border-radius: 0.75rem;
  border: 1px solid rgba(11, 31, 58, 0.08);
}

.side-cart__thumb {
  display: block;
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--color-white);
}

.side-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
}

.side-cart__name {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.side-cart__name a {
  color: var(--color-ink);
}

.side-cart__cat {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.side-cart__unit {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-ink);
}

.side-cart__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.side-cart__controls .cart-qty-btn {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.85rem;
}

.side-cart__controls .cart-remove-btn {
  font-size: 0.75rem;
}

.side-cart__line {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-ink);
  white-space: nowrap;
  align-self: center;
}

.side-cart__footer {
  flex-shrink: 0;
  padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(26, 45, 69, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--color-white);
}

.side-cart__totals p {
  margin: 0 0 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.side-cart__totals strong {
  color: var(--color-ink);
  font-weight: 700;
}

.side-cart__total {
  margin-top: 0.25rem !important;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(11, 31, 58, 0.12);
  color: var(--color-ink) !important;
  font-weight: 800;
}

.side-cart__footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.side-cart__btn-view-cart,
.side-cart__btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.side-cart__btn-view-cart {
  background: var(--color-navy);
  color: #fff;
  border: 2px solid var(--color-navy);
}

.side-cart__btn-view-cart:hover {
  background: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
  color: #fff;
}

.side-cart__btn-view-cart:focus-visible {
  outline: 3px solid rgba(61, 90, 140, 0.35);
  outline-offset: 2px;
}

.side-cart__btn-continue {
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.side-cart__btn-continue:hover {
  background: var(--color-navy-light);
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.side-cart__btn-continue:focus-visible {
  outline: 3px solid rgba(26, 45, 69, 0.25);
  outline-offset: 2px;
}

body.side-cart-open {
  overflow: hidden;
}

/* صفحة السلة: السلة الجانبية بجانب القائمة وليست نافذة منبثقة */
body.page-cart .side-cart-backdrop {
  display: none !important;
  pointer-events: none !important;
}

body.page-cart .side-cart {
  position: static;
  inset: auto;
  z-index: auto;
  width: 100%;
  pointer-events: auto;
}

body.page-cart .side-cart__panel {
  position: relative;
  top: auto;
  bottom: auto;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  width: 100%;
  max-width: none;
  transform: none !important;
  visibility: visible !important;
  max-height: none;
  min-height: 0;
  height: auto;
  box-shadow: 0 6px 28px rgba(11, 31, 58, 0.08);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

body.page-cart .side-cart__close {
  display: none !important;
}

body.page-cart .side-cart__footer-actions {
  display: none !important;
}

body.page-cart.lang-en .side-cart__panel {
  transform: none !important;
}

body.page-cart.side-cart-open {
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .side-cart-backdrop,
  .side-cart__panel {
    transition: none;
  }
}

.header-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(26, 45, 69, 0.1);
  flex-shrink: 0;
}

.header-drawer__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-ink);
}

.header-drawer__close {
  flex-shrink: 0;
}

.header-drawer__body {
  padding: 0.65rem 0.75rem 0.35rem;
  overflow: visible;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(26, 45, 69, 0.08);
}

.header-drawer__body .search-wrap {
  width: 100%;
}

.header-drawer__body .search-field {
  max-width: none;
  border-radius: 0.75rem;
}

.header-drawer__body .header-icons,
.header-icons--drawer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0 0 0.35rem;
  margin: 0;
}

.header-icons--drawer .icon-btn {
  overflow: visible;
}

.header-icons--drawer .cart-badge,
.header-icons--drawer .fav-badge {
  display: inline-flex !important;
}

.header-icons--drawer .cart-badge[hidden],
.header-icons--drawer .fav-badge[hidden] {
  display: inline-flex !important;
}

.header-drawer__sub {
  border-top: none;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.header-drawer__sub .site-sub-nav-outer {
  margin: 0;
}

.header-drawer__sub .sub-nav {
  border-top: none;
  background: rgba(247, 247, 245, 0.95);
}

.header-drawer__sub .sub-nav-inner {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0.25rem 0.75rem 0.85rem;
  max-width: none;
}

.header-drawer__sub .sub-nav-inner > a,
.header-drawer__sub .sub-nav-all-products {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(26, 45, 69, 0.06);
  text-align: start;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.header-drawer__sub .sub-nav-all-products__toggle {
  width: 100%;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.header-drawer__sub .sub-nav-all-products__menu {
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  max-height: none;
  padding: 0;
  margin: 0 0 0.35rem;
}

body.header-nav-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .header-drawer__body .header-icons .cart-btn {
    display: none !important;
  }

  #header:not(.is-drawer-open) .header-drawer {
    display: none !important;
  }

  #header.is-drawer-open .header-drawer {
    display: block;
  }

  .header-drawer__panel {
    height: 100dvh;
    max-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .header-mobile-tools {
    flex: 0 0 auto;
    max-width: none;
    gap: 0.25rem;
  }

  .header-mobile-tools .search-wrap {
    display: none !important;
  }

  .header-mobile-bar .logo {
    max-width: 52%;
  }

  .top-header {
    padding-top: env(safe-area-inset-top, 0);
    overflow: visible;
  }

  .top-header .container.header-shell {
    overflow: visible;
    padding-inline-start: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-inline-end: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .header-mobile-bar {
    display: flex;
    overflow: visible;
  }

  .header-desktop-slot {
    display: none !important;
  }

  .header-mobile-bar .logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.68rem;
    border-radius: 0.72rem;
  }

  .header-mobile-bar .logo-name {
    font-size: 0.92rem;
  }

  .header-mobile-bar .logo-tag {
    font-size: 0.62rem;
    max-width: 6.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sub-nav-inner {
    gap: 0.4rem 0.75rem;
    padding-block: 0.42rem;
    font-size: 0.8rem;
    justify-content: flex-start;
  }

}

@media (min-width: 992px) {
  .header-mobile-bar,
  .header-mobile-tools,
  .header-menu-toggle,
  .header-drawer,
  .header-drawer-backdrop {
    display: none !important;
  }

  .header-desktop-slot {
    display: block;
  }
}

@media (max-width: 380px) {
  .header-mobile-bar .logo-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-drawer__panel,
  .header-drawer-backdrop {
    transition: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-hover));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark--image {
  background: transparent;
  padding: 0;
  border-radius: 0.6rem;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.6rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-ink);
}

.logo-name--brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.logo-tag {
  font-size: 0.62rem;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo--footer .logo-name {
  font-size: 1.1rem;
}

.logo--footer .logo-mark--image {
  width: 2.75rem;
  height: 2.75rem;
}

.search-field {
  display: flex;
  align-items: center;
  max-width: 32rem;
  margin-inline: auto;
  background: var(--color-mist);
  border: 1px solid rgba(26, 45, 69, 0.12);
  border-radius: 999px;
  padding-inline-start: 1rem;
  padding-inline-end: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: var(--color-navy-hover);
  box-shadow: 0 0 0 3px rgba(61, 90, 140, 0.18);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.search-field input::placeholder {
  color: #a8a29e;
}

.search-field input:focus {
  outline: none;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
  background: var(--color-navy-light);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  transition: color 0.2s, background 0.2s;
}

.icon-btn:hover {
  color: var(--color-navy);
  background: var(--color-navy-light);
}

.lang-toggle {
  width: auto;
  min-width: 2.7rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
}

.lang-en .sub-nav-inner,
.lang-en .shop-breadcrumb,
.lang-en .shop-page-title,
.lang-en .shop-page-lead,
.lang-en .footer-grid {
  text-align: left;
}

.cart-badge {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.35rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  background: var(--color-navy);
  color: #fff;
  border-radius: 999px;
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 4px rgba(26, 45, 69, 0.22);
  pointer-events: none;
}

.cart-badge.is-active {
  background: #e11d48;
}

@media (min-width: 992px) {
  .header-icons .cart-badge:not(.is-active) {
    opacity: 0.85;
  }
}

.fav-badge {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
}

a.fav-nav-btn {
  text-decoration: none;
  color: inherit;
}

a.fav-nav-btn:hover .fav-icon {
  color: #e11d48;
}

.fav-icon {
  display: block;
  flex-shrink: 0;
}

.sub-nav {
  border-top: 1px solid rgba(26, 45, 69, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.sub-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding-block: 0.5rem;
  font-size: 0.85rem;
}

.sub-nav a {
  color: var(--color-muted);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.sub-nav a:hover {
  color: var(--color-navy);
}

.sub-nav-all-products {
  position: relative;
}

.sub-nav-all-products__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.25rem 0.35rem;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.15s;
}

.sub-nav-all-products__toggle:hover {
  color: var(--color-navy);
  background: rgba(11, 31, 58, 0.06);
}

.sub-nav-all-products__chev {
  font-size: 0.65em;
  opacity: 0.85;
}

.sub-nav-all-products__menu {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 0.35rem);
  min-width: 12.5rem;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 0.55rem;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.12);
  z-index: 120;
}

.sub-nav-all-products__menu a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
}

.sub-nav-all-products__menu a:hover {
  background: rgba(11, 31, 58, 0.06);
}

.sub-nav-all-products__empty {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-muted);
  white-space: normal;
  max-width: 14rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 1.4rem 2.4rem;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 2rem 3rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #ffffff 0%, #f2f7ff 50%, #ffffff 100%);
  opacity: 1;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(11, 31, 58, 0.08), transparent 36%),
    radial-gradient(circle at 8% 88%, rgba(209, 232, 255, 0.65), transparent 38%);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-strip {
  position: relative;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  border-radius: 1.35rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-strip::-webkit-scrollbar {
  display: none;
}

.hero-strip:focus-visible {
  outline: 2px solid rgba(11, 31, 58, 0.4);
  outline-offset: 4px;
  border-radius: 1.2rem;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(11, 31, 58, 0.5);
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-slide img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
}

.hero-discount {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1f3a;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ----- Categories page ----- */
.categories-page-hero {
  padding-top: 2.2rem;
  padding-bottom: 1.4rem;
}

.categories-page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--color-navy);
}

.categories-page-hero p {
  margin: 0;
  color: var(--color-muted);
}

.categories-page-breadcrumb {
  margin-bottom: 0.85rem;
  text-align: start;
}

.categories-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.categories-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.categories-mode-tab:hover {
  border-color: rgba(11, 31, 58, 0.28);
  background: #fff;
}

.categories-mode-tab.is-active {
  color: #fff;
  background: var(--color-navy, #0f2744);
  border-color: transparent;
}

.category-detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .category-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.category-detail-card {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.category-detail-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.category-detail-content {
  padding: 1rem;
}

.category-detail-content h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--color-ink);
}

.category-detail-content p {
  margin: 0 0 0.9rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* ----- Shop / عرض منتجات القسم ----- */
.shop-page {
  padding-top: 1.5rem;
}

.shop-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.shop-breadcrumb a {
  color: var(--color-navy);
  font-weight: 600;
}

.shop-breadcrumb span[aria-current="page"] {
  color: var(--color-ink);
}

.shop-page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #0b1f3a;
}

.shop-page-lead {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  max-width: 40rem;
}

.faq-page .faq-head {
  margin-bottom: 1.25rem;
}

.about-head {
  margin-bottom: 1rem;
}

.about-body {
  max-width: 42rem;
  padding: 1.25rem 1.35rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-body p {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: var(--color-ink);
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-cta {
  margin: 1.5rem 0 0;
}

.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.faq-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  background: rgba(11, 31, 58, 0.05);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.faq-nav__link:hover {
  background: var(--color-navy);
  color: #fff;
}

.faq-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-section {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.faq-section__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--color-ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 0.75rem;
  background: #fafbfc;
  overflow: hidden;
}

.faq-item[open] {
  background: #fff;
  border-color: rgba(11, 31, 58, 0.14);
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.04);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q-text {
  flex: 1;
  line-height: 1.45;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.06);
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 2px;
  background: var(--color-navy);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item__a {
  padding: 0 1rem 1rem;
}

.faq-item__a p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #475569;
}

.faq-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.04), rgba(11, 31, 58, 0.02));
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-lg);
}

.faq-cta__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--color-ink);
}

.faq-cta__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.faq-cta .btn {
  min-width: 10rem;
}

.faq-home__list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
}

.shop-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink);
}

.shop-field select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(11, 31, 58, 0.15);
  border-radius: 0.65rem;
  background: var(--color-off-white);
  color: var(--color-ink);
}

.shop-count {
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .shop-count {
    width: 100%;
    margin-inline-start: 0;
  }
}

.shop-tabs-wrap {
  margin-bottom: 1.25rem;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shop-tab {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.2);
  background: var(--color-white);
  color: #0b1f3a;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* لون خفيف على الحدود لكل تاب حسب لون قسمه */
.shop-tab[data-color] {
  border-color: color-mix(in srgb, var(--cat-color, #0b1f3a) 35%, transparent);
}

.shop-tab[data-color]:hover {
  background: color-mix(in srgb, var(--cat-color, #0b1f3a) 8%, #fff);
  border-color: color-mix(in srgb, var(--cat-color, #0b1f3a) 55%, transparent);
  color: var(--cat-color, #0b1f3a);
}

.shop-tab:hover {
  border-color: rgba(11, 31, 58, 0.45);
  background: #eaf2ff;
}

/* تاب «الكل» النشط — أزرق غامق ثابت */
.shop-tab.is-active {
  background: #0b1f3a;
  color: #fff;
  border-color: #0b1f3a;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
}

/* تاب قسم نشط — لون قوي بخلفية لون القسم */
.shop-tab[data-color].is-active {
  background: var(--cat-color);
  color: #fff;
  border-color: var(--cat-color);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat-color) 35%, transparent);
}

/* ============================================
   Category theme on products page (--cat-active)
   ============================================ */
#products-page.has-cat-theme .shop-page-title {
  color: var(--cat-active);
  transition: color 0.25s ease;
}

#products-page.has-cat-theme .shop-breadcrumb a:hover {
  color: var(--cat-active);
}

#products-page.has-cat-theme .shop-toolbar select:focus,
#products-page.has-cat-theme .shop-toolbar input:focus {
  border-color: var(--cat-active);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-active) 18%, transparent);
}

#products-page.has-cat-theme .shop-page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--cat-active);
}

#products-page.has-cat-theme .product-card .btn.btn-cart {
  background: var(--cat-active);
  border-color: var(--cat-active);
}

#products-page.has-cat-theme .product-card .btn.btn-cart:hover {
  filter: brightness(0.92);
}

#products-page.has-cat-theme .product-card:hover {
  border-color: color-mix(in srgb, var(--cat-active) 35%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cat-active) 18%, transparent);
}

/* خلفية رقيقة جداً للصفحة كلها */
#products-page.has-cat-theme {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--cat-active) 8%, #fff) 0%,
    transparent 320px);
}

.products-grid .product-card.is-hidden {
  display: none !important;
}

/* ----- Product detail ----- */
.product-detail-page .section:first-of-type {
  padding-top: 1rem;
}

.pd-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pd-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.pd-main-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-mist);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

.pd-main-img-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.pd-main-img-viewport.pd-gallery-viewport--swipe {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.pd-main-img-viewport.pd-gallery-viewport--swipe.is-dragging {
  cursor: grabbing;
}

.pd-gallery-track {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  direction: ltr;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-main-img-viewport.is-dragging .pd-gallery-track {
  transition: none;
}

.pd-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
}

.pd-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-gallery-viewport--swipe .pd-gallery-slide img.is-zoomed,
.pd-main-slide.is-active img.is-zoomed {
  transform: scale(1.72);
}

.pd-main-img-viewport.is-image-zoomed.pd-gallery-viewport--swipe {
  touch-action: none;
}

.pd-main-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.pd-main-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.pd-main-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pd-main-img-viewport {
    cursor: zoom-in;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-main-slide,
  .pd-main-slide img,
  .pd-gallery-track,
  .pd-gallery-slide img {
    transition-duration: 0.01ms !important;
  }

  .pd-main-slide.is-active img.is-zoomed,
  .pd-gallery-viewport--swipe .pd-gallery-slide img.is-zoomed {
    transform: none;
  }
}

.pd-main-img-wrap .badge {
  inset-inline-end: 0.75rem;
  top: 0.75rem;
}

.pd-main-img-wrap .discount-pill {
  bottom: 0.75rem;
  inset-inline-start: 0.75rem;
}

.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.pd-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.65rem;
  overflow: hidden;
  width: 4.5rem;
  height: 5.5rem;
  cursor: pointer;
  background: var(--color-mist);
  flex-shrink: 0;
  transition:
    border-color 0.25s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.pd-thumb:active {
  transform: scale(0.96);
}

.pd-thumb:hover,
.pd-thumb:focus-visible {
  border-color: rgba(11, 31, 58, 0.35);
  outline: none;
}

.pd-thumb.is-active {
  border-color: var(--color-navy);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-cat {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

.pd-info h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--color-ink);
  line-height: 1.35;
}

.pd-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pd-rating-label {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.pd-review-count {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.pd-reviews-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .pd-reviews-grid {
    grid-template-columns: 1fr minmax(280px, 360px);
    align-items: start;
  }
}

.pd-review-form-card,
.pd-reviews-list-wrap {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.pd-review-form-title,
.pd-reviews-list-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--color-ink);
}

.pd-review-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pd-review-stars-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pd-review-stars-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
}

.pd-review-stars-input {
  display: inline-flex;
  gap: 0.2rem;
}

.pd-review-star-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.65rem;
  line-height: 1;
  color: #e7e5e4;
  cursor: pointer;
  padding: 0.1rem 0.15rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pd-review-star-btn.is-active,
.pd-review-star-btn.is-hover {
  color: #f59e0b;
}

.pd-review-star-btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.pd-review-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pd-review-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink);
}

.pd-review-field input,
.pd-review-field textarea {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: #fff;
}

.pd-review-field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.pd-review-submit {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.pd-review-form-msg {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.pd-review-form-msg--ok {
  color: #15803d;
}

.pd-review-form-msg--err {
  color: #b91c1c;
}

.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pd-review-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.pd-review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-review-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}

.pd-review-item__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.pd-review-item__stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.pd-review-item__date {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-inline-start: auto;
}

.pd-review-item__comment {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.pd-review-item__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-navy);
  background: rgba(11, 31, 58, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.pd-reviews-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.pd-reviews-empty[hidden],
.pd-review-form-msg[hidden] {
  display: none !important;
}

.pd-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pd-price-block .price {
  font-size: 1.35rem;
}

.pd-discount-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 0.25rem 0.55rem;
  border-radius: 0.45rem;
}

.pd-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.pd-features {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.pd-features li {
  position: relative;
  padding-inline-start: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--color-ink);
  line-height: 1.45;
}

.pd-features li.is-paragraph {
  padding-inline-start: 0;
  margin-bottom: 0.85rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.pd-features li.is-paragraph::before {
  display: none;
}

.pd-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-navy);
}

.pd-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.pd-actions__top {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  width: 100%;
}

.pd-qty-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pd-qty-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-ink);
}

.pd-qty-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 0.75rem;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(11, 31, 58, 0.06);
}

.pd-qty-control.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.pd-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.25rem 0 0.6rem;
  border: 1px solid transparent;
}

.pd-stock-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.pd-stock-status--out {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.pd-stock-status--low {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.pd-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.75rem 0 0.25rem;
}

.pd-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pd-option-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink);
}

.pd-option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pd-option-btn {
  appearance: none;
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pd-option-btn:hover {
  border-color: rgba(11, 31, 58, 0.35);
}

.pd-option-btn.is-active {
  border-color: var(--color-navy);
  background: rgba(11, 31, 58, 0.06);
  box-shadow: inset 0 0 0 1px var(--color-navy);
}

.pd-option-btn:disabled,
.pd-option-btn.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-selected-variant {
  font-size: 0.85rem;
  color: #64748b;
  margin: -0.15rem 0 0.35rem;
}

.btn.btn-cart.is-disabled,
.btn.btn-cart:disabled,
.product-detail-page .pd-btn-add-cart.is-disabled,
.product-detail-page .pd-btn-add-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #475569;
}

.pd-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pd-qty-btn {
  width: 2.35rem;
  height: 2.45rem;
  border: 0;
  background: var(--color-navy-light);
  color: var(--color-navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.pd-qty-btn:hover {
  background: var(--color-navy);
  color: #fff;
}

.pd-qty-btn:focus-visible {
  outline: 3px solid rgba(61, 90, 140, 0.25);
  outline-offset: -3px;
}

.pd-qty-field input {
  width: 3.25rem;
  height: 2.45rem;
  padding: 0 0.25rem;
  border: 0;
  border-inline: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  background: var(--color-white);
  color: var(--color-ink);
  appearance: textfield;
  -moz-appearance: textfield;
}

.pd-qty-field input::-webkit-outer-spin-button,
.pd-qty-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pd-qty-field input:focus {
  outline: none;
}

/* أضف للسلة: نفس تصميم «متابعة التسوق» (زر أبيض + حدود كحلية) */
.product-detail-page .pd-actions__top .pd-btn-add-cart {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.product-detail-page .pd-actions .btn-buy-now {
  width: 100%;
  margin: 0;
}

.btn.btn-buy-now.is-disabled,
.btn.btn-buy-now:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.product-detail-page .pd-actions .btn-fav--detail {
  margin: 0;
  align-self: flex-start;
}

.pd-not-found {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  max-width: 28rem;
  margin-inline: auto;
}

.pd-not-found .shop-page-title {
  margin-bottom: 0.75rem;
}

.product-detail-page .section-head--row {
  margin-bottom: 1.5rem;
}

/* ----- Sections ----- */
.section {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 4rem;
  }
}

.section--muted {
  background: linear-gradient(180deg, var(--color-mist) 0%, var(--color-paper) 100%);
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-ink);
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
  text-align: start;
}

.section-head--row > div {
  text-align: start;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover {
  color: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

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

/* Categories */
.categories-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 1rem;
  padding-block: 0.5rem 1rem;
  padding-inline: 0.25rem;
  margin-inline: -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 45, 69, 0.25) transparent;
}

.categories-grid::-webkit-scrollbar {
  height: 8px;
}

.categories-grid::-webkit-scrollbar-track {
  background: transparent;
}

.categories-grid::-webkit-scrollbar-thumb {
  background: rgba(26, 45, 69, 0.18);
  border-radius: 999px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 45, 69, 0.35);
}

.categories-grid > .cat-card {
  flex: 0 0 auto;
  width: clamp(150px, 42vw, 180px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .categories-grid {
    gap: 1.25rem;
    padding-block: 0.75rem 1.25rem;
  }

  .categories-grid > .cat-card {
    width: 200px;
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 45, 69, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cat-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 3px solid var(--color-accent-rose-border);
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-icon__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cat-color, #cbd5e1) 30%, #fff) 0%,
    var(--cat-color, #94a3b8) 100%);
}

.cat-card.has-cat-color {
  border-top: 3px solid var(--cat-color);
}

.cat-card.has-cat-color .cat-icon {
  border-color: color-mix(in srgb, var(--cat-color) 50%, transparent);
}

.cat-card.has-cat-color:hover {
  border-color: color-mix(in srgb, var(--cat-color) 35%, rgba(26, 45, 69, 0.08));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--cat-color) 18%, transparent);
}

.sub-nav-cat-link[style*="--cat-color"]:hover {
  color: var(--cat-color);
}

.cat-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.cat-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 45, 69, 0.07);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn-fav {
  position: absolute;
  z-index: 3;
  bottom: 0.9rem;
  inset-inline-end: 0.9rem;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-navy);
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), color 0.2s, background 0.2s;
}

.btn-fav:hover {
  transform: scale(1.06);
  color: #e11d48;
}

.btn-fav.is-in-fav {
  color: #e11d48;
}

.btn-fav.is-in-fav .fav-icon {
  fill: #fb7185;
  stroke: #be123c;
  filter: drop-shadow(0 1px 2px rgba(190, 18, 60, 0.22));
}

.btn-fav--detail {
  position: static;
  width: auto;
  min-width: 8.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: var(--color-white);
}

.btn-fav--detail .fav-icon {
  flex-shrink: 0;
}

.btn-fav__label {
  white-space: nowrap;
}

.btn-fav--detail.is-in-fav {
  border-color: rgba(225, 29, 72, 0.42);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.98), rgba(255, 255, 255, 0.98));
  color: #be123c;
}

.product-card--compact .btn-fav {
  width: 2rem;
  height: 2rem;
  bottom: 0.8rem;
  inset-inline-end: 0.8rem;
}

.favorites-page .favorites-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.auth-page .auth-card {
  max-width: 26rem;
  margin-inline: auto;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

.auth-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(190, 18, 60, 0.08);
  color: #9f1239;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

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

.auth-submit {
  margin-top: 0.25rem;
  width: 100%;
}

.auth-switch {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ——— صفحة حسابي ——— */
.account-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.25rem;
}

.account-sidebar {
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

.account-sidebar__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.account-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-nav__link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-nav__link:hover {
  background: var(--color-mist);
  color: var(--color-ink);
}

.account-nav__link.is-active {
  font-weight: 700;
  background: rgba(11, 31, 58, 0.08);
  color: var(--color-ink);
}

.account-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.account-panel {
  padding: 1.1rem 1.15rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

.account-panel__title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.account-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.account-avatar {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  background: linear-gradient(145deg, #1a3d5c, #2d5a82);
}

.account-dl {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.account-dl__row {
  display: grid;
  grid-template-columns: minmax(5rem, 7.5rem) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.account-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-dl dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

.account-dl dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  word-break: break-word;
}

.account-email-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.account-email-link:hover {
  color: #1a3d5c;
}

.account-quick-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .account-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.account-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: var(--color-mist);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-quick-card:hover {
  border-color: rgba(11, 31, 58, 0.22);
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.08);
  transform: translateY(-2px);
}

.account-quick-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-ink);
}

.account-quick-card__desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.account-toolbar {
  padding-top: 0.25rem;
}

.account-toolbar__logout {
  width: fit-content;
}

.account-orders-empty {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.account-orders-list {
  display: grid;
  gap: 0.65rem;
}

.account-order-card {
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.7rem;
  background: var(--color-mist);
}

.account-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.account-order-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: #fff;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.account-order-card__meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .account-layout {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }

  .account-sidebar {
    position: sticky;
    top: calc(var(--header-offset, 0px) + 1rem);
  }
}

@media (max-width: 899px) {
  .account-sidebar__nav .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .account-nav li {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }

  .account-nav__link {
    text-align: center;
    font-size: 0.85rem;
  }
}

.favorites-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-white);
  border: 1px dashed rgba(11, 31, 58, 0.15);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
}

.favorites-empty[hidden] {
  display: none !important;
}

.favorites-empty .text-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.cart-page-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.cart-page-layout__primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.cart-page-layout__side {
  min-width: 0;
}

.cart-list {
  display: grid;
  gap: 0.85rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

.cart-item__img {
  display: block;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--color-mist);
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item__body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.cart-item__body h3 a {
  color: var(--color-ink);
}

.cart-item__cat {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.cart-item__price {
  margin: 0;
  font-weight: 700;
  color: var(--color-ink);
}

.cart-item__controls {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-qty-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-ink);
  font-weight: 700;
  cursor: pointer;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: #be123c;
  font-size: 0.82rem;
  cursor: pointer;
}

.cart-item__line-total {
  font-weight: 800;
  color: var(--color-ink);
  white-space: nowrap;
}

.cart-summary {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
}

.cart-summary h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.cart-summary p {
  margin: 0 0 0.45rem;
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
}

.summary-ship-end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: end;
  gap: 0.12rem;
}

.summary-ship-end strong {
  color: var(--color-ink);
  font-weight: 700;
}

.summary-ship-note {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.25;
  white-space: normal;
  max-width: 11rem;
}

.cart-summary p:has(.summary-ship-end),
.side-cart__totals p:has(.summary-ship-end) {
  align-items: center;
}

.cart-summary__total {
  margin-top: 0.65rem !important;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(11, 31, 58, 0.14);
  color: var(--color-ink) !important;
  font-weight: 800;
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-hover));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(26, 45, 69, 0.18);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(26, 45, 69, 0.24);
  filter: brightness(1.04);
}

.cart-checkout-btn:focus-visible {
  outline: 3px solid rgba(61, 90, 140, 0.28);
  outline-offset: 3px;
}

.cart-checkout-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(26, 45, 69, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 0.85rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s, opacity 0.2s;
}

.btn-primary {
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-hover));
  box-shadow: 0 12px 24px rgba(26, 45, 69, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(26, 45, 69, 0.24);
  filter: brightness(1.04);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(61, 90, 140, 0.35);
  outline-offset: 3px;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(26, 45, 69, 0.18);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: 0 6px 14px rgba(26, 45, 69, 0.12);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.2);
  color: var(--color-ink);
  background: var(--color-white);
}

.thankyou-layout {
  display: grid;
  gap: 1rem;
}

.thankyou-layout--single {
  max-width: 34rem;
  margin-inline: auto;
}

@media (min-width: 980px) {
  .thankyou-layout:not(.thankyou-layout--single) {
    grid-template-columns: minmax(0, 1fr) 21rem;
    align-items: start;
  }
}

.thankyou-main {
  min-width: 0;
}

.thankyou-hero {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
}

.thankyou-hero__order {
  margin: 0.75rem 0 0;
}

.thankyou-check {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #166534;
  font-size: 1.45rem;
  font-weight: 800;
}

.thankyou-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.thankyou-lines__title {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
}

.thankyou-aside .thankyou-lines {
  margin: 0 0 0.65rem;
}

.thankyou-lines {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}

.thankyou-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.thankyou-lines li:last-child {
  border-bottom: 0;
}

.thankyou-lines .ty-qty {
  opacity: 0.75;
  font-size: 0.9em;
}

.thankyou-aside__meta {
  margin: 0.65rem 0;
  padding: 0.65rem 0 0;
  border-top: 1px dashed rgba(11, 31, 58, 0.14);
}

.thankyou-aside__meta p {
  margin: 0 0 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.thankyou-aside__meta p:last-child {
  margin-bottom: 0;
}

.ty-settings-note {
  margin-top: 1rem;
  text-align: center;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-card {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.08);
  transform: translateY(-2px);
}

.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card__link:hover .blog-card__cta {
  text-decoration: underline;
}

.blog-card__img {
  aspect-ratio: 16 / 9;
  background: rgba(11, 31, 58, 0.06);
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__img--placeholder {
  min-height: 10rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
}

.blog-card__body {
  padding: 1rem 1.1rem 1.15rem;
  text-align: start;
}

.blog-card__date {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: rgba(11, 31, 58, 0.65);
}

.blog-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.blog-card__excerpt {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(11, 31, 58, 0.82);
}

.blog-card__cta {
  font-weight: 600;
}

.blog-article {
  max-width: 44rem;
  margin-inline: auto;
}

.blog-article__head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.blog-article__title {
  margin-top: 0.5rem;
}

.blog-article__hero {
  border-radius: 0.9rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(11, 31, 58, 0.08);
}

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

.blog-prose {
  text-align: start;
  line-height: 1.75;
  font-size: 1.02rem;
  color: rgba(11, 31, 58, 0.92);
}

.blog-prose--en {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

body.lang-en main.blog-post-page .blog-prose--ar {
  display: none;
}

body.lang-en main.blog-post-page .blog-prose--en {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-related {
  max-width: 60rem;
  margin-inline: auto;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

.blog-related__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  text-align: center;
}

.blog-related__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.blog-card--compact .blog-card__img--compact {
  min-height: 8.5rem;
}

.blog-card--compact .blog-card__img--compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-post-breadcrumb__current {
  font-weight: 600;
}

.blog-article__back {
  margin-top: 1.75rem;
  text-align: center;
}

.blog-post-missing {
  text-align: center;
  padding: 1rem 0 2rem;
}

.checkout-layout {
  display: grid;
  gap: 1rem;
}

@media (max-width: 979px) {
  .checkout-layout {
    display: flex;
    flex-direction: column;
  }
}

.checkout-form {
  background: var(--color-white);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
}

.checkout-grid {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 720px) {
  .checkout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field label {
  font-size: 0.82rem;
  color: var(--color-ink);
  font-weight: 600;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  color: var(--color-ink);
  background: var(--color-white);
}

.checkout-field--checkbox {
  margin-top: 0.15rem;
}

.checkout-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
}

.checkout-checkbox input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-primary, #15803d);
  flex-shrink: 0;
}

.checkout-payment {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
}

.checkout-payment__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
}

.checkout-payment__lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.checkout-pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-pay-option {
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.checkout-pay-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checkout-pay-option__box {
  display: block;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-pay-option:hover .checkout-pay-option__box {
  border-color: rgba(11, 31, 58, 0.28);
}

.checkout-pay-option input:focus-visible + .checkout-pay-option__box {
  outline: 2px solid rgba(21, 128, 61, 0.45);
  outline-offset: 2px;
}

.checkout-pay-option input:checked + .checkout-pay-option__box {
  border-color: rgba(21, 128, 61, 0.85);
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.25);
}

.checkout-pay-option__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.checkout-pay-option__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.35;
}

.checkout-pay-option--online .checkout-pay-option__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.checkout-pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.checkout-pay-logos--imgs {
  gap: 0.45rem 0.55rem;
  align-items: center;
}

.checkout-pay-img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 76px;
  object-fit: contain;
  flex-shrink: 0;
}

.checkout-pay-img--icon {
  height: 28px;
  width: 28px;
  max-width: none;
}

.checkout-pay-wallet {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem 0.15rem 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(11, 31, 58, 0.14);
  background: rgba(11, 31, 58, 0.04);
}

.checkout-pay-wallet__text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.checkout-billing {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(11, 31, 58, 0.12);
}

.checkout-billing__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
}

.checkout-billing__choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.checkout-radio-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
}

.checkout-radio-line input {
  margin-top: 0.15rem;
  accent-color: var(--color-primary, #15803d);
  flex-shrink: 0;
}

.checkout-billing-fields {
  margin-top: 0.35rem;
}

.checkout-grid--nested {
  margin-top: 0.25rem;
}

.checkout-submit.btn-primary {
  margin-top: 1rem;
  width: 100%;
  min-height: 3.15rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #15803d, #0f766e);
  box-shadow: 0 12px 26px rgba(21, 128, 61, 0.28);
}

.checkout-submit.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.32);
  filter: brightness(1.05);
}

.checkout-submit.btn-primary:focus-visible {
  outline-color: rgba(21, 128, 61, 0.45);
}

.checkout-submit.btn-primary:active {
  box-shadow: 0 8px 18px rgba(21, 128, 61, 0.22);
}

.checkout-summary .cart-summary__total {
  margin-bottom: 0;
}

.checkout-summary {
  height: fit-content;
}

.checkout-promo {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(11, 31, 58, 0.14);
}

.checkout-promo label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}

.checkout-promo__row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.checkout-promo__row input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  color: var(--color-ink);
  background: var(--color-white);
}

.checkout-promo-apply {
  flex-shrink: 0;
  white-space: nowrap;
  padding-inline: 0.85rem;
}

.checkout-promo-msg {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.checkout-promo-msg--ok {
  color: #166534;
}

.checkout-promo-msg--err {
  color: #be123c;
}

.checkout-discount-line {
  margin: 0 0 0.45rem !important;
  display: flex !important;
  justify-content: space-between;
  color: #166534 !important;
  font-weight: 600;
}

.checkout-items {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--color-ink);
}

.checkout-item__qty {
  color: var(--color-muted);
}

.checkout-item__price {
  white-space: nowrap;
}

@media (min-width: 980px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 21rem;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .cart-page-layout {
    grid-template-columns: minmax(0, 1fr) min(23rem, 34vw);
  }
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.product-card.is-out-of-stock .product-img img {
  filter: grayscale(0.85);
  opacity: 0.78;
}

.product-card.is-out-of-stock:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.product-card.is-out-of-stock:hover .product-img img {
  transform: none;
}

.product-card__oos-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4rem 0.95rem;
  background: rgba(185, 28, 28, 0.95);
  color: #fff;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.18);
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

.product-link {
  display: block;
  flex: 1;
  padding: 0;
  color: inherit;
}

.product-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-mist);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

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

.badge {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
}

.badge.badge--sale {
  background: linear-gradient(135deg, #fce7f3, #f9a8d4);
  color: #831843;
}

.badge.badge--new {
  background: linear-gradient(135deg, #d1fae5, #6ee7b7);
  color: #065f46;
}

.badge.badge--hot {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-hover));
  color: #fff;
}

.discount-pill {
  position: absolute;
  bottom: 0.65rem;
  inset-inline-start: 0.65rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: #fff;
  color: var(--color-navy);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.product-name {
  margin: 0;
  padding: 0.85rem 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.6rem;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

.stars-bg {
  color: #e7e5e4;
}

.stars-fill {
  position: absolute;
  inset: 0;
  width: var(--rating, 90%);
  overflow: hidden;
  color: #f59e0b;
  white-space: nowrap;
}

.rating-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.85rem;
}

.price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-ink);
}

.price-old {
  font-size: 0.85rem;
  color: #a8a29e;
  text-decoration: line-through;
}

.btn-cart {
  margin: 0.55rem 0.85rem 0.85rem;
  margin-inline-end: 3.45rem;
  width: auto;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-navy);
  border: 1px solid var(--color-navy);
  border-radius: 0.7rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-cart:hover {
  background: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
  color: #fff;
}

a.btn-cart.btn-cart--options {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.product-card__cart {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-card__options {
  margin: 0 0.85rem 0.85rem;
  margin-inline-end: 3.45rem;
  padding: 0.65rem 0.7rem;
  background: var(--color-mist);
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 0.65rem;
}

.product-card__options[hidden] {
  display: none !important;
}

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

.product-card__option-group + .product-card__option-group {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(11, 31, 58, 0.08);
}

.product-card__option-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-ink);
}

.product-card__option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-card__option-btn {
  appearance: none;
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-card__option-btn:hover:not(:disabled) {
  border-color: rgba(11, 31, 58, 0.35);
}

.product-card__option-btn.is-active {
  border-color: var(--color-navy);
  background: rgba(11, 31, 58, 0.06);
  box-shadow: inset 0 0 0 1px var(--color-navy);
}

.product-card__option-btn:disabled,
.product-card__option-btn.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
}

.product-card__options-hint {
  margin: 0.45rem 0 0;
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* Horizontal scroll new arrivals */
.h-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 90, 140, 0.45) transparent;
}

.h-scroll:focus-visible {
  outline: 2px solid var(--color-navy-hover);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: rgba(61, 90, 140, 0.35);
  border-radius: 999px;
}

.product-card--compact {
  flex: 0 0 min(72vw, 240px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .product-card--compact {
    flex-basis: 220px;
  }
}

/* Offers */
.offers-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .offers-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.offer-banner {
  position: relative;
  display: flex;
  min-height: 11rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    125deg,
    var(--color-white) 0%,
    var(--color-accent-rose) 45%,
    var(--color-off-white) 100%
  );
  border: 1px solid var(--color-accent-rose-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s;
}

.offer-banner:hover {
  transform: scale(1.01);
}

.offer-banner--alt {
  background: linear-gradient(
    125deg,
    var(--color-white) 0%,
    var(--color-accent-mint) 50%,
    var(--color-off-white) 100%
  );
  border-color: var(--color-accent-mint-border);
}

.offer-banner__text {
  position: relative;
  z-index: 1;
  max-width: 85%;
}

.offer-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.offer-banner strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.offer-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.offer-note code {
  padding: 0.15rem 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.35rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--color-navy);
  border: 1px solid rgba(26, 45, 69, 0.1);
}

.offer-banner__visual {
  position: absolute;
  inset-inline-end: -10%;
  top: 10%;
  width: 45%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 70%);
  opacity: 0.8;
}

/* Loyalty */
.loyalty-card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-accent-rose) 40%,
    var(--color-accent-mint) 100%
  );
  border: 1px solid rgba(26, 45, 69, 0.1);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .loyalty-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2.5rem;
    align-items: center;
  }
}

.loyalty-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
}

.loyalty-content p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  max-width: 32rem;
}

.loyalty-list {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.25rem;
  color: var(--color-ink);
  font-size: 0.9rem;
}

.loyalty-list li {
  margin-bottom: 0.35rem;
}

.loyalty-visual {
  min-height: 8rem;
  position: relative;
}

.loyalty-orbs {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(253, 242, 246, 0.95) 0%, transparent 48%),
    radial-gradient(circle at 30% 70%, rgba(240, 250, 246, 0.85) 0%, transparent 45%);
  border-radius: var(--radius-lg);
}

/* Reviews */
.reviews-wrap {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
}

.reviews-slider {
  overflow: hidden;
  min-height: 12rem;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.reviews-slider.is-dragging {
  cursor: grabbing;
}

.reviews-track {
  display: flex;
  flex-wrap: nowrap;
  direction: ltr;
  will-change: transform;
  transition: transform 0.45s var(--ease-out);
}

.reviews-slider.is-dragging .reviews-track {
  transition: none;
}

.review-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 45, 69, 0.08);
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    transition: none;
  }
}

.review-stars {
  font-size: 1rem;
  color: #f59e0b;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.review-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.7;
  color: var(--color-ink);
}

.review-card footer {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-navy);
}

.review-tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, transform 0.15s, color 0.2s;
}

.slider-btn:hover {
  background: var(--color-navy-light);
  color: var(--color-navy-hover);
}

.slider-btn--prev {
  inset-inline-start: -0.5rem;
}

.slider-btn--next {
  inset-inline-end: -0.5rem;
}

@media (max-width: 639px) {
  .slider-btn {
    display: none;
  }
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.reviews-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d6d3d1;
  transition: transform 0.2s, background 0.2s;
}

.reviews-dots button[aria-selected="true"] {
  background: var(--color-navy);
  transform: scale(1.25);
}

/* Features strip */
.features-strip {
  padding-block: 2rem;
  background: var(--color-white);
  border-block: 1px solid rgba(26, 45, 69, 0.07);
}

.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-accent-mint);
  color: var(--color-navy);
}

.feature-item:nth-child(even) .feature-icon {
  background: var(--color-accent-rose);
}

.feature-icon--cash,
.feature-icon--custom {
  background: #fff;
  padding: 0.3rem;
}

.feature-icon__img {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.feature-item span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Find us — pharmacy logos (homepage) */
.find-us-strip {
  padding-block: 2.25rem 2.75rem;
  background: var(--color-white);
  border-top: 1px solid rgba(26, 45, 69, 0.06);
}

.section-head--center {
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
  max-width: 32rem;
}

.find-us-pharmacy-wrap {
  margin-top: 1.5rem;
}

.find-us-pharmacy-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  direction: ltr;
  min-height: 5.5rem;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 3%,
    #000 97%,
    transparent 100%
  );
}

.find-us-pharmacy-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  direction: ltr;
  animation: find-us-pharmacy-scroll 22s linear infinite;
  will-change: transform;
}

html[dir="rtl"] .find-us-pharmacy-track {
  animation-name: find-us-pharmacy-scroll-rtl;
}

.find-us-pharmacy-marquee.is-static .find-us-pharmacy-track {
  animation: none;
  transform: none;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  will-change: auto;
}

.find-us-pharmacy-marquee.is-static .find-us-pharmacy-set[aria-hidden="true"] {
  display: none;
}

.find-us-pharmacy-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  padding-inline: 0.35rem;
}

@keyframes find-us-pharmacy-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes find-us-pharmacy-scroll-rtl {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.find-us-pharmacy-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  max-width: 16rem;
  height: 5.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(26, 45, 69, 0.04);
  opacity: 0.95;
  filter: grayscale(0.06);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.find-us-pharmacy-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 4.85rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .find-us-pharmacy-logo {
    min-width: 11rem;
    max-width: 18rem;
    height: 6.25rem;
  }

  .find-us-pharmacy-logo img {
    max-height: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .find-us-pharmacy-marquee {
    mask-image: none;
  }

  .find-us-pharmacy-track {
    animation: none;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    will-change: auto;
  }

  .find-us-pharmacy-set[aria-hidden="true"] {
    display: none;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--color-mist) 0%, var(--color-beige) 100%);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(26, 45, 69, 0.08);
  }

  .footer-brand .logo--footer {
    justify-content: center;
  }

  .footer-brand p {
    max-width: 20rem;
    margin: 0.5rem auto 0.75rem;
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .footer-brand .social {
    justify-content: center;
  }

  .footer-grid > div:not(.footer-brand):not(.footer-col--pay) {
    min-width: 0;
  }

  .footer-col--pay {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(26, 45, 69, 0.06);
    overflow: visible;
  }

  .footer-col--pay .pay-note {
    margin-inline: auto;
    max-width: 18rem;
    line-height: 1.5;
  }

  .footer-col--pay .pay-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow: visible;
  }

  .footer-col--pay .pay-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: visible;
  }

  .footer-heading {
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
  }

  .footer-links a {
    font-size: 0.84rem;
    padding: 0.18rem 0;
  }

  .footer-bottom {
    padding-block: 0.9rem;
  }

  .lang-en .footer-brand,
  .lang-en .footer-col--pay {
    text-align: center;
  }
}

.footer-brand p {
  margin: 0.75rem 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 18rem;
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
  background: var(--color-navy-light);
  color: var(--color-navy-hover);
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-navy-hover);
}

.pay-note {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow: visible;
}

.pay-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--color-white);
  border-radius: 0.35rem;
  border: 1px solid rgba(26, 45, 69, 0.12);
  color: var(--color-ink);
}

.newsletter-strip {
  margin-top: 2.5rem;
  padding-block: 1.75rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-hover) 100%);
  color: #fff;
}

.newsletter-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.newsletter-strip__text {
  flex: 1 1 280px;
  min-width: 0;
}

.newsletter-strip__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.newsletter-strip__desc {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.newsletter-form {
  flex: 1 1 360px;
  max-width: 480px;
  width: 100%;
}

.newsletter-form__row {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.newsletter-form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-ink);
  border-radius: 999px;
  direction: ltr;
  text-align: start;
}

.newsletter-form__input::placeholder {
  color: #94a3b8;
}

.newsletter-form__btn {
  border: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.newsletter-form__btn:hover {
  background: var(--color-navy-hover);
}

.newsletter-form__btn:active {
  transform: scale(0.97);
}

.newsletter-form__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.newsletter-form__msg {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: rgba(255, 255, 255, 0.92);
}

.newsletter-form__msg.is-error {
  color: #fecaca;
}

.newsletter-form__msg.is-success {
  color: #bbf7d0;
}

@media (max-width: 640px) {
  .newsletter-strip {
    padding-block: 1.5rem;
  }

  .newsletter-strip__inner {
    gap: 1rem;
  }

  .newsletter-form__row {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }

  .newsletter-form__input {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
  }

  .newsletter-form__btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }
}

.footer-bottom {
  margin-top: 0;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(26, 45, 69, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

.footer-bottom-inner {
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ----- Mobile polish: عرض آمن وتفادي القصّ الأفقي ----- */
@media (max-width: 639px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .container {
    padding-inline-start: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-inline-end: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  #main {
    min-width: 0;
    max-width: 100%;
  }

  .shop-page {
    padding-top: 1rem;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }

  .shop-field {
    min-width: 0;
    width: 100%;
  }

  .shop-breadcrumb,
  .shop-page-title,
  .shop-page-lead {
    overflow-wrap: break-word;
  }

  .hero {
    padding-block: 1rem 1.65rem;
  }

  .hero .container {
    padding-inline-start: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-inline-end: max(0.65rem, env(safe-area-inset-right, 0px));
  }

  .product-name {
    overflow-wrap: break-word;
    min-height: 0;
  }

  .price-row {
    flex-wrap: wrap;
  }

  .pd-layout {
    min-width: 0;
  }

  .pd-info h1,
  .pd-lead {
    overflow-wrap: break-word;
  }

  .thankyou-layout {
    min-width: 0;
  }

  .checkout-layout {
    min-width: 0;
  }

  .header-drawer__panel {
    height: 100dvh;
    max-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .header-drawer__sub {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .header-drawer__body .search-field input {
    font-size: 1rem;
  }

  .search-field input {
    font-size: 1rem;
  }

  .checkout-field input,
  .checkout-field select,
  .checkout-field textarea {
    font-size: 1rem;
  }
}

/* ============================================
   Floating WhatsApp Button (FAB)
   ============================================ */
.wa-fab {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-start: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.32),
              0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 9000;
  text-decoration: none;
  border: 0;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wa-fab:visited,
.wa-fab:link {
  color: #ffffff;
}

.wa-fab:hover,
.wa-fab:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.42),
              0 6px 14px rgba(0, 0, 0, 0.22);
  background: linear-gradient(135deg, #2ee07a 0%, #15a591 100%);
  outline: none;
  color: #ffffff;
}

.wa-fab:active {
  transform: translateY(-1px) scale(0.98);
}

.wa-fab__icon {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.wa-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: waFabPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes waFabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab,
  .wa-fab:hover,
  .wa-fab:focus-visible,
  .wa-fab:active {
    transition: none;
    transform: none;
  }

  .wa-fab__pulse {
    animation: none;
    display: none;
  }
}

@media (max-width: 640px) {
  .wa-fab {
    inset-block-end: 1rem;
    inset-inline-start: 1rem;
    width: 54px;
    height: 54px;
  }

  .wa-fab__icon {
    width: 28px;
    height: 28px;
  }
}

/* Sales conversion layer
   Keeps the buying path focused without changing catalog or order data. */
.sales-eyebrow {
  margin: 0 0 0.35rem;
  color: #a56a2b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-problem-finder {
  padding: 1.8rem 0 2.4rem;
  background:
    radial-gradient(circle at 14% 0%, rgba(250, 205, 216, 0.36), transparent 36%),
    linear-gradient(180deg, #fff 0%, #fffaf8 100%);
  border-block: 1px solid #f1e7e2;
}

.sales-problem-finder__head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.15rem;
}

.sales-problem-finder__head h2 {
  margin: 0;
  color: #162334;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35;
}

.sales-problem-finder__head > p:last-child {
  margin: 0;
  color: #667085;
}

.sales-problem-finder__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.sales-problem-card {
  position: relative;
  display: grid;
  gap: 0.3rem;
  min-height: 132px;
  padding: 1.15rem;
  overflow: hidden;
  color: #172033;
  background: #fff;
  border: 1px solid #e8e8eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(29, 41, 57, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.sales-problem-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  inset-inline-end: -42px;
  inset-block-end: -48px;
  border-radius: 50%;
  background: rgba(181, 119, 59, 0.09);
}

.sales-problem-card:hover,
.sales-problem-card:focus-visible {
  color: #172033;
  border-color: #c7a26f;
  box-shadow: 0 18px 40px rgba(29, 41, 57, 0.12);
  transform: translateY(-3px);
}

.sales-problem-card strong {
  max-width: calc(100% - 2rem);
  font-size: 1.03rem;
}

.sales-problem-card > span:not(.sales-problem-card__icon) {
  max-width: calc(100% - 1rem);
  color: #667085;
  font-size: 0.88rem;
}

.sales-problem-card__icon {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-end: 0.9rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: #171a1f;
  border-radius: 50%;
}

.sales-problem-card--skin {
  background: linear-gradient(145deg, #fff 0%, #fff4f7 100%);
  border-color: #f2d5dd;
}

.sales-problem-card--hair,
.sales-problem-card--scalp {
  background: linear-gradient(145deg, #fff 0%, #fbf7f1 100%);
  border-color: #eadbc7;
}

.sales-product-benefits {
  margin: 1rem 0;
  padding: 1.05rem 1.1rem;
  background: #fffaf8;
  border: 1px solid #eddccf;
  border-radius: 16px;
}

.sales-product-benefits h2 {
  margin: 0 0 0.7rem;
  color: #1d2939;
  font-size: 1rem;
}

.sales-product-benefits ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sales-product-benefits li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  color: #475467;
  font-size: 0.9rem;
  line-height: 1.65;
}

.sales-product-benefits li > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: #fff;
  background: #8f6338;
  border-radius: 50%;
  font-size: 0.72rem;
}

.sales-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.sales-trust-row > span {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.sales-trust-row strong {
  color: #027a48;
}

.sales-product-details {
  margin: 1rem 0 0;
  border-block: 1px solid #e4e7ec;
}

.sales-product-details summary {
  position: relative;
  padding: 1rem 1.8rem 1rem 0;
  color: #1d2939;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

[dir="ltr"] .sales-product-details summary {
  padding: 1rem 0 1rem 1.8rem;
}

.sales-product-details summary::-webkit-details-marker {
  display: none;
}

.sales-product-details summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a56a2b;
  font-size: 1.3rem;
}

.sales-product-details[open] summary::after {
  content: "−";
}

.sales-product-details__content {
  padding-bottom: 1rem;
}

.sales-product-details__content .pd-lead {
  max-height: none;
  overflow: visible;
  white-space: pre-line;
}

.sales-routine-upsell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.4rem;
  padding: 1.15rem 1.25rem;
  background:
    radial-gradient(circle at 95% 10%, rgba(181, 119, 59, 0.14), transparent 35%),
    #fff;
  border: 1px solid #e7d4bd;
  border-radius: 18px;
}

.sales-routine-upsell h2 {
  margin: 0 0 0.35rem;
  color: #1d2939;
  font-size: 1.1rem;
}

.sales-routine-upsell p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.sales-routine-upsell .btn {
  white-space: nowrap;
}

.sales-shipping-progress {
  margin: 0 0 0.9rem;
  padding: 0.8rem;
  background: #fffbf5;
  border: 1px solid #f0ddbf;
  border-radius: 12px;
}

.sales-shipping-progress__text {
  margin: 0 0 0.55rem !important;
  color: #7a4d1d;
  font-size: 0.8rem;
  font-weight: 800;
}

.sales-shipping-progress__track {
  height: 7px;
  overflow: hidden;
  background: #f1e4d5;
  border-radius: 999px;
}

.sales-shipping-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #b5773b, #e6b779);
  border-radius: inherit;
  transition: width 260ms ease;
}

.sales-shipping-progress.is-complete {
  background: #ecfdf3;
  border-color: #abefc6;
}

.sales-shipping-progress.is-complete .sales-shipping-progress__text {
  color: #067647;
}

.sales-shipping-progress.is-complete .sales-shipping-progress__track span {
  background: #12b76a;
}

.sales-cart-upsell {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #ead8c0;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(29, 41, 57, 0.06);
}

.sales-cart-upsell > img {
  width: 86px;
  height: 106px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 10px;
}

.sales-cart-upsell h2 {
  margin: 0 0 0.25rem;
  color: #1d2939;
  font-size: 0.94rem;
  line-height: 1.45;
}

.sales-cart-upsell__copy > p {
  margin: 0;
  color: #b42318;
  font-weight: 800;
}

.sales-cart-upsell .btn-cart {
  width: auto;
  white-space: nowrap;
}

.sales-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto 1.2rem;
  padding: 0;
  list-style: none;
}

.sales-checkout-steps li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  color: #98a2b3;
  font-size: 0.78rem;
  text-align: center;
}

.sales-checkout-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 16px;
  inset-inline-start: 58%;
  width: 84%;
  height: 2px;
  background: #e4e7ec;
}

.sales-checkout-steps li.is-done:not(:last-child)::after {
  background: #b5773b;
}

.sales-checkout-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 50%;
  font-weight: 800;
}

.sales-checkout-steps .is-done,
.sales-checkout-steps .is-active {
  color: #1d2939;
  font-weight: 700;
}

.sales-checkout-steps .is-done span,
.sales-checkout-steps .is-active span {
  color: #fff;
  background: #a56a2b;
  border-color: #a56a2b;
}

.sales-checkout-trust {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0 0.7rem;
  padding: 0.8rem;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  font-size: 0.78rem;
  text-align: start;
}

.sales-checkout-trust strong {
  color: #067647;
}

.checkout-pay-option[hidden],
.checkout-billing[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .sales-problem-finder__grid {
    grid-template-columns: 1fr;
  }

  .sales-problem-card {
    min-height: 104px;
  }

  .sales-routine-upsell {
    grid-template-columns: 1fr;
  }

  .sales-routine-upsell .btn {
    width: 100%;
  }

  .sales-cart-upsell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .sales-cart-upsell > img {
    width: 72px;
    height: 88px;
  }

  .sales-cart-upsell .btn-cart {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .sales-problem-finder {
    padding: 1.1rem 0 1.5rem;
  }

  .sales-problem-finder__head h2 {
    font-size: 1.25rem;
  }

  .sales-problem-card {
    padding: 0.95rem;
    border-radius: 15px;
  }

  .sales-trust-row {
    grid-template-columns: 1fr;
  }

  .product-detail-page .pd-info {
    padding-bottom: 86px;
  }

  .product-detail-page .pd-actions {
    position: fixed;
    z-index: 45;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0;
    padding: 0.75rem max(0.75rem, env(safe-area-inset-left)) calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e4e7ec;
    box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(12px);
  }

  .product-detail-page .pd-actions__top {
    display: contents;
  }

  .product-detail-page .pd-qty-field {
    display: none;
  }

  .product-detail-page .pd-actions .pd-btn-add-cart,
  .product-detail-page .pd-actions .btn-buy-now {
    min-height: 48px;
    margin: 0;
    font-size: 0.84rem;
  }

  .sales-checkout-steps {
    margin-bottom: 1rem;
  }

  .sales-checkout-steps li {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sales-problem-card,
  .sales-shipping-progress__track span {
    transition: none;
  }
}

/* Product page/admin release — exact brand image and scoped product UI. */
.logo--brand-image {
  display: inline-flex;
  direction: ltr;
  unicode-bidi: isolate;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.logo-full-image {
  display: block;
  width: clamp(9.75rem, 15vw, 11.25rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 866 / 268;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.logo--footer .logo-full-image {
  width: 11.9rem;
}

.logo-text--fallback {
  width: auto;
  min-width: 0;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

.logo-text--fallback .logo-name,
.logo-text--fallback .logo-tag {
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.product-card .badge {
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  inset-inline-end: auto;
  z-index: 4;
  max-width: calc(100% - 3.75rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .btn-fav:not(.btn-fav--detail) {
  top: 0.65rem;
  bottom: auto;
  inset-inline-start: auto;
  inset-inline-end: 0.65rem;
  z-index: 6;
}

.product-card .product-img img,
.product-card:hover .product-img img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  transform: none;
}

.product-card .price-row {
  flex-wrap: wrap;
  gap: 0.22rem 0.55rem;
  margin: 0.55rem 0.7rem 0.2rem;
  padding: 0.62rem 0.68rem;
  background: linear-gradient(135deg, #f7f9fc 0%, #fff 72%);
  border: 1px solid rgba(26, 45, 69, 0.09);
  border-radius: 11px;
}

.product-card .price-row .price {
  color: #15283f;
  font-weight: 900;
}

.product-card .price-row .price-old {
  color: #98a2b3;
  font-size: 0.76rem;
  text-decoration-color: #b42318;
  text-decoration-thickness: 1.5px;
}

.product-detail-page .pd-hero-section {
  padding-top: 1rem;
}

.product-detail-page .pd-layout {
  align-items: start;
}

.product-detail-page .pd-main-img-wrap {
  max-height: none;
  aspect-ratio: 8 / 11;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ece7e1;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(24, 33, 47, 0.06);
}

.product-detail-page .pd-main-img-viewport {
  cursor: pointer;
}

.product-detail-page .pd-gallery-slide,
.product-detail-page .pd-main-slide {
  display: grid;
  place-items: center;
}

.product-detail-page .pd-gallery-slide img,
.product-detail-page .pd-main-slide img,
.product-detail-page .pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transform: none !important;
}

.product-detail-page .pd-info {
  min-width: 0;
}

.product-detail-page .pd-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.9rem;
}

.product-detail-page .pd-price-block .price {
  color: #15283f;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900;
}

.product-detail-page .pd-price-block .price-old {
  color: #98a2b3;
  text-decoration-color: #b42318;
  text-decoration-thickness: 1.5px;
}

.product-detail-page .pd-fav--detail {
  margin: 0 0 1rem;
}

.pd-choice-selector {
  margin: 1.2rem 0;
  padding: 1.05rem;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
}

.pd-choice-selector h2 {
  margin: 0 0 0.8rem;
  color: #c91f2c;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.55;
}

.pd-choice-list {
  display: grid;
  gap: 0.65rem;
}

.pd-choice-card {
  display: grid;
  grid-template-columns: 1.15rem 4.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  color: #18212f;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pd-choice-card:hover,
.pd-choice-card:focus-visible {
  border-color: #1a2d45;
  box-shadow: 0 7px 20px rgba(24, 33, 47, 0.08);
  transform: translateY(-1px);
}

.pd-choice-card.is-selected {
  background: #fbfcfe;
  border-color: #1a2d45;
  box-shadow: inset 0 0 0 1px #1a2d45;
}

.pd-choice-card__radio {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #9aa4b2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
}

.pd-choice-card.is-selected .pd-choice-card__radio {
  background: #c91f2c;
  border-color: #c91f2c;
}

.pd-choice-card > img {
  width: 4.4rem;
  height: 5rem;
  object-fit: contain;
  background: #f8f8f7;
  border-radius: 9px;
}

.pd-choice-card__copy {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.pd-choice-card__copy > strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pd-choice-card__price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: baseline;
}

.pd-choice-card__price b {
  color: #15283f;
  font-size: 0.94rem;
}

.pd-choice-card__price del {
  color: #98a2b3;
  font-size: 0.75rem;
  text-decoration-color: #b42318;
}

.pd-admin-content {
  padding-block: clamp(2.4rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
}

.pd-admin-content[hidden] {
  display: none !important;
}

.pd-admin-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pd-content-card {
  min-width: 0;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  background: #fff;
  border: 1px solid #ebe5df;
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(24, 33, 47, 0.055);
}

.pd-content-card--faq,
.pd-content-card--more-about,
.pd-content-card--mechanism {
  grid-column: 1 / -1;
}

.pd-content-card h2 {
  margin: 0 0 0.9rem;
  color: #18212f;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.pd-content-card p {
  margin: 0.65rem 0 0;
  color: #5f6b7a;
  line-height: 1.9;
  white-space: pre-line;
}

.pd-rich-list,
.pd-rich-steps {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-rich-list li,
.pd-rich-steps li {
  position: relative;
  min-width: 0;
  padding-inline-start: 1.65rem;
  color: #475467;
  line-height: 1.75;
}

.pd-rich-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: #a56a2b;
  border-radius: 50%;
}

.pd-rich-steps {
  counter-reset: pd-step;
}

.pd-rich-steps li {
  counter-increment: pd-step;
}

.pd-rich-steps li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.12rem;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  content: counter(pd-step);
  color: #fff;
  background: #1a2d45;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.pd-rich-items {
  display: grid;
  gap: 0.85rem;
}

.pd-rich-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
  padding: 0.85rem;
  background: #fbfaf8;
  border: 1px solid #eee8e1;
  border-radius: 14px;
}

.pd-rich-steps.pd-rich-items .pd-rich-item {
  padding-inline-start: 2.5rem;
}

.pd-rich-item > img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 12px;
}

.pd-rich-item__copy {
  min-width: 0;
}

.pd-rich-item__copy strong {
  display: block;
  color: #18212f;
  line-height: 1.55;
}

.pd-rich-item__copy p {
  margin-top: 0.25rem;
}

.pd-rich-faq {
  border-top: 1px solid #ece8e3;
}

.pd-rich-faq:last-child {
  border-bottom: 1px solid #ece8e3;
}

.pd-rich-faq summary {
  position: relative;
  padding: 0.9rem 0;
  padding-inline-end: 2rem;
  color: #18212f;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.pd-rich-faq summary::-webkit-details-marker {
  display: none;
}

.pd-rich-faq summary::after {
  position: absolute;
  inset-inline-end: 0.25rem;
  content: "+";
  color: #a56a2b;
  font-size: 1.25rem;
}

.pd-rich-faq[open] summary::after {
  content: "−";
}

.pd-rich-faq p {
  margin: 0;
  padding: 0 0 1rem;
}

@media (max-width: 767px) {
  .header-mobile-bar .logo--brand-image {
    width: auto;
    max-width: min(8.1rem, 100%);
  }

  .header-mobile-bar .logo-full-image {
    width: 8.1rem;
    max-width: 100%;
  }

  .product-detail-page .pd-info {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .product-detail-page .pd-fav--detail {
    width: 100%;
  }

  .pd-choice-selector {
    padding: 0.8rem;
  }

  .pd-choice-card {
    grid-template-columns: 1rem 3.85rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.55rem;
  }

  .pd-choice-card > img {
    width: 3.85rem;
    height: 4.5rem;
  }

  .pd-admin-sections {
    grid-template-columns: 1fr;
  }

  .pd-content-card--faq,
  .pd-content-card--more-about,
  .pd-content-card--mechanism {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .header-mobile-bar .logo--brand-image {
    max-width: 7.2rem;
  }

  .header-mobile-bar .logo-full-image {
    width: 7.2rem;
  }
}
