﻿/* ==========================================================================
   House of Serene — home page sections, Kalles "index.html" demo
   (Theme\kalles-template\index.html). Markup: Views/Home/Index.cshtml (kh-* classes).
   Slideshow and product-card styles stay in libaas-kalles.css.
   ========================================================================== */

.kh-section { padding-block: 70px 0; }
.kh-section--tight { padding-block: 14px 0; }
.kh-section:last-of-type { padding-bottom: 70px; }
.kh-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 15px; }
.kh-container--narrow { max-width: 1120px; }
@media (min-width: 1440px) { .kh-container { max-width: 1250px; } }

/* Section heading: plain centred title + grey line (index.html _heading_section) */
.kh-heading { margin-bottom: 40px; text-align: center; }
.kh-heading h2 { margin: 0; font: 500 36px/1 var(--font-sans); color: var(--dark); letter-spacing: 0; }
.kh-heading p { margin: 10px 0 0; font-size: 14px; color: var(--mid, #696969); }
@media (max-width: 767px) {
  .kh-section { padding-block: 50px 0; }
  .kh-heading { margin-bottom: 24px; }
  .kh-heading h2 { font-size: 28px; }
}

/* ── Promo strip (black bar under the slideshow) ───────────────────────────── */
.kh-promo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 60px;
  min-height: 116px; padding: 20px 30px; background: #000; color: #fff; text-decoration: none;
}
.kh-promo-strip__msg { display: inline-flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 500; }
.kh-promo-strip__msg svg { color: #e24c4c; flex: 0 0 auto; }
.kh-promo-strip__big { display: inline-flex; align-items: center; gap: 8px; color: #e24c4c; font-size: 50px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.kh-promo-strip__big small { font-size: 15px; font-weight: 600; line-height: 1; text-align: left; }
.kh-promo-strip__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 134px; min-height: 40px; padding: 0 26px;
  background: #fff; color: var(--dark); font-size: 14px; text-transform: uppercase; transition: background-color .25s, color .25s;
}
.kh-promo-strip:hover .kh-promo-strip__btn { background: var(--accent); color: #fff; }
@media (max-width: 767px) {
  .kh-promo-strip { gap: 10px 20px; min-height: 0; padding: 18px 20px; }
  .kh-promo-strip__msg { font-size: 16px; }
  .kh-promo-strip__big { font-size: 32px; }
}

/* ── Photo tiles: "Shop" (italic serif) over a big uppercase name, bottom-left ─ */
.kh-tile { position: relative; display: block; overflow: hidden; background: var(--bg-subtle); text-decoration: none; }
.kh-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.kh-tile:hover img { transform: scale(1.08); }
.kh-tile::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .25)); pointer-events: none; }
.kh-tile__label { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; color: #fff; line-height: 1.1; }
.kh-tile__label em { font: italic 400 22px/1.2 var(--font-accent); }
.kh-tile__label b { font-size: 25px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; }
.kh-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kh-tiles--1 { grid-template-columns: 1fr; } .kh-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.kh-tiles .kh-tile { aspect-ratio: 395 / 470; }
.kh-masonry { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 270px); gap: 14px; }
.kh-masonry .kh-tile--large { grid-row: span 2; }
.kh-masonry--3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1023px) { .kh-masonry { grid-template-rows: repeat(2, 200px); } .kh-tile__label b { font-size: 20px; } .kh-tile__label em { font-size: 18px; } }
@media (max-width: 767px) {
  .kh-tiles { grid-template-columns: 1fr; gap: 10px; }
  /* Keep the desktop portrait ratio so product photos aren't cropped to a landscape strip. */
  .kh-tiles .kh-tile { aspect-ratio: 395 / 470; }
  .kh-masonry, .kh-masonry--3 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .kh-masonry .kh-tile { aspect-ratio: 3 / 4; }
  .kh-masonry .kh-tile--large { grid-column: span 2; grid-row: auto; aspect-ratio: 395 / 470; }
  .kh-tile img { object-position: center top; }
  /* Promo strip: full width and flush against the slideshow above it. */
  .kh-section--strip .kh-container.kh-container--full { padding-inline: 0; }
}

