/* Studio Carte Cadeau — Entre Nous Esthétique */

/* Coque pleine largeur maîtrisée (utilise l'écran sans marges vides) */
.page-cartes-cadeaux .gift-steps > .container,
.page-cartes-cadeaux .gift-reassurance > .container,
.page-cartes-cadeaux .gift-alt-pay > .container {
  max-width: 1320px;
}

.page-cartes-cadeaux .gift-trust-bar > .container {
  max-width: 1320px;
}

.gift-studio__shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.gift-studio__header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.gift-studio__intro {
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.trust-bar.gift-trust-bar {
  background-color: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.gift-trust-bar .gift-trust {
  margin-top: 0;
}

.gift-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
}

.gift-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--accent-color-rgb), 0.42);
  background: rgba(var(--accent-color-rgb), 0.06);
}

.gift-trust__item i {
  color: var(--accent-color);
}

.gift-steps {
  background: var(--bg-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 0;
}

.gift-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.gift-step {
  text-align: center;
  padding: 0.5rem;
}

.gift-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.gift-step__label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.gift-step__hint {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.2rem;
}

.gift-studio {
  padding: 2.5rem 0 4rem;
}

.gift-studio__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.gift-studio__catalog {
  min-width: 0;
}

.gift-catalog__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.gift-catalog__step {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  white-space: nowrap;
}

.gift-catalog__head .gift-filters {
  margin-bottom: 0;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

/* Panneau latéral sticky */
.gift-sidebar {
  position: sticky;
  top: 88px;
}

.gift-sidebar__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--accent-color-rgb), 0.28);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.gift-sidebar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.gift-sidebar__step {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
}

.gift-sidebar__step--cta {
  display: block;
  margin-bottom: 0.5rem;
}

.gift-sidebar__head .gift-preview-panel__label {
  margin-bottom: 0;
  text-align: right;
}

.gift-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.gift-filter-btn {
  border: 1px solid rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.06);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.gift-filter-btn:hover,
.gift-filter-btn.is-active {
  background: rgba(var(--accent-color-rgb), 0.28);
  border-color: rgba(var(--accent-color-rgb), 0.55);
  color: #fff;
}

.gift-filter-btn i {
  margin-right: 0.35rem;
  color: var(--accent-color);
}

.gift-featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-color-rgb), 0.45);
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.14), rgba(26, 26, 26, 0.95));
}

.gift-featured__badge {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-color);
  padding: 0.25rem 0;
}

.gift-featured__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.gift-featured__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.gift-featured__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--accent-color);
  white-space: nowrap;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
  overflow: visible;
  padding-top: 0.25rem;
}

.gift-offer {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.gift-offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(var(--accent-color-rgb), 0.4);
}

.gift-offer.is-selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.35);
}

.gift-offer.is-highlight {
  animation: giftPulse 2.2s ease;
}

@keyframes giftPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(var(--accent-color-rgb), 0); }
}

/* Bloc global Saint-Valentin (Solo + Duo) */
.gift-offer-group {
  grid-column: 1 / -1;
}

.gift-offer-group--saint-valentin {
  position: relative;
  padding: 1rem 0.9rem 0.95rem;
  border-radius: 18px;
  border: 1.5px solid rgba(232, 162, 176, 0.55);
  background:
    linear-gradient(165deg, rgba(232, 162, 176, 0.14) 0%, rgba(20, 18, 16, 0.35) 38%, rgba(20, 18, 16, 0.15) 100%);
  box-shadow:
    0 0 0 1px rgba(232, 162, 176, 0.12),
    0 14px 34px rgba(90, 25, 50, 0.22);
}

.gift-offer-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  padding: 0 0.15rem;
}

.gift-offer-group__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(180, 60, 95, 0.92);
  border: 1px solid rgba(255, 210, 220, 0.35);
  box-shadow: 0 4px 14px rgba(120, 40, 70, 0.35);
}

.gift-offer-group__sub {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 230, 236, 0.88);
}

