/* hero-styles.css - Hero Carousel with 2 Items Per Slide */

/* ══ HERO SECTION ══ */
.hero {
  min-height: auto;
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  /* Top: extra breathing under fixed nav; bottom small — #products padding-top handles seam below hero */
  padding: 76px 14px 10px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Carousel Container */
.hc-track-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hc-track-container::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--r3) + 4px);
  border: 1px solid var(--bd);
  background: linear-gradient(145deg, rgba(123,110,246,.08), rgba(255,255,255,.02) 40%, rgba(34,211,238,.05));
  box-shadow: 0 24px 56px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  pointer-events: none;
}

.hc-track {
  display: flex; /* Required for the items to be in a row */
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Slide - contains 2 cards on desktop */
.hc-slide {
  flex: 0 0 100%; /* Slide takes full width */
  min-width: 100%;
  display: flex;   /* Items inside slide use flex */
  flex-direction: row; 
  gap: 20px;
}

/* Hero Card - each card takes half width */
.hc-card {
  flex: 1; /* Each card takes equal space (50% width) */
  min-width: 0; /* Prevents overflow */
  background: var(--gc);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: translateZ(0);
  transition: border-color .35s, box-shadow .35s, transform .38s cubic-bezier(.4,0,.2,1), background .35s;
}

.hc-card:hover {
  border-color: var(--a1);
  box-shadow: var(--sh), var(--glow), 0 20px 50px rgba(0,0,0,.28);
  transform: translateY(-6px) rotateX(3deg) scale(1.01);
}

.hc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(123,110,246,.1), transparent 60%);
  pointer-events: none;
}

/* Hero Images - 16:9 Aspect Ratio */
.hc-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--r2);
  background: linear-gradient(135deg, rgba(123,110,246,.12), rgba(34,211,238,.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  padding: 8px;
}

.hc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--r2);
}

/* Hero Card Content */
.hc-cat {
  display: inline-flex;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(123,110,246,.16);
  border: 1px solid rgba(123,110,246,.32);
  font-size: clamp(.65rem, .2vw + .6rem, .72rem);
  font-weight: 700;
  color: #d9dcff;
  text-transform: uppercase;
  letter-spacing: .9px;
}

@media (prefers-color-scheme: light) {
  .hc-card {
    background: rgba(255,255,255,.95);
    border-color: rgba(30,44,84,.12);
  }
  .hc-card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(246,248,255,.98));
    border-color: rgba(98,90,225,.42);
    box-shadow: 0 18px 40px rgba(28,42,78,.12), 0 0 26px rgba(123,110,246,.14);
    transform: translateY(-5px) rotateX(2.5deg) scale(1.01);
  }
  .hc-cat {
    background: rgba(90,76,235,.12);
    border-color: rgba(90,76,235,.28);
    color: #312e81;
  }
  .hc-track-container::before {
    border-color: rgba(28,42,78,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.45));
  }
}

.hc-name {
  font-family: var(--fd);
  font-size: clamp(1.12rem, 1.1vw + 1rem, 1.38rem);
  font-weight: 700;
  color: var(--tp);
  margin-top: 4px;
}

.hc-desc {
  font-size: clamp(.84rem, .35vw + .78rem, .95rem);
  color: var(--ts);
  line-height: 1.62;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.hc-price {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--tp);
}

.hc-price span {
  font-size: .76rem;
  font-weight: 400;
  color: var(--tm);
}

/* Hero Navigation */
.hc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  /* Align with .wrap horizontal gutter (14px) */
  padding: 0 14px;
}

.hc-dots {
  display: flex;
  gap: 8px;
}

.hc-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--bd);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}

.hc-dot.active {
  width: 28px;
  background: var(--a1);
}

.hc-arrows {
  display: flex;
  gap: 10px;
}

.hc-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gc);
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ts);
  transition: all .25s;
}

.hc-arrow:hover {
  border-color: var(--a1);
  color: var(--a1);
  background: rgba(123,110,246,.1);
}

.hc-arrow svg {
  width: 18px;
  height: 18px;
}

/* Mobile - 1 item per slide */
@media(max-width: 600px) {
  .hero-wrap {
    padding: 70px 10px 8px;
  }
  .hc-nav {
    padding: 0 10px;
  }
  
  .hc-track {
    gap: 0;
  }
  
  .hc-slide {
    gap: 0;
    flex-direction: row;
  }
  
  .hc-card {
    flex: 0 0 100%; /* On mobile, each card takes full width */
    min-width: 100%;
    padding: 20px;
  }
  
  .hc-img {
    padding: 4px;
  }
  
  .hc-name {
    font-size: clamp(1.05rem, 2.5vw + .85rem, 1.2rem);
  }
  
  .hc-price {
    font-size: 1.35rem;
  }
  
  .hc-desc {
    font-size: clamp(.8rem, 1.2vw + .74rem, .9rem);
  }
  
  .hc-cat {
    font-size: clamp(.62rem, .8vw + .55rem, .68rem);
  }
  
  .hc-arrow {
    width: 34px;
    height: 34px;
  }
  
  .hc-arrow svg {
    width: 15px;
    height: 15px;
  }
}

/* Small mobile */
@media(max-width: 480px) {
  .hc-card {
    padding: 16px;
  }
  
  .hc-name {
    font-size: 1.02rem;
  }
  
  .hc-price {
    font-size: 1.22rem;
  }
  
  .hc-desc {
    font-size: clamp(.78rem, 1vw + .72rem, .86rem);
  }
  
  .hc-dots {
    gap: 6px;
  }
  
  .hc-dot {
    width: 6px;
    height: 6px;
  }
  
  .hc-dot.active {
    width: 20px;
  }
}