/* ── Product carousel (hdt-slider) ─────────────────────────────────────────── */
.kh-carousel { padding-inline: 10px; }
.kh-carousel .hdt-slider__viewport { overflow: hidden; }
.kh-carousel .hdt-slider__container { display: flex; gap: 0; }
.kh-carousel .hdt-slider__slide { flex: 0 0 calc(100% / 6); min-width: 0; padding-inline: 7px; }
@media (max-width: 1439px) { .kh-carousel .hdt-slider__slide { flex-basis: 20%; } }
@media (max-width: 1149px) { .kh-carousel .hdt-slider__slide { flex-basis: calc(100% / 3); } }
@media (max-width: 767px)  { .kh-carousel .hdt-slider__slide { flex-basis: 50%; padding-inline: 5px; } }
.kh-carousel__nav { position: absolute; inset: 0 0 auto; top: calc(50% - 60px); z-index: 3; pointer-events: none; }
.kh-carousel__nav .hdt-slider__button {
  position: absolute; top: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--dark); box-shadow: 0 0 5px rgba(0, 0, 0, .12);
  cursor: pointer; pointer-events: auto; transition: background-color .25s, color .25s, opacity .25s;
}
.kh-carousel__nav .hdt-slider__button:hover { background: var(--dark); color: #fff; }
.kh-carousel__nav .hdt-slider__button[disabled] { opacity: .35; cursor: default; }
.kh-carousel__nav .hdt-slider__button--prev { left: calc(100% / 6 - 20px); }
.kh-carousel__nav .hdt-slider__button--next { right: calc(100% / 6 - 20px); }
@media (max-width: 1439px) { .kh-carousel__nav .hdt-slider__button--prev { left: calc(20% - 20px); } .kh-carousel__nav .hdt-slider__button--next { right: calc(20% - 20px); } }
@media (max-width: 1149px) { .kh-carousel__nav .hdt-slider__button--prev { left: 18px; } .kh-carousel__nav .hdt-slider__button--next { right: 18px; } }
@media (max-width: 767px) { .kh-carousel__nav { display: none; } }
/* index.html "New In Products": slides-5 (lg) / 3 (md) / 2 (mobile) plus a faded half-slide peeking at each
   edge (hdt-opacity-out-container). --slide-w is the slide pitch as a share of the carousel width. */
.kh-carousel--peek { --slide-w: 16.8%; --slides: 5; padding-inline: 0; overflow: hidden; }
.kh-carousel--peek .hdt-slider__slide { flex-basis: var(--slide-w); padding-inline: 9px; }
.kh-carousel--peek::before, .kh-carousel--peek::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(var(--slide-w) / 2); background: rgba(255, 255, 255, .4); pointer-events: none; z-index: 2; }
.kh-carousel--peek::before { left: 0; }
.kh-carousel--peek::after { right: 0; }
.kh-carousel--peek .kh-carousel__nav .hdt-slider__button--prev { left: calc((100% - var(--slides) * var(--slide-w)) / 2 - 20px); }
.kh-carousel--peek .kh-carousel__nav .hdt-slider__button--next { right: calc((100% - var(--slides) * var(--slide-w)) / 2 - 20px); }
@media (max-width: 1149px) { .kh-carousel--peek { --slide-w: 28%; --slides: 3; } }
@media (max-width: 767px)  { .kh-carousel--peek { --slide-w: 42%; --slides: 2; } .kh-carousel--peek .hdt-slider__slide { padding-inline: 5px; } }
.kh-carousel__dots { display: none; justify-content: center; gap: 10px; margin-top: 24px; }
.kh-carousel__dots .hdt-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d8d8d8; cursor: pointer; }
.kh-carousel__dots .hdt-slider__dot--selected { background: var(--dark); }
@media (max-width: 767px) { .kh-carousel .kh-carousel__dots { display: flex; } }

