/* Landing shop — matches marketplace/landing orange + Geologica chrome */

.shop-page {
  --shop-orange: #f45b1b;
  --shop-orange-dark: #c94308;
  --shop-navy: #0b1220;
  --shop-ink: #17181d;
  --shop-muted: #676b75;
  --shop-line: rgb(23 24 29 / 10%);
  --shop-paper: #fff;
  /* Alias marketplace tokens so market-hero / market-chip styles resolve on /shop */
  --market-orange: var(--shop-orange);
  --market-orange-dark: var(--shop-orange-dark);
  --market-navy: var(--shop-navy);
  --market-navy-2: #121a2b;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgb(244 91 27 / 8%), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgb(244 91 27 / 5%), transparent 50%),
    linear-gradient(180deg, #fafaf9 0%, #f3f4f6 48%, #f7f7f5 100%);
}

.shop-page .header {
  background: #fff;
  border-bottom: 1px solid var(--shop-line);
}

.shop-page .desktop-nav a[aria-current="page"],
.shop-page .mobile-nav a[aria-current="page"] {
  color: var(--shop-orange);
}

.shop-shell {
  padding-bottom: 80px;
}

/* Full-bleed marketplace hero inside the shop `.container` app root */
.shop-page .shop-market-hero.market-hero--search {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.shop-page .market-hero-search--shop {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 720px;
}

.shop-page .market-chips {
  justify-content: center;
}

/* Hard guarantees: orange italic accent + visible active category pills */
.shop-page .market-hero__title em {
  color: #f45b1b;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.shop-page .market-chip.is-active,
.shop-page .market-chip[aria-pressed="true"] {
  border-color: #f45b1b;
  background: #f45b1b;
  color: #111;
}

.shop-browser {
  padding: 28px 0 0;
}

.shop-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--shop-navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shop-btn--primary {
  background: var(--shop-orange);
  color: #fff;
}

.shop-btn--primary:hover {
  background: var(--shop-orange-dark);
}

.shop-btn--ghost {
  background: transparent;
  border: 1px solid var(--shop-line);
  color: var(--shop-ink);
}

.shop-btn--ghost:hover {
  border-color: var(--shop-orange);
  color: var(--shop-orange);
}

.shop-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

.shop-account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--shop-muted);
  font-size: 13px;
}

.shop-account-bar a {
  color: var(--shop-ink);
  font-weight: 650;
  text-decoration: none;
}

.shop-account-bar a:hover {
  color: var(--shop-orange);
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

/* PLP sort — same chrome as shop-field selects / product cards */
.shop-sort select {
  box-sizing: border-box;
  min-width: 10.5rem;
  max-width: min(100%, 18rem);
  min-height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--shop-navy);
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  accent-color: var(--shop-orange);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
  background-color: var(--shop-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%230b1220' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.shop-sort select::-ms-expand {
  display: none;
}

.shop-sort select:hover {
  border-color: rgb(244 91 27 / 45%);
}

.shop-sort select:focus,
.shop-sort select:focus-visible {
  outline: none;
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 3px rgb(244 91 27 / 14%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23f45b1b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-sort select option {
  color: var(--shop-ink);
  background: #fff;
  font-weight: 500;
}

[dir="rtl"] .shop-sort select {
  padding: 0 16px 0 40px;
  background-position: left 14px center;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.shop-card:hover {
  border-color: rgb(244 91 27 / 35%);
  box-shadow: 0 12px 28px rgb(23 24 29 / 8%);
}

.shop-card__media {
  position: relative;
  aspect-ratio: 1;
  background: #f3f4f6;
  overflow: hidden;
}

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

.shop-card__actions {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgb(11 18 32 / 0%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, background 0.18s ease;
}

.shop-card:hover .shop-card__actions,
.shop-card:focus-within .shop-card__actions {
  opacity: 1;
  pointer-events: auto;
  background: rgb(11 18 32 / 32%);
}

.shop-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--shop-orange);
  box-shadow: 0 8px 20px rgb(11 18 32 / 18%);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.shop-card__action svg {
  width: 20px;
  height: 20px;
}

.shop-card__action:hover,
.shop-card__action:focus-visible {
  background: var(--shop-orange);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.shop-card__action:focus-visible {
  box-shadow: 0 0 0 3px rgb(244 91 27 / 35%), 0 8px 20px rgb(11 18 32 / 18%);
}

@media (hover: none) {
  .shop-card__actions {
    opacity: 1;
    pointer-events: auto;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    background: linear-gradient(180deg, transparent 55%, rgb(11 18 32 / 28%));
  }

  .shop-card__action {
    width: 38px;
    height: 38px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 4px 12px rgb(11 18 32 / 16%);
  }
}


.shop-sale-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--shop-orange, #f45b1b);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 4px 12px rgb(244 91 27 / 35%);
  pointer-events: none;
}

.shop-sale-badge--pdp {
  top: 14px;
  inset-inline-start: 14px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.shop-card__price .is-sale,
.shop-pdp__price .is-sale {
  color: var(--shop-orange-dark, #c94308);
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1;
}

.shop-card__brand {
  margin: 0;
  color: var(--shop-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.shop-card__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
}

.shop-card__compare {
  color: var(--shop-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #fff0e8;
  color: var(--shop-orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-state {
  padding: 64px 20px;
  text-align: center;
}

.shop-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.shop-state p {
  margin: 0 0 20px;
  color: var(--shop-muted);
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
  color: var(--shop-muted);
  font-size: 13px;
}

.shop-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  color: var(--shop-orange);
}

.shop-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
  margin: 12px 0 40px;
}

.shop-pdp__gallery {
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.shop-pdp__gallery-main {
  position: relative;
}

.shop-pdp__gallery img,
.shop-pdp__gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.shop-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.shop-thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.shop-thumbs button.is-active {
  border-color: var(--shop-orange);
}

.shop-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-pdp__meta h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.shop-pdp__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 28px;
  font-weight: 800;
}

.shop-pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.shop-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.shop-qty button {
  width: 40px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.shop-qty input,
.shop-qty__value {
  width: 48px;
  height: 44px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: inherit;
  font-weight: 700;
  background: transparent;
  -moz-appearance: textfield;
}

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

.shop-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.shop-variant {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.shop-variant.is-active {
  border-color: var(--shop-orange);
  background: #fff0e8;
}

.shop-desc {
  margin-top: 22px;
  color: var(--shop-muted);
  font-size: 15px;
  line-height: 1.65;
}

.shop-pdp__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--shop-muted);
}

.shop-pdp__rating a {
  color: var(--shop-orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.shop-pdp__rating a:hover {
  text-decoration: underline;
}

.shop-stars {
  color: var(--shop-orange);
  letter-spacing: 0.04em;
  font-size: 15px;
}

.shop-pdp__sold {
  color: var(--shop-muted);
}

.shop-pdp__vendor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--shop-muted);
}

.shop-pdp__vendor img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.shop-pdp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.shop-badge--soft {
  background: #fff0e8;
  color: var(--shop-orange-dark);
  border: 1px solid rgb(244 91 27 / 25%);
}

.shop-badge--sale {
  background: var(--shop-orange);
  color: #fff;
}

.shop-pdp__options,
.shop-pdp__option-row {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}

.shop-pdp__option-row strong {
  font-size: 13px;
}

.shop-variant.is-disabled {
  opacity: 0.45;
  text-decoration: line-through;
}

.shop-pdp-tabs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--shop-line);
}

.shop-pdp-tabs__bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  overflow-x: auto;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  background: #f4f5f7;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shop-pdp-tabs__bar::-webkit-scrollbar {
  display: none;
}

.shop-pdp-tabs__tab {
  flex: 1 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--shop-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.shop-pdp-tabs__tab:hover {
  color: var(--shop-ink);
}

.shop-pdp-tabs__tab.is-active {
  background: var(--shop-orange);
  color: #fff;
}

.shop-pdp-tabs__panel {
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.65;
}

.shop-pdp-tabs__panel > :first-child {
  margin-top: 0;
}

.shop-pdp__tab-block {
  margin-top: 14px;
}

.shop-pdp__tab-block > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--shop-ink);
}

.shop-pdp__allergen {
  margin-top: 12px;
}

.shop-pdp__reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--shop-ink);
  font-weight: 700;
}

.shop-pdp__rating-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--shop-orange-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.shop-pdp__rating-link:hover {
  text-decoration: underline;
}

.shop-pdp__section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--shop-line);
}

.shop-pdp__section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--shop-navy);
}

