/* ==========================================================
   Dalura — صفحة القسم / العروض / الهدايا
   ========================================================== */

/* ---------- الرأس ---------- */
.shop-hero { padding-block: var(--space-md) var(--space-md); }
.shop-crumb { font-size: var(--fs-xs); color: var(--c-muted); }
.shop-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.shop-crumb li:not(:last-child)::after { content: "/"; margin-inline-start: 6px; color: #D8CBC4; }
.shop-crumb a:hover { color: var(--c-ink); }
.shop-hero__row { display: grid; gap: 6px; margin-top: var(--space-sm); }
.shop-title { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.5rem); line-height: 1.15; display: flex; align-items: flex-start; gap: 8px; }
.shop-title .word, .shop-title > span > div { padding-block: 0.08em 0.28em; margin-block: -0.08em -0.28em; }
.shop-title__count { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--c-muted); font-weight: 400; margin-top: 0.6em; }
.shop-lead { color: var(--c-muted); font-size: var(--fs-sm); line-height: 1.9; max-width: 460px; }

/* شريط العروض / الهدايا */
.shop-banner { display: grid; gap: 10px; margin-top: var(--space-md); }
.shop-banner__item { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--c-nude); font-size: var(--fs-sm); border-inline-start: 3px solid var(--c-wine); }
.shop-banner__item b { font-weight: 500; color: var(--c-wine); }
.shop-banner__item span { font-size: var(--fs-xs); color: var(--c-muted); }

/* الأقسام الفرعية: شريط أفقي بمؤشر ينزلق */
.shop-subs { margin-top: var(--space-md); margin-inline: calc(-1 * var(--gutter)); }
.shop-subs__list {
  position: relative;
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 4px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-subs__list::-webkit-scrollbar { display: none; }
.shop-sub {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-fast);
}
.shop-sub:hover { border-color: var(--c-ink); }
.shop-sub[aria-pressed="true"] { color: var(--c-white); border-color: transparent; }
.shop-subs__pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: 44px;
  width: 0;
  border-radius: 999px;
  background: var(--c-ink);
  pointer-events: none;
}
.no-js .shop-sub[aria-pressed="true"] { background: var(--c-ink); }

/* ---------- شريط الأدوات ---------- */
.shop-bar {
  position: sticky;
  top: var(--shop-top, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--c-line);
  transition: box-shadow var(--dur-base);
}
.shop-bar.is-stuck { box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06); }
.shop-bar__inner { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.shop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.shop-btn:hover { background: var(--c-ink); color: var(--c-white); }
.shop-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.shop-btn__badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--c-wine); color: var(--c-white); font-size: 11px; font-weight: 500; }
.shop-active { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.shop-active::-webkit-scrollbar { display: none; }
.shop-chip { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 36px; padding-inline: 12px 8px; border-radius: 999px; background: var(--c-nude); font-size: var(--fs-xs); white-space: nowrap; cursor: pointer; }
.shop-chip:hover { background: #EADDD6; }
.shop-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shop-sort { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.shop-sort__label { font-size: var(--fs-xs); color: var(--c-muted); }
.shop-sort__select { position: relative; }
.shop-sort__select select { appearance: none; min-height: 44px; padding-inline: 14px 34px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-white); font: inherit; font-size: var(--fs-sm); color: var(--c-ink); cursor: pointer; }
.shop-sort__select select:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.shop-sort__select svg { position: absolute; inset-inline-end: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--c-muted); stroke-width: 1.8; pointer-events: none; }

/* ---------- الشبكة ---------- */
.shop-results { padding-block: var(--space-lg) var(--space-xl); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; list-style: none; margin: 0; padding: 0; }
.shop-grid .p-card { width: auto; max-width: none; flex-shrink: 1; }
.shop-grid .p-card__name { font-size: var(--fs-sm); }

/* الكارت الترويجي: يكسر الشبكة */
.shop-promo { grid-column: 1 / -1; }
.shop-promo__in {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  height: 100%;
  min-height: 220px;
  padding: 26px 24px;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
a.shop-promo__in { transition: background-color var(--dur-base); }
a.shop-promo__in:hover { background: #221d1d; }
.shop-promo__eyebrow { font-size: var(--fs-xs); color: var(--c-rose); letter-spacing: 0.04em; }
.shop-promo__big { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 7rem); line-height: 1; color: var(--c-rose); }
.shop-promo__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.35; max-width: 18ch; }
.shop-promo__text { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.65); line-height: 1.8; max-width: 34ch; }
.shop-promo__cta { margin-top: 8px; font-size: var(--fs-sm); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--c-rose); }
.shop-promo__art { position: absolute; inset-inline-end: -10px; bottom: -14px; width: 150px; height: 150px; fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; }
.shop-promo__art .r { stroke: var(--c-wine); stroke-width: 5; }

/* لا نتائج */
.shop-empty { display: grid; justify-items: center; gap: 10px; padding-block: var(--space-2xl); text-align: center; color: var(--c-muted); }
.shop-empty svg { width: 44px; height: 44px; fill: none; stroke: var(--c-rose); stroke-width: 1.4; }
.shop-empty h2 { font-size: var(--fs-h3); color: var(--c-ink); }
.shop-empty .btn { margin-top: 8px; }

