/*
 Theme Name:   A Little Gleam Child
 Theme URI:    https://alittlegleam.com/
 Description:  Soft Gleam presentation layer for the WoodMart parent theme. WoodMart owns ecommerce/mobile behavior; this child theme owns A Little Gleam brand styling only.
 Author:       A Little Gleam
 Template:     woodmart
 Version:      0.5.2
 Text Domain:  a-little-gleam-child
*/

/* ========================================================================== 
   A Little Gleam — Soft Gleam design system
   ========================================================================== */
:root {
  --alg-warm-ivory: #FFF9F3;
  --alg-soft-cream: #F7EFE6;
  --alg-champagne-gold: #D8B06A;
  --alg-deep-cocoa: #49372F;
  --alg-dusty-blush: #DDBCB5;
  --alg-warm-taupe: #8E796E;
  --alg-soft-sand: #E8DDD2;
  --alg-white: #FFFFFF;
  --alg-cocoa-hover: #352720;
  --alg-shadow: 0 14px 40px rgba(73, 55, 47, 0.08);
  --alg-shadow-lift: 0 18px 50px rgba(73, 55, 47, 0.12);

  /* Map the brand onto WoodMart's native design variables. */
  --wd-primary-color: var(--alg-champagne-gold);
  --wd-main-bgcolor: var(--alg-warm-ivory);
  --wd-text-color: var(--alg-deep-cocoa);
  --wd-title-color: var(--alg-deep-cocoa);
  --wd-link-color: var(--alg-deep-cocoa);
  --wd-link-color-hover: var(--alg-champagne-gold);
  --wd-entities-title-color: var(--alg-deep-cocoa);
  --wd-entities-title-color-hover: var(--alg-champagne-gold);

  --wd-text-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wd-title-font: 'Cormorant Garamond', Georgia, serif;
  --wd-entities-title-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wd-header-el-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wd-brd-radius: 12px;
  --wd-form-height: 46px;
  --wd-form-brd-radius: 12px;
  --wd-form-bg: var(--alg-white);
  --wd-form-color: var(--alg-deep-cocoa);
  --wd-form-placeholder-color: var(--alg-warm-taupe);
  --wd-form-brd-color: rgba(73, 55, 47, 0.16);
  --wd-form-brd-color-focus: rgba(216, 176, 106, 0.75);

  --btn-brd-radius: 12px;
  --btn-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --btn-font-weight: 700;
  --btn-accented-brd-radius: 12px;
  --btn-accented-bgcolor: var(--alg-deep-cocoa);
  --btn-accented-bgcolor-hover: var(--alg-cocoa-hover);
  --btn-accented-color: var(--alg-white);
  --btn-accented-color-hover: var(--alg-white);
  --btn-accented-font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --btn-accented-font-weight: 700;
  --btn-accented-transform: none;
}

html {
  scroll-behavior: smooth;
}

body,
.wd-page-wrapper,
.wd-page-content {
  background-color: var(--alg-warm-ivory);
}

body {
  color: var(--alg-deep-cocoa);
  text-rendering: optimizeLegibility;
}

:is(h1, h2, h3, h4, h5, h6, .title) {
  letter-spacing: -0.02em;
}