.shop-pdp__section-body {
  color: var(--shop-muted);
  font-size: 14px;
  line-height: 1.65;
}

.shop-pdp__section-body p {
  margin: 0 0 8px;
}

.shop-pdp__section-body p span,
.shop-pdp__facts span {
  display: inline-block;
  min-width: 9rem;
  font-weight: 700;
  color: var(--shop-ink);
}

.shop-pdp__list,
.shop-pdp__facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.shop-pdp__list {
  list-style: disc;
  padding-inline-start: 1.2rem;
}

.shop-pdp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--shop-line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--shop-ink);
  text-transform: capitalize;
}

.shop-nutrition {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.shop-nutrition th,
.shop-nutrition td {
  padding: 8px 0;
  border-bottom: 1px solid var(--shop-line);
  text-align: start;
}

.shop-nutrition th {
  font-weight: 600;
  color: var(--shop-ink);
}

.shop-nutrition tr.is-sub th {
  padding-inline-start: 14px;
  font-weight: 500;
  color: var(--shop-muted);
}

.shop-reviews {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.shop-review__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.shop-review__top time {
  color: var(--shop-muted);
}

.shop-review p {
  margin: 0;
}

.shop-muted {
  color: var(--shop-muted);
}

.shop-desc :is(p, ul, ol) {
  margin: 0 0 12px;
}

.shop-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin: 24px 0;
}

/* Mobile-app style cart (Mon panier) */
.shop-cart-page {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 0 0 24px;
}

.shop-cart-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 4px 0;
}

