/* ==========================================================================
   kitcove-overrides.css
   Loaded LAST in layout/theme.aqua, so it wins the cascade and survives
   redeploys of kitcove.css. Put small, targeted overrides here.
   ========================================================================== */

/* --- Product cards: text was flush to the card's left edge. Give it padding. */
.product-card__content,
[class*="product-card"] .product-card__content,
[class*="product-card"] [class*="card__content"] {
  padding-left: 14px !important;
  padding-right: 14px !important;
  padding-bottom: 16px !important;
}

/* --- Homepage USP strip under the hero: scales with viewport so it still
       reads on wide desktop screens (fixed px looked tiny at ~2000px). --- */
.kc-usp b {
  font-family: var(--kc-display, "Cormorant Garamond", Georgia, serif) !important;
  font-size: clamp(22px, 1.9vw, 36px) !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}
.kc-usp span {
  font-size: clamp(14px, 0.9vw, 16px) !important;
  line-height: 1.45 !important;
}
.kc-usp { padding: clamp(24px, 2.4vw, 40px) clamp(14px, 1.5vw, 28px) !important; }
@media (max-width: 749px) {
  .kc-usp b { font-size: clamp(20px, 5vw, 24px) !important; }
  .kc-usp span { font-size: 14px !important; }
  .kc-usp { padding: 22px 14px !important; }
}

/* Bottom trust strip (.kc-trust) uses h4/p — keep those similarly readable. */
.kc-trust h4 {
  font-size: clamp(22px, 2vw, 32px) !important;
  line-height: 1.2 !important;
  margin-bottom: 8px !important;
}
.kc-trust p {
  font-size: clamp(14px, 1vw, 17px) !important;
  line-height: 1.5 !important;
}

/* --- Footer: force final scroll-reveal state so it never looks half-faded. --- */
.footer,
.footer-section,
.footer-group,
.footer .lms-section,
.footer-section .lms-section {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.footer *,
.footer-section * {
  opacity: 1 !important;
}

/* --- Newsletter input: cap the height. --- */
.email-signup__input input[type="email"],
.email-signup input[type="email"],
.footer input[type="email"],
input.email-signup__input[type="email"] {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  align-self: center !important;
}

/* ==========================================================================
   PDP gallery — square featured frame with thumbs snug underneath.
   Keep it larger than the old 480px toy box, but not full-bleed. Height is
   capped so thumbs stay visible under the fold without veering left of a
   stretched rectangular viewport.
   ========================================================================== */

@media (min-width: 990px) {
  /* Mild widen vs stock narrow (90rem), without hugging the viewport edges. */
  .kc-pdp {
    --narrow-page-width: min(100rem, calc(100vw - 96px));
  }

  .kc-pdp .product-information__grid {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr) !important;
    column-gap: clamp(36px, 4vw, 64px) !important;
  }
}

.kc-pdp .product-information__grid {
  align-items: start !important;
}

.kc-pdp .product-information__media,
.kc-pdp .sticky-content.media-gallery--carousel,
.kc-pdp .media-gallery--carousel {
  align-self: start !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
}

/* Gallery block: one shared width for frame + thumbs so they stack squared. */
.kc-pdp .media-gallery--carousel {
  --kc-gallery-size: min(100%, min(58vh, 620px));
}

.kc-pdp .media-gallery--carousel slideshow-component {
  display: block !important;
  width: var(--kc-gallery-size) !important;
  max-width: 100% !important;
}

.kc-pdp .media-gallery--carousel slideshow-container,
.kc-pdp .media-gallery--carousel slideshow-slides {
  width: 100% !important;
  max-width: 100% !important;
}

.kc-pdp .media-gallery--carousel slideshow-slide.product-media-container {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.kc-pdp .product-media-container,
.kc-pdp .product-media-container.constrain-height,
.kc-pdp slideshow-slide.product-media-container {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(58vh, 620px) !important;
  height: auto !important;
  margin-inline: 0 !important;
  background: var(--kc-cream-2, #F7EDE3) !important;
  overflow: hidden !important;
}

.kc-pdp .product-media__image,
.kc-pdp .product-media-container img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--kc-cream-2, #F7EDE3) !important;
}

.kc-pdp .slideshow-controls__thumbnails-container {
  display: flex !important;
  justify-content: center !important;
  width: var(--kc-gallery-size) !important;
  max-width: 100% !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.kc-pdp .slideshow-controls__thumbnails-container::-webkit-scrollbar {
  display: none;
}

.kc-pdp .slideshow-controls__thumbnails {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: max-content !important;
  min-width: 0 !important;
  justify-content: center !important;
  margin-inline: auto !important;
}

.kc-pdp .slideshow-controls__thumbnail {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  min-height: 68px !important;
  flex: 0 0 68px !important;
  border: 1px solid rgba(58, 42, 34, 0.18) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.kc-pdp .slideshow-controls__thumbnail[aria-current="true"],
.kc-pdp .slideshow-controls__thumbnail[aria-pressed="true"],
.kc-pdp .slideshow-controls__thumbnail.is-active,
.kc-pdp .slideshow-controls__thumbnail[aria-selected="true"] {
  border-color: #3A2A22 !important;
  border-width: 2px !important;
}

.kc-pdp .slideshow-controls__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 749px) {
  .kc-pdp .product-media-container,
  .kc-pdp .product-media-container.constrain-height,
  .kc-pdp slideshow-slide.product-media-container {
    max-width: 100% !important;
    max-height: min(48vh, 380px) !important;
  }
  .kc-pdp .slideshow-controls__thumbnails-container {
    width: 100% !important;
  }
  .kc-pdp .slideshow-controls__thumbnail {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    flex-basis: 58px !important;
  }
}

/* --- PDP payment icons (Stripe-accepted methods) under Buy it now ---------- */
.kc-pdp-pay {
  margin: 14px 0 0;
  padding: 0;
}
.kc-pdp-pay__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--kc-ink-soft, #6B5E55);
  text-align: center;
}
.kc-pdp-pay__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.kc-pdp-pay__icons span,
.kc-pdp-pay__icons a {
  display: inline-flex;
  line-height: 0;
}
.kc-pdp-pay__icons img,
.kc-pdp-pay__icons svg {
  display: block;
  width: 42px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(58, 42, 34, 0.12);
  background: #fff;
  box-shadow: 0 1px 0 rgba(58, 42, 34, 0.04);
}
.kc-pdp-pay__icons img[alt="Stripe"],
.kc-pdp-pay__icons .kc-pdp-pay__stripe img {
  width: 48px;
}

/* --- PDP accordion: smooth open animation. One-open-at-a-time is enforced by
       assets/kitcove-acc.js (kept separate so it survives kitcove-pdp.js
       redeploys from the other pipeline). --- */
.kc-pdp-acc__item summary { cursor: pointer; }
.kc-pdp-acc__item[open] .kc-pdp-acc__body {
  animation: kcAccIn 0.3s ease;
}
@keyframes kcAccIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* --- Homepage risk-reversal points: slightly more breathing room. -------- */
@media (min-width: 760px) {
  .kc-risk__grid {
    max-width: 960px !important;
    gap: 42px !important;
  }
}

/* --- Product-card badges: informational overlays must not interrupt the
       card gallery's pointer hover state. ---------------------------------- */
.kc-hrs,
.kc-pre {
  pointer-events: none !important;
  user-select: none;
  transition: none !important;
}