.gift-offer-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.gift-offer-group--saint-valentin .gift-offer[data-fete="saint-valentin"] {
  border-color: rgba(232, 162, 176, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  background: var(--card-bg);
}

.gift-offer-group--saint-valentin .gift-offer[data-fete="saint-valentin"]::before {
  display: none;
}

.gift-offer-group--saint-valentin .gift-offer[data-fete="saint-valentin"]:hover {
  border-color: rgba(232, 162, 176, 0.7);
  box-shadow:
    0 0 0 1px rgba(232, 162, 176, 0.25),
    0 12px 26px rgba(90, 25, 50, 0.28);
}

.gift-offer-group--saint-valentin .gift-offer[data-fete="saint-valentin"].is-selected {
  border-color: rgba(232, 162, 176, 0.9);
  box-shadow:
    0 0 0 2px rgba(232, 162, 176, 0.35),
    0 10px 24px rgba(90, 25, 50, 0.28);
}

/* Encadré individuel (hors groupe — secours) */
.gift-offer[data-fete="saint-valentin"] {
  border: 1.5px solid rgba(232, 162, 176, 0.55);
  box-shadow:
    0 0 0 1px rgba(232, 162, 176, 0.18),
    0 10px 28px rgba(120, 40, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(232, 162, 176, 0.08) 0%, transparent 42%),
    var(--card-bg);
}

.gift-offer[data-fete="saint-valentin"]::before {
  content: "Saint-Valentin";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(180, 60, 95, 0.88);
  border: 1px solid rgba(255, 210, 220, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.gift-offer__img {
  height: 140px;
  object-fit: cover;
  width: 100%;
  display: block;
}

/* Sélecteur de formules — toujours visible (mobile / tablette / desktop) */
.gift-offer--carousel {
  overflow: hidden;
  z-index: 1;
}

.gift-offer--carousel .gift-offer__img {
  display: none;
}

.gift-coverflow {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.65rem 0.7rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 200, 138, 0.12), transparent 55%),
    linear-gradient(180deg, #1c1814 0%, #12100e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gift-coverflow__panel {
  position: relative;
  width: 100%;
  height: clamp(148px, 42vw, 176px);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gift-coverflow__scene {
  position: relative;
  height: 100%;
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.gift-coverflow__ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.gift-coverflow__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  max-width: 168px;
  height: 86%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #161412;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    filter 0.4s ease,
    opacity 0.4s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.gift-coverflow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gift-coverflow__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 0.6rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 7, 6, 0.9) 58%);
  color: #fff;
  text-align: left;
  pointer-events: none;
}

.gift-coverflow__meta strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gift-coverflow__meta em {
  font-style: normal;
  font-size: 0.74rem;
  font-family: 'Playfair Display', serif;
  color: #E8C88A;
}

.gift-coverflow__slide[data-offset="0"] {
  transform: translate(-50%, -50%) translateZ(28px) scale(1);
  opacity: 1;
  filter: none;
  z-index: 5;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1.5px rgba(232, 200, 138, 0.4);
}

.gift-coverflow__slide[data-offset="-1"] {
  transform: translate(calc(-50% - 62%), -50%) rotateY(28deg) scale(0.88);
  opacity: 0.78;
  filter: brightness(0.72);
  z-index: 3;
}

.gift-coverflow__slide[data-offset="1"] {
  transform: translate(calc(-50% + 62%), -50%) rotateY(-28deg) scale(0.88);
  opacity: 0.78;
  filter: brightness(0.72);
  z-index: 3;
}

.gift-coverflow__slide[data-offset="-2"],
.gift-coverflow__slide[data-offset="2"] {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.gift-coverflow__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 16, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f3e6c8;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gift-coverflow__nav--prev { left: 0.35rem; }
.gift-coverflow__nav--next { right: 0.35rem; }

.gift-coverflow__nav:hover,
.gift-coverflow__nav:focus-visible {
  background: rgba(232, 200, 138, 0.28);
  border-color: rgba(232, 200, 138, 0.5);
  outline: none;
}

.gift-coverflow__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.gift-coverflow__caption {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.gift-coverflow__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0 0.1rem;
}

.gift-coverflow__chip {
  margin: 0;
  padding: 0.38rem 0.65rem;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-coverflow__chip.is-active {
  background: rgba(232, 200, 138, 0.22);
  border-color: rgba(232, 200, 138, 0.55);
  color: #E8C88A;
}

.gift-coverflow__chip:focus-visible {
  outline: 2px solid rgba(232, 200, 138, 0.7);
  outline-offset: 2px;
}

.gift-duration-choices--triple {
  grid-template-columns: 1fr;
}

@media (min-width: 420px) {
  .gift-duration-choices--triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .gift-coverflow__panel {
    height: 150px;
    border-radius: 14px;
  }

  .gift-coverflow__slide {
    width: 64%;
    max-width: none;
    border-radius: 12px;
  }

  .gift-coverflow__slide[data-offset="-1"] {
    transform: translate(calc(-50% - 52%), -50%) rotateY(22deg) scale(0.86);
  }

  .gift-coverflow__slide[data-offset="1"] {
    transform: translate(calc(-50% + 52%), -50%) rotateY(-22deg) scale(0.86);
  }

  .gift-coverflow__meta strong {
    font-size: 0.72rem;
  }

  .gift-coverflow__caption {
    font-size: 0.68rem;
    max-width: calc(100% - 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-coverflow__slide,
  .gift-coverflow__nav,
  .gift-coverflow__chip {
    transition: none;
  }

  .gift-coverflow__slide[data-offset="-1"],
  .gift-coverflow__slide[data-offset="1"] {
    transform: translate(calc(-50% - 55%), -50%) scale(0.9);
  }
}

.gift-offer__body {
  padding: 1.1rem 1.15rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gift-offer__tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
}

.gift-offer__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.gift-offer__desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 0.75rem;
}

.gift-offer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gift-offer__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-color);
}

.gift-offer__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.gift-offer__cta i {
  color: var(--accent-color);
  margin-left: 0.2rem;
}

/* Aperçu carte */
.gift-preview-panel__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.gift-preview-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.gift-preview-tab {
  flex: 1;
  border: 1px solid rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.06);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-preview-tab:hover {
  background: rgba(var(--accent-color-rgb), 0.14);
}

.gift-preview-tab.is-active {
  background: rgba(var(--accent-color-rgb), 0.22);
  border-color: rgba(var(--accent-color-rgb), 0.55);
  color: #fff;
}

.gift-preview-stack {
  position: relative;
}

.gift-preview-card {
  aspect-ratio: 210 / 148;
  border-radius: 12px;
  padding: 0;
  border: 1px solid rgba(217, 168, 122, 0.35);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color-scheme: light;
  background:
    linear-gradient(168deg, rgba(251, 246, 244, 0.94) 0%, rgba(245, 235, 238, 0.91) 48%, rgba(241, 230, 234, 0.93) 100%),
    url('../images/cartes-cadeaux-hero.jpg') center 35% / cover no-repeat,
    #fbf6f4;
}

.gift-preview-card.is-visible {
  display: flex;
}

/* Motifs zen discrets — coins */
.gift-preview-card::before,
.gift-preview-card::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(155, 138, 165, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.gift-preview-card::before {
  top: -20px;
  left: -20px;
}

.gift-preview-card::after {
  bottom: -20px;
  right: -20px;
  border-color: rgba(217, 168, 122, 0.28);
}

.gift-preview-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.35rem 1.1rem;
  color: #2a2a2a;
}

/* Contraste garanti — indépendant du mode sombre du site */
.dark-mode .gift-preview-card,
.dark-mode .gift-preview-card__inner,
.dark-mode .gift-preview-card p {
  color: #2a2a2a;
  text-shadow: none;
}

.dark-mode .gift-preview-card h3 {
  color: #6b5a78 !important;
  text-shadow: none;
}

.gift-preview-card__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 0.05rem;
}

.gift-preview-card__logo {
  height: 50px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  margin-bottom: 0.4rem;
  background: transparent;
}

.gift-preview-card__divider {
  position: relative;
  width: 72px;
  height: 6px;
  margin-bottom: 0.35rem;
  background:
    linear-gradient(#c9956a, #c9956a) left center / calc(50% - 5px) 1px no-repeat,
    linear-gradient(#c9956a, #c9956a) right center / calc(50% - 5px) 1px no-repeat;
}

.gift-preview-card__divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #c9956a;
  transform: translate(-50%, -50%) rotate(45deg);
}

.gift-preview-card__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.12rem;
  color: #6b5a78 !important;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.gift-preview-card__for-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: #5c5c5c !important;
  margin-bottom: 0.12rem;
  font-weight: 600;
}

.gift-preview-card__recipient {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #1f1f1f !important;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.gift-preview-card__message {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.7rem;
  color: #444 !important;
  line-height: 1.35;
  max-height: 2.6em;
  overflow: hidden;
  margin-bottom: 0.45rem;
  padding: 0 0.5rem;
}

.gift-preview-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(155, 138, 165, 0.45);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  color: #333 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.gift-preview-card__pill span {
  color: #333 !important;
}