.shop-cart-head__back {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-ink);
  text-decoration: none;
}

.shop-cart-head__back svg {
  width: 18px;
  height: 18px;
}

.shop-cart-head__title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--shop-ink);
}

.shop-cart-head__title span {
  font-weight: 700;
  color: var(--shop-muted);
}

.shop-cart-head__clear {
  border: 0;
  background: transparent;
  color: var(--shop-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}

.shop-cart-stack {
  display: grid;
  gap: 14px;
}

.shop-cart-vendor__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--shop-ink);
}

.shop-cart-vendor__title svg {
  width: 18px;
  height: 18px;
  color: var(--shop-orange);
  flex-shrink: 0;
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
}

.shop-cart-line__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 1;
}

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

.shop-cart-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-cart-line__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.shop-cart-line__brand {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

.shop-cart-line__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.shop-cart-line__title a {
  color: inherit;
  text-decoration: none;
}

.shop-cart-line__variant {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--shop-muted);
}

.shop-cart-line__remove {
  border: 0;
  background: transparent;
  color: var(--shop-muted);
  padding: 2px;
  cursor: pointer;
  line-height: 0;
}

.shop-cart-line__remove svg {
  width: 18px;
  height: 18px;
}

.shop-cart-line__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.shop-cart-line__price {
  font-size: 15px;
  font-weight: 800;
}

.shop-qty--pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.shop-qty--pill button,
.shop-qty--pill input {
  border: 0;
  background: transparent;
  min-width: 34px;
  height: 34px;
  text-align: center;
  font: inherit;
  font-weight: 700;
}

.shop-qty--pill button {
  cursor: pointer;
  color: var(--shop-ink);
}

.shop-qty--pill input {
  width: 28px;
  padding: 0;
  color: var(--shop-ink);
}

.shop-resume-card {
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.shop-resume-card h2 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-ink);
}

.shop-resume-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.shop-resume-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.shop-resume-card .is-discount dd {
  color: #12805a;
}

.shop-resume-card .is-total {
  padding-top: 10px;
  border-top: 1px solid var(--shop-line);
  font-weight: 800;
}

.shop-resume-card__eta {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--shop-muted);
}

.shop-cart-sticky-spacer {
  height: 84px;
}

.shop-cart-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, #f7f7f5 28%);
  pointer-events: none;
}

.shop-cart-sticky__cta {
  pointer-events: auto;
  display: flex;
  width: min(560px, 100%);
  margin: 0 auto;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 800;
}

/* Cart: products → promo → résumé (never hide / reorder) */
.shop-cart-promo {
  display: block;
  width: 100%;
  order: unset;
  visibility: visible;
}

.shop-cart-page .shop-promo-card {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 14px;
  visibility: visible;
}

@media (min-width: 861px) {
  .shop-cart-page {
    max-width: 640px;
    margin-top: 16px;
  }
}

/* Shopify-like checkout: white form + light grey sticky summary */
.shop-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0;
  margin: 16px 0 40px;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.shop-checkout-layout > .shop-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-checkout-layout > .shop-panel:first-child {
  background: #fff;
  padding: clamp(22px, 3vw, 36px);
}

