/* Featured FAQ: mimic modal styling */
.product-card--featured .faq-question{
  font-family:"askwhy";
  font-size:1.25em;
  padding:.5em;
  color:white;
  background:#293b54;
  margin: 0rem;
  text-align: center;
  font-style:italic;
  border-radius: 10px 10px 0 0;
}

.product-card--featured .faq-answer{
  font-family:"askwhy";
  font-size:.95rem;
  color:#121524;
  background:white;
  padding:.5em;
  text-align: center;
  line-height:1.4;
  margin:0 0 1rem 0 !important;
  border-radius: 0 0 10px 10px;
}

/* =========================
   PRODUCTS GRID — CLEAN
   ========================= */

/* knobs */
:root{
  --card-w: 300px;  /* desktop fixed card width */
  --gap: 18px;      /* spacing */
}

/* group wrapper */
.product-grid-group{
  margin: 0 auto;
  width: 100%;
}

.product-grid-group + .product-grid-group{
  border-top: .75px dashed white;
  margin-top: 1rem;
  padding-top: 1rem;
}

/* titles */
.product-grid-title{
  margin: .5rem;
  text-align: center;
  font-family: "cartwright";
  color: var(--text);
  font-size: 2rem;
}

@media (min-width: 1200px){
  .product-grid-title{
    font-size: 4rem;
    margin: 1rem auto;
  }
}

/* page wrapper */
.products_wrapper{
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: .5rem !important;
}

/* your animated header */
.products_wrapper h2{
  font-family: "loubag";
  background: transparent;
  color: var(--text);
  padding: .25rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: normal;

  background: linear-gradient(
    90deg,
    #121524,
    #384c65,
    #485f88,
    #9daccc,
    #485f88,
    #384c65,
    #121524
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveGradient 4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes waveGradient {
  0%   { background-position: 0% 50%; transform: translateY(0); }
  50%  { background-position: 100% 50%; transform: translateY(-5px); }
  100% { background-position: 0% 50%; transform: translateY(0); }
}

@media (min-width: 1200px){
  :root{ --card-w: 450px; --gap: 24px; }
  .products_wrapper h2{ font-size: 2rem; }
}

/* =========================
   GRID LAYOUT
   ========================= */

/* mobile: 1-up grid */
.product-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin: 1em auto;
  padding: 0;
  justify-content: center;
  align-items: start;
}

/* tablet: fluid grid */
@media (min-width: 700px){
  .product-grid{
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 1500px;
    padding: 0 1rem;
  }
}

/* desktop: flex cards (your original behavior) */
@media (min-width: 1200px){
  .product-grid{
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    justify-content: center;

    /* keep your cap */
    max-width: calc(var(--card-w) * 4 + var(--gap) * 3);

    margin: 1em auto;
    padding: 2rem !important;
  }

  .product-card{
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    margin: 0;
  }
}

/* =========================
   CARD
   ========================= */

.product-card{
  background: var(--product-card) !important;
  border-radius: 12px;
  color: var(--text) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;

  display: flex;
  flex-direction: column;
  align-items: center;

  line-height: 1 !important;
  margin: 0;
  padding: .75rem;
  width: 100%;
  box-sizing: border-box;
}

.product-card:hover{
  transform: scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}

/* =========================
   CAROUSEL (FIXED)
   One slide visible, no side-by-side tiny images
   ========================= */

.carousel{
  width: 100%;
  position: relative;
  overflow: hidden;

  /* CRITICAL: not flex */
  display: block;

  background: #121524;
  border-radius: 12px;
  margin: 0 auto;
  padding: 0;
}



.carousel .carousel-slide{
  display: none;
  width: 100%;
  height: 100%;
}

.carousel .carousel-slide.active{
  display: block;
}

.carousel .carousel-slide img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* arrows */
.carousel button{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #121524;
  color: white;
  border: none;
  font-size: 1.25rem;
  padding: .15em .6em;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease;
}

.carousel .prev-btn{ left: 10px; }
.carousel .next-btn{ right: 10px; }

/* =========================
   INFO
   ========================= */

.product-info .price{
  font-weight: normal;
  color: #b4c5db;
  margin: 0 auto;
  font-family: "loubag";
  font-size: 1rem;
}

.product-info .desc{
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1em;
  font-family: "seawashed";
  line-height: 1;
}

@media (min-width: 1200px){
  .product-info .price{
    font-size: 1.25rem;
    letter-spacing: .15rem;
  }

  .product-info .desc{
    font-size: 1.25rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .product-info .desc::-webkit-scrollbar{
    width: 0;
    height: 0;
    display: none;
  }
}

/* =========================
   ACTIONS / BUTTONS
   ========================= */

.product-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
}

.product-actions button{
  background: #293b54;
  color: white;
  padding: .6em 1.1em;
  border: none;
  border-radius: 999px;
  font-family: "loubag", sans-serif;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,.2);
}

