/*
 * HOSAENA Shop Ledger / Chapter 03
 *
 * Extracted in Phase 1 from Elementor custom CSS on page 242.
 * The original Elementor custom CSS remains in place until visual parity is
 * confirmed, so this file is additive and intentionally page-scoped.
 */

/* =========================================================
   H O S A E N A - LEDGER SECTION
   CLEAN SINGLE SOURCE OF TRUTH
   ========================================================= */

/* 1. LEDGER SECTION WRAPPER */
.ho-shop-chapter--ledger {
  position: relative;
  padding-top: clamp(4.5rem, 7vw, 7rem) !important;
  padding-bottom: clamp(4.5rem, 7vw, 7rem) !important;
  padding-inline: clamp(1.25rem, 4vw, 5rem);
}

.ho-shop-chapter--ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 4vw, 5rem);
  right: clamp(1.25rem, 4vw, 5rem);
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(17,17,17,0),
    rgba(17,17,17,0.08) 14%,
    rgba(17,17,17,0.08) 86%,
    rgba(17,17,17,0)
  );
}

.ho-shop-chapter--ledger::after {
  content: "✦";
  position: absolute;
  top: -0.62rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ho-font-display, "Cormorant Garamond", serif);
  font-size: 1rem;
  line-height: 1;
  color: rgba(193,164,109,0.68);
  background: var(--ho-color-ivory, #F6F3EC);
  padding-inline: 0.75rem;
}

/* 2. LEDGER HEAD */
.ho-shop-ledger__head {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.ho-shop-ledger__head .ho-chapter-marker,
.ho-shop-ledger__head .ho-chapter-marker p,
.ho-shop-ledger__head .ho-chapter-marker span {
  font-family: var(--ho-font-body, "Lato", sans-serif) !important;
  font-size: 0.64rem !important;
  line-height: 1.35 !important;
  letter-spacing: 0.34em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  color: rgba(17,17,17,0.48) !important;
  margin: 0 0 1.15rem 0 !important;
}

.ho-shop-ledger__head h2,
.ho-shop-ledger__head .elementor-heading-title {
  font-family: var(--ho-font-display, "Cormorant Garamond", serif) !important;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem) !important;
  line-height: 1.03 !important;
  letter-spacing: 0.025em !important;
  font-weight: 500 !important;
  color: var(--ho-color-nero, #111111) !important;
  margin: 0 auto !important;
  max-width: 22ch;
  text-wrap: balance;
}

.ho-shop-ledger__head p {
  font-family: var(--ho-font-body, "Lato", sans-serif) !important;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem) !important;
  line-height: 1.6 !important;
  letter-spacing: 0.01em !important;
  color: rgba(17,17,17,0.68) !important;
  max-width: 34rem;
  margin: 1.1rem auto 0 auto !important;
}

/* 3. LEDGER PRODUCT FIELD */
.ho-shop-ledger__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  width: 100%;
  max-width: 76rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0 auto !important;
}

.ho-shop-ledger__products .e-loop-item,
.ho-shop-ledger__products .elementor-loop-item {
  height: auto !important;
}

/* 4. ARTIFACT CARD - NATURAL FLOW ONLY */
.ho-shop-ledger__products .ho-product-artifact {
  display: block !important;
  text-align: center !important;
  height: auto !important;
  width: 100%;
  max-width: 28rem !important;
  margin-inline: auto !important;
  align-self: center !important;
}

.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header {
  margin-bottom: 1rem !important;
  max-width: 22ch !important;
  margin-inline: auto !important;
}

/* 5. ARTIFACT TITLE */
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header .elementor-heading-title {
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.12em !important;
  font-weight: 500 !important;
  color: var(--ho-color-nero, #111111) !important;
  max-width: 22ch !important;
  margin: 0 auto !important;
  text-wrap: balance !important;
}

/* 6. META */
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header p,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header .product_meta,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header .elementor-widget-woocommerce-product-meta,
.ho-shop-ledger__products .ho-product-artifact .product_meta,
.ho-shop-ledger__products .ho-product-artifact .elementor-widget-woocommerce-product-meta {
  font-family: var(--ho-font-body, "Lato", sans-serif) !important;
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  letter-spacing: 0.14em !important;
  color: var(--ho-color-nero, #111111) !important;
  opacity: 0.6 !important;
  margin: 0.3rem 0 0 0 !important;
}

/* 7. IMAGE */
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__media {
  margin-top: 1.2rem !important;
  margin-bottom: 1.4rem !important;
  max-height: 320px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__media img,
.ho-shop-ledger__products .ho-product-artifact img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 320px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}

/* 8. PRICE */
.ho-shop-ledger__products .ho-product-artifact .price,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__price,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__price p,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__price span,
  .ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__price div {
  display: block !important;
  position: static !important;
  font-family: var(--ho-font-body, "Lato", sans-serif) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  letter-spacing: 0.06em !important;
  color: var(--ho-color-nero, #111111) !important;
  opacity: 0.8 !important;
  margin: 0.9rem 0 0 0 !important;
}

/* 9. CTA */
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta p,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta a,
.ho-shop-ledger__products .ho-product-artifact a {
  display: inline-block !important;
  position: static !important;
  font-family: var(--ho-font-body, "Lato", sans-serif) !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--ho-color-nero, #111111) !important;
  opacity: 0.6 !important;
  margin-top: 0.9rem !important;
  text-decoration: none !important;
}

.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta {
  margin-top: 0.9rem !important;
}

.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta a::after,
.ho-shop-ledger__products .ho-product-artifact a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.2rem;
  background: currentColor !important;
  opacity: 0.1 !important;
  transform: scaleX(0.7);
  transform-origin: left center;
}

.ho-shop-ledger__products .ho-product-artifact:hover .ho-product-artifact__cta a::after,
.ho-shop-ledger__products .ho-product-artifact:hover a::after,
.ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__cta a:hover::after,
.ho-shop-ledger__products .ho-product-artifact a:hover::after {
  opacity: 0.2 !important;
}

/* 10. TABLET */
@media (max-width: 1024px) {
  .ho-shop-ledger__head {
    max-width: 100%;
    text-align: left;
  }

  .ho-shop-ledger__head h2,
  .ho-shop-ledger__head .elementor-heading-title,
  .ho-shop-ledger__head p {
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
  }

  .ho-shop-ledger__products {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header .elementor-heading-title {
    max-width: 22ch !important;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0.12em !important;
  }
}

/* 11. MOBILE */
@media (max-width: 767px) {
  .ho-shop-chapter--ledger {
    padding-top: 3.25rem !important;
    padding-bottom: 4rem !important;
  }

  .ho-shop-chapter--ledger::before {
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.06);
  }

  .ho-shop-chapter--ledger::after {
    top: -0.58rem;
    font-size: 0.9rem;
    padding-inline: 0.55rem;
  }

  .ho-shop-ledger__head {
    margin-bottom: 2rem;
  }

  .ho-shop-ledger__products {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .ho-shop-ledger__products .ho-product-artifact {
    max-width: min(100%, 28rem) !important;
  }

  .ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__header .elementor-heading-title {
    max-width: 22ch !important;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0.12em !important;
  }

  .ho-shop-ledger__products .ho-product-artifact .ho-product-artifact__media img,
  .ho-shop-ledger__products .ho-product-artifact img {
    max-width: 100% !important;
  }
}