/* الطمأنينة */
.shop-assure { padding-bottom: var(--space-xl); }
.shop-assure ul { display: grid; gap: 14px; list-style: none; padding: var(--space-lg) 0 0; margin: 0; border-top: 1px solid var(--c-line); }
.shop-assure li { display: flex; gap: 12px; align-items: center; font-size: var(--fs-xs); color: var(--c-muted); }
.shop-assure b { display: block; color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; }
.shop-assure svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--c-ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- لوحة الفلاتر: من الأسفل على الهاتف، ومن الجانب على الكمبيوتر ---------- */
.filters-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(17, 17, 17, 0.45); display: none; }
.filters-overlay.is-open { display: block; }
.filters {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  max-height: 88dvh;
  border-radius: 20px 20px 0 0;
  background: var(--c-white);
}
.filters.is-open { display: flex; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; padding-inline-start: 20px; border-bottom: 1px solid var(--c-line); }
.filters__title { font-family: var(--font-display); font-size: 1.6rem; }
.filters__body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; overscroll-behavior: contain; }
.filters__foot { display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
.filters__clear { min-height: 48px; padding-inline: 8px; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.filters__apply { flex: 1; min-height: 52px; border-radius: 999px; }
.filters__apply:disabled { background: #B9AEAA; cursor: not-allowed; }

.fgroup { border: 0; padding: 18px 0 4px; margin: 0; min-width: 0; }
.fgroup + .fgroup { border-top: 1px solid var(--c-line); }
.fgroup legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 500; font-size: var(--fs-sm); }
.fgroup__opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.fgroup__opts--col { flex-direction: column; gap: 2px; }
.fopt { position: relative; cursor: pointer; }
.fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fopt--size span { display: grid; place-items: center; min-width: 54px; min-height: 46px; padding-inline: 12px; border: 1px solid #DCCFC8; border-radius: 12px; font-size: var(--fs-sm); transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.fopt--size input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.fopt--size.is-none span { color: #B3A9A5; text-decoration: line-through; cursor: not-allowed; }
.fopt input:focus-visible + span, .fopt input:focus-visible ~ .fswitch, .fopt--color input:focus-visible ~ span:last-child { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.fopt--color { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 6px; padding-inline: 6px 14px; border: 1px solid #DCCFC8; border-radius: 999px; font-size: var(--fs-sm); }
.fopt--color:has(input:checked) { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }
.fopt__dot { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.12); }
.fopt--row { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: var(--fs-sm); }
.fopt__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #BFB2AB; display: grid; place-items: center; }
.fopt__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-ink); opacity: 0; }
.fopt--row input:checked + .fopt__radio { border-color: var(--c-ink); }
.fopt--row input:checked + .fopt__radio::after { opacity: 1; }
.fopt--switch { justify-content: space-between; }
.fswitch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #DCCFC8; transition: background-color var(--dur-base); }
.fswitch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: inset-inline-start var(--dur-base) var(--ease-out); }
.fopt--switch input:checked ~ .fswitch { background: var(--c-ink); }
.fopt--switch input:checked ~ .fswitch i { inset-inline-start: 21px; }

@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; }
  .shop-promo { grid-column: span 3; }
  .shop-banner { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (min-width: 1024px) {
  .shop-hero { padding-block: var(--space-lg) var(--space-lg); }
  .shop-hero__row { grid-template-columns: 1fr auto; align-items: end; gap: var(--space-xl); }
  .shop-lead { text-align: end; justify-self: end; }
  .shop-subs { margin-inline: 0; }
  .shop-subs__list { padding-inline: 0; flex-wrap: wrap; }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 20px; }
  /* الكارت الترويجي يأخذ عمودين بارتفاع كارتين */
  .shop-promo { grid-column: span 2; }
  .shop-promo__in { padding: 40px; }
  .shop-assure ul { grid-template-columns: repeat(3, 1fr); }
  .filters { inset-inline: auto 0; inset-block: 0; right: 0; left: auto; width: 420px; max-height: none; border-radius: 0; }
  .shop-grid .p-card__quick { opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
  .shop-grid .p-card:hover .p-card__quick,
  .shop-grid .p-card:focus-within .p-card__quick { opacity: 1; transform: none; }
}
.shop [hidden], .filters [hidden], .shop-bar [hidden] { display: none !important; }

/* ---------- المفضلة ---------- */
.wish-share, .wish-shared { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--space-md); padding: 16px 18px; border-radius: 16px; background: var(--c-nude); }
.wish-share__text, .wish-shared { font-size: var(--fs-sm); }
.wish-share__text { display: grid; gap: 2px; }
.wish-share__text b, .wish-shared b { font-weight: 500; }
.wish-share__text span, .wish-shared span { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.7; }
.wish-shared { display: grid; justify-content: stretch; border-inline-start: 3px solid var(--c-wine); }
.wish-share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding-inline: 18px; border-radius: 999px; background: var(--c-ink); color: var(--c-white); font-size: var(--fs-sm); font-weight: 500; }
.wish-share__btn .icon { width: 20px; height: 20px; }
.wish-suggest { padding-top: 0; }
.wish-suggest__title { font-size: var(--fs-h3); margin-bottom: var(--space-md); }
