/*HERO CAROUSEL: container, track, slides, captions*/

/* Outer carousel box: positions children and hides overflow while sliding */
.carousel { position: relative; overflow: hidden; height: auto; background-color: #F2E8E5 }

/* Holds all slides in a row and animates left/right */
.carousel-track { display: flex; height: auto; transition: transform 500ms ease-in-out }

/* Individual slides takes full viewport width */
.slide { position: relative; min-width: 100%; height: auto }

/* Slide image: fills the slide width; keeps image contained without cropping */
.slide>img { width: 100%; height: 100%; object-fit: contain; display: block }

/* Text box on top of image: placed near bottom; padded; dark text */
.caption { position: absolute; bottom: 30%; max-width: 3000px; padding: 0 1rem; color: #000 }

@media (max-width: 767px) {
  .caption {
    bottom: 10%; /* move text lower (from 30% to 20%) */
  }
  .caption.center { /*for middle slide*/
    width: 90%;    /*increase width for small screens*/       
    max-width: none;      
}
}


/* Caption main heading */
.caption h1 { font-size: 3rem; font-weight: bold; margin: 0 0 .5rem 0; color: #000 }

/* Caption paragraph */
.caption p { margin: 0 0 1rem 0; color: #000 }

/* Left/center/right caption align + positioning helpers */
.caption.left { left: 5%; text-align: left }
.caption.center { left: 50%; transform: translateX(-50%); text-align: center }
.caption.right { right: 5%; text-align: right }

/* Carousel arrow buttons: centered vertically, transparent background */
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; place-items: center }

/* Remove default focus ring*/
.carousel-btn:focus { outline: none }
/* place buttons left/right*/
.prev { left: 12px }
.next { right: 12px }
/*Adjust the size of arrow icon */
.icon { width: 30px; height: 30px }

/* Dots under carousel: centered row of small circles; active one highlighted */
.indicators { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px }
.indicators button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d3c8c6; cursor: pointer }
.indicators button.active { background: #C49AA0 }

/* Call-to-action button style used in captions */
.btn-custom { display: inline-block; background: #C49AA0; color: #fff; border: none; padding: .75rem 1.25rem; font-weight: bold; font-size: 20px; border-radius: 6px; text-decoration: none }

@media (max-width: 767px) {
  .caption h1 {
    font-size: clamp(1.4rem, 6vw, 2rem);  /* smaller & fluid heading */
    margin-bottom: 0.4rem;
  }

  .caption p {
    font-size: clamp(0.85rem, 4vw, 1rem); /* smaller paragraph */
    margin-bottom: 0.8rem;
  }
  /* CALL TO ACTION BUTTON - REDUCED SIZE */
  .btn-custom {
    font-size: clamp(0.7rem, 3.5vw, 0.85rem);  /* smaller text */
    padding: 0.4rem 0.75rem;                   /* less padding */
    border-radius: 4px;                        /* slightly smaller corners */
    max-width: 160px;                          /* optional: limit width */
    display: inline-block;                     /* ensures max-width works */
    text-align: center;                        /* keep text centered */
  }
}

/*SECTIONS & GRID*/

/* Content section container: centered with max width and padding */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; }

/* Section titles */
.section h2 { font-weight: bold; text-align: center; margin: 0 0 1.5rem 0; font-size: 32px }

/* Simple 1-col grid on mobile*/
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem }
/* 3-col on tablet+ below */
@media (min-width:768px){ .grid-3 { grid-template-columns: repeat(3,1fr); gap: 1.25rem } }

/* Generic product card container: rounded, centered text, hover animation */
.card { background: #F9F3EC; border: none; border-radius: 10px; overflow: hidden; text-align: center; text-decoration: none; color: inherit; transition: transform 0.3s ease, box-shadow 0.3s ease; }

/* Square image variant: force 1:1 area and smooth image scaling on hover */
.card.square img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #fff; transition: transform 0.3s ease; }

/* Card body spacing + paragraph spacing */
.card .body { padding: 1rem }
.card .body p { margin: .25rem 0 }

/* Card hover lift + shadow */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
/* Slight image zoom on hover */
.card:hover img {
  transform: scale(1.05);
}

/* Keep this specific caption on ONE line everywhere */
#love-caption {
  white-space: nowrap;        /* never wrap */
}

/*MOBILE: caption text scales to fit small screens*/

@media (max-width: 767px){
  #love-caption{
    font-size: clamp(1.05rem, 5.4vw, 1.6rem);  /* auto-shrink on small screens */
    max-width: 92vw;                            /* don't exceed screen */
    overflow: hidden;                           /* avoid spillover */
    text-overflow: ellipsis;                    /* show … if still too long */
  }
}

/*HORIZONTAL PRODUCT STRIP */

/* Wrapper around arrows + scrollable row; uses CSS var for consistent spacing */
.row-wrap{
  --gap: 1rem;                  /* matches .row-scroll gap */
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
}

/* Scrollable row using CSS grid as a horizontal list; snap scrolling enabled */
.row-scroll{
  display: grid;
  grid-auto-flow: column; /*Place items left-to-right in a single row (auto-creates columns)*/
  gap: var(--gap); /*uses the custom variable --gap*/
  overflow-x: auto; /*If items wider than container, use horizontal scroll*/
  scroll-snap-type: x mandatory; /*Enable snap-scrolling horizontally: scrolling settles cleanly on snap points.*/
  padding: .25rem 0 1rem;
  /* mobile default ≈1 per view */
  grid-auto-columns: 80%;
}

/* Don’t show the scrollbar track for cleaner look*/
.row-scroll::-webkit-scrollbar { display: none; }

/* Desktop/tablet: exactly 3 visible cards */
@media (min-width: 768px){
  .row-scroll{
    grid-auto-columns: calc((100% - (2 * var(--gap))) / 3);
  }
}

/*CARDS INSIDE HORIZONTAL ROW*/

/* Each card snaps neatly to the start edge when scrolling */
.row-scroll .card{
  scroll-snap-align: start;
}

/* Images fill card width; keep aspect ratio and crop overflow nicely */
.row-scroll .card img{
  width: 100%;
  height: auto;       
  object-fit: cover;    /* fills by trimming top/bottom */
  display: block;
}

.row-scroll .card .card-body { padding: .6rem .6rem .9rem; }
.row-scroll .card .card-title{
  font-size: 1rem;             
  line-height: 1.25;
  margin: 0 0 .25rem 0;
  overflow: hidden; /*if the content is bigger than its box, cut off the extra*/
}
.row-scroll .card .card-text{
  font-size: .95rem;            
  line-height: 1.25;
  margin: 0;
}

/*HORIZONTAL ROW: PREV/NEXT BUTTONS*/

/* Circular arrow buttons*/
.hbtn{
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid #C49AA0;
  background: #fff; color: #C49AA0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.hbtn:disabled { opacity: .45; cursor: not-allowed; }

/*MOBILE: horizontal row shows exactly 1 card; hide arrows*/
@media (max-width: 767px){
  /* Only the track on mobile (hide arrows) */
  .row-wrap{
    grid-template-columns: 1fr;   /* [track] only */
  }
  .hbtn{ display: none; }

  /* Each card takes the full viewport width (with snap) */
  .row-scroll{
    grid-auto-columns: 100%;      /* 1 full-width card */
    scroll-padding-inline: 0;     /* snap to the very start */
  }
}