/* ── Two wide banners ──────────────────────────────────────────────────────── */
.kh-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.kh-wide--1 { grid-template-columns: 1fr; }
.kh-wide__item { position: relative; display: block; overflow: hidden; aspect-ratio: 605 / 330; text-decoration: none; }
.kh-wide__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.kh-wide__item:hover img { transform: scale(1.06); }
.kh-wide__item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .15); }
.kh-wide__text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center; padding: 20px; }
.kh-wide__text b { font-size: 30px; font-weight: 500; text-transform: uppercase; line-height: 1.2; }
.kh-wide__text span { font-size: 16px; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
@media (max-width: 767px) { .kh-wide { grid-template-columns: 1fr; } .kh-wide__text b { font-size: 22px; } }

/* ── Tilted marquee (index.html sections/marquee, "effect-rotate") ───────────
   Template: .hdt-marquee { --width-marquee: 300%; position:absolute; left: -100%;
   transform: rotate(-4deg); } inside an overflow-x:clip section. */
.kh-marquee-wrap { position: relative; overflow-x: clip; height: 150px; margin-block: 60px 20px; }
.kh-marquee.hdt-marquee {
  --width-marquee: 300%;
  position: absolute; top: 50%; left: calc((var(--width-marquee) - 100%) / 2 * -1);
  display: block; width: var(--width-marquee); margin-top: -38px;
  background: #222; color: #fff; transform: rotate(-4deg);
}
.kh-marquee .hdt-marquee-inner { column-gap: 0; }
.kh-marquee .hdt-marquee-item { display: inline-flex; align-items: center; }
.kh-marquee__small, .kh-marquee__big { display: inline-flex; align-items: center; padding-inline: 15px; white-space: nowrap; line-height: 1.7; }
.kh-marquee__small { font-size: 16px; font-weight: 500; }
.kh-marquee__big { font-size: 36px; font-weight: 400; line-height: 76px; }
@media (max-width: 767px) {
  .kh-marquee-wrap { height: 100px; margin-block: 40px 10px; }
  .kh-marquee.hdt-marquee { margin-top: -25px; }
  .kh-marquee__small { font-size: 13px; }
  .kh-marquee__big { font-size: 22px; line-height: 50px; }
}
/* ── Product grid (5 per row, like "Hot Products") ─────────────────────────── */
.kh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 20px; }
@media (max-width: 1149px) { .kh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .kh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; } }
.kh-more { margin-top: 40px; text-align: center; }
.kh-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 44px; padding: 0 30px;
  border: 1px solid var(--dark); color: var(--dark); font-size: 14px; text-decoration: none; transition: background-color .25s, color .25s;
}
.kh-btn-outline:hover { background: var(--dark); color: #fff; }

/* ── Testimonials: photo left, grey panel with a white quote card right ────── */
.kh-testi { display: grid; grid-template-columns: 58fr 42fr; min-height: 480px; }
.kh-testi__media { position: relative; overflow: hidden; background: var(--bg-subtle); }
.kh-testi__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kh-testi__panel { display: flex; align-items: center; padding: 50px 25px; background: #ebebeb; }
.kh-testi__slider { width: 100%; }
.kh-testi__slider .hdt-slider__viewport { overflow: hidden; }
.kh-testi__slider .hdt-slider__container { display: flex; }
.kh-testi__card { flex: 0 0 100%; min-width: 0; margin: 0; padding: 30px 35px; background: #fff; text-align: center; }
.kh-testi__card blockquote { margin: 0 0 22px; font-size: 14px; line-height: 1.7; color: var(--dark-mid, #383838); }
.kh-testi__avatar { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; }
.kh-testi__card figcaption { font-size: 16px; font-weight: 500; color: var(--dark); }
.kh-testi__card small { display: block; margin-top: 2px; font-size: 13px; color: var(--light, #878787); }
.kh-testi .kh-carousel__dots { display: flex; margin-top: 20px; }
@media (max-width: 767px) {
  .kh-testi { grid-template-columns: 1fr; }
  .kh-testi__media { aspect-ratio: 4 / 3; }
  .kh-testi__panel { padding: 30px 15px; }
}

/* ── Instagram shoppable ───────────────────────────────────────────────────── */
.kh-insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kh-insta a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.kh-insta img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.kh-insta a:hover img { transform: scale(1.08); }
.kh-insta__dot { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .45); }
.kh-insta__dot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #e24c4c; }
@media (max-width: 767px) { .kh-insta { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ── Shipping bar: four centred blocks ─────────────────────────────────────── */
.kh-shipping { padding-block: 70px; }
.kh-shipping__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.kh-ship { text-align: center; }
.kh-ship svg { display: block; width: 30px; height: 30px; margin: 0 auto 12px; color: var(--dark); }
.kh-ship h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--dark); }
.kh-ship p { margin: 0; font-size: 13px; color: var(--mid, #696969); }
@media (max-width: 1023px) { .kh-shipping__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .kh-shipping__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   index.html full-width sections (custom_section promo strip, banners, masonry):
   hdt-container-full with 50px side padding (15px on phones), 20px gaps.
   ========================================================================== */
.kh-container.kh-container--full { max-width: none; padding-inline: 10px; }
.kh-section--tight { padding-block: 20px 0; }

/* Promo strip: black, 70px/20px padding, 30px message, UP TO + 70px orange figure. */
.kh-promo-strip { gap: 0; min-height: 0; padding: 18px 20px; }
.kh-promo-strip__msg { gap: 25px; font-size: 30px; font-weight: 500; line-height: 1.3; }
.kh-promo-strip__msg svg { width: 34px; height: 34px; color: #ef6a2f; }
.kh-promo-strip__big { gap: 19px; margin-left: 50px; color: #ef6a2f; font-size: clamp(35px, 4vw, 70px); font-weight: 700; line-height: 1; }
.kh-promo-strip__big small { font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 28px; }
.kh-promo-strip__btn { min-width: 200px; min-height: 60px; margin-left: 50px; padding: 0 30px; font-size: 16px; }

/* Collection tiles: fixed 700px tall, "Shop" 30px italic serif + 36px semibold name, 30px inset. */
.kh-tiles { gap: 20px; }
.kh-tiles .kh-tile { aspect-ratio: auto; height: 700px; }
.kh-tile::after { display: none; }
.kh-tile__label { left: 30px; bottom: 30px; gap: 6px; }
.kh-tile__label em { font-size: 30px; line-height: 30px; }
.kh-tile__label b { font-size: 36px; line-height: 1; font-weight: 600; }
.kh-masonry { gap: 20px; grid-template-rows: repeat(2, 340px); }
.kh-wide { gap: 20px; }

@media (max-width: 1150px) {
  .kh-container.kh-container--full { padding-inline: 10px; }
  .kh-promo-strip { flex-direction: column; gap: 14px; padding: 18px 20px; }
  .kh-promo-strip__big, .kh-promo-strip__btn { margin-left: 0; }
  .kh-tiles .kh-tile { height: 525px; }
  .kh-tiles { gap: 15px; }
  .kh-tile__label em { font-size: 22px; line-height: 1.1; }
  .kh-tile__label b { font-size: 28px; }
}
@media (max-width: 767px) {
  .kh-container.kh-container--full { padding-inline: 10px; }
  .kh-section--tight { padding-block: 15px 0; }
  .kh-promo-strip { padding: 18px 20px; gap: 10px; }
  .kh-promo-strip__msg { font-size: 16px; gap: 12px; }
  .kh-promo-strip__msg svg { width: 22px; height: 22px; }
  .kh-promo-strip__big { font-size: 35px; gap: 10px; }
  .kh-promo-strip__big small { font-size: 18px; line-height: 20px; }
  .kh-promo-strip__btn { min-width: 150px; min-height: 44px; font-size: 14px; }
  .kh-tiles { gap: 15px; }
  .kh-tiles .kh-tile { height: 300px; }
  .kh-tile__label { left: 20px; bottom: 20px; }
  .kh-tile__label em { font-size: 14px; }
  .kh-tile__label b { font-size: 22px; }
  .kh-masonry { gap: 15px; }
}
/* ==========================================================================
   Two wide banners — index.html sections/banners ("PARTY COLLECTIONS"):
   fixed 580px (435px tablet, 300px phone), no gap on desktop (15px below), no overlay,
   text bottom-centre 68px up (20px below 1150px; bottom-left on phones), 36px/24px title,
   20px underlined "shop the collection". Phones: a sideways-swipe row, 75% wide items.
   ========================================================================== */
.kh-wide { gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kh-wide--1 { grid-template-columns: minmax(0, 1fr); }
.kh-wide__item { aspect-ratio: auto; height: 580px; }
.kh-wide__item::after { display: none; }
.kh-wide__text { inset: auto 0 68px; justify-content: flex-end; gap: 0; padding: 0 20px; }
.kh-wide__text b { font-size: 36px; font-weight: 500; line-height: 1; text-transform: none; }
.kh-wide__text span { margin-top: 20px; padding-bottom: 4px; font-size: 20px; line-height: 25px; border-bottom-width: 2px; }
.kh-wide__item:hover .kh-wide__text span { opacity: .85; }
@media (max-width: 1150px) {
  .kh-wide { gap: 15px; }
  .kh-wide__item { height: 435px; }
  .kh-wide__text { bottom: 20px; }
  .kh-wide__text b { font-size: 28px; }
  .kh-wide__text span { margin-top: 14px; font-size: 17px; }
}
@media (max-width: 767px) {
  .kh-wide, .kh-wide--1 {
    display: grid; grid-auto-flow: column; grid-auto-columns: 75%; grid-template-columns: none; gap: 15px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .kh-wide--1 { grid-auto-columns: 100%; }
  .kh-wide::-webkit-scrollbar { display: none; }
  .kh-wide__item { height: 300px; scroll-snap-align: start; }
  .kh-wide__text { align-items: flex-start; text-align: left; padding: 0 20px; }
  .kh-wide__text b { font-size: 24px; }
  .kh-wide__text span { margin-top: 10px; font-size: 16px; }
}
.kh-wide__text b { text-transform: uppercase; }

/* index.html product cards (hdt-pr-style11, home only): price above the title, both small. */
.kh-grid .hdt-card-product__info, .kh-carousel .hdt-card-product__info { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.kh-grid .hdt-price-wrapp, .kh-carousel .hdt-price-wrapp { order: -1; }
.kh-grid .hdt-price__list, .kh-carousel .hdt-price__list { gap: 6px; font-size: 13px; color: #999; }
.kh-grid .hdt-price--sale, .kh-carousel .hdt-price--sale { color: #fe4b12; }
.kh-grid .hdt-compare-at-price, .kh-carousel .hdt-compare-at-price { order: -1; color: #999; }
.kh-grid .hdt-card-product__info h3, .kh-carousel .hdt-card-product__info h3 { margin: 0; }
.kh-grid .hdt-card-product__title, .kh-carousel .hdt-card-product__title { font-size: 14px; font-weight: 500; -webkit-line-clamp: 1; }
/* "LOAD MORE": square outline button, uppercase. */
.kh-more .kh-btn-outline { min-width: 108px; min-height: 34px; padding: 0 26px; border: 1px solid #222; border-radius: 0; font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.kh-more { margin-top: 36px; }
/* Photo dimming for readable white text — Kalles hdt-eff-overlay (theme.css: black ::before
   layer, opacity .3 on hover). Kept on permanently here at .3 so labels always read, a
   touch deeper on hover. Sits above the photo, below the text. */
.kh-tile::before, .kh-wide__item::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #000; opacity: .3; transition: opacity .25s ease;
}
.kh-tile:hover::before, .kh-wide__item:hover::before { opacity: .4; }
.kh-tile__label, .kh-wide__text { z-index: 2; }
/* Wide banners: show the whole photo. The template's fixed 580/435/300px height with
   object-fit:cover cropped CMS banners (heads/feet cut off); each banner now takes its
   photo's own aspect ratio at every breakpoint. The text overlay stays at the bottom. */
.kh-wide { align-items: start; }
.kh-wide__item, .kh-wide__item:hover { height: auto !important; aspect-ratio: auto; }
.kh-wide__item img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
@media (max-width: 767px) { .kh-wide__item { height: auto !important; } }
/* Phones (kept last so it wins over the demo-sized rules above): promo strip flush under the slideshow,
   photo tiles keep their portrait shape instead of a fixed 300px-high crop. */
@media (max-width: 767px) {
  .kh-section.kh-section--strip { padding-block: 0; }
  .kh-tiles .kh-tile { height: auto; aspect-ratio: 395 / 470; }
}