.gift-preview-card__zone {
  font-size: 0.48rem;
  color: #666 !important;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  text-align: center;
  max-width: 92%;
}

.gift-preview-card__zone-cities {
  font-size: 0.44rem;
  color: #777 !important;
  line-height: 1.35;
  margin: 0.15rem 0 0;
}

.gift-preview-card__sender {
  font-size: 0.58rem;
  color: #4a4a4a !important;
  font-weight: 500;
  line-height: 1.3;
  padding-top: 0.35rem;
  margin-top: auto;
}

.gift-preview-card__recto-hint {
  font-size: 0.48rem;
  color: #888 !important;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
  font-style: italic;
}

.gift-preview-card__code-footer {
  width: 100%;
  margin-top: 0.45rem;
  text-align: left;
  padding-top: 0.15rem;
}

.gift-preview-card__code-divider {
  height: 1px;
  background: rgba(138, 115, 152, 0.45);
  margin-bottom: 0.35rem;
}

.gift-preview-card__code-label {
  font-size: 0.42rem;
  color: #666 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.gift-preview-card__code-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  color: #1f1f1f !important;
  letter-spacing: 0.12em;
  margin: 0;
  font-weight: 600;
}

/* ——— Verso ——— */
.gift-preview-card__inner--verso {
  padding: 0.85rem 0.95rem 0.75rem;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.4rem;
}

