/**
 * Homepage — WoodenStreet-inspired white storefront sections & product cards
 * Load after home-shop-strip.css on body.home-storefront
 */
body.home-catalog.home-storefront {
  --ws-bg: #ffffff;
  --ws-blush: #fff5f5;
  --ws-text: #1a1a1a;
  --ws-muted: #6b7280;
  --ws-green: #16a34a;
  --ws-star: #f59e0b;
  --ws-radius-img: 12px;
}

body.home-catalog.home-storefront .page-wrapper {
  background: var(--ws-bg) !important;
}

/* ── Sections: pure white, alternating blush ── */
body.home-catalog.home-storefront .jp-ws-section.ml-shop-slider-section,
body.home-catalog.home-storefront .jp-shop-strip--fullbleed.jp-purplle-section {
  background: var(--ws-bg) !important;
  padding-top: 2.75rem !important;
  padding-bottom: 2.5rem !important;
}
body.home-catalog.home-storefront .jp-ws-section.jp-ws-section--blush,
body.home-catalog.home-storefront .jp-shop-strip--fullbleed.is-soft {
  background: var(--ws-blush) !important;
}
body.home-catalog.home-storefront .jp-ws-section .jp-shop-strip-track,
body.home-catalog.home-storefront .jp-ws-section.jp-ws-section--blush .jp-shop-strip-track {
  background: inherit !important;
}
body.home-catalog.home-storefront .ml-microscope-section {
  background: var(--ws-bg) !important;
}
body.home-catalog.home-storefront .jp-ws-section.ml-microscope-section {
  padding-top: 2.25rem !important;
  padding-bottom: 2.75rem !important;
}

/* ── Microscopes featured block ── */
body.home-catalog.home-storefront .jp-microscope-feature {
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%) !important;
  border-top: 1px solid #e8f0fe;
  border-bottom: 1px solid #f1f5f9;
}

body.home-catalog.home-storefront .jp-section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.65rem;
}

body.home-catalog.home-storefront .jp-subject-head--stack {
  align-items: flex-start !important;
  gap: 1rem !important;
}

body.home-catalog.home-storefront .jp-subject-copy {
  flex: 1;
  min-width: 0;
}

body.home-catalog.home-storefront .jp-subject-copy .jp-ws-title {
  margin-bottom: 0.25rem !important;
}

body.home-catalog.home-storefront .jp-ws-sub--inline {
  margin: 0 !important;
  max-width: 520px;
}

body.home-catalog.home-storefront .jp-subject-icon.jp-subject-icon--ios {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 55%, #1e40af 100%) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.home-catalog.home-storefront .jp-subject-icon--ios .i8-icon,
body.home-catalog.home-storefront .jp-subject-icon--ios svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
}

body.home-catalog.home-storefront .jp-subject-icon--ios svg,
body.home-catalog.home-storefront .jp-subject-icon--ios svg path,
body.home-catalog.home-storefront .jp-subject-icon--ios svg g {
  fill: #ffffff !important;
  color: #ffffff !important;
}

body.home-catalog.home-storefront .jp-subject-icon--ios i.fas,
body.home-catalog.home-storefront .jp-subject-icon--ios i.far {
  display: none !important;
}

body.home-catalog.home-storefront .jp-ws-head--microscope {
  align-items: center !important;
}

body.home-catalog.home-storefront .jp-microscope-feature .jp-shop-strip-track {
  padding-top: 0.25rem;
}

body.home-catalog.home-storefront .jp-microscope-feature .ml-shop-nav {
  top: 42% !important;
}

body.home-catalog.home-storefront .jp-subject-head {
  align-items: center !important;
  gap: 0.75rem !important;
}
body.home-catalog.home-storefront .jp-subject-icon:not(.jp-subject-icon--ios) {
  background: #2563eb !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.home-catalog.home-storefront .jp-ws-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem !important;
}
body.home-catalog.home-storefront .jp-ws-head__text {
  max-width: 640px;
}
body.home-catalog.home-storefront .jp-ws-head .ml-shop-slider-title,
body.home-catalog.home-storefront .jp-ws-head .jp-ws-title {
  margin: 0 !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--ws-text) !important;
  line-height: 1.2 !important;
}
body.home-catalog.home-storefront .jp-ws-sub {
  margin: 0.35rem 0 0 !important;
  font-size: 0.9375rem !important;
  color: var(--ws-muted) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
body.home-catalog.home-storefront .jp-ws-viewall,
body.home-catalog.home-storefront .ml-shop-slider-viewall {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--ws-text) !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
body.home-catalog.home-storefront .jp-ws-viewall:hover,
body.home-catalog.home-storefront .ml-shop-slider-viewall:hover {
  color: #2563eb !important;
  border-bottom-color: #2563eb;
}
body.home-catalog.home-storefront .jp-ws-viewall::after,
body.home-catalog.home-storefront .ml-shop-slider-viewall::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}
body.home-catalog.home-storefront .jp-ws-viewall::after,
body.home-catalog.home-storefront .ml-shop-slider-viewall::after {
  content: "→";
  font-size: 1.1em;
  line-height: 1;
}

