/* Homepage offers: photo cards and a mobile carousel with one card per swipe. */
.home-offers { scroll-margin-top: 90px; }
.home-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 30px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.home-offers-head .sec-head { min-width: 0; }
/* Shared switch styling is still used by the photo/video gallery. */
.home-offers-switch {
  display: inline-flex;
  flex: none;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .04);
}
.home-offers-switch[hidden] { display: none; }
.home-offers-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 100px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background .3s, color .3s;
}
.home-offers-switch button:hover { color: var(--text); }
.home-offers-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-2); }
.home-offers-switch-number { opacity: .65; }

/* Photo cards follow the gift catalog styling. */
.home-offers .offer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.home-offers .home-offer {
  min-width: 0;
  padding: 0;
  gap: 0;
  will-change: transform;
  transition: transform .7s var(--ease-out), border-color .45s var(--ease), background .45s var(--ease), box-shadow .55s var(--ease);
}
.home-offers .home-offer:hover,
.home-offers .home-offer:focus-within {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 30px 60px -34px var(--line-strong), 0 0 0 1px var(--line);
}
.home-offers .home-offer-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.home-offer-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  transform: translateZ(0) scale(1);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition: transform 1.1s var(--ease-out);
}
.home-offer:hover .home-offer-media img { transform: translateZ(0) scale(1.07); }
.home-offer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 2%, transparent 46%);
  pointer-events: none;
}
.home-offer-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--coral-deep) 82%, #000);
  border: 1px solid var(--coral);
  box-shadow: 0 6px 22px -8px rgba(255, 107, 129, .65);
}
.home-offers .home-offer-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  padding: clamp(10px, 1vw, 14px) clamp(20px, 2.1vw, 28px) clamp(22px, 2.2vw, 30px);
}
/* Match the site-wide card fix: cover the subpixel seam during image scaling. */
.home-offers .home-offer-body::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--surface);
  pointer-events: none;
  transition: background .45s var(--ease);
}
.home-offers .home-offer:hover .home-offer-body::before,
.home-offers .home-offer:focus-within .home-offer-body::before {
  background: var(--surface-2);
}
.home-offers .home-offer-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.home-offers .home-offer h3 { font-size: calc(var(--step-1) + 2px); line-height: 1.12; letter-spacing: -.01em; margin-top: -3px; }
.home-offers .home-offer .desc { line-height: 1.55; margin-top: 0; }
.home-offers .home-offer-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
.home-offers .price-row { flex: 1; min-width: 0; margin-top: 0; gap: 10px; flex-wrap: wrap; }
.home-offers .cta-mini { flex: none; }
.home-offers .price-now { line-height: 1; }
.home-offers .price-old {
  font-family: var(--font-body);
  font-size: var(--step--1);
  text-decoration-color: color-mix(in srgb, var(--coral) 65%, transparent);
}
@media (max-width: 1160px) {
  .home-offers .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-offers-head { align-items: flex-start; flex-direction: column; }
}
/* Dots mirror the promotion slider, with larger invisible tap targets. */
.home-offers-dots { display: none; }
.home-offers-dots[hidden] { display: none; }
.home-offers-dot { display: grid; place-items: center; width: 20px; height: 32px; }
.home-offers-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(144,196,255,.56); background: transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.home-offers-dot:hover::before { border-color: var(--accent-2); }
.home-offers-dot.is-current::before { background: var(--accent-2); border-color: var(--accent-2); transform: scale(1.15); }
@media (max-width: 999px) {
  .home-offers { overflow: clip; }
  .home-offers-head { margin-bottom: 22px; }
  .home-offers .offer-grid {
    display: flex; position: relative; gap: 16px;
    margin-inline: calc(-1 * var(--gut)); padding: 6px var(--gut) 0;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gut);
    overscroll-behavior-x: contain; touch-action: auto;
  }
  .home-offers .offer-grid::-webkit-scrollbar { display: none; }
  .home-offers .offer-grid:focus-visible { outline-offset: -3px; }
  .home-offers .home-offer { flex: 0 0 clamp(260px,84vw,380px); scroll-snap-align: start; will-change: auto; }
  .home-offers .home-offer:hover,
  .home-offers .home-offer:focus-within { transform: none; }
  .home-offers .home-offer-media { flex: none; }
  .home-offers .home-offer-media img,
  .home-offers .home-offer:hover .home-offer-media img { transform: none; transition: none; will-change: auto; }
  .home-offers .home-offer h3 { font-size: calc(clamp(1.25rem,5.4vw,1.45rem) + 2px); }
  /* Subtract the invisible 11px tap padding to match the promotion dots visually. */
  .home-offers-dots { display: flex; justify-content: center; gap: 0; margin-top: calc(clamp(16px, 2vw, 24px) - 11px); }
}
[data-motion="off"] .home-offers .home-offer,
[data-motion="off"] .home-offers .home-offer-media img { transition: none; transform: none; }
[data-motion="off"] .home-offers .home-offer-body::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .home-offers .home-offer,
  .home-offers .home-offer:hover,
  .home-offers .home-offer:focus-within,
  .home-offers .home-offer-media img { transition: none; transform: none; }
  .home-offers .home-offer-body::before { transition: none; }
}

@media (prefers-reduced-motion: reduce) { .home-offers-dot::before { transition: none; } }
