/* Shared Special Offer vertical card carousel (home + offers page) */

.so-carousel-wrap {
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.offers-carousel {
  position: relative;
  width: 100%;
}

.carousel-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 22px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-track.is-dragging {
  transition: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.offer-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
  border: 2px solid #d4af37;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 215, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 720px);
  max-height: 820px;
}

.offer-card .photo-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  background: linear-gradient(145deg, #0b5d3b 0%, #14532d 55%, #0b3d2e 100%);
}

.offer-card .photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #5C0A1D, #7A1E33);
  color: #FFD700;
  font-weight: bold;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d4af37;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.offer-card .body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.offer-card h3 {
  margin: 0;
  color: #5C0A1D;
  font-family: "Cinzel", serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.offer-desc {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.regular-price {
  text-decoration: line-through;
  color: #888;
  font-size: 16px;
}

.offer-price {
  color: #0b5d3b;
  font-size: 28px;
  font-weight: bold;
}

.save-line {
  color: #7A1E33;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
}

.badge-free {
  display: inline-block;
  align-self: flex-start;
  background: #0b5d3b;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 6px;
}

.stock-line {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.countdown-box {
  background: linear-gradient(180deg, #fff8dc, #fff3c4);
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.countdown-label {
  font-size: 12px;
  color: #8b6508;
  font-weight: bold;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-timer {
  font-size: 24px;
  font-weight: bold;
  color: #5C0A1D;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.countdown-timer.expired {
  color: #a00;
  font-size: 18px;
}

.offer-btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b5d3b, #0e7a4d);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 93, 59, 0.35);
}

.offer-btn:disabled {
  background: #999;
  box-shadow: none;
  cursor: not-allowed;
}

.carousel-nav {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d4af37;
  background: rgba(11, 61, 46, 0.85);
  color: #FFD700;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-nav:hover:not(:disabled) {
  transform: scale(1.06);
  background: rgba(11, 93, 59, 0.95);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #d4af37;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #FFD700;
  transform: scale(1.15);
}

.carousel-counter {
  color: #ffe9a8;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.4px;
}

.swipe-hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin: 0;
}

.so-empty-state,
.so-loading-state {
  text-align: center;
  color: #fff;
  padding: 28px 16px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .so-carousel-wrap {
    max-width: 100%;
  }

  .carousel-nav {
    position: absolute;
    z-index: 5;
    top: 42%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    background: rgba(11, 61, 46, 0.72);
  }

  .carousel-nav.prev {
    left: 6px;
  }

  .carousel-nav.next {
    right: 6px;
  }

  .carousel-shell {
    gap: 0;
  }

  .offer-card {
    min-height: min(74vh, 680px);
  }

  .offer-card .photo {
    min-height: 260px;
    max-height: 360px;
  }

  .offer-card h3 {
    font-size: 19px;
  }

  .offer-price {
    font-size: 24px;
  }

  .countdown-timer {
    font-size: 20px;
  }
}

@media (min-width: 641px) {
  .offer-card .photo {
    min-height: 340px;
    max-height: 440px;
  }
}

/* Home page section chrome */
.home-special-offers {
  padding: 28px 14px 10px;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(160deg, #0b3d2e 0%, #0b5d3b 50%, #14532d 100%);
}

.home-special-offers .home-so-head {
  text-align: center;
  color: #fff;
  margin-bottom: 14px;
}

.home-special-offers .home-so-head h2 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  color: #FFD700;
  font-size: 28px;
}

.home-special-offers .home-so-head p {
  margin: 0;
  opacity: 0.95;
  font-size: 14px;
}

.home-special-offers .home-so-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-special-offers .home-so-links a {
  color: #FFD700;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.15);
  font-size: 13px;
}

.home-special-offers .home-so-links a:hover {
  color: #fff;
}
