﻿/* ==========================================================================
   House of Serene — Kalles skin
   Loaded last (after wwwroot/kalles/css/* and theme/styles.min.css).

   The storefront logic, markup contracts and inner pages came from the Puraali
   codebase (Umino-style, token-driven styles.css). This file:
     1. re-points those tokens at the Kalles palette/typography so every inner
        page (listing, product, cart, checkout, account) picks up the Kalles look;
     2. restyles buttons to Kalles proportions (header/footer chrome: kalles-chrome.css);
     3. styles the lk-* glue classes used by the Kalles-markup home page and
        product card (Views/Home/Index.cshtml, Views/Home/_ProductCard.cshtml).

   NOTE: the vendored Kalles CSS assumed html{font-size:62.5%}; its rem values were
   scaled x0.625 on import so the whole site shares a normal 16px root.
   ========================================================================== */

:root {
  /* Kalles "Fashion Simple" scheme */
  --bg:           #ffffff;
  --bg-subtle:    #f6f6f8;
  --bg-warm:      #eeeeee;
  --dark:         #222222;
  --dark-mid:     #383838;
  --mid:         #696969;
  --light:        #878787;
  --accent:       #e0b252;   /* Kalles index.html accent (gold) */
  --accent-light: #ebc98a;
  --accent-dark:  #c9983a;
  --gold:         #e0b252;
  --gold-light:   #ebc98a;
  --gold-dark:    #c9983a;
  --navy:         #131728;   /* Kalles index.html button */
  --navy-hover:   #1e2540;
  --red:          #ec0101;   /* Kalles sale price */
  --red-light:    #fde0e4;
  --green:        #428445;
  --brand-gold:   #878787;
  --emerald:      #222222;
  --radius-sm:    0;
  --radius-md:    0;
  --radius-lg:    0;
  --radius-pill:  40px;
  --font-sans:    "Poppins", system-ui, sans-serif;
  --font-serif:   "Poppins", system-ui, sans-serif;
  --font-logo:    "Libre Baskerville", Georgia, serif;
  --font-accent:  "Libre Baskerville", Georgia, serif;
  --max-w:        1200px;
  --gutter:       15px;
}

/* Kalles base.css makes <body> a flex column; the Puraali page structure expects block flow. */
body { display: block; font-family: var(--font-sans); color: var(--dark); font-size: 14px; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); color: var(--dark); }
a { color: inherit; }

/* ── Buttons: Kalles pill, black → accent on hover ─────────────────────────── */
.btn, .ph-btn, .mc-btn, .lk-btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary, .ph-btn, .mc-btn--dark, .lk-btn { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover, .ph-btn:hover, .mc-btn--dark:hover, .lk-btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; }
.lk-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 34px; line-height: 1.2; text-decoration: none; }
.lk-btn--light { background: #fff; color: var(--dark); border-color: #fff; }
.lk-btn--outline, .btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); }
.lk-btn--outline:hover, .btn-outline:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], select, textarea { border-radius: 0; }

/* Header styles moved to kalles-chrome.css. */
.quick-bar { border-bottom: 1px solid var(--bg-warm); }