.gift-preview-card__verso-grid {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
}

.gift-preview-card__verso-block {
  margin-bottom: 0.55rem;
}

.gift-preview-card__verso-main .gift-preview-card__verso-block:last-child {
  margin-bottom: 0;
}

.gift-preview-card__verso-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9b8aa5 !important;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.gift-preview-card__verso-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(40, 30, 45, 0.88) !important;
  margin: 0;
}

.dark-mode .gift-preview-card__verso-text {
  color: rgba(40, 30, 45, 0.88) !important;
}

.gift-preview-card__verso-block--secure .gift-preview-card__verso-text,
.gift-preview-card__verso-block--lost .gift-preview-card__verso-text {
  font-size: 0.74rem;
}

.gift-preview-card__verso-site {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #9b8aa5 !important;
  text-align: center;
}

.gift-faq__item {
  border: 1px solid rgba(181, 164, 190, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.gift-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}

.gift-faq__item summary::-webkit-details-marker { display: none; }

.gift-faq__item summary::before {
  content: '+';
  display: inline-block;
  width: 1.1rem;
  color: var(--accent-color, #B5A4BE);
  margin-right: 0.35rem;
}

.gift-faq__item[open] summary::before { content: '–'; }

.gift-faq__item p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.gift-faq__item p + p { margin-top: 0.45rem; }

.gift-faq__item a { color: var(--accent-color, #B5A4BE); }


.gift-preview-card__verso-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #6b5a78 !important;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.45rem;
}

.gift-preview-card__verso-kicker {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9b8aa5 !important;
  font-weight: 600;
  margin: 0 0 0.2rem;
  text-align: center;
}

.gift-preview-card__verso-main {
  flex: 1;
  min-width: 0;
}

.gift-preview-card__verso-qr-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.1rem;
}

.gift-preview-card__verso-block {
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(155, 138, 165, 0.16);
}

.gift-preview-card__verso-main .gift-preview-card__verso-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gift-preview-card__verso-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c4d66 !important;
  margin: 0 0 0.12rem;
}

.gift-preview-card__verso-label i {
  color: #c9956a;
  margin-right: 0.25rem;
}

.gift-preview-card__verso-text {
  font-size: 0.72rem !important;
  color: #333 !important;
  line-height: 1.35;
  margin: 0;
}

.gift-preview-card__phone {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b5a78 !important;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.gift-preview-card__phone:hover {
  color: #c9956a !important;
}

.gift-preview-card--verso .gift-preview-card__qr-wrap {
  flex-shrink: 0;
  padding: 6px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(155, 138, 165, 0.35);
  line-height: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.gift-preview-card--verso .gift-preview-card__qr {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
}

.gift-preview-card__verso-site {
  font-size: 0.55rem !important;
  color: #666 !important;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
  max-width: 4.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.gift-preview-actions {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gift-preview-actions .btn-primary {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gift-preview-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.45;
}

.gift-preview-note i {
  color: var(--accent-color);
}

.gift-personal-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gift-personal-fields__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gift-personal-fields label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
}

.gift-personal-fields .form-control {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.88rem;
}

.gift-personal-fields .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.gift-personal-fields textarea.form-control {
  resize: none;
}

.gift-personal-fields .form-control.is-empty-warn {
  background: rgba(217, 168, 122, 0.14);
  border-color: rgba(217, 168, 122, 0.85);
  box-shadow: 0 0 0 2px rgba(217, 168, 122, 0.22);
  animation: giftFieldWarnPulse 0.45s ease;
}

.gift-personal-fields label.is-empty-warn {
  color: #e8b88a;
}

.gift-personal-fields__hint {
  font-size: 0.72rem;
  color: #e8b88a;
  margin: 0;
  display: none;
}

.gift-personal-fields__hint.is-visible {
  display: block;
}

@keyframes giftFieldWarnPulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.01); }
}

.gift-message-field {
  margin-bottom: 0.75rem !important;
}

.gift-message-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.gift-message-counter {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.gift-message-counter.is-near-limit {
  color: #d9a87a;
}

.gift-message-ideas {
  margin-top: 0.65rem;
}

.gift-message-ideas__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.45rem;
}

.gift-message-ideas__refresh {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
}

.gift-message-ideas__refresh:hover {
  color: #d9a87a;
}

.gift-message-ideas__refresh i {
  font-size: 0.62rem;
}

.gift-message-ideas__chips {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gift-message-chip {
  border: 1px solid rgba(var(--accent-color-rgb), 0.35);
  background: rgba(var(--accent-color-rgb), 0.08);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.gift-message-chip:hover {
  background: rgba(var(--accent-color-rgb), 0.18);
  border-color: rgba(var(--accent-color-rgb), 0.5);
}

.gift-message-chip:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.gift-message-chip.is-applied {
  background: rgba(217, 168, 122, 0.22);
  border-color: rgba(217, 168, 122, 0.55);
}

.gift-amount-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gift-amount-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-color);
}

.gift-amount-row output {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--accent-color);
  min-width: 3.5rem;
  text-align: right;
}

