/* =========================================================
   Halsnæs Fodterapi — Shoe Gallery Page
   Reuses design tokens (--navy-900, --clay-500, etc.) from style.css
   ========================================================= */

/* =========================================================
   Collection hero banner
   ========================================================= */
.shop-hero {
  position: relative;
  height: clamp(120px, 15vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-hero-2 {
  position: relative;
  height: clamp(120px, 10vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c21132;
}
.shop-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 35, 63, 0.35) 0%,
    rgba(22, 35, 63, 0.15) 45%,
    rgba(22, 35, 63, 0.45) 100%
  );
}
.shop-hero-content {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
}
.shop-hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   Product grid
   ========================================================= */
.shop-grid-section {
  padding: 4.5rem 1.5rem 6rem;
}
.shop-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

/* =========================================================
   Product card
   ========================================================= */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-info {
  padding-top: 1.2rem;
  text-align: center;
}
.product-info h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.3em;
}
.product-meta {
  color: var(--ink-600);
  font-size: 0.9rem;
  margin-bottom: 0.4em;
}
.product-price {
  color: var(--clay-600);
  font-weight: 700;
  font-size: 1rem;
}

/* =========================================================
   Carousel
   ========================================================= */
.product-carousel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-050);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition);
}
.product-carousel:hover {
  box-shadow: 0 20px 40px -18px rgba(22, 35, 63, 0.45);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  /* transform is set inline by JS: translateX(-N%) */
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* prevent native image drag interfering with swipe */
  user-select: none;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-900);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -8px rgba(22, 35, 63, 0.5);
  opacity: 0;
  transition:
    opacity var(--transition),
    background var(--transition),
    transform var(--transition);
  z-index: 2;
}
.product-carousel:hover .carousel-arrow,
.product-carousel:focus-within .carousel-arrow {
  opacity: 1;
}
.carousel-arrow:hover {
  background: var(--clay-500);
  color: var(--white);
}
.carousel-arrow--prev {
  left: 0.7rem;
}
.carousel-arrow--next {
  right: 0.7rem;
}

/* Dots */
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(22, 35, 63, 0.25);
  transition:
    background var(--transition),
    transform var(--transition);
}
.carousel-dot.is-active {
  background: var(--clay-500);
  transform: scale(1.25);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  .carousel-arrow {
    transition: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 2.5rem;
  }
  .shop-grid-section {
    padding: 3rem 1.25rem 4rem;
  }
  /* Arrows are always visible on touch devices since :hover isn't reliable */
  .carousel-arrow {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr); /* was: 1fr */
    max-width: none; /* was: 420px — no longer needed, grid fills width */
    gap: 1.5rem 1rem; /* was: 2.5rem — tighter for narrower cards */
  }
  .shop-grid-section {
    padding: 3rem 1.25rem 4rem;
  }
  .carousel-arrow {
    opacity: 1;
  }

  /* New: scale down text/controls so two narrow cards don't feel cramped */
  .product-info h2 {
    font-size: 1.05rem;
  }
  .product-meta,
  .product-price {
    font-size: 0.82rem;
  }
  .carousel-arrow {
    width: 30px;
    height: 30px;
  }
  .carousel-arrow--prev {
    left: 0.4rem;
  }
  .carousel-arrow--next {
    right: 0.4rem;
  }
  .carousel-dot {
    width: 5px;
    height: 5px;
  }
}

/* =========================================================
   About NewFeet — informational section
   ========================================================= */
.about-newfeet {
  background: var(--cream-050);
  padding: 5rem 1.5rem;
}
.about-newfeet-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}
.about-newfeet-media {
  margin: 0; /* add whatever you need, e.g. margin-bottom: 2rem on mobile */
}
.about-newfeet-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
}

.about-newfeet-text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 1.1rem;
}
.about-newfeet-text > p {
  color: var(--ink-600);
  margin-bottom: 2rem;
}

.about-newfeet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn--red {
  background: #c21132;
  box-shadow: 0 10px 24px -12px rgba(194, 17, 50, 0.55);
}
.btn--red:hover,
.btn--red:focus-visible {
  background: #a30e29;
  box-shadow: 0 14px 28px -12px rgba(194, 17, 50, 0.65);
}

/* Feature list */
.about-newfeet-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.5rem;
  margin-bottom: 2.2rem;
}
.about-newfeet-features li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--teal-600);
}
.about-newfeet-features h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 0.25em;
}
.about-newfeet-features p {
  color: var(--ink-600);
  font-size: 0.88rem;
  margin: 0;
}

/* "In-store only" callout */
.store-only-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--sky-050);
  border-left: 3px solid var(--clay-500);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2rem;
}
.store-only-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--clay-500);
  margin-top: 0.1rem;
}
.store-only-note strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.98rem;
  margin-bottom: 0.35em;
}
.store-only-note p {
  color: var(--ink-600);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 960px) {
  .about-newfeet-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-newfeet-media {
    order: -1;
  }
}

@media (max-width: 560px) {
  .about-newfeet {
    padding: 3.5rem 1.25rem;
  }
  .about-newfeet-features {
    grid-template-columns: 1fr;
  }
  .store-only-note {
    flex-direction: column;
  }
  .about-newfeet-media img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 6 / 5;
    object-fit: cover;
  }
}