/* ── Product card (Kalles markup + lk glue) ────────────────────────────────── */
.pc.hdt-card-product { position: relative; }
.hdt-card-product__media { position: relative; background: var(--bg-subtle); }
.hdt-card-product__media-wrapp { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.hdt-card-product__media-wrapp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 1.2s ease; }
.hdt-card-product__media--hover { opacity: 0; }
.pc:hover .hdt-card-product__media--hover { opacity: 1; }
.pc:hover .hdt-card-product__media-wrapp img:only-child { transform: scale(1.06); }
.lk-card-ph { display: grid; place-items: center; position: absolute; inset: 0; padding: 12px; text-align: center; font-size: 13px; color: var(--light); }
.hdt-badge__wrapp { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
/* Kalles index.html badges: small rectangles top-left ("New" teal, "-14%" orange). */
.hdt-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 0; height: auto; padding: 3px 8px; border-radius: 0; font-size: 12px; font-weight: 500; line-height: 1.3; color: #fff; }
.hdt-badge--sale { background: #fe4b12; }
.hdt-badge--new { background: #01bad4; }
.hdt-pr-btns-group2 { position: absolute; top: 10px; right: 10px; z-index: 3; gap: 6px; }
.hdt-pr_btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--dark); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); opacity: 0; transform: translateX(8px); transition: opacity .3s ease, transform .3s ease, background-color .2s, color .2s; }
.pc:hover .hdt-pr_btn, .hdt-pr_btn:focus-visible, .hdt-pr_btn.is-active { opacity: 1; transform: none; }
.hdt-pr_btn:hover { background: var(--dark); color: #fff; }
.hdt-pr_btn.is-active svg, .hdt-pr_btn.active svg { fill: currentColor; }
.lk-card-atc { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translate(-50%, 10px); opacity: 0; min-width: 136px; padding: 10px 22px;
  border: 0; border-radius: var(--radius-pill); background: #fff; color: var(--dark); font: 500 13px/1.2 var(--font-sans); cursor: pointer;
  transition: opacity .3s ease, transform .3s ease, background-color .2s, color .2s; }
.pc:hover .lk-card-atc, .lk-card-atc:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.lk-card-atc:hover { background: var(--dark); color: #fff; }
@media (hover: none) { .hdt-pr_btn { opacity: 1; transform: none; } .lk-card-atc { display: none; } }
/* Kalles "style 11" (index.html): rounded badge top-left, rounded-square icon column top-right,
   full-width Quick Add bar along the bottom. Beats the circle/pill defaults above. */
.hdt-pr-style11 .hdt-badge__wrapp { top: 15px; left: 15px; right: auto; gap: 8px; align-items: flex-start; }
.hdt-pr-style11 .hdt-badge { padding: 3px 10px; border-radius: 3px; font-size: 13px; }
.hdt-pr-style11 .hdt-pr-btns-group2 { top: 15px; right: 10px; left: auto; bottom: auto; width: auto; gap: 7px; }
.hdt-pr-style11 .hdt-pr_btn { border-radius: 4px; box-shadow: none; }
.pc.hdt-pr-style11 .lk-card-atc { left: 15px; right: 15px; bottom: 15px; width: auto; min-width: 0; height: 40px; padding: 5px 15px; border-radius: 4px; font-size: 14px; transform: translateY(10px); }
.pc.hdt-pr-style11:hover .lk-card-atc, .pc.hdt-pr-style11 .lk-card-atc:focus-visible { transform: none; }
@media (hover: none) and (min-width: 768px) { .pc.hdt-pr-style11 .lk-card-atc { display: block; opacity: 1; transform: none; } }
/* Phones: no Quick Add bar on the cards; the eye icon still opens the quick view. */
@media (max-width: 767px) { .pc.hdt-pr-style11 .lk-card-atc { display: none; } }
@media (max-width: 767px) {
  .hdt-pr-style11 .hdt-badge { padding: 3px 12px; font-size: 14px; }
  .hdt-pr-style11 .hdt-badge__wrapp, .hdt-pr-style11 .hdt-pr-btns-group2 { top: 10px; }
  .hdt-pr-style11 .hdt-badge__wrapp { left: 10px; }
  .pc.hdt-pr-style11 .lk-card-atc { left: 10px; right: 10px; bottom: 10px; }
}
.hdt-card-product__info { padding-top: 14px; }
.hdt-card-product__info h3 { margin: 0 0 4px; font-size: inherit; }
.hdt-card-product__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 500; color: var(--dark); text-decoration: none; }
.hdt-card-product__title:hover { color: var(--accent); }
.hdt-price__list { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--light); }
.hdt-price--sale { color: var(--red); }
.hdt-compare-at-price { color: var(--light); }

