/* ============================================================
 *  TECH ZONE — new-arrivals-hero.css
 *  Premium New Arrivals hero carousel that replaces the static
 *  hero text section. Orange/gold brand palette.
 *  Load AFTER featured-carousel.css in <head>.
 * ============================================================ */

/* ── Section wrapper ──────────────────────────────────────── */
.tz-na-hero {
  position: relative;
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 30%, #ff7a00 80%, #ffb300 100%);
  overflow: hidden;
  padding: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

/* Decorative layered bg circles */
.tz-na-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(255,179,0,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(255,122,0,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% -10%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Animated floating blobs */
.tz-na-hero__blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tz-na-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  will-change: transform;
}
.tz-na-blob--1 {
  width: 420px; height: 420px;
  background: #ffb300;
  top: -120px; right: -80px;
  animation: tz-blob-drift1 18s ease-in-out infinite;
}
.tz-na-blob--2 {
  width: 280px; height: 280px;
  background: #ff7a00;
  bottom: -60px; left: 5%;
  animation: tz-blob-drift2 22s ease-in-out infinite;
}
.tz-na-blob--3 {
  width: 160px; height: 160px;
  background: #fff;
  top: 30%; left: 40%;
  animation: tz-blob-drift3 14s ease-in-out infinite;
}

@keyframes tz-blob-drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(1.08); }
  66%       { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes tz-blob-drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, -40px) scale(1.12); }
}
@keyframes tz-blob-drift3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-20px, 20px); }
}

/* ── Header bar ──────────────────────────────────────────── */
.tz-na-hero__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--container-pad, 20px) 0;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  flex-wrap: wrap;
}

.tz-na-hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tz-na-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
}
.tz-na-hero__badge-dot {
  width: 6px; height: 6px;
  background: #ffde59;
  border-radius: 50%;
  animation: tz-badge-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tz-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.tz-na-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
}
.tz-na-hero__title em {
  font-style: normal;
  color: #ffde59;
  display: block;
}

.tz-na-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tz-na-count-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.tz-na-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffde59;
  color: #1a0a00;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(255,222,89,0.4);
}
.tz-na-see-all:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255,222,89,0.5);
  color: #1a0a00;
}

/* ── Carousel outer ──────────────────────────────────────── */
.tz-na-carousel-outer {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  padding-bottom: 8px;
}

@media (max-width: 600px) {
  .tz-na-carousel-outer {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Pause indicator */
.tz-na-pause-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 20;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tz-na-carousel-outer.is-paused .tz-na-pause-hint { opacity: 1; }

/* Nav arrows */
.tz-na-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s;
  color: #1f2937;
}
.tz-na-nav:hover {
  background: #ff7a00;
  color: #fff;
  box-shadow: 0 6px 24px rgba(255,122,0,0.45);
  transform: translateY(-50%) scale(1.07);
}
.tz-na-nav--prev { left: 8px; }
.tz-na-nav--next { right: 8px; }
.tz-na-nav svg { width: 18px; height: 18px; }
.tz-na-nav:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

@media (max-width: 600px) { .tz-na-nav { display: none; } }

/* Track wrap */
.tz-na-track-wrap {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  padding: 0 12px;
}
.tz-na-track-wrap.is-dragging { cursor: grabbing; }

.tz-na-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  padding: 16px 0 24px;
}

/* ── Product card ─────────────────────────────────────────── */
.tz-na-card {
  flex: 0 0 210px;
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.14),
    0 1px 3px rgba(0,0,0,0.08);
  transition:
    transform 0.38s cubic-bezier(.23,.92,.26,1.01),
    box-shadow 0.38s cubic-bezier(.23,.92,.26,1.01),
    background 0.2s;
  will-change: transform;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 480px)  { .tz-na-card { flex: 0 0 220px; } }
@media (min-width: 768px)  { .tz-na-card { flex: 0 0 240px; } }
@media (min-width: 1200px) { .tz-na-card { flex: 0 0 256px; } }

/* Hover / active */
.tz-na-card:hover,
.tz-na-card.is-active {
  transform: translateY(-8px) scale(1.022);
  box-shadow:
    0 20px 50px rgba(255,122,0,0.25),
    0 6px 18px rgba(0,0,0,0.14),
    0 0 0 2.5px rgba(255,122,0,0.3);
  background: #fff;
  z-index: 5;
}

