/*
Theme Name: Kingo Child
Theme URI: https://www.katherinesexcoach.com
Description: Child theme for Kingo — custom styling for Les Clés du Plaisir. All site customizations live here so the parent Kingo theme can be updated safely.
Author: Katherine Sex Coach
Author URI: https://www.katherinesexcoach.com
Template: kingo
Version: 1.7.0
Text Domain: kingo-child
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&display=swap');

/* ============================================================
   BRAND TOKENS
   ============================================================ */
:root {
  --kc-purple: #6B2A8A;
  --kc-purple-deep: #4A1A63;
  --kc-purple-rich: #3A1252;
  --kc-purple-soft: #F3EDF7;
  --kc-purple-glow: rgba(107, 42, 138, 0.18);
  --kc-gold: #C9A961;
  --kc-gold-rich: #B89248;
  --kc-gold-deep: #8C6E2E;
  --kc-gold-shimmer: linear-gradient(135deg, #E5C97A 0%, #C9A961 50%, #8C6E2E 100%);
  --kc-ivory: #FAF7F2;
  --kc-ivory-deep: #F1EAD9;
  --kc-cream-grad: linear-gradient(180deg, #FAF7F2 0%, #F5EEDF 60%, #F0E5CC 100%);
  --kc-charcoal: #2A2233;
  --kc-muted: #6E6477;
  --kc-divider: #E8E2E8;
  --kc-card-shadow: 0 4px 24px rgba(42, 34, 51, 0.08);
  --kc-card-shadow-hover: 0 20px 50px rgba(74, 26, 99, 0.25);
  --kc-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ============================================================
   PAGE BACKGROUND — Kingo's `tg_footer_reveal` body class makes
   the body act as a fixed plate behind a scrolling #wrapper.
   So we move our ivory background ONTO #wrapper (which scrolls
   with the content) instead of body. Footer-reveal still works
   visually because the footer sits below #wrapper.
   ============================================================ */
html {
  background: var(--kc-ivory);
}

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background: var(--kc-ivory) !important;
}

/* The scrolling layer — marble texture with soft ivory veil so products pop */
body.post-type-archive-product #wrapper,
body.tax-product_cat #wrapper,
body.tax-product_tag #wrapper {
  background-color: var(--kc-ivory) !important;
  background-image:
    linear-gradient(rgba(250, 247, 242, 0.62), rgba(250, 247, 242, 0.62)),
    url('images/marble.jpg') !important;
  background-repeat: repeat, repeat !important;
  background-size: auto, 900px auto !important;
  background-position: 0 0, 0 0 !important;
  background-attachment: scroll, scroll !important;
}

/* Inner wrappers stay transparent so #wrapper bg shows through */
body.post-type-archive-product #page_content_wrapper,
body.tax-product_cat #page_content_wrapper,
body.tax-product_tag #page_content_wrapper,
body.post-type-archive-product .inner_wrapper,
body.tax-product_cat .inner_wrapper,
body.post-type-archive-product .sidebar_content,
body.tax-product_cat .sidebar_content {
  background: transparent !important;
}

/* ============================================================
   HERO — eyebrow, title, gold ornament, tagline
   "Beautiful introduction top window"
   ============================================================ */

body.post-type-archive-product #page_caption,
body.tax-product_cat #page_caption {
  /* Lighter veil so marble texture is more visible in the hero (more drama) */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 247, 242, 0.2) 100%) !important;
  padding: 90px 20px 70px !important;
  position: relative;
  overflow: visible !important;
}

/* Soft fade from hero ivory into the rest of the page */
body.post-type-archive-product #page_caption + #page_content_wrapper,
body.tax-product_cat #page_caption + #page_content_wrapper {
  background: linear-gradient(180deg, #F1EAD9 0%, var(--kc-ivory) 250px) !important;
}

/* Subtle decorative diamond pattern in the hero background */
body.post-type-archive-product #page_caption::before,
body.tax-product_cat #page_caption::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, var(--kc-purple-glow) 0%, transparent 25%),
    radial-gradient(circle at 80% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 25%);
  pointer-events: none;
  z-index: 0;
}