/* ── Section headers (title + subtitle + View All) ── */
body.home-storefront .jp-card-storefront.janosci-product-card {
  background: var(--ws-bg) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  transition: transform 0.25s ease !important;
  cursor: pointer;
}
body.home-storefront .jp-card-storefront.janosci-product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

body.home-storefront .jp-card-storefront .card-img-wrap {
  aspect-ratio: unset !important;
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  flex: 0 0 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  margin: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  border-radius: var(--ws-radius-img) !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
body.home-storefront .jp-card-storefront .card-img-wrap img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
}
body.home-storefront .janosci-product-card.jp-card-storefront .card-img-wrap {
  background-image: none !important;
}
body.home-storefront .jp-card-storefront:hover .card-img-wrap img {
  transform: scale(1.03);
}

body.home-storefront .jp-card-storefront .card-body {
  padding: 0.85rem 0.15rem 0 !important;
  text-align: left !important;
  gap: 0 !important;
}
body.home-storefront .jp-card-storefront .card-title {
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: var(--ws-text) !important;
  line-height: 1.35 !important;
  min-height: 2.7em !important;
  margin: 0 0 0.35rem !important;
  -webkit-line-clamp: 2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.home-storefront .jp-card-storefront .card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ws-muted);
}
body.home-storefront .jp-card-storefront .card-stars {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--ws-star);
  font-size: 0.75rem;
}
body.home-storefront .jp-card-storefront .card-rating-count {
  color: var(--ws-muted);
  font-weight: 500;
}
body.home-storefront .jp-card-storefront .card-price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.35rem 0.5rem !important;
  margin: 0 !important;
}
body.home-storefront .jp-card-storefront .card-price-now {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ws-text) !important;
}
body.home-storefront .jp-card-storefront .card-price-was {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
}
body.home-storefront .jp-card-storefront .card-price-off {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--ws-green) !important;
  text-transform: uppercase;
}
body.home-storefront .jp-card-storefront .card-brand,
body.home-storefront .jp-card-storefront .card-sku,
body.home-storefront .jp-card-storefront .card-gst,
body.home-storefront .jp-card-storefront .card-actions,
body.home-storefront .jp-card-storefront .stock-badge,
body.home-storefront .jp-card-storefront .card-zoom-hint {
  display: none !important;
}
body.home-storefront .jp-card-storefront .sale-badge--discount {
  top: 10px !important;
  left: 10px !important;
  background: #fff !important;
  color: var(--ws-text) !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.45rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}
body.home-storefront .jp-card-storefront .wishlist-btn {
  opacity: 0;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
body.home-storefront .jp-card-storefront:hover .wishlist-btn {
  opacity: 1;
}

/* Carousel nav — minimal grey chevrons */
body.home-catalog.home-storefront .jp-shop-strip--fullbleed .ml-shop-nav {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  width: 38px !important;
  height: 38px !important;
}
body.home-catalog.home-storefront .jp-shop-strip--fullbleed .ml-shop-nav:hover {
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

body.home-catalog.home-storefront .home-category-section {
  background: #fff !important;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

body.home-catalog.home-storefront .home-category-section .category-grid {
  gap: 1rem !important;
}

@media (min-width: 1200px) {
  body.home-storefront .jp-card-storefront .card-img-wrap {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    flex-basis: 220px !important;
  }
}

@media (max-width: 767.98px) {
  body.home-catalog.home-storefront .jp-ws-head--microscope {
    align-items: flex-start !important;
  }
  body.home-catalog.home-storefront .jp-subject-icon.jp-subject-icon--ios {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
  }
  body.home-catalog.home-storefront .jp-subject-icon--ios .i8-icon,
  body.home-catalog.home-storefront .jp-subject-icon--ios svg {
    width: 24px !important;
    height: 24px !important;
  }
  body.home-catalog.home-storefront .jp-ws-head .jp-ws-title {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 767.98px) {
  body.home-catalog.home-storefront .jp-ws-head .ml-shop-slider-title,
  body.home-catalog.home-storefront .jp-ws-head .jp-ws-title {
    font-size: 1.25rem !important;
  }
  body.home-storefront .jp-card-storefront .card-img-wrap {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    flex-basis: 190px !important;
  }
  body.home-storefront .jp-card-storefront .wishlist-btn {
    opacity: 1;
  }
}

/* Products listing — same storefront cards as homepage */
body.products-page-body.home-storefront {
  --ws-bg: #ffffff;
  --ws-text: #1a1a1a;
  --ws-muted: #6b7280;
  --ws-green: #16a34a;
  --ws-star: #f59e0b;
  --ws-radius-img: 12px;
}

body.products-page-body.home-storefront .products-page .products-grid--storefront:not(.is-list) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 991.98px) {
  body.products-page-body.home-storefront .products-page .products-grid--storefront:not(.is-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

body.products-page-body.home-storefront .products-page .jp-card-storefront.janosci-product-card {
  border: none !important;
  box-shadow: none !important;
}