/* NEW badge */
.tz-na-card__new-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(90deg, #ff7a00, #e56700);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(255,122,0,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tz-na-card__new-badge svg { width: 8px; height: 8px; }

/* Discount badge */
.tz-na-card__disc {
  position: absolute;
  top: 10px; right: 10px;
  background: #e02020;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  z-index: 4;
}

/* Image area */
.tz-na-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f8f8f8, #f0f0f0);
  overflow: hidden;
}
.tz-na-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(.23,.92,.26,1.01);
  loading: lazy;
}
.tz-na-card:hover .tz-na-card__img-wrap img,
.tz-na-card.is-active .tz-na-card__img-wrap img {
  transform: scale(1.09);
}

/* Placeholder emoji when no image */
.tz-na-card__img-placeholder {
  width: 100%; height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #d1d5db;
}

/* Overlay on hover/tap */
.tz-na-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,5,0,0.45) 0%,
    rgba(10,5,0,0.6) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  padding: 12px;
}
.tz-na-card:hover .tz-na-card__overlay,
.tz-na-card.is-active .tz-na-card__overlay { opacity: 1; }

.tz-na-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(.23,.92,.26,1.01),
    opacity 0.28s ease,
    background 0.18s;
  width: 80%;
  justify-content: center;
}
.tz-na-card:hover .tz-na-overlay-btn,
.tz-na-card.is-active .tz-na-overlay-btn {
  transform: translateY(0);
  opacity: 1;
}
.tz-na-overlay-btn:nth-child(2) { transition-delay: 0.07s; }