.shop-checkout-layout > .shop-summary {
  background: #f6f6f7;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.5vw, 28px);
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: 100%;
  max-height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-panel {
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.shop-panel h2,
.shop-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.shop-line-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-line-item:last-child {
  border-bottom: 0;
}

.shop-line-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #f3f4f6;
}

.shop-line-item__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.shop-line-item__meta {
  margin: 0;
  color: var(--shop-muted);
  font-size: 13px;
}

.shop-summary dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

/* Totals rows only — do NOT target every .shop-summary div (breaks promo card). */
.shop-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.shop-summary .is-total {
  padding-top: 10px;
  border-top: 1px solid var(--shop-line);
  font-size: 16px;
  font-weight: 800;
}

.shop-form {
  display: grid;
  gap: 14px;
}

.shop-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-field {
  display: grid;
  gap: 6px;
}

.shop-field__error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #9f2f2f;
}

.shop-field.is-invalid :is(input, select, textarea),
.shop-select.is-invalid,
.shop-check.is-invalid,
.shop-payment.is-invalid .shop-select-tile__face {
  border-color: rgb(159 47 47 / 55%);
}

.shop-field.is-invalid :is(input, select, textarea):focus,
.shop-field.is-invalid :is(input, select, textarea):focus-visible {
  border-color: #9f2f2f;
  box-shadow: 0 0 0 3px rgb(159 47 47 / 12%);
}

.shop-check.is-invalid {
  color: var(--shop-navy);
}

.shop-check.is-invalid .shop-field__error,
.shop-payment.is-invalid .shop-field__error {
  margin-top: 4px;
}

.shop-field label {
  font-size: 13px;
  font-weight: 600;
}

.shop-field :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--shop-ink);
  line-height: 1.35;
  /* Longhand so select background-image (chevron) is never wiped */
  background-color: #fff;
}

/* Native <select> — same chrome as PLP .shop-sort (Gouvernorat, billing country, etc.) */
.shop-field select,
.shop-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  padding-inline-start: 16px;
  padding-inline-end: 40px;
  border-radius: 8px;
  font-weight: 650;
  color: var(--shop-navy);
  cursor: pointer;
  accent-color: var(--shop-orange);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
  background-color: var(--shop-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%230b1220' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.shop-field select::-ms-expand,
.shop-select::-ms-expand {
  display: none;
}

/* Placeholder “Choisir un gouvernorat” while empty + required */
.shop-field select:invalid,
.shop-select:invalid {
  color: var(--shop-muted);
}

.shop-field select:hover,
.shop-select:hover {
  border-color: rgb(244 91 27 / 45%);
}

.shop-field select:disabled,
.shop-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

.shop-field select option,
.shop-select option {
  color: var(--shop-ink);
  background: #fff;
  font-weight: 500;
}

.shop-field select option[value=""],
.shop-select option[value=""] {
  color: var(--shop-muted);
}

.shop-field textarea {
  min-height: 96px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
}

.shop-field :is(input, select, textarea):focus,
.shop-field :is(input, select, textarea):focus-visible,
.shop-select:focus,
.shop-select:focus-visible {
  outline: none;
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 3px rgb(244 91 27 / 14%);
}

.shop-field select:focus,
.shop-field select:focus-visible,
.shop-select:focus,
.shop-select:focus-visible {
  color: var(--shop-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23f45b1b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[dir="rtl"] .shop-field select,
[dir="rtl"] .shop-select {
  background-position: left 14px center;
}

.shop-billing {
  display: grid;
  gap: 12px;
  margin: 4px 0 8px;
}

.shop-billing[hidden] {
  display: none;
}

.shop-billing__title {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-form__row--comment {
  align-items: flex-start;
  gap: 16px;
}

.shop-check--account {
  max-width: 220px;
  margin-top: 28px;
}

.shop-account-fields {
  margin: 4px 0 16px;
  padding: 0;
  border: none;
  background: transparent;
}

.shop-account-fields .shop-line-item__meta {
  margin: 0;
}

.shop-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
}

.shop-check input {
  margin-top: 3px;
}

.shop-check a {
  color: var(--shop-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Shopify-style fulfillment + payment tiles */
.shop-fulfillment,
.shop-payment {
  margin: 0 0 8px;
}

.shop-fulfillment > h2,
.shop-payment > h2 {
  margin-bottom: 6px;
}

.shop-payment__secure {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--shop-muted);
  font-weight: 500;
}

.shop-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.shop-select-tile[hidden] {
  display: none !important;
}

.shop-select-tile {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.shop-select-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-select-tile__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-select-tile:hover .shop-select-tile__face {
  border-color: #b0b0b0;
}

.shop-select-tile:has(input:checked) .shop-select-tile__face {
  border-color: #111;
  border-width: 2px;
  padding: 13px 11px;
  background: #fafafa;
}

.shop-select-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  color: #555;
}

.shop-select-tile__icon svg {
  width: 32px;
  height: 24px;
  display: block;
}

.shop-select-tile__icon--cod {
  color: #0f766e;
}

.shop-select-tile__icon--pickup {
  color: #c2410c;
}

.shop-select-tile__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--shop-navy);
  line-height: 1.25;
}

.shop-payment__hint {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--shop-muted);
  font-weight: 500;
}

.shop-pickup-info {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fafafa;
}

.shop-pickup-info__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-navy);
}