body.post-type-archive-product .page_title_wrapper,
body.tax-product_cat .page_title_wrapper {
  position: relative;
  z-index: 1;
}

body.post-type-archive-product .page_title_content,
body.tax-product_cat .page_title_content {
  text-align: center !important;
}

/* Eyebrow text above title */
body.post-type-archive-product .page_title_content::before,
body.tax-product_cat .page_title_content::before {
  content: '— Boutique Privée —';
  display: block;
  font-family: var(--kc-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.45em;
  color: var(--kc-gold-deep);
  text-transform: uppercase;
  margin-bottom: 1.4em;
  padding-left: 0.45em; /* compensate for letter-spacing */
}

body.post-type-archive-product #page_caption .page_title_content h1,
body.tax-product_cat #page_caption .page_title_content h1 {
  font-family: var(--kc-serif) !important;
  font-weight: 500 !important;
  font-style: italic !important;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.02em !important;
  color: var(--kc-purple-rich) !important;
  text-transform: none !important;
  position: relative;
  padding-bottom: 0.7em;
  display: inline-block;
  margin: 0 !important;
}

body.post-type-archive-product #page_caption .page_title_content h1::after,
body.tax-product_cat #page_caption .page_title_content h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--kc-gold) 50%, transparent 100%);
}

/* Tagline below title */
body.post-type-archive-product .page_title_content::after,
body.tax-product_cat .page_title_content::after {
  content: 'Une sélection sensuelle, pensée pour éveiller vos sens et vous accompagner sur le chemin du plaisir.';
  display: block;
  max-width: 580px;
  margin: 1.5em auto 0;
  font-family: var(--kc-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--kc-muted);
}

/* ============================================================
   SHOP TOOLBAR — search, result count, sort dropdown
   Fix: the "floating in a cream box" look becomes intentional
   container that ties hero to grid.
   ============================================================ */

/* The WooCommerce search BLOCK widget at the top */
.woocommerce .wc-block-product-search,
.woocommerce-page .wc-block-product-search {
  max-width: 640px;
  margin: 2em auto 3em !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.woocommerce .wc-block-product-search__label,
.woocommerce-page .wc-block-product-search__label {
  display: block !important;
  text-align: center;
  font-family: var(--kc-serif) !important;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--kc-gold-deep) !important;
  margin-bottom: 1em !important;
  padding-left: 0.35em;
}