/* ── Home sections ─────────────────────────────────────────────────────────── */
.hdt-container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.lk-section { padding-block: 50px 10px; }
.lk-section--tint { background: var(--bg-subtle); padding-block: 60px; margin-top: 40px; }
.lk-heading { margin-bottom: 30px; }
.lk-heading h2 { position: relative; display: inline-flex; align-items: center; gap: 18px; margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.lk-heading h2::before, .lk-heading h2::after { content: ""; width: 30px; height: 2px; background: var(--dark); }
.lk-heading p { margin: 6px 0 0; font-family: var(--font-accent); font-size: 14px; color: var(--light); }
.lk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1023px) { .lk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 639px)  { .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.lk-more { margin-top: 36px; }

/* Slideshow */
.lk-hero .hdt-slider__viewport { overflow: hidden; }
.lk-hero .hdt-slider__container { display: flex; }
.lk-hero .hdt-slider__slide { position: relative; flex: 0 0 100%; min-width: 0; }
.lk-hero .hdt-slide_inner { position: relative; height: var(--aspect-ratioapt, 400px); }
/* index.html: 910px tall on desktop; capped to the viewport so the CTA is always above the fold. */
@media (min-width: 768px) { .lk-hero .hdt-slide_inner { height: min(var(--aspect-ratioapt-md, 910px), calc(100vh - 150px)); min-height: 520px; } }
.lk-hero .hdt-media-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-hero .hdt-full-width-link { position: absolute; inset: 0; z-index: 1; }
.lk-hero .hdt-content-type-container { position: absolute; inset: 0; z-index: 2; display: grid; align-items: center; pointer-events: none; }
.lk-hero .hdt-content { max-width: none; width: 100%; margin: 0; padding-inline: 7.5vw 30px; }
.lk-hero .hdt-content-inner { max-width: 720px; pointer-events: auto; }
.lk-hero__eyebrow { margin: 0 0 24px; font-size: 20px; font-weight: 400; line-height: 1; letter-spacing: 1.6px; color: var(--dark); }
.lk-hero__title { margin: 0 0 24px; font-size: 65px; line-height: 1; font-weight: 600; letter-spacing: 0; color: var(--dark); }
.lk-hero .lk-btn { min-width: 200px; padding: 0 30px; line-height: 36px; min-height: 40px; border-radius: 0; font-size: 16px; font-weight: 400; text-transform: uppercase; }
.lk-hero--light .lk-hero__eyebrow, .lk-hero--light .lk-hero__title { color: #fff; }
@media (max-width: 767px) {
  .lk-hero .hdt-content { padding-inline: 20px; }
  .lk-hero__eyebrow { font-size: 16px; margin-bottom: 20px; }
  .lk-hero__title { font-size: 40px; margin-bottom: 20px; }
  .lk-hero .lk-btn { min-width: 100px; }
}
/* Dots bottom-right; the active one gets a ring (index.html). */
.lk-hero .hdt-slider__dots, .lk-hero [class*="dots"] { z-index: 3; }
.lk-hero .hdt-slider__dots { position: absolute; right: 30px; bottom: 25px; left: auto; display: flex; gap: 10px; justify-content: flex-end; }
.lk-hero .hdt-slider__dot {
  position: relative; width: 22px; height: 22px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer;
}
.lk-hero .hdt-slider__dot::before { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.lk-hero .hdt-slider__dot.hdt-slider__dot--selected { border-color: var(--dark); }
.lk-hero .hdt-slider__dot.hdt-slider__dot--selected::before { background: var(--dark); }

/* Banner masonry */
.hdt-banner_masonry { display: grid; gap: 30px; grid-auto-rows: var(--masonry-grid-row-height-mb, 150px); grid-template-columns: repeat(2, 1fr); }
.hdt-banner_masonry__item { grid-column: span var(--item-column-span-mb, 1); grid-row: span var(--item-row-span-mb, 1); }
@media (min-width: 768px) {
  .hdt-banner_masonry { grid-template-columns: repeat(12, 1fr); grid-auto-rows: var(--masonry-grid-row-height, 155px); }
  .hdt-banner_masonry__item { grid-column: span var(--item-column-span-tb, 6); grid-row: span var(--item-row-span-tb, 1); }
}
@media (min-width: 1151px) { .hdt-banner_masonry__item { grid-column: span var(--item-column-span, 6); grid-row: span var(--item-row-span, 1); } }
.hdt-banner_masonry .hdt-item_inner { position: relative; height: 100%; overflow: hidden; background: var(--bg-subtle); }
.hdt-banner_masonry .hdt-media-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.hdt-banner_masonry .hdt-full-width-link { position: absolute; inset: 0; z-index: 2; }
.hdt-banner_masonry .hdt-content_wrap { position: absolute; inset: 0; z-index: 3; display: grid; align-items: end; justify-items: center; padding: 25px 15px; pointer-events: none; }
.hdt-banner_masonry .hdt-content_wrap a { pointer-events: auto; }
.hdt-eff-img-zoom:hover img { transform: scale(1.08); }

/* Promo trio */
.lk-promos { display: grid; gap: 30px; grid-template-columns: repeat(var(--n, 3), 1fr); }
.lk-promos--1 { --n: 1; } .lk-promos--2 { --n: 2; } .lk-promos--3 { --n: 3; }
@media (max-width: 767px) { .lk-promos { grid-template-columns: 1fr; gap: 15px; } }
.lk-promo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; color: var(--dark); text-decoration: none; }
.lk-promo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.lk-promo__t { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); max-width: 60%; }
.lk-promo__t small { display: block; font-size: 13px; color: var(--mid); }
.lk-promo__t h3 { margin: 4px 0 12px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.lk-link { font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.lk-promo:hover .lk-link { color: var(--accent); }

/* Tabs */
.lk-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: -10px 0 30px; }
.lk-tabs button { padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--light); font: 500 14px var(--font-sans); cursor: pointer; }
.lk-tabs button.is-active, .lk-tabs button:hover { color: var(--dark); border-bottom-color: var(--dark); }

/* Flash sale */
.lk-flash { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 40px; background: var(--dark); color: #fff; }
.lk-flash small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.lk-flash h3 { margin: 0; color: #fff; font-size: 28px; font-weight: 600; }
.lk-countdown { display: flex; gap: 12px; }
.lk-countdown div { display: grid; place-items: center; min-width: 64px; padding: 8px; background: #fff; color: var(--dark); }
.lk-countdown b { font-size: 22px; } .lk-countdown small { color: var(--light); opacity: 1; }
.lk-flash .lk-btn { background: var(--accent); border-color: var(--accent); }

/* Reviews */
.lk-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 767px) { .lk-reviews { grid-template-columns: 1fr; } }
.lk-review { margin: 0; padding: 30px; background: #fff; text-align: center; }
.lk-stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 12px; }
.lk-review blockquote { margin: 0 0 16px; font-family: var(--font-accent); font-style: italic; color: var(--mid); }
.lk-review figcaption { font-size: 13px; color: var(--light); }
.lk-review figcaption b { color: var(--dark); }

/* Instagram */
.lk-insta { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 767px) { .lk-insta { grid-template-columns: repeat(3, 1fr); } }
.lk-insta a { display: block; aspect-ratio: 1; overflow: hidden; }
.lk-insta img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }

/* Service bar */
.lk-services { border-top: 1px solid var(--bg-warm); margin-top: 50px; padding-block: 40px; }
.lk-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 1023px) { .lk-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .lk-services__grid { grid-template-columns: 1fr; } }
.lk-service { display: flex; gap: 18px; align-items: flex-start; }
.lk-service svg { flex: 0 0 40px; width: 40px; height: 40px; color: var(--dark); }
.lk-service h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.lk-service p { margin: 0; font-size: 13px; color: var(--light); }

/* Cart reminder */
.lk-reminder { background: var(--bg-subtle); border-bottom: 1px solid var(--bg-warm); }
.lk-reminder__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: center; padding-block: 14px; font-size: 14px; }
.lk-reminder .lk-btn { padding: 8px 24px; }

/* Footer styles moved to kalles-chrome.css. */

/* ── Inner-page accents ────────────────────────────────────────────────────── */
.breadcrumb, .breadcrumbs { font-size: 13px; color: var(--light); }
.badge-hot, .badge-sale { background: var(--red); border-radius: var(--radius-pill); }

/* Phones: no Quick Add anywhere (cards above, search-panel product links below). */
@media (max-width: 767px) { .product-card__quick-add { display: none !important; } }