.gift-duration-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.gift-duration-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.gift-duration-btn {
  appearance: none;
  border: 1px solid rgba(217, 168, 122, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f2f2f2;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gift-duration-btn:hover {
  border-color: rgba(217, 168, 122, 0.65);
  background: rgba(217, 168, 122, 0.12);
}

.gift-duration-btn.is-active {
  border-color: rgba(217, 168, 122, 0.85);
  background: rgba(217, 168, 122, 0.22);
  color: #E8C88A;
}

.gift-reassurance {
  padding: 3rem 0;
  background: var(--bg-darker);
}

.gift-reassurance__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gift-reassurance__item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gift-reassurance__item i {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.gift-reassurance__item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.gift-reassurance__item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.gift-alt-pay {
  padding: 2.5rem 0 3rem;
}

.gift-alt-pay summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-color);
  list-style: none;
}

.gift-alt-pay summary::-webkit-details-marker {
  display: none;
}

.gift-alt-pay__content {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .gift-filter-btn {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 991.98px) {
  .gift-studio__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gift-sidebar {
    position: static;
    order: -1;
    max-width: min(560px, 100%);
    margin: 0 auto 0.5rem;
  }

  .gift-catalog__head {
    align-items: stretch;
  }

  .gift-catalog__head .gift-filters {
    justify-content: flex-start;
  }

  .gift-personal-fields__names {
    grid-template-columns: 1fr;
  }

  .gift-steps__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gift-featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gift-featured__badge {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (min-width: 1200px) {
  .gift-studio__layout {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 540px);
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .gift-studio__shell {
    max-width: 1440px;
  }

  .gift-studio__layout {
    grid-template-columns: minmax(0, 1fr) 560px;
  }

  .gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .gift-grid {
    grid-template-columns: 1fr;
  }
}