.shop-pickup-info__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--shop-muted);
}

.shop-pickup-info__meta + .shop-pickup-info__meta {
  margin-top: 4px;
}

.shop-shipping-block[hidden],
.shop-pickup-info[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .shop-tile-row {
    grid-template-columns: 1fr;
  }
}

.shop-payment-methods {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.shop-payment-methods legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.shop-payment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shop-payment-option:hover {
  border-color: #b0b0b0;
}

.shop-payment-option:has(input:checked) {
  border-color: #111;
  border-width: 2px;
  background: #fafafa;
}

.shop-payment-option input {
  margin-top: 3px;
  accent-color: #111;
}

.shop-payment-option strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-navy);
}

.shop-payment-option small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--shop-muted);
  font-weight: 500;
}

.shop-summary__items {
  margin: 0 0 16px;
}

/* Checkout récap: products → promo → totals (never crush / hide) */
.shop-checkout-promo {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  order: unset;
  visibility: visible;
  flex: none;
}

.shop-summary .shop-promo-card {
  display: block;
  width: 100%;
  margin: 0;
  visibility: visible;
  flex: none;
  min-height: 0;
}

.shop-line-item--summary {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  border-bottom-color: #e5e5e5;
}

.shop-summary-thumb {
  position: relative;
  width: 64px;
  height: 64px;
}

.shop-summary-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #fff;
  object-fit: cover;
}

.shop-summary-thumb__qty {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.shop-summary .is-discount dd {
  color: #15803d;
  font-weight: 700;
}

.shop-summary__hint {
  margin: 0;
  color: var(--shop-muted);
  font-size: 13px;
}

.shop-promo-card {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.shop-promo-card__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-navy);
  line-height: 1.3;
}

.shop-promo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.shop-promo-offers {
  display: block;
  width: 100%;
}

.shop-promo__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.shop-promo__field:focus-within {
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 3px #fff0e8;
}

.shop-promo__field svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.shop-promo__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.shop-promo__apply {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: #ececec;
  color: #4b5563;
}

.shop-promo__apply.is-ready {
  background: var(--shop-orange);
  color: #fff;
}

.shop-promo__apply:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.shop-promo__apply.is-ready:disabled {
  cursor: wait;
  opacity: 1;
}

.shop-promo__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgb(244 91 27 / 35%);
  background: rgb(244 91 27 / 8%);
}

.shop-promo__chip svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--shop-orange);
}

.shop-promo__chip-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-navy);
  line-height: 1.35;
}

.shop-promo__chip-remove {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.shop-promo__chip-remove:hover {
  background: rgb(0 0 0 / 6%);
  color: var(--shop-navy);
}

.shop-promo__status {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.shop-promo__status.is-error {
  color: #b91c1c;
}

.shop-promo__status.is-ok {
  color: #15803d;
}

.shop-promo__divider {
  height: 1px;
  margin: 14px 0;
  background: #e5e5e5;
  border: 0;
}

.shop-promo-offers__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--shop-navy);
}

.shop-promo-offers__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--shop-muted);
  line-height: 1.4;
}

.shop-promo-offers__list {
  display: grid;
  gap: 8px;
}

.shop-promo-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.shop-promo-offer.is-vendor {
  background: rgb(244 91 27 / 5%);
}