.tz-na-overlay-btn--view {
  background: #ff7a00;
  color: #fff;
}
.tz-na-overlay-btn--view:hover { background: #e56700; color: #fff; }

.tz-na-overlay-btn--cart {
  background: rgba(255,255,255,0.93);
  color: #1a0a00;
  border: 1px solid rgba(255,255,255,0.5);
}
.tz-na-overlay-btn--cart:hover { background: #fff; color: #1a0a00; }

.tz-na-overlay-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Body */
.tz-na-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.tz-na-card__cat {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ff7a00;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tz-na-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s;
}
.tz-na-card__name:hover { color: #ff7a00; }

/* Description — hidden by default, revealed on hover */
.tz-na-card__desc {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(.25,.8,.25,1),
    opacity 0.32s ease,
    margin-top 0.3s;
  margin-top: 0;
}
.tz-na-card:hover .tz-na-card__desc,
.tz-na-card.is-active .tz-na-card__desc {
  max-height: 64px;
  opacity: 1;
  margin-top: 4px;
}

.tz-na-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tz-na-card__price {
  font-size: 1.12rem;
  font-weight: 900;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}
.tz-na-card__old-price {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.tz-na-card__saving {
  font-size: 0.62rem;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 20px;
}

/* Inline action buttons (always visible below description) */
.tz-na-card__actions {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  align-items: stretch;
}

.tz-na-btn-cart {
  flex: 1;
  background: linear-gradient(90deg, #ff7a00 0%, #e56700 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,122,0,0.3);
}
.tz-na-btn-cart:hover {
  background: linear-gradient(90deg, #e56700 0%, #cc5a00 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,122,0,0.4);
  color: #fff;
}
.tz-na-btn-cart svg { width: 13px; height: 13px; flex-shrink: 0; }
.tz-na-btn-cart--oos {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
}
.tz-na-btn-cart--oos:hover { transform: none; box-shadow: none; }

.tz-na-btn-wl {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.7);
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #9ca3af;
}
.tz-na-btn-wl:hover { background: #fff0f0; border-color: #fca5a5; color: #e02020; }
.tz-na-btn-wl.active { background: #fff0f0; border-color: #fca5a5; color: #e02020; }
.tz-na-btn-wl svg { width: 15px; height: 15px; }

/* ── Dot indicators ──────────────────────────────────────── */
.tz-na-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 4px 0 24px;
  flex-wrap: wrap;
}

.tz-na-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.28s;
  padding: 0;
  flex-shrink: 0;
}
.tz-na-dot.active {
  background: #ffde59;
  width: 24px;
  border-radius: 20px;
}

/* ── Skeleton loader ─────────────────────────────────────── */
@keyframes tz-na-shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}
.tz-na-card--skeleton .tz-na-card__img-wrap {
  min-height: 190px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 1000px 100%;
  animation: tz-na-shimmer 1.6s infinite linear;
}
.tz-na-card--skeleton .tz-na-card__body {
  min-height: 130px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e8e8e8 50%, #f3f4f6 75%);
  background-size: 1000px 100%;
  animation: tz-na-shimmer 1.6s infinite linear;
}

/* ── Mobile adjustments ───────────────────────────────────── */
/* ── Mobile compact layout (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {

  /* Section: auto height — never force min-height on mobile */
  .tz-na-hero {
    min-height: 0;
    padding-bottom: 4px;
  }

  /* Shrink blobs so they don't waste vertical space */
  .tz-na-blob--1 { width: 180px; height: 180px; top: -50px; right: -40px; }
  .tz-na-blob--2 { width: 120px; height: 120px; bottom: -30px; }
  .tz-na-blob--3 { display: none; }

  /* Header: tighter top padding, single compact row */
  .tz-na-hero__head {
    padding: 12px 14px 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  /* Badge: smaller */
  .tz-na-hero__badge {
    font-size: 0.58rem;
    padding: 4px 9px;
    gap: 5px;
  }
  .tz-na-hero__badge-dot {
    width: 5px;
    height: 5px;
  }

  /* Title: tight, no line-break waste */
  .tz-na-hero__title {
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    line-height: 1.15;
  }
  .tz-na-hero__title em {
    font-size: 1rem;
  }

  /* Meta row: compact pills */
  .tz-na-count-pill {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
  .tz-na-see-all {
    font-size: 0.68rem;
    padding: 6px 12px;
  }

  /* Carousel: less top margin */
  .tz-na-carousel-outer {
    margin-top: 10px;
  }

  /* Track: tighter gap and padding */
  .tz-na-track {
    gap: 10px;
    padding: 8px 0 14px;
  }
  .tz-na-track-wrap {
    padding: 0 10px;
  }

  /* Cards: width shows ~2.2 cards = good peek of next card */
  .tz-na-card {
    flex: 0 0 156px;
  }

  /* Image: slightly shorter for more info visible without scroll */
  .tz-na-card__img-wrap {
    aspect-ratio: 4 / 3;
  }

  /* NEW badge: minimal */
  .tz-na-card__new-badge {
    font-size: 0.52rem;
    padding: 3px 7px;
    gap: 3px;
    top: 7px;
    left: 7px;
  }
  .tz-na-card__disc {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: 7px;
    right: 7px;
  }

  /* Body: tight but readable */
  .tz-na-card__body {
    padding: 9px 10px 10px;
    gap: 3px;
  }
  .tz-na-card__cat {
    font-size: 0.58rem;
  }
  .tz-na-card__name {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }
  .tz-na-card__price {
    font-size: 0.92rem;
    font-weight: 900;
  }
  .tz-na-card__old-price {
    font-size: 0.68rem;
  }
  .tz-na-card__price-row {
    margin-top: 3px;
    gap: 5px;
  }

  /* Action buttons: full-width cart, no wishlist icon to save space */
  .tz-na-card__actions {
    margin-top: 7px;
    gap: 5px;
  }
  .tz-na-btn-cart {
    padding: 8px 8px;
    font-size: 0.7rem;
    gap: 4px;
    border-radius: 7px;
  }
  .tz-na-btn-cart svg {
    width: 11px;
    height: 11px;
  }
  .tz-na-btn-wl {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }
  .tz-na-btn-wl svg {
    width: 13px;
    height: 13px;
  }

  /* Dots: tighter */
  .tz-na-dots {
    padding: 2px 0 14px;
    gap: 5px;
  }
  .tz-na-dot {
    width: 6px;
    height: 6px;
  }
  .tz-na-dot.active {
    width: 18px;
  }
}

/* ── Small phones (≤ 360px) ───────────────────────────────── */
@media (max-width: 360px) {
  .tz-na-card {
    flex: 0 0 142px;
  }
  .tz-na-hero__title {
    font-size: 1rem;
  }
  .tz-na-card__price {
    font-size: 0.85rem;
  }
}

@media (min-width: 1400px) {
  .tz-na-card { flex: 0 0 270px; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tz-na-track,
  .tz-na-card,
  .tz-na-card__img-wrap img,
  .tz-na-card__overlay,
  .tz-na-card__desc,
  .tz-na-overlay-btn,
  .tz-na-blob {
    transition: none !important;
    animation: none !important;
  }
}
