/* ======================================================
   Zaika Zone – Recipe Carousel  |  zaika-zone.css
   All selectors are prefixed with .zz- to avoid
   conflicts with any theme or other plugin.
====================================================== */

/* ── RESET (scoped) ── */
.zz-wrap *,
.zz-wrap *::before,
.zz-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.zz-wrap {
  font-family: 'Inter', sans-serif;
  color: #111;
}

/* ── PAGE HEADER ── */
.zz-page-header {
  text-align: center;
  padding: 48px 24px 32px;
}
.zz-page-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.zz-page-header p {
  font-size: 14px;
  color: #666;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 14px;
  line-height: 1.5;
}
.zz-header-line {
  width: 44px;
  height: 3px;
  background: #e8c520;
  margin: 0 auto;
  border-radius: 2px;
}

/* ── SECTION WRAPPER ── */
.zz-section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 16px 60px;
  position: relative;
}

/* ── TOP BAR ── */
.zz-top-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.zz-view-all-btn {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
.zz-view-all-btn:hover { text-decoration: underline; }
.zz-va-arrow {
  width: 20px;
  height: 20px;
  border: 1.5px solid #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ── CAROUSEL OUTER ── */
.zz-carousel-outer {
  position: relative;
}

/* ── NAV BUTTONS ── */
.zz-nav-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 1px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: box-shadow 0.15s;
}
.zz-nav-btn:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.zz-prev { left: -46px; }
.zz-next { right: -46px; }
.zz-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: #333;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── CARDS GRID ── */
.zz-cards-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding-bottom: 10px;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.zz-cards-track::-webkit-scrollbar {
  display: none;
}

/* ── SINGLE CARD ── */
.zz-recipe-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
}

/* ── IMAGE WRAP ── */
.zz-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 85%;
  overflow: hidden;
  border-radius: 12px;
}
.zz-card-img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.zz-recipe-card:hover .zz-card-img-fill { transform: scale(1.03); }

/* emoji / colour fallback */
.zz-card-img-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

/* ── BADGE ── */
.zz-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  z-index: 5;
  letter-spacing: 0.01em;
}

/* ── PRODUCT BOX ── */
.zz-prod-box {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 78px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}
.zz-prod-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 5px 9px;
  gap: 4px;
}
.zz-prod-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8c520;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: #111;
}
.zz-prod-divider {
  width: 90%;
  height: 0.5px;
  background: rgba(255,255,255,0.3);
}
.zz-prod-name {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.25;
}
.zz-prod-sub {
  font-size: 7px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.3;
}

/* ── CARD BODY ── */
.zz-card-body {
  padding: 10px 0 0 0;
}
.zz-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.zz-meta-date {
  font-size: 13px;
  color: #777;
  font-weight: 400;
  white-space: nowrap;
  padding-top: 1px;
}
.zz-meta-tags {
  font-size: 13px;
  color: #2563eb;
  text-align: right;
  line-height: 1.6;
}
.zz-title-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 4px;
}
.zz-title-arrow {
  font-size: 16px;
  font-weight: 400;
  color: #111;
  line-height: 1.35;
  margin-top: 2px;
  grid-column: 1;
  grid-row: 1;
}
.zz-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  grid-column: 2;
  grid-row: 1;
}
.zz-card-desc {
  font-size: 14.5px;
  color: #444;
  line-height: 1.65;
  margin-top: 4px;
  grid-column: 2;
  grid-row: 2;
}

/* ── BOTTOM WAVE ── */
.zz-bottom-wave {
  position: relative;
  margin-top: 48px;
  height: 140px;
  overflow: hidden;
}
.zz-bottom-wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.zz-spice-img {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 52px;
  z-index: 2;
  user-select: none;
}

/* ── MODAL ── */
.zz-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}
.zz-modal-overlay.open { display: flex; }
.zz-modal-box {
  background: #fff;
  border-radius: 14px;
  width: 460px;
  max-width: 95vw;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.28);
}
.zz-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.42);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.zz-modal-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 68%;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.zz-modal-img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zz-modal-img-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}
.zz-modal-prev {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.zz-modal-content {
  padding: 14px 20px 26px;
}
.zz-modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.zz-modal-date { font-size: 12.5px; color: #777; }
.zz-modal-tags { font-size: 12px; color: #2563eb; text-align: right; line-height: 1.6; }
.zz-modal-title-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 5px;
}
.zz-modal-arrow {
  font-size: 20px;
  color: #111;
  grid-column: 1;
  grid-row: 1;
  margin-top: 3px;
}
.zz-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  grid-column: 2;
  grid-row: 1;
}
.zz-modal-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  grid-column: 2;
  grid-row: 2;
  margin-top: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .zz-recipe-card {
    flex: 0 0 100%;
  }
  .zz-section {
    padding: 0 20px 40px;
  }
  .zz-prev { left: 4px; }
  .zz-next { right: 4px; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .zz-recipe-card {
    flex: 0 0 calc(50% - 12px);
  }
}