.shop-promo-offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--shop-orange);
}

.shop-promo-offer__icon svg {
  width: 22px;
  height: 22px;
}

.shop-promo-offer__source {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--shop-orange);
}

.shop-promo-offer__code {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-navy);
}

.shop-promo-offer__meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--shop-muted);
}

.shop-promo-offer__apply {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-orange);
  cursor: pointer;
  white-space: nowrap;
}

.shop-promo-offer__apply:disabled {
  color: var(--shop-muted);
  cursor: default;
}

.shop-promo-offers__empty,
.shop-promo-offers__error {
  margin: 0;
  font-size: 13px;
  color: var(--shop-muted);
}

/* ——— Slide-out mini cart ——— */
.shop-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.shop-drawer-root.is-open {
  pointer-events: auto;
}

.shop-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgb(11 18 32 / 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.shop-drawer-root.is-open .shop-drawer-overlay {
  opacity: 1;
}

.shop-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgb(11 18 32 / 16%);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-drawer-root.is-open .shop-drawer {
  transform: translateX(0);
}

.shop-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-drawer__header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--shop-navy);
}

.shop-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--shop-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.shop-drawer__close:hover {
  background: #f3f4f6;
}

.shop-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 8px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.shop-drawer__empty {
  padding: 48px 8px;
  text-align: center;
  color: var(--shop-muted);
}

.shop-drawer-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--shop-line);
}

.shop-drawer-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f4f6;
}

.shop-drawer-line__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-navy);
  line-height: 1.35;
}

.shop-drawer-line__meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--shop-muted);
}

.shop-drawer-line__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.shop-drawer-line__price .is-sale {
  color: var(--shop-orange);
}

.shop-drawer-line__compare {
  font-size: 12px;
  font-weight: 500;
  color: var(--shop-muted);
  text-decoration: line-through;
}

.shop-drawer-line__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-drawer-line__remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--shop-muted);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.shop-drawer-line__remove:hover {
  color: var(--shop-navy);
}

.shop-drawer__footer {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--shop-line);
  background: #fff;
  box-shadow: 0 -8px 24px rgb(11 18 32 / 6%);
}

.shop-drawer__totals {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.shop-drawer__totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.shop-drawer__totals .is-total {
  font-size: 16px;
  font-weight: 800;
  padding-top: 8px;
  border-top: 1px solid var(--shop-line);
}

.shop-drawer__cta {
  display: grid;
  gap: 8px;
}

.shop-drawer__cta .shop-btn {
  width: 100%;
}

body.shop-drawer-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .shop-drawer {
    width: 100vw;
  }
}

/* ——— PLP quick-add variant sheet ——— */
.shop-variant-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 1250;
  pointer-events: none;
}

.shop-variant-sheet-root.is-open {
  pointer-events: auto;
}

.shop-variant-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgb(11 18 32 / 45%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.shop-variant-sheet-root.is-open .shop-variant-sheet-overlay {
  opacity: 1;
}

.shop-variant-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  max-height: min(78vh, 560px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgb(11 18 32 / 16%);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.shop-variant-sheet-root.is-open .shop-variant-sheet {
  transform: translate(-50%, 0);
  opacity: 1;
}

.shop-variant-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--shop-line);
}

.shop-variant-sheet__heading {
  min-width: 0;
}

.shop-variant-sheet__brand {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

.shop-variant-sheet__heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--shop-ink, #0b1220);
}

.shop-variant-sheet__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--shop-muted);
}

.shop-variant-sheet__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--shop-ink, #0b1220);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.shop-variant-sheet__close:hover {
  background: #e5e7eb;
}

.shop-variant-sheet__body {
  overflow: auto;
  padding: 12px 18px;
  flex: 1 1 auto;
}

.shop-variant-sheet__list {
  display: grid;
  gap: 8px;
}

.shop-variant-sheet__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-variant-sheet__option:hover:not(:disabled) {
  border-color: #f5b896;
}

.shop-variant-sheet__option.is-selected {
  border-color: var(--shop-orange);
  background: #fff0e8;
}

.shop-variant-sheet__option.is-disabled,
.shop-variant-sheet__option:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-variant-sheet__option-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shop-variant-sheet__option-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-ink, #0b1220);
}

.shop-variant-sheet__option-stock {
  font-size: 12px;
  color: var(--shop-muted);
}