.product-actions button:hover{
  background: #627b9d;
  transform: scale(1.05);
}

.product-actions button:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(160,196,255,.4);
}

/* =========================
   FEATURED PRODUCT (ID 61)
   Big hero carousel (clean, no conflicts)
   ========================= */

/* full row in desktop flex */
@media (min-width: 1200px){
  .product-grid .product-card.product-card--featured{
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
  }
}

/* 2-column layout */
.product-card--featured{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: 22px;
}

/* IMPORTANT: prevent grid children from overflowing */
.product-card--featured > *{ min-width: 0; }

@media (min-width: 900px){
  .product-card--featured{
    grid-template-columns: 1fr 1.35fr; /* give media more room */
  }
}

/* HERO carousel sizing */
.product-card--featured .carousel{
  border-radius: 18px;
  overflow: hidden;
  height: 420px;           /* <-- make it BIG */
}

@media (max-width: 900px){
  .product-card--featured .carousel{ height: 350px; }
}

/* keep your base carousel behavior (hide/show) intact */
.product-card--featured .carousel .carousel-slide{
  display: none;
  width: 100%;
  height: 100%;
}
.product-card--featured .carousel .carousel-slide.active{
  display: block;
}

/* hero images */
.product-card--featured .carousel .carousel-slide img{
  width: 100%;
  height: 100%;
  
  display: block;
  object-fit: contain;       /* <-- put it on the IMG */
}

/* featured info spacing */
.featured-info{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-desc{
  overflow: auto;
  scrollbar-width: none !important;
}

/* featured carousel: no arrow buttons */
.carousel--featured .prev-btn,
.carousel--featured .next-btn{
  display: none !important;
}

/* smooth crossfade for featured carousel */
.carousel--featured{
  position: relative;
}

.carousel--featured .carousel-slide{
  display: block;              /* don't use display:none for fading */
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease; /* fade speed */
  pointer-events: none;
}

.carousel--featured .carousel-slide.active{
  opacity: 1;
  pointer-events: auto;
}

/* keep your image sizing rules (contain vs cover) */
.carousel--featured .carousel-slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;       /* or cover if you ever want fill/crop */
  background: #121524;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .carousel--featured .carousel-slide{ transition: none; }
}

/* Big hero on top */
.product-card--featured .featured-hero{
  width: 100%;
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: #121524;
  margin-bottom: 1rem;
}

@media (max-width: 900px){
  .product-card--featured .featured-hero{ height: 280px; }
}

.product-card--featured .featured-hero img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #121524;
}

/* FAQ spacing before the row */
.product-card--featured .featured-faq{
  margin-bottom: 1.25rem;
}

/* Row with TWO carousels side-by-side */
.product-card--featured .featured-media-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 900px){
  .product-card--featured .featured-media-row{
    grid-template-columns: 1fr;
  }
}

/* Same size boxes for both carousels */
.product-card--featured .carousel--featured-mini,
.product-card--featured .carousel--examples{
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #121524;
  position: relative;
}

@media (max-width: 900px){
  .product-card--featured .carousel--featured-mini,
  .product-card--featured .carousel--examples{
    height: 220px;
  }
}

/* Crossfade slides (for both) */
.product-card--featured .carousel--featured-mini .carousel-slide,
.product-card--featured .carousel--examples .carousel-slide{
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.product-card--featured .carousel--featured-mini .carousel-slide.active,
.product-card--featured .carousel--examples .carousel-slide.active{
  opacity: 1;
  pointer-events: auto;
}

.product-card--featured .carousel--featured-mini img,
.product-card--featured .carousel--examples img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #121524;
}

@media (prefers-reduced-motion: reduce){
  .product-card--featured .carousel--featured-mini .carousel-slide,
  .product-card--featured .carousel--examples .carousel-slide{
    transition: none;
  }
}