/* Small reusable brand helpers for Gutenberg / WoodMart content blocks. */
.alg-eyebrow {
  color: var(--alg-warm-taupe);
  font: 700 0.72rem/1.4 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.alg-spark {
  color: var(--alg-champagne-gold);
}

.alg-soft-panel {
  border: 1px solid var(--alg-soft-sand);
  border-radius: 18px;
  background: var(--alg-soft-cream);
  box-shadow: var(--alg-shadow);
}

/* ========================================================================== 
   WoodMart header — preserve native behavior, apply Soft Gleam presentation
   ========================================================================== */
.whb-top-bar {
  border-bottom: 1px solid var(--alg-soft-sand);
  background: var(--alg-soft-cream) !important;
}

.whb-top-bar .wd-header-text {
  width: 100%;
  color: var(--alg-warm-taupe) !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-align: center;
}

.whb-general-header,
.whb-header-bottom {
  background: rgba(255, 249, 243, 0.985) !important;
}

.whb-general-header {
  border-bottom: 1px solid rgba(232, 221, 210, 0.78);
}

.whb-header-bottom {
  border-bottom: 1px solid var(--alg-soft-sand);
}

.whb-main-header.whb-sticked .whb-general-header,
.whb-main-header.whb-sticked .whb-header-bottom {
  box-shadow: 0 8px 26px rgba(73, 55, 47, 0.06);
}

.whb-color-dark .wd-tools-element {
  --wd-header-el-color: var(--alg-deep-cocoa);
  --wd-header-el-color-hover: var(--alg-champagne-gold);
}

.wd-tools-element .wd-tools-count {
  background: var(--alg-champagne-gold) !important;
  color: var(--alg-deep-cocoa) !important;
}

/* Full-width, soft mobile search without replacing WoodMart's search logic. */
.wd-header-search-form-mobile {
  width: 100%;
  max-width: none !important;
  padding-inline: 0 !important;
}

.wd-header-search-form-mobile .searchform {
  --wd-form-height: 46px;
  --wd-form-bg: var(--alg-white);
  --wd-form-color: var(--alg-deep-cocoa);
  --wd-form-placeholder-color: var(--alg-warm-taupe);
  --wd-form-brd-color: var(--alg-soft-sand);
  --wd-form-brd-color-focus: var(--alg-champagne-gold);
  --wd-form-brd-radius: 14px;
}

.wd-header-search-form-mobile .searchform input[type='text'] {
  min-width: 100%;
  border-radius: 14px !important;
  box-shadow: 0 5px 16px rgba(73, 55, 47, 0.035);
}

.wd-header-search-form-mobile .searchsubmit {
  color: var(--alg-deep-cocoa) !important;
}

/* ========================================================================== 
   WooCommerce archive / collection page title
   Keep the native WoodMart title; only change its visual language.
   ========================================================================== */
body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title {
  background: var(--alg-soft-cream) !important;
  --wd-title-color: var(--alg-deep-cocoa);
  --wd-text-color: var(--alg-warm-taupe);
  --wd-link-color: var(--alg-deep-cocoa);
  --wd-link-color-hover: var(--alg-champagne-gold);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title .title {
  color: var(--alg-deep-cocoa) !important;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title :is(a, span, .wd-tools-icon) {
  color: var(--alg-deep-cocoa);
}

body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title-bg {
  opacity: 0 !important;
}

.woocommerce-breadcrumb,
.wd-breadcrumbs {
  color: var(--alg-warm-taupe);
}

.woocommerce-breadcrumb a,
.wd-breadcrumbs a {
  color: var(--alg-deep-cocoa);
}

/* ========================================================================== 
   Product cards / loops
   ========================================================================== */
.wd-product .product-element-top {
  overflow: hidden;
  border-radius: 16px;
  background: var(--alg-soft-cream);
}

.wd-product .product-element-top img {
  transition: transform 260ms ease;
}

@media (hover: hover) {
  .wd-product:hover .product-element-top img {
    transform: scale(1.018);
  }
}

.wd-product .wd-entities-title {
  color: var(--alg-deep-cocoa);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

.wd-product .price,
.wd-product .price .amount {
  color: var(--alg-deep-cocoa) !important;
  font-weight: 700;
}

.product-label {
  border-radius: 999px !important;
  background: var(--alg-dusty-blush) !important;
  color: var(--alg-deep-cocoa) !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
}

.wd-product :is(.wd-add-btn > a, .add-to-cart-loop) {
  border-radius: 10px;
}

/* ========================================================================== 
   Forms / buttons / product details
   ========================================================================== */
:is(input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], input[type='search'], select, textarea) {
  border-radius: 12px;
}

.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image img {
  border-radius: 18px;
}

.single-product .product_title {
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.025em;
}

.single-product .summary .price,
.single-product .summary .price .amount {
  color: var(--alg-deep-cocoa) !important;
}

.single_add_to_cart_button,
.checkout-button,
.wc-proceed-to-checkout .button,
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
  border-radius: 12px !important;
}

/* ========================================================================== 
   Native WoodMart cart / side drawers
   ========================================================================== */
.cart-widget-side,
.wd-side-hidden,
.wd-dropdown-cart {
  --wd-main-bgcolor: var(--alg-warm-ivory);
  --wd-title-color: var(--alg-deep-cocoa);
  --wd-text-color: var(--alg-deep-cocoa);
}

.cart-widget-side .widget-heading,
.wd-side-hidden .widget-heading {
  border-bottom-color: var(--alg-soft-sand);
}

.cart-widget-side img,
.woocommerce-mini-cart-item img {
  border-radius: 12px;
}

.woocommerce-mini-cart__buttons .checkout {
  background: var(--alg-deep-cocoa) !important;
  color: var(--alg-white) !important;
  border-radius: 10px !important;
}

/* ========================================================================== 
   Footer
   Content remains editable in WoodMart; child theme only styles it.
   ========================================================================== */
.wd-footer,
.wd-prefooter {
  background: var(--alg-soft-cream);
  color: var(--alg-deep-cocoa);
}

.wd-footer :is(.widget-title, .title) {
  color: var(--alg-deep-cocoa);
}

.wd-copyrights {
  border-top-color: var(--alg-soft-sand);
  color: var(--alg-warm-taupe);
}

/* ========================================================================== 
   Mobile-first polish
   ========================================================================== */
@media (max-width: 1024px) {
  .whb-top-bar .wd-header-text {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .whb-general-header .site-logo img {
    max-height: 40px;
    width: auto;
  }

  .whb-header-bottom .container {
    padding-inline: 12px;
  }

  .wd-header-search-form-mobile .searchform {
    margin-block: 6px 8px;
  }

  /* WoodMart native bottom navigation, restyled instead of replaced. */
  .wd-toolbar {
    height: 58px;
    padding: 5px 4px;
    border-top: 1px solid var(--alg-soft-sand);
    background: rgba(255, 249, 243, 0.985);
    box-shadow: 0 -8px 28px rgba(73, 55, 47, 0.08);
  }

  .wd-toolbar a {
    color: var(--alg-deep-cocoa);
  }

  .wd-toolbar a:hover,
  .wd-toolbar .wd-opened > a {
    color: var(--alg-champagne-gold);
  }

  .wd-toolbar-label {
    color: inherit;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10.5px;
    font-weight: 650;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title {
    --wd-title-sp: 26px;
    --wd-title-font-s: 40px;
  }

  .wd-product .wd-entities-title {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .whb-top-bar .wd-header-text {
    padding-inline: 8px;
    font-size: 10px;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-page-title {
    --wd-title-sp: 22px;
    --wd-title-font-s: 36px;
  }

  .wd-product .product-element-top {
    border-radius: 14px;
  }
}

/* Respect motion preferences while keeping WoodMart functionality intact. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================================================== 
   WoodMart-native mobile-first homepage
   The page content is built from core Gutenberg blocks + WoodMart's own
   Product Categories and Products carousel blocks. No custom carousel JS.
   ========================================================================== */
.alg-woodmart-home {
  --alg-home-gutter: clamp(16px, 4.8vw, 30px);
  color: var(--alg-deep-cocoa);
}

.alg-woodmart-home > .wp-block-group,
.alg-woodmart-home > .wp-block-cover {
  margin-block-start: 0;
}

.alg-home-hero,
.alg-home-section {
  width: min(100% - (var(--alg-home-gutter) * 2), 1220px);
  margin-inline: auto;
}

.alg-home-hero {
  position: relative;
  overflow: hidden;
  margin-top: clamp(22px, 5vw, 54px);
  margin-bottom: clamp(34px, 7vw, 72px);
  padding: clamp(34px, 7vw, 78px) clamp(24px, 6vw, 74px);
  border: 1px solid rgba(221, 188, 181, 0.48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(216, 176, 106, 0.14), transparent 26%),
    linear-gradient(135deg, #FCE9DF 0%, #FFF4EC 58%, #F7EFE6 100%);
  box-shadow: 0 14px 44px rgba(73, 55, 47, 0.055);
}

.alg-home-hero::after {
  content: '✦';
  position: absolute;
  top: 22px;
  right: 26px;
  color: rgba(216, 176, 106, 0.62);
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1;
  pointer-events: none;
}

.alg-home-hero .alg-home-hero-title {
  max-width: 710px;
  margin: 10px 0 14px;
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.alg-home-hero .alg-home-hero-copy {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--alg-deep-cocoa);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.alg-home-hero .wp-block-button__link {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--alg-deep-cocoa);
  color: var(--alg-white);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.alg-home-section {
  margin-bottom: clamp(42px, 7vw, 82px);
}

.alg-home-section-heading {
  align-items: end !important;
  margin-bottom: clamp(16px, 3vw, 26px);
  gap: 18px;
}

.alg-home-heading-copy {
  gap: 1px !important;
}

.alg-home-heading-copy .alg-eyebrow {
  margin: 0 0 5px;
}

.alg-home-section-title {
  margin: 0;
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.alg-home-view-all {
  flex: 0 0 auto;
  margin-bottom: 4px;
  color: var(--alg-deep-cocoa);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: rgba(73, 55, 47, 0.42);
  text-underline-offset: 4px;
}

.alg-home-view-all:hover {
  color: var(--alg-champagne-gold);
}

/* WoodMart Product Categories carousel — merchant edits category selection
   directly in the native block inspector. */
.alg-home-categories .category-grid-item {
  overflow: hidden;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 18px;
  background: var(--alg-soft-cream);
}

.alg-home-categories .category-image-wrapp {
  overflow: hidden;
  background: linear-gradient(145deg, #F8F1E8, #FFF9F3);
}

.alg-home-categories .category-image-wrapp img {
  transition: transform 260ms ease;
}

.alg-home-categories .wd-entities-title,
.alg-home-categories .category-title {
  color: var(--alg-deep-cocoa) !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 650 !important;
  text-transform: none !important;
}

.alg-home-categories .more-products {
  display: none;
}

/* Homepage product rails — intentionally lighter than archive cards. */
.alg-home-products .wd-product {
  min-width: 0;
}

.alg-home-products .product-element-top {
  border-radius: 17px;
  background: var(--alg-soft-cream);
}

.alg-home-products .wd-product .product-wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.alg-home-products .wd-product .product-element-bottom {
  padding-top: 12px;
}

.alg-home-products .wd-product .wd-entities-title {
  margin-bottom: 6px;
  color: var(--alg-deep-cocoa);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}

.alg-home-products .wd-product .price,
.alg-home-products .wd-product .price .amount {
  color: var(--alg-deep-cocoa) !important;
  font-size: 14px;
  font-weight: 750;
}

/* Personalized homepage discovery is cleaner when the entire product card
   leads to the product page. Keep purchase controls on product/shop pages. */
.alg-home-products .wd-add-btn,
.alg-home-products .wd-buttons,
.alg-home-products .wd-bottom-actions,
.alg-home-products .quick-view,
.alg-home-products .wd-compare-btn,
.alg-home-products .wd-wishlist-btn {
  display: none !important;
}

.alg-home-products .wd-swatches-grid {
  margin-top: 7px;
}

/* Review area stays a normal Gutenberg container so any third-party review
   block/shortcode can be dropped into it later. */
.alg-home-reviews {
  padding: clamp(26px, 5vw, 48px);
  border: 1px dashed rgba(142, 121, 110, 0.38);
  border-radius: 20px;
  background: rgba(247, 239, 230, 0.58);
}

.alg-home-reviews .alg-home-review-placeholder {
  margin: 0;
  color: var(--alg-warm-taupe);
  font-size: 13px;
}

@media (hover: hover) {
  .alg-home-categories .category-grid-item:hover .category-image-wrapp img {
    transform: scale(1.025);
  }
}

@media (max-width: 767px) {
  .alg-woodmart-home {
    --alg-home-gutter: 16px;
  }

  .alg-home-hero {
    margin-top: 20px;
    margin-bottom: 38px;
    padding: 40px 24px;
    border-radius: 20px;
  }

  .alg-home-hero::after {
    top: 17px;
    right: 19px;
    font-size: 24px;
  }

  .alg-home-hero .alg-home-hero-title {
    max-width: 330px;
    margin-top: 8px;
    font-size: clamp(39px, 11vw, 50px);
    line-height: 0.98;
  }

  .alg-home-hero .alg-home-hero-copy {
    max-width: 320px;
    margin-bottom: 18px;
    font-size: 15px;
  }

  .alg-home-section {
    margin-bottom: 40px;
  }

  .alg-home-section-heading {
    margin-bottom: 17px;
  }

  .alg-home-section-title {
    font-size: clamp(28px, 7.4vw, 34px);
    line-height: 1.03;
  }

  .alg-home-view-all {
    font-size: 12px;
    white-space: nowrap;
  }

  .alg-home-categories .category-grid-item {
    border-radius: 16px;
  }

  .alg-home-categories .wd-entities-title,
  .alg-home-categories .category-title {
    font-size: 14px !important;
    line-height: 1.3;
  }

  .alg-home-products .product-element-top {
    border-radius: 15px;
  }

  .alg-home-products .wd-product .wd-entities-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .alg-home-products .wd-product .price,
  .alg-home-products .wd-product .price .amount {
    font-size: 13px;
  }
}

/* ========================================================================== 
   A Little Gleam homepage v0.4 — mobile commerce rhythm inspired by the
   reference storefront, using only Gutenberg + native WoodMart product blocks.
   ========================================================================== */
.alg-ref-home {
  --alg-ref-gap: clamp(16px, 4.2vw, 28px);
  color: var(--alg-deep-cocoa);
  overflow: clip;
}

.alg-ref-home > .wp-block-group {
  margin-block-start: 0;
}

.alg-ref-shell {
  width: min(calc(100% - (var(--alg-ref-gap) * 2)), 1180px);
  margin-inline: auto;
}

/* Large visual hero, with the image remaining a normal editable Image block. */
.alg-ref-hero {
  position: relative;
  min-height: clamp(500px, 67vw, 690px);
  margin-top: 0;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--alg-soft-cream);
}

.alg-ref-hero .alg-ref-hero-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.alg-ref-hero .alg-ref-hero-image,
.alg-ref-hero .alg-ref-hero-image img {
  width: 100%;
  height: 100%;
}

.alg-ref-hero .alg-ref-hero-image img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.alg-ref-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(73,55,47,.16) 0%, rgba(73,55,47,0) 42%),
    linear-gradient(90deg, rgba(255,249,243,.94) 0%, rgba(255,249,243,.78) 36%, rgba(255,249,243,0) 70%);
  pointer-events: none;
}

.alg-ref-hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(26px, 6vw, 64px);
  left: clamp(20px, 5vw, 64px);
  width: min(68%, 520px);
  margin: 0;
  padding: clamp(18px, 3.8vw, 34px);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 22px;
  background: rgba(255,249,243,.84);
  box-shadow: 0 16px 46px rgba(73,55,47,.10);
  backdrop-filter: blur(7px);
}

.alg-ref-hero-copy .alg-eyebrow {
  margin-bottom: 8px;
}

.alg-ref-hero-title {
  margin: 0 0 10px;
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.035em;
}

.alg-ref-hero-subtitle {
  max-width: 430px;
  margin: 0 0 18px;
  color: var(--alg-deep-cocoa);
  font-size: 15px;
  line-height: 1.6;
}

.alg-ref-hero .wp-block-button__link {
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--alg-deep-cocoa);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

/* Headings use a simpler, more commerce-like hierarchy than the previous page. */
.alg-ref-section {
  margin-bottom: clamp(42px, 7vw, 76px);
}

.alg-ref-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.alg-ref-section-title {
  margin: 0;
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
}

.alg-ref-section-copy {
  margin: 7px 0 0;
  color: var(--alg-warm-taupe);
  font-size: 13px;
  line-height: 1.5;
}

.alg-ref-view-all a,
.alg-ref-view-more .wp-block-button__link {
  color: var(--alg-deep-cocoa);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.alg-ref-view-all a {
  text-decoration: underline;
  text-decoration-color: rgba(73,55,47,.42);
  text-underline-offset: 4px;
}

/* Trending Finds category rail. */
.alg-ref-trending-cats .category-grid-item {
  overflow: hidden;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 18px;
  background: var(--alg-warm-ivory);
}

.alg-ref-trending-cats .category-image-wrapp {
  overflow: hidden;
  background: var(--alg-soft-cream);
}

.alg-ref-trending-cats .wd-entities-title,
.alg-ref-trending-cats .category-title {
  padding-inline: 6px;
  color: var(--alg-deep-cocoa) !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.alg-ref-trending-cats .more-products {
  display: none;
}

/* Trending Now and theme product grids: reference-style two-up mobile cards. */
.alg-ref-product-grid .wd-products-element {
  margin-bottom: 0;
}

.alg-ref-product-grid .wd-product .product-wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.alg-ref-product-grid .product-element-top {
  overflow: hidden;
  border-radius: 14px;
  background: var(--alg-soft-cream);
}

.alg-ref-product-grid .wd-product .product-element-bottom {
  padding-top: 9px;
}

.alg-ref-product-grid .wd-entities-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--alg-deep-cocoa);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alg-ref-product-grid .price,
.alg-ref-product-grid .price .amount {
  color: var(--alg-deep-cocoa) !important;
  font-size: 13px;
  font-weight: 750;
}

.alg-ref-product-grid .wd-add-btn,
.alg-ref-product-grid .wd-buttons,
.alg-ref-product-grid .wd-bottom-actions,
.alg-ref-product-grid .quick-view,
.alg-ref-product-grid .wd-compare-btn,
.alg-ref-product-grid .wd-wishlist-btn {
  display: none !important;
}

.alg-ref-product-grid .star-rating {
  transform: scale(.88);
  transform-origin: left center;
}

.alg-ref-view-more {
  justify-content: center;
  margin-top: 20px;
}

.alg-ref-view-more .wp-block-button__link {
  padding: 11px 18px;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 999px;
  background: var(--alg-soft-cream);
}

/* Editorial category stories: large image, soft panel, chips, products below. */
.alg-ref-story {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 22px;
  background: var(--alg-soft-cream);
}

.alg-ref-story-image,
.alg-ref-story-image img {
  width: 100%;
}

.alg-ref-story-image {
  margin: 0;
}

.alg-ref-story-image img {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.alg-ref-story-copy {
  padding: 22px 20px 20px;
  text-align: center;
}

.alg-ref-story-title {
  margin: 0 0 5px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.alg-ref-story-subtitle {
  margin: 0 0 16px;
  color: var(--alg-deep-cocoa);
  font-size: 14px;
}

.alg-ref-chips,
.alg-ref-recipient-chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.alg-ref-chips::-webkit-scrollbar,
.alg-ref-recipient-chips::-webkit-scrollbar {
  display: none;
}

.alg-ref-chips .wp-block-button,
.alg-ref-recipient-chips .wp-block-button {
  flex: 0 0 auto;
}

.alg-ref-chips .wp-block-button__link,
.alg-ref-recipient-chips .wp-block-button__link {
  border: 1px solid rgba(73,55,47,.48);
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: var(--alg-deep-cocoa);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.alg-ref-chips .wp-block-button:first-child .wp-block-button__link {
  border-color: var(--alg-deep-cocoa);
  background: var(--alg-deep-cocoa);
  color: #fff;
}

/* Recipient / occasion discovery. */
.alg-ref-recipient-panel {
  padding: clamp(26px, 5vw, 48px) clamp(18px, 4vw, 38px);
  border-radius: 22px;
  background: rgba(247,239,230,.68);
  text-align: center;
}

.alg-ref-recipient-panel .alg-ref-section-title,
.alg-ref-occasion-section .alg-ref-section-title,
.alg-ref-trust-section .alg-ref-section-title,
.alg-ref-reviews .alg-ref-section-title {
  text-align: center;
}

.alg-ref-recipient-panel .alg-ref-section-copy,
.alg-ref-occasion-section .alg-ref-section-copy {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.alg-ref-recipient-chips {
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  margin-top: 20px;
}

.alg-ref-occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.alg-ref-occasion-card {
  text-align: center;
}

.alg-ref-occasion-image {
  margin: 0 0 8px;
}

.alg-ref-occasion-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.alg-ref-occasion-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

/* Trust cards. */
.alg-ref-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.alg-ref-trust-card {
  min-height: 138px;
  padding: 20px 16px;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 16px;
  background: rgba(255,255,255,.44);
  text-align: center;
}

.alg-ref-trust-icon {
  margin: 0 0 8px;
  color: var(--alg-deep-cocoa);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.alg-ref-trust-title {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 750;
}

.alg-ref-trust-copy {
  margin: 0;
  color: var(--alg-warm-taupe);
  font-size: 11.5px;
  line-height: 1.45;
}

/* Review integration area — intentionally no fabricated reviews. */
.alg-ref-reviews {
  padding-top: 6px;
}

.alg-ref-review-slot {
  min-height: 210px;
  margin-top: 20px;
  padding: 26px 20px;
  border: 1px dashed rgba(142,121,110,.42);
  border-radius: 18px;
  background: rgba(247,239,230,.55);
  color: var(--alg-warm-taupe);
  text-align: center;
}

/* Newsletter-shaped integration slot. */
.alg-ref-newsletter {
  padding: clamp(34px, 6vw, 58px) clamp(20px, 4vw, 42px);
  border-radius: 22px;
  background: #EEE6DC;
  text-align: center;
}

.alg-ref-newsletter-title {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 600;
  line-height: 1;
}

.alg-ref-newsletter-copy {
  max-width: 600px;
  margin: 0 auto 16px;
  color: var(--alg-deep-cocoa);
  font-size: 13px;
}

.alg-ref-newsletter-slot {
  max-width: 620px;
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px dashed rgba(73,55,47,.32);
  border-radius: 999px;
  color: var(--alg-warm-taupe);
  font-size: 12px;
}

@media (max-width: 767px) {
  .alg-ref-home {
    --alg-ref-gap: 14px;
  }

  .alg-ref-hero {
    min-height: 520px;
    border-radius: 0 0 22px 22px;
  }

  .alg-ref-hero::after {
    background:
      linear-gradient(180deg, rgba(255,249,243,.90) 0%, rgba(255,249,243,.58) 38%, rgba(255,249,243,.06) 72%);
  }

  .alg-ref-hero-copy {
    top: 18px;
    left: 16px;
    width: calc(100% - 32px);
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,249,243,.82);
  }

  .alg-ref-hero-title {
    font-size: clamp(42px, 11vw, 58px);
  }

  .alg-ref-section {
    margin-bottom: 42px;
  }

  .alg-ref-section-title {
    font-size: clamp(31px, 8vw, 38px);
  }

  .alg-ref-story-title {
    font-size: 36px;
  }

  .alg-ref-product-grid .wd-product .wd-entities-title {
    font-size: 12.5px;
  }

  .alg-ref-product-grid .price,
  .alg-ref-product-grid .price .amount {
    font-size: 12.5px;
  }

  .alg-ref-trending-cats .wd-entities-title,
  .alg-ref-trending-cats .category-title {
    font-size: 12.5px !important;
  }

  .alg-ref-occasion-grid {
    gap: 10px;
  }

  .alg-ref-occasion-label {
    font-size: 11.5px;
  }
}

/* ========================================================================== 
   A Little Gleam mobile navigation — WoodMart-native content, Soft Gleam UI
   ========================================================================== */
.mobile-nav {
  --wd-side-hidden-w: min(430px, 100vw);
  width: var(--wd-side-hidden-w);
  max-width: 100vw;
  background: var(--alg-warm-ivory) !important;
  color: var(--alg-deep-cocoa);
}

.mobile-nav .wd-heading {
  min-height: 64px;
  border-bottom: 1px solid var(--alg-soft-sand);
  background: var(--alg-warm-ivory) !important;
}

.mobile-nav .wd-heading .close-side-widget {
  margin-inline-start: auto;
}

.mobile-nav .searchform {
  margin: 0;
  border-bottom: 1px solid var(--alg-soft-sand);
  background: var(--alg-white) !important;
  box-shadow: none !important;
}

.mobile-nav .searchform input[type='text'] {
  height: 64px;
  color: var(--alg-deep-cocoa);
  font-weight: 500;
}

/* A Little Gleam uses one merchant-editable mobile menu, not WoodMart's tabs. */
.mobile-nav .wd-nav-mob-tab,
.mobile-nav .mobile-categories-menu {
  display: none !important;
}

.mobile-nav .mobile-pages-menu {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 !important;
  padding: 18px 16px 26px !important;
  list-style: none;
  animation: none !important;
}

.mobile-nav .mobile-pages-menu > li {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.mobile-nav .mobile-pages-menu > li > a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 13px 14px !important;
  border: 1px solid rgba(232, 221, 210, .82) !important;
  border-radius: 13px;
  background: rgba(247, 239, 230, .72);
  color: var(--alg-deep-cocoa) !important;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.mobile-nav .mobile-pages-menu > li > a::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--alg-deep-cocoa);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.mobile-nav .mobile-pages-menu > li.alg-icon-gift > a::before { content: '✦'; }
.mobile-nav .mobile-pages-menu > li.alg-icon-sun > a::before { content: '☼'; }
.mobile-nav .mobile-pages-menu > li.alg-icon-ornament > a::before { content: '❋'; }
.mobile-nav .mobile-pages-menu > li.alg-icon-heart > a::before { content: '♡'; }
.mobile-nav .mobile-pages-menu > li.alg-icon-grid > a::before { content: '▦'; font-size: 18px; }
.mobile-nav .mobile-pages-menu > li.alg-icon-home > a::before { content: '⌂'; }
.mobile-nav .mobile-pages-menu > li.alg-icon-track > a::before { content: '◎'; font-size: 18px; }
.mobile-nav .mobile-pages-menu > li.alg-icon-help > a::before { content: '?'; font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; }
.mobile-nav .mobile-pages-menu > li.alg-icon-star > a::before { content: '★'; font-size: 17px; }
.mobile-nav .mobile-pages-menu > li.alg-icon-wishlist > a::before { content: '♥'; font-size: 16px; }
.mobile-nav .mobile-pages-menu > li.alg-icon-account > a::before { content: '♙'; font-size: 21px; }

.mobile-nav .mobile-pages-menu > li.alg-mobile-section-label {
  grid-column: 1 / -1;
  margin-top: 10px !important;
}

.mobile-nav .mobile-pages-menu > li.alg-mobile-section-label > a {
  min-height: auto;
  padding: 13px 2px 5px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--alg-warm-taupe) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}

.mobile-nav .mobile-pages-menu > li.alg-mobile-section-label > a::before {
  display: none;
}

.mobile-nav .mobile-pages-menu > li.alg-mobile-utility > a {
  background: rgba(255,255,255,.86);
}

.mobile-nav .mobile-pages-menu > li > a:hover,
.mobile-nav .mobile-pages-menu > li.current-menu-item > a {
  border-color: rgba(216,176,106,.52) !important;
  background: rgba(221,188,181,.24);
  color: var(--alg-deep-cocoa) !important;
}

.mobile-nav .wd-nav-opener {
  display: none !important;
}

@media (max-width: 374px) {
  .mobile-nav .mobile-pages-menu {
    gap: 9px;
    padding-inline: 12px !important;
  }

  .mobile-nav .mobile-pages-menu > li > a {
    min-height: 64px;
    padding-inline: 11px !important;
    font-size: 12.5px;
  }
}

/* ========================================================================== 
   A Little Gleam footer — WoodMart widget footer with mobile accordions
   ========================================================================== */
.wd-footer {
  border-top: 1px solid var(--alg-soft-sand);
  background: #FFFCF8 !important;
  color: var(--alg-deep-cocoa);
}

.wd-footer .main-footer {
  padding-top: 42px;
  padding-bottom: 34px;
}

.wd-footer .footer-sidebar {
  align-items: flex-start;
}

.wd-footer .widget {
  margin-bottom: 0;
}

.wd-footer .widget-title {
  color: var(--alg-deep-cocoa);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 750;
  text-transform: none;
}

.wd-footer .menu {
  --li-mb: 10px;
  --li-pl: 0;
  padding-inline-start: 0;
  list-style: none;
}

.wd-footer .menu a {
  color: var(--alg-warm-taupe);
  font-size: 13px;
  text-decoration: none;
}

.wd-footer .menu a:hover {
  color: var(--alg-deep-cocoa);
}

.alg-footer-brand {
  max-width: 310px;
}

.alg-footer-brand-logo {
  display: block;
  width: min(245px, 82%);
  height: auto;
  margin: 0 0 16px;
}

.alg-footer-brand-copy {
  margin: 0 0 17px;
  color: var(--alg-warm-taupe);
  font-size: 12.5px;
  line-height: 1.6;
}

.alg-footer-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.alg-footer-assurance span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--alg-soft-sand);
  border-radius: 999px;
  background: var(--alg-soft-cream);
  color: var(--alg-deep-cocoa);
  font-size: 10.5px;
  font-weight: 700;
}

.alg-footer-market {
  margin: 0;
  color: var(--alg-deep-cocoa);
  font-size: 12px;
  font-weight: 650;
}

.wd-copyrights {
  border-top: 1px solid var(--alg-soft-sand);
  background: #FFFCF8;
  color: var(--alg-warm-taupe);
}

.wd-copyrights a {
  color: var(--alg-deep-cocoa);
}

@media (max-width: 767px) {
  .wd-footer .main-footer {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .wd-footer .footer-column-1 {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--alg-soft-sand);
  }

  .alg-footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .alg-footer-brand-logo {
    width: min(250px, 72%);
    margin-inline: auto;
  }

  .alg-footer-brand-copy {
    max-width: 360px;
    margin-inline: auto;
  }

  .alg-footer-assurance {
    justify-content: center;
  }

  .wd-footer .footer-column:not(.footer-column-1) {
    border-bottom: 1px solid var(--alg-soft-sand);
  }

  .wd-footer .footer-column:not(.footer-column-1) .widget {
    padding-block: 0;
  }

  .wd-footer .footer-column:not(.footer-column-1) .widget-title {
    min-height: 58px;
    margin: 0;
    padding: 20px 4px;
    font-size: 14px;
  }

  .wd-footer .footer-column:not(.footer-column-1) .widget-collapse {
    padding: 0 4px 18px;
  }

  .wd-copyrights {
    padding-block: 17px calc(82px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 11px;
  }
}


/* ========================================================================== 
   0.5.1 mobile readability refinement
   - Compact hamburger card typography
   - Clamp collection product titles to two lines
   - Remove verbose category breadcrumbs beneath mobile product cards
   ========================================================================== */
@media (max-width: 767px) {
  .mobile-nav .mobile-pages-menu {
    gap: 8px 10px;
    padding: 16px 14px 24px !important;
  }

  .mobile-nav .mobile-pages-menu > li > a {
    gap: 9px;
    min-height: 58px;
    padding: 10px 11px !important;
    border-radius: 12px;
    font-size: 12.25px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
  }

  .mobile-nav .mobile-pages-menu > li > a::before {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
    font-size: 18px;
  }

  .mobile-nav .mobile-pages-menu > li.alg-mobile-section-label {
    margin-top: 7px !important;
  }

  .mobile-nav .mobile-pages-menu > li.alg-mobile-section-label > a {
    padding: 11px 2px 4px !important;
    font-size: 9.25px;
    letter-spacing: .15em;
  }

  .mobile-nav .searchform input[type='text'] {
    height: 58px;
    font-size: 14px;
  }

  /* Collection/shop cards: keep long imported titles visually compact. */
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-product .wd-entities-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1.32em * 2);
    max-height: calc(1.32em * 2);
    margin-bottom: 7px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12.75px;
    line-height: 1.32;
    text-overflow: ellipsis;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-product .wd-product-cats {
    display: none !important;
  }

  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-product .price,
  body:is(.post-type-archive-product, .tax-product_cat, .tax-product_tag) .wd-product .price .amount {
    font-size: 13px;
  }

  /* Keep homepage/reference-style product tiles equally tidy. */
  .alg-home-products .wd-product .wd-entities-title,
  .alg-ref-products .wd-product .wd-entities-title {
    display: -webkit-box;
    overflow: hidden;
    max-height: calc(1.35em * 2);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    text-overflow: ellipsis;
  }
}

@media (max-width: 374px) {
  .mobile-nav .mobile-pages-menu > li > a {
    min-height: 56px;
    padding-inline: 10px !important;
    font-size: 11.75px;
  }
}

/* ========================================================================== 
   0.5.2 mobile menu typography refinement
   - Sentence case instead of forced uppercase
   - Smaller, lighter labels closer to a native mobile commerce menu
   - Hide WoodMart auto-injected duplicate utility entries
   ========================================================================== */
@media (max-width: 767px) {
  .mobile-nav .mobile-pages-menu > li > a,
  .mobile-nav .mobile-pages-menu > li > a .nav-link-text {
    font-size: 11.25px !important;
    font-weight: 600 !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .mobile-nav .mobile-pages-menu > li > a {
    gap: 8px;
    min-height: 52px;
    padding: 9px 10px !important;
  }

  .mobile-nav .mobile-pages-menu > li > a::before {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  .mobile-nav .mobile-pages-menu > li.alg-mobile-section-label > a,
  .mobile-nav .mobile-pages-menu > li.alg-mobile-section-label > a .nav-link-text {
    padding: 9px 2px 3px !important;
    color: var(--alg-warm-taupe) !important;
    font-size: 10.25px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .mobile-nav .searchform input[type='text'] {
    height: 54px;
    font-size: 13px !important;
    font-weight: 500;
  }

  .mobile-nav .wd-heading .close-side-widget :is(a, .wd-action-text) {
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: none !important;
  }

  /* Every item created by A Little Gleam carries an alg-mobile-* class.
     WoodMart may append Wishlist / Compare / Account items automatically;
     hide those duplicates in this custom grid. */
  .mobile-nav .mobile-pages-menu > li:not([class*='alg-mobile-']) {
    display: none !important;
  }
}

@media (max-width: 374px) {
  .mobile-nav .mobile-pages-menu > li > a,
  .mobile-nav .mobile-pages-menu > li > a .nav-link-text {
    font-size: 10.75px !important;
  }
}