.shop-variant-sheet__option-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--shop-ink, #0b1220);
  white-space: nowrap;
}

.shop-variant-sheet__option-price.is-sale {
  color: var(--shop-orange-dark, #c2410c);
}

.shop-variant-sheet__footer {
  padding: 12px 18px 18px;
  border-top: 1px solid var(--shop-line);
}

.shop-variant-sheet__footer .shop-btn {
  width: 100%;
}

.shop-variant-sheet__footer .shop-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.shop-variant-sheet-open {
  overflow: hidden;
}

@media (min-width: 721px) {
  .shop-variant-sheet {
    top: 50%;
    bottom: auto;
    border-radius: 16px;
    transform: translate(-50%, calc(-50% + 10px));
  }

  .shop-variant-sheet-root.is-open .shop-variant-sheet {
    transform: translate(-50%, -50%);
  }
}

/* ——— Auth: split layout (form + brand aside) ——— */
.shop-auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 0;
  margin: 12px 0 40px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--shop-line);
  box-shadow:
    0 1px 2px rgb(11 18 32 / 4%),
    0 18px 48px rgb(11 18 32 / 7%);
}

.shop-auth__card {
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
  background: #fff;
}

.shop-auth__card > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--shop-navy);
}

.shop-auth-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shop-orange);
}

.shop-auth-lead {
  margin: 0 0 22px;
  color: var(--shop-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 38ch;
}

.shop-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 22px;
  padding: 5px;
  border-radius: 12px;
  background: #f4f5f7;
}

.shop-auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--shop-muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.shop-auth-tabs button:hover {
  color: var(--shop-ink);
}

.shop-auth-tabs button.is-active {
  background: #fff;
  color: var(--shop-orange-dark);
  box-shadow: 0 1px 3px rgb(11 18 32 / 10%);
}

.shop-auth-step h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--shop-navy);
}

.shop-auth .shop-form {
  gap: 16px;
}

.shop-auth .shop-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--shop-muted);
}

.shop-auth .shop-field :is(input, select) {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border-color: rgb(23 24 29 / 12%);
  background: #fafaf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.shop-auth .shop-field :is(input, select):focus {
  background: #fff;
  border-color: var(--shop-orange);
  box-shadow: 0 0 0 4px rgb(244 91 27 / 14%);
}

.shop-auth .shop-btn--primary {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-auth .shop-btn--ghost {
  width: 100%;
  border-radius: 10px;
}

.shop-auth__logout {
  margin-top: 14px;
}

.shop-auth [data-auth-status]:empty {
  display: none;
}

.shop-auth [data-auth-status]:not(:empty) {
  margin-bottom: 14px;
}

/* Match `.market-hero--search` navy + orange glow + grid */
.shop-auth__aside {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 18% 0%, rgb(244 91 27 / 22%), transparent 55%),
    radial-gradient(ellipse 40% 50% at 88% 20%, rgb(255 255 255 / 6%), transparent 50%),
    linear-gradient(160deg, #0a101c 0%, #10182a 48%, #0b1220 100%);
  color: #fff;
}

.shop-auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.shop-auth__aside-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 40px);
}

.shop-auth__aside .shop-auth-kicker {
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.shop-auth__aside h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--shop-orange, #f45b1b);
}

.shop-auth__perks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.shop-auth__perks li {
  position: relative;
  padding-inline-start: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: rgb(255 255 255 / 92%);
}

.shop-auth__perks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.2l2.4 2.4L12 5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.shop-results-count {
  margin: 0 0 18px;
  color: var(--shop-muted);
  font-size: 14px;
}

.shop-catalog-section {
  margin: 0 0 28px;
}

.shop-section-title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--shop-navy);
}

.shop-subsection {
  margin: 0 0 22px;
}

.shop-subsection-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--shop-line);
  font-size: 15px;
  font-weight: 800;
  color: var(--shop-ink);
}

.shop-alert {
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff0ed;
  color: #b42318;
  font-size: 14px;
}

.shop-alert--ok {
  background: #eaf8ef;
  color: #15803d;
}

.shop-alert--info {
  background: #fff0e8;
  color: var(--shop-orange-dark);
}

.shop-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.shop-step {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--shop-line);
  color: var(--shop-muted);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.shop-step.is-active {
  border-color: var(--shop-orange);
  color: var(--shop-orange-dark);
  background: #fff0e8;
}

