/* ============================================================
   flagship-* namespace — Flagship shoe feature.
   One large, fully-rounded image with the shoe description and a
   "Shop Now" CTA overlaid directly on it, followed by a single
   product card (identical markup/classes to the rest of the shop
   grid) so it's wired into the site's existing add-to-cart cart
   system automatically — no extra JS required.
============================================================ */

.flagship-section {
  padding: clamp(3rem, 7vw, 5.5rem) 1rem;
  background: var(--darker-bg, #0f0f0f);
}

.flagship-visual {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), var(--shadow-orange, 0 4px 20px rgba(255, 102, 0, 0.3));
  min-height: clamp(420px, 62vw, 640px);
  display: flex;
  align-items: flex-end;
}

.flagship-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}

.flagship-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(10, 10, 10, 0.92) 0%,
      rgba(10, 10, 10, 0.55) 38%,
      rgba(10, 10, 10, 0.08) 68%,
      rgba(10, 10, 10, 0) 100%
    );
}

.flagship-info {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.flagship-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 149, 0, 0.4);
  border-radius: 20px;
  font-family: "Tektur", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-orange, #ff9500);
}

.flagship-title {
  font-family: "Tektur", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: whitesmoke;
  margin: 0;
}

.flagship-description {
  font-family: Arial, sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.82);
  max-width: 46ch;
  margin: 0;
}

.flagship-cta {
  margin-top: 0.5rem;
}

/* ---- Product card underneath ----
   Reuses the site's existing .product-card markup/classes exactly
   (so add-to-cart / checkout wiring in script.js needs zero changes),
   but on tablet and desktop it gets a distinct "flagship" treatment:
   dark background matching the section instead of white, a wide
   horizontal layout instead of the narrow grid-card shape, and the
   site's orange accents carried through on price/brand/rating.

   On mobile (<=475px) the layout stays the same wide horizontal
   shape (image left, content right) so the shoe is always visible —
   only the color treatment (white vs. dark) differs by breakpoint.
*/
.flagship-product-card {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* Layout: horizontal image+content split, applies at every size
   including mobile, so the shoe photo is never hidden or stacked
   away below the fold. */
.flagship-product-card .product-card {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.flagship-product-card .product-card:hover {
  transform: translateY(-6px);
}

.flagship-product-card .product-image-wrapper {
  flex: 0 0 46%;
  max-width: 46%;
}

.flagship-product-card .product-image {
  height: 100%;
}

.flagship-product-card .product-content {
  flex: 1;
  min-width: 0; /* let text truncate/wrap instead of forcing the image thinner */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.75rem);
}

/* Card shell removed: sits transparent over the section's dark
   background, same as the shop-grid floating cards. Layout (image
   left / content right) and its breakpoint overrides are untouched. */
.flagship-product-card .product-card {
  background: none;
  border: none;
  box-shadow: none;
}

.flagship-product-card .product-card:hover {
  border: none;
  box-shadow: none;
}

/* ---- Floating shoe treatment ----
   Same idea as the shop grid: the shoe image is a transparent-
   background cutout, so instead of filling the left half as a
   cropped photo it floats centered in that space over a soft
   ground shadow, at a consistent scale. The card keeps its dark
   panel/border/shadow and the left-image/right-content split -
   only how the image itself sits inside its half changes. */
.flagship-product-card .product-image-wrapper {
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.flagship-product-card .product-image {
  height: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flagship-product-card .product-image::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 64%;
  height: 14%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 72%);
  border-radius: 50%;
  z-index: 0;
  transition: var(--transition, 0.3s ease);
}

.flagship-product-card .product-card:hover .product-image::before {
  width: 56%;
  opacity: 0.75;
}

.flagship-product-card .product-image img {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.45s ease, filter 0.45s ease;
}

.flagship-product-card .product-card:hover .product-image img {
  transform: translateY(-10px) scale(1.04);
  filter: drop-shadow(0 28px 22px rgba(0, 0, 0, 0.55));
}

/* Overlay becomes a popup pill anchored under the floating shoe
   instead of a bottom scrim across the whole image half. Fades in
   on hover, sliding in from the right (fades left into place). */
.flagship-product-card .product-overlay {
  position: absolute;
  bottom: 8px;
  left: 50%;
  right: auto;
  top: auto;
  opacity: 0;
  transform: translate(calc(-50% + 24px), 0);
  padding: 0;
  background: none;
  z-index: 2;
}

.flagship-product-card .product-card:hover .product-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}

.flagship-product-card .product-overlay .add-to-cart {
  width: auto;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.flagship-product-card .product-content h3 {
  color: whitesmoke;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

.flagship-product-card .category {
  color: rgba(245, 245, 245, 0.55);
}

.flagship-product-card .product-footer {
  border-top: 1px solid rgba(255, 149, 0, 0.18);
}

.flagship-product-card .product-price {
  color: var(--secondary-orange, #ff9500);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}


/* At narrow mobile widths, give the image a bit less width so the
   text column doesn't get crushed to nothing, while keeping the
   shoe fully visible via object-fit: cover on .product-image img
   (already set site-wide). */
@media (max-width: 475px) {
  .flagship-product-card .product-image-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .flagship-product-card .product-content {
    padding: 1rem;
  }

  .flagship-product-card .product-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .flagship-product-card .product-price {
    font-size: 1.1rem;
  }

  .flagship-product-card .category {
    font-size: 10px;
  }
}

@media (max-width: 1080px) {
  .flagship-visual {
    min-height: clamp(380px, 70vw, 560px);
  }
}

@media (max-width: 475px) {
  .flagship-visual {
    border-radius: 20px;
    min-height: clamp(340px, 88vw, 480px);
  }

  .flagship-info {
    padding: 1.25rem;
    gap: 0.6rem;
  }

  .flagship-title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .flagship-description {
    font-size: 0.9rem;
    max-width: 38ch;
  }
}

@media (max-width: 360px) {
  .flagship-visual {
    border-radius: 16px;
    min-height: 320px;
  }

  .flagship-info {
    padding: 1rem;
  }

  .flagship-title {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }

  .flagship-description {
    font-size: 0.85rem;
    max-width: 32ch;
  }

  .flagship-tag {
    font-size: 0.68rem;
    padding: 0.35rem 0.8rem;
  }
}