.woocommerce .wc-block-product-search__inside-wrapper,
.woocommerce-page .wc-block-product-search__inside-wrapper {
  border: 1px solid var(--kc-divider) !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(74, 26, 99, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.woocommerce .wc-block-product-search__inside-wrapper:focus-within,
.woocommerce-page .wc-block-product-search__inside-wrapper:focus-within {
  border-color: var(--kc-purple);
  box-shadow: 0 4px 18px var(--kc-purple-glow);
}

.woocommerce .wc-block-product-search__field,
.woocommerce-page .wc-block-product-search__field {
  border: none !important;
  background: transparent !important;
  padding: 1em 1.6em !important;
  font-family: var(--kc-serif) !important;
  font-style: italic;
  font-size: 1.05rem !important;
  color: var(--kc-charcoal) !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
}

.woocommerce .wc-block-product-search__field::placeholder,
.woocommerce-page .wc-block-product-search__field::placeholder {
  color: var(--kc-muted);
  opacity: 0.7;
}

.woocommerce .wc-block-product-search__button,
.woocommerce-page .wc-block-product-search__button {
  background: var(--kc-purple) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 1.6em !important;
  cursor: pointer;
  transition: background 0.25s ease;
}

.woocommerce .wc-block-product-search__button:hover,
.woocommerce-page .wc-block-product-search__button:hover {
  background: var(--kc-gold) !important;
}

.woocommerce .wc-block-product-search__button svg,
.woocommerce-page .wc-block-product-search__button svg {
  fill: #fff !important;
}

/* Result count + sort row */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  font-family: var(--kc-serif) !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: var(--kc-muted) !important;
  letter-spacing: 0.02em !important;
  margin-top: 0.6em !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
  margin-bottom: 2em !important;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
  border: 1px solid var(--kc-gold) !important;
  background: #fff !important;
  padding: 0.7em 2.4em 0.7em 1.2em !important;
  font-family: var(--kc-serif) !important;
  font-style: italic;
  font-size: 0.95rem !important;
  color: var(--kc-charcoal) !important;
  letter-spacing: 0.03em !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.woocommerce .woocommerce-ordering select:hover,
.woocommerce-page .woocommerce-ordering select:hover {
  border-color: var(--kc-purple) !important;
  box-shadow: 0 2px 12px var(--kc-purple-glow);
}

/* ============================================================
   PRODUCT GRID — Heavy luxe cards with corner ornaments,
   dramatic shadow, golden frame on hover, image zoom overlay.
   ============================================================ */

.woocommerce ul.products,
.woocommerce-page ul.products {
  margin-top: 2em !important;
  gap: 2em;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* WooCommerce inserts ::before/::after clearfix pseudo-elements on ul.products
   (legacy float layout). When the UL is display:grid, those pseudos become
   grid items and steal slot 1 (and the trailing one), pushing all real
   products down by one. Kill them. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none !important;
}

@media (min-width: 1200px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff !important;
  border: 1px solid var(--kc-divider) !important;
  border-radius: 2px !important;
  padding: 2em 1.8em 2.2em !important;
  box-shadow: var(--kc-card-shadow) !important;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.45s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--kc-card-shadow-hover) !important;
  border-color: var(--kc-gold) !important;
}

/* Top gold bar that grows on hover */
.woocommerce ul.products li.product::before,
.woocommerce-page ul.products li.product::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--kc-gold-shimmer);
  transition: width 0.5s ease;
  z-index: 2;
}

.woocommerce ul.products li.product:hover::before,
.woocommerce-page ul.products li.product:hover::before { width: 100%; }

/* Gold ornamental corner ticks — top-left + bottom-right */
.woocommerce ul.products li.product::after,
.woocommerce-page ul.products li.product::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--kc-gold);
  border-left: 1px solid var(--kc-gold);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s, top 0.4s ease, left 0.4s ease;
  pointer-events: none;
}

.woocommerce ul.products li.product:hover::after,
.woocommerce-page ul.products li.product:hover::after {
  opacity: 1;
  top: 8px;
  left: 8px;
}

/* Product image — clean, slight zoom on hover */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  margin: 0 0 1.4em !important;
  border-radius: 1px !important;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  width: 100% !important;
  height: auto;
  display: block;
}

.woocommerce ul.products li.product:hover a img,
.woocommerce-page ul.products li.product:hover a img {
  transform: scale(1.05);
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce-page ul.products li.product h2,
.woocommerce ul.products li.product h3,
.woocommerce-page ul.products li.product h3 {
  font-family: var(--kc-serif) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 1.3rem !important;
  line-height: 1.3 !important;
  color: var(--kc-purple-rich) !important;
  letter-spacing: 0.01em !important;
  padding: 0.4em 0 0.6em !important;
  margin: 0 !important;
  min-height: 2.6em;
  text-transform: none !important;
  text-align: center;
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product a:hover .woocommerce-loop-product__title {
  color: var(--kc-purple) !important;
}

/* Star ratings — always visible, gold */
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
  display: block !important;
  margin: 0.5em auto 1em !important;
  font-size: 0.95em !important;
  color: var(--kc-gold) !important;
  letter-spacing: 3px;
  float: none !important;
}

.woocommerce .star-rating::before,
.woocommerce-page .star-rating::before { color: var(--kc-divider) !important; }
.woocommerce .star-rating span::before,
.woocommerce-page .star-rating span::before { color: var(--kc-gold) !important; }

/* Price — bold, large, brand purple, ornamental dividers */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: var(--kc-purple-rich) !important;
  font-family: var(--kc-serif) !important;
  font-size: 1.55rem !important;
  font-weight: 600 !important;
  margin: 0.5em 0 1.4em !important;
  display: block !important;
  text-align: center;
  letter-spacing: 0.02em !important;
  position: relative;
  padding: 0.5em 0;
}