.shop-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--shop-ink, #121212);
  text-decoration: none;
  flex-shrink: 0;
}

.shop-header-cart:hover {
  color: var(--shop-orange, #f45b1b);
}

.shop-header-cart svg {
  display: block;
}

.shop-header-cart__count {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--shop-orange, #f45b1b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.shop-orders {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.shop-order {
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

.shop-order__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.shop-order__id {
  font-weight: 800;
}

.shop-pay {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}

.shop-pay .status-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0e8;
  color: var(--shop-orange);
  font-size: 34px;
  font-weight: 800;
}

.shop-pay .status-icon[data-state="verified"] {
  background: #eaf8ef;
  color: #15803d;
}

.shop-pay .status-icon[data-state="failed"],
.shop-pay .status-icon[data-state="cancelled"],
.shop-pay .status-icon[data-state="invalid"],
.shop-pay .status-icon[data-state="unavailable"] {
  background: #fff0ed;
  color: #b42318;
}

.shop-pay .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgb(244 91 27 / 24%);
  border-top-color: var(--shop-orange);
  border-radius: 50%;
  animation: shop-spin 0.9s linear infinite;
}

@keyframes shop-spin {
  to { transform: rotate(360deg); }
}

.shop-coach-cta {
  margin-top: 28px;
  padding: 22px;
  border: 1px dashed rgb(244 91 27 / 40%);
  border-radius: 8px;
  background: #fffaf7;
  text-align: start;
}

.shop-coach-cta h3 {
  margin: 0 0 8px;
}

.shop-coach-cta p {
  margin: 0 0 14px;
  color: var(--shop-muted);
}

.shop-load-more {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-pdp,
  .shop-cart-layout,
  .shop-checkout-layout,
  .shop-form__row,
  .shop-auth {
    grid-template-columns: 1fr;
  }

  .shop-checkout-layout > .shop-summary {
    /* Récap + promo first on small screens — was buried under the long form. */
    order: -1;
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: 1px solid var(--shop-line);
  }

  .shop-auth__aside {
    min-height: 200px;
  }
}

@media (max-width: 760px) {
  .shop-page .market-hero-search--shop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    align-items: stretch;
  }

  .shop-sort {
    width: 100%;
  }

  .shop-sort select {
    width: 100%;
    max-width: none;
  }
}

/* ——— Catalog / PDP shimmer skeletons ——— */
.shop-catalog-skeleton {
  margin-top: 4px;
}

.shop-skeleton-section {
  margin: 18px 0 8px;
}

.shop-skeleton-card {
  pointer-events: none;
}

.shop-skeleton-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.shop-skeleton {
  position: relative;
  overflow: hidden;
  background: #e8e9ec;
  border-radius: 6px;
}

.shop-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / 55%) 45%,
    transparent 100%
  );
  animation: shop-shimmer 1.35s ease-in-out infinite;
}

.shop-skeleton--media {
  aspect-ratio: 1;
  border-radius: 0;
  background: #eceef1;
}

.shop-skeleton--pdp-media {
  border-radius: 0;
}

.shop-skeleton--line {
  height: 12px;
}

.shop-skeleton--brand {
  width: 42%;
  height: 10px;
}

.shop-skeleton--title {
  width: 88%;
}

.shop-skeleton--title-short {
  width: 62%;
}

.shop-skeleton--price {
  width: 36%;
  height: 14px;
  margin-top: 6px;
}

.shop-skeleton--count {
  width: 96px;
  height: 12px;
  margin-bottom: 16px;
}

.shop-skeleton--section-title {
  width: 140px;
  height: 16px;
  margin-bottom: 12px;
}

.shop-skeleton--pdp-title {
  width: 72%;
  height: 28px;
  margin: 8px 0 12px;
}

.shop-skeleton--chips {
  width: 55%;
  height: 34px;
  border-radius: 8px;
  margin: 10px 0;
}

.shop-skeleton--cta {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  margin: 8px 0 18px;
}

.shop-skeleton--tabs {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.shop-skeleton--block {
  width: 100%;
  height: 72px;
  margin-bottom: 10px;
}

.shop-skeleton--block-short {
  width: 78%;
  height: 48px;
}

.shop-pdp--skeleton {
  margin-top: 12px;
}

@keyframes shop-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-pay .spinner {
    animation-duration: 1.8s;
  }

  .shop-skeleton::after {
    animation: none;
  }
}
