/**
 * SYJ Hama — front carousel (no JS required)
 * Accent: teal #0d7c7c on white / light sand
 */
:root {
  --syj-hama-bg: #f7f5f1;
  --syj-hama-surface: #ffffff;
  --syj-hama-ink: #1f2933;
  --syj-hama-muted: #5c6b73;
  --syj-hama-accent: #0d7c7c;
  --syj-hama-accent-hover: #0a6363;
  --syj-hama-border: #e2e6ea;
  --syj-hama-radius: 10px;
  --syj-hama-gap: 1rem;
  --syj-hama-card-width: min(260px, 78vw);
}

.syj-hama-carousel {
  margin: 2rem 0;
  padding: 1.25rem 0 0.5rem;
  color: var(--syj-hama-ink);
  background: linear-gradient(180deg, var(--syj-hama-bg) 0%, transparent 100%);
  border-radius: var(--syj-hama-radius);
}

.syj-hama-carousel__title {
  margin: 0 1rem 0.85rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--syj-hama-ink);
}

.syj-hama-carousel__track {
  display: flex;
  gap: var(--syj-hama-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  padding: 0.25rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--syj-hama-accent) transparent;
}

.syj-hama-carousel__track::-webkit-scrollbar {
  height: 8px;
}

.syj-hama-carousel__track::-webkit-scrollbar-thumb {
  background: var(--syj-hama-accent);
  border-radius: 999px;
}

.syj-hama-card {
  flex: 0 0 var(--syj-hama-card-width);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--syj-hama-surface);
  border: 1px solid var(--syj-hama-border);
  border-radius: var(--syj-hama-radius);
  overflow: hidden;
  min-height: 100%;
}

.syj-hama-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--syj-hama-bg);
  overflow: hidden;
}

.syj-hama-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.syj-hama-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1.1rem;
  flex: 1;
}

.syj-hama-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
  color: var(--syj-hama-ink);
}

.syj-hama-card__price {
  font-size: 0.95rem;
  color: var(--syj-hama-ink);
}

.syj-hama-card__disclosure {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--syj-hama-muted);
}

.syj-hama-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--syj-hama-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  transition: background 0.15s ease;
}

.syj-hama-card__cta:hover,
.syj-hama-card__cta:focus {
  background: var(--syj-hama-accent-hover);
  color: #fff !important;
}

.syj-hama-disclosure {
  font-size: 0.8rem;
  color: var(--syj-hama-muted);
  margin: 0.75rem 0;
}

/* Divi / theme: avoid forced full-width flex children breaking snap */
.et_pb_text .syj-hama-carousel__track,
.et_pb_module .syj-hama-carousel__track {
  max-width: 100%;
}

@media (min-width: 782px) {
  .syj-hama-carousel[data-columns="2"] {
    --syj-hama-card-width: min(46%, 320px);
  }
  .syj-hama-carousel[data-columns="3"] {
    --syj-hama-card-width: min(30%, 280px);
  }
  .syj-hama-carousel[data-columns="4"] {
    --syj-hama-card-width: min(22%, 240px);
  }
}

@media (max-width: 600px) {
  .syj-hama-carousel__title {
    font-size: 1.2rem;
  }
  .syj-hama-card__cta {
    width: 100%;
  }
}