.woocommerce ul.products li.product .price::before,
.woocommerce ul.products li.product .price::after,
.woocommerce-page ul.products li.product .price::before,
.woocommerce-page ul.products li.product .price::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--kc-gold);
  opacity: 0.5;
}

.woocommerce ul.products li.product .price::before,
.woocommerce-page ul.products li.product .price::before {
  left: 50%;
  transform: translateX(-90px);
}

.woocommerce ul.products li.product .price::after,
.woocommerce-page ul.products li.product .price::after {
  right: 50%;
  transform: translateX(90px);
}

.woocommerce ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins {
  text-decoration: none !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del {
  color: var(--kc-muted) !important;
  font-size: 0.78em !important;
  font-weight: 400 !important;
  margin-right: 0.5em !important;
  opacity: 0.65 !important;
}

/* Sale badge — gold pill */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  background: var(--kc-gold-shimmer) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.45em 1.1em !important;
  font-family: var(--kc-serif) !important;
  font-style: italic !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.3 !important;
  top: 1.2em !important;
  right: 1.2em !important;
  left: auto !important;
  margin: 0 !important;
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.35);
  z-index: 3 !important;
}

/* ============================================================
   ADD TO CART / VIEW PRODUCT button — heavy, refined
   ============================================================ */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce-page ul.products li.product a.button.add_to_cart_button {
  background: var(--kc-purple-rich) !important;
  color: #fff !important;
  border: 1px solid var(--kc-purple-rich) !important;
  padding: 1em 1.6em !important;
  font-family: var(--kc-serif) !important;
  font-style: italic !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  margin-top: auto !important;
  box-shadow: none !important;
  text-shadow: none !important;
  width: 100% !important;
  text-align: center !important;
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce-page ul.products li.product a.button.add_to_cart_button:hover {
  background: var(--kc-gold-rich) !important;
  border-color: var(--kc-gold-rich) !important;
  color: #fff !important;
  letter-spacing: 0.22em !important;
}

.woocommerce ul.products li.product .button:active,
.woocommerce-page ul.products li.product .button:active {
  transform: translateY(1px);
}

.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
  display: block !important;
  text-align: center;
  font-family: var(--kc-serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--kc-gold-deep);
  margin-top: 0.8em;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
  border: none !important;
  margin-top: 3em !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
  border: none !important;
  margin: 0 0.3em !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
  font-family: var(--kc-serif) !important;
  font-style: italic !important;
  font-size: 1.05rem !important;
  color: var(--kc-charcoal) !important;
  padding: 0.6em 1.05em !important;
  border: 1px solid var(--kc-divider) !important;
  border-radius: 0 !important;
  background: #fff !important;
  transition: all 0.25s ease !important;
  min-width: auto !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-page nav.woocommerce-pagination ul li a:hover {
  background: var(--kc-purple-rich) !important;
  border-color: var(--kc-purple-rich) !important;
  color: #fff !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li span.current {
  background: var(--kc-purple-rich) !important;
  border-color: var(--kc-purple-rich) !important;
  color: #fff !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body.post-type-archive-product #page_caption,
  body.tax-product_cat #page_caption {
    padding: 60px 16px 30px !important;
  }

  body.post-type-archive-product .page_title_content::before,
  body.tax-product_cat .page_title_content::before {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 1em;
  }

  body.post-type-archive-product #page_caption .page_title_content h1,
  body.tax-product_cat #page_caption .page_title_content h1 {
    font-size: 2.2rem !important;
  }

  body.post-type-archive-product .page_title_content::after,
  body.tax-product_cat .page_title_content::after {
    font-size: 1rem;
    max-width: 90%;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
    gap: 1.5em;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 1.5em 1.2em 1.8em !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: auto;
    font-size: 1.15rem !important;
  }

  .woocommerce ul.products li.product .price,
  .woocommerce-page ul.products li.product .price {
    font-size: 1.35rem !important;
  }
}
