/* Homepage builder sections — modern commerce storefront template */
.kmj-home {
  font-family: var(--website-body-font, 'DM Sans', system-ui, sans-serif);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(15, 23, 42, 0.06), transparent 50%),
    var(--website-background, #F8FAFC);
  color: var(--website-text, #0F172A);
}

.kmj-home h1,
.kmj-home h2,
.kmj-home h1.kmj-hero__brand, .kmj-home .kmj-hero__brand {
  font-family: var(--website-heading-font, 'Instrument Serif', Georgia, serif);
}

/* Announcement */
.kmj-announce {
  background: #0F172A;
  color: #F8FAFC;
  text-align: center;
  padding: 10px 1rem;
}
.kmj-announce__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.kmj-announce__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kmj-announce__link:hover {
  opacity: 0.85;
}

/* Hero — full-bleed plane */
.kmj-hero {
  position: relative;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1220 0%, #1E293B 55%, #0F172A 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.kmj-hero__overlay {
  position: absolute;
  inset: 0;
  background: #0B1220;
  pointer-events: none;
  z-index: 0;
}
.kmj-hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  animation: kmj-fade-up 0.7s ease both;
}
h1.kmj-hero__brand,
.kmj-hero__brand {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.kmj-hero__heading {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-family: var(--website-body-font, 'DM Sans', sans-serif);
  font-weight: 600;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}
.kmj-hero__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 36ch;
  margin: 0 0 1.5rem;
  animation: kmj-fade-up 0.8s ease 0.08s both;
}
.kmj-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: kmj-fade-up 0.85s ease 0.16s both;
}
.kmj-hero__cta:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: translateY(-1px);
}

/* Featured collection */
.kmj-featured {
  padding: 3rem 0;
  background: transparent;
}
.kmj-featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.kmj-featured__heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.kmj-featured__sub {
  margin: 0;
  color: var(--website-muted-text, #64748B);
  max-width: 40ch;
}
.kmj-featured__all {
  font-weight: 600;
  color: var(--website-primary, #1D4ED8);
  text-decoration: none;
  white-space: nowrap;
}
.kmj-featured__all:hover {
  text-decoration: underline;
}
.kmj-featured__grid {
  display: grid;
  gap: 1.25rem;
}
.kmj-featured__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kmj-featured__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kmj-featured__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kmj-product-card {
  min-width: 0;
}
.kmj-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kmj-product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.kmj-product-card:hover .kmj-product-card__media {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}
.kmj-product-card__name a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.kmj-product-card__name a:hover {
  color: var(--website-primary, #1D4ED8);
}
.kmj-featured__empty {
  grid-column: 1 / -1;
  color: var(--website-muted-text, #64748B);
  margin: 0;
}

/* Featured Collection styles (collectionStyle) */
.fc-style .fc-card__title,
.fc-style .fc-card__title a {
  color: var(--website-product-card-title, #0F172A);
  text-decoration: none;
  font-weight: 600;
}
.fc-style .fc-card__title a:hover,
.fc-style a.fc-card__title:hover {
  color: var(--website-primary, #1D4ED8);
}
.fc-style .fc-card__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--website-product-card-background, #fff);
}
.fc-style .fc-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Classic Grid — square media, name below (default) */
.fc-style--classic-grid .fc-card--classic .fc-card__media {
  aspect-ratio: 1;
  border: 1px solid var(--website-product-card-border, rgba(15, 23, 42, 0.08));
  border-radius: var(--website-product-card-radius, 10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fc-style--classic-grid .fc-card--classic:hover .fc-card__media {
  transform: translateY(-3px);
  box-shadow: var(--website-card-shadow, 0 14px 30px rgba(15, 23, 42, 0.1));
}

/* Masonry Tiles — staggered aspect ratios + caption overlay */
.fc-style--masonry-tiles .kmj-featured__heading {
  letter-spacing: -0.03em;
}
.fc-style--masonry-tiles .fc-grid--masonry-tiles {
  gap: 0.85rem;
}
.fc-style--masonry-tiles .fc-card--masonry {
  min-width: 0;
}
.fc-style--masonry-tiles .fc-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--website-product-card-radius, 10px) + 2px);
  background: var(--website-text, #0F172A);
}
.fc-style--masonry-tiles .fc-card:nth-child(3n+1) .fc-card__media { aspect-ratio: 3 / 4; }
.fc-style--masonry-tiles .fc-card:nth-child(3n+2) .fc-card__media { aspect-ratio: 1; }
.fc-style--masonry-tiles .fc-card:nth-child(3n) .fc-card__media { aspect-ratio: 5 / 6; }
.fc-style--masonry-tiles .fc-card__media img {
  transition: transform 0.4s ease;
}
.fc-style--masonry-tiles .fc-card--masonry:hover .fc-card__media img {
  transform: scale(1.05);
}
.fc-style--masonry-tiles .fc-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 0.85rem 0.85rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Landscape Cards — wide media, bordered chrome, title in body */
.fc-style--landscape-cards .fc-grid--landscape-cards {
  gap: 1.5rem;
}
.fc-style--landscape-cards .fc-card--landscape {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--website-product-card-background, #fff);
  border: 1px solid var(--website-product-card-border, #E2E8F0);
  border-radius: var(--website-product-card-radius, 12px);
  overflow: hidden;
  box-shadow: var(--website-card-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fc-style--landscape-cards .fc-card--landscape:hover {
  transform: translateY(-2px);
  box-shadow: var(--website-card-shadow, 0 12px 28px rgba(15, 23, 42, 0.1));
}
.fc-style--landscape-cards .fc-card__media {
  aspect-ratio: 16 / 10;
  background: var(--website-background, #F8FAFC);
}
.fc-style--landscape-cards .fc-card__body {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--website-border, rgba(15, 23, 42, 0.08));
}
.fc-style--landscape-cards .fc-card__title {
  font-family: var(--website-heading-font, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  display: block;
}

/* Compact Catalog — dense tiles, contain fit, small type */
.fc-style--compact-catalog .kmj-featured__heading {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.fc-style--compact-catalog .fc-grid--compact-catalog {
  gap: 0.65rem;
}
.fc-style--compact-catalog .fc-card--compact {
  min-width: 0;
  padding: 0.4rem;
  background: var(--website-product-card-background, #fff);
  border: 1px solid var(--website-product-card-border, #E2E8F0);
  border-radius: 6px;
}
.fc-style--compact-catalog .fc-card__media {
  aspect-ratio: 1;
  background: var(--website-background, #F8FAFC);
  border-radius: 4px;
}
.fc-style--compact-catalog .fc-card__media img {
  object-fit: contain;
  object-position: center;
}
.fc-style--compact-catalog .fc-card__title {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

/* Spotlight Row — first item large, remaining in supporting grid */
.fc-style--spotlight-row .fc-grid--spotlight-row {
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}
.fc-style--spotlight-row .fc-card--spotlight {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.fc-style--spotlight-row .fc-card--spot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-style--spotlight-row .fc-card__media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--website-product-card-radius, 12px);
  border: 1px solid var(--website-product-card-border, rgba(15, 23, 42, 0.08));
}
.fc-style--spotlight-row .fc-card--spotlight .fc-card__media {
  aspect-ratio: 4 / 5;
}
.fc-style--spotlight-row .fc-card__media img {
  transition: transform 0.4s ease;
}
.fc-style--spotlight-row .fc-card--spot:hover .fc-card__media img {
  transform: scale(1.03);
}
.fc-style--spotlight-row .fc-card__meta {
  padding-top: 0.65rem;
}
.fc-style--spotlight-row .fc-card--spotlight .fc-card__title {
  font-family: var(--website-heading-font, Georgia, serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
}
.fc-style--spotlight-row .fc-card--spot:not(.fc-card--spotlight) .fc-card__title {
  font-size: 0.92rem;
}

@media (max-width: 991px) {
  .fc-style--spotlight-row .fc-grid--spotlight-row {
    grid-template-columns: 1fr 1fr;
  }
  .fc-style--spotlight-row .fc-card--spotlight {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .fc-style--spotlight-row .fc-card--spotlight .fc-card__media {
    aspect-ratio: 16 / 10;
  }
  .fc-style--landscape-cards .kmj-featured__grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .fc-style--masonry-tiles .fc-card:nth-child(n) .fc-card__media {
    aspect-ratio: 4 / 5;
  }
  .fc-style--spotlight-row .fc-grid--spotlight-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .fc-style--compact-catalog .fc-card__title {
    font-size: 0.7rem;
  }
  .fc-style--landscape-cards .fc-card__title {
    font-size: 0.95rem;
  }
}

/* Newsletter (conversion section — kept separate from Stay Connected) */
.kmj-newsletter {
  padding: 3.5rem 1rem;
  background: #0F172A;
  color: #F8FAFC;
  text-align: center;
}
.kmj-newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
}
.kmj-newsletter__heading {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.5rem;
}
.kmj-newsletter__sub {
  opacity: 0.85;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.kmj-newsletter__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.kmj-newsletter__form .form-control {
  flex: 1 1 220px;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.kmj-newsletter__form .form-control::placeholder {
  color: rgba(248, 250, 252, 0.55);
}
.kmj-newsletter__btn {
  min-height: 48px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #0F172A;
  font-weight: 600;
  transition: background 0.2s ease;
}
.kmj-newsletter__btn:hover {
  background: #E2E8F0;
}

/* Stay Connected / Community (homepage content section — not footer) */
.kmj-stay-connected {
  padding: 2.5rem 1rem;
  background: linear-gradient(135deg, var(--website-primary, #1D4ED8) 0%, var(--website-secondary, #1E3A8A) 100%);
  color: var(--website-footer-heading, #FFFFFF);
  animation: kmj-fade-up 0.55s ease both;
}
.kmj-stay-connected__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.kmj-stay-connected__copy {
  flex: 1 1 360px;
  max-width: 540px;
  animation: kmj-fade-up 0.65s ease 0.05s both;
}
.kmj-stay-connected__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  color: var(--website-accent-light, #7DD3FC);
  font-family: var(--website-body-font, 'DM Sans', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.kmj-stay-connected__eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.kmj-stay-connected__title {
  margin: 0 0 0.5rem;
  color: inherit;
  font-family: var(--website-heading-font, 'Instrument Serif', Georgia, serif);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: var(--website-heading-weight, 400);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.kmj-stay-connected__body {
  margin: 0;
  color: var(--website-footer-text, rgba(255, 255, 255, 0.88));
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 36rem;
}
.kmj-stay-connected__form {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 460px;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--website-input-radius, 6px);
  padding: 0.35rem;
  animation: kmj-fade-up 0.7s ease 0.12s both;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.kmj-stay-connected__form:focus-within {
  border-color: var(--website-accent-light, #7DD3FC);
  background: rgba(255, 255, 255, 0.2);
}
.kmj-stay-connected__form .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 48px;
  min-height: 48px;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding-left: 1rem;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0.92rem;
}
.kmj-stay-connected__form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.kmj-stay-connected__btn {
  flex-shrink: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: var(--website-button-radius, 6px);
  background: var(--website-accent-light, #7DD3FC);
  color: var(--website-text, #0F172A);
  font-size: 0.86rem;
  font-weight: var(--website-button-weight, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.kmj-stay-connected__btn:hover {
  background: var(--website-button-hover-background, #1E3A8A);
  color: var(--website-button-hover-text, #FFFFFF);
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .kmj-stay-connected {
    padding: 2rem 18px;
    overflow-x: clip;
  }
  .kmj-stay-connected__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.35rem;
    text-align: left;
    min-width: 0;
  }
  .kmj-stay-connected__copy {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
  .kmj-stay-connected__body {
    max-width: none;
  }
  .kmj-stay-connected__form {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    max-width: none;
    width: 100%;
    padding: 0.5rem;
  }
  .kmj-stay-connected__form .form-control {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .kmj-stay-connected__btn {
    width: 100%;
    padding: 0 1.15rem;
  }
}
@media (max-width: 480px) {
  .kmj-stay-connected {
    padding: 1.75rem 16px;
  }
  .kmj-stay-connected__inner {
    gap: 1.15rem;
  }
  .kmj-stay-connected__title {
    font-size: 1.4rem;
  }
  .kmj-stay-connected__body {
    font-size: 0.9rem;
  }
  .kmj-stay-connected__form {
    border-radius: var(--website-input-radius, 8px);
  }
}

@keyframes kmj-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .kmj-featured__grid--cols-4,
  .kmj-featured__grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .kmj-featured__grid--cols-4,
  .kmj-featured__grid--cols-3,
  .kmj-featured__grid--cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .kmj-hero {
    min-height: 70vh;
  }
}

/* Shared section heading */
.kmj-section-heading {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--website-text, #0F172A);
}

/* Callout cards — whole tile is the link; no Shop Now */
a.kmj-callout-card,
a.callout-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--website-surface, #fff);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.kmj-callout-card:hover,
a.kmj-callout-card:focus-visible,
a.callout-card:hover,
a.callout-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  outline: none;
}
.callout-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e2e8f0;
}
.callout-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
a.kmj-callout-card:hover .callout-image,
a.callout-card:hover .callout-image {
  transform: scale(1.035);
}
.callout-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 40%, rgba(15, 23, 42, 0.45) 100%);
  transition: opacity 0.3s ease;
}
a.kmj-callout-card.placement-none .callout-overlay,
a.kmj-callout-card.placement-below-image .callout-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.01) 0%, rgba(15, 23, 42, 0.1) 100%);
}
.callout-title {
  font-weight: 700;
  font-family: var(--website-body-font, 'DM Sans', sans-serif);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* On-image: bottom caption bar (reference layout) */
.callout-title.on-image {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 0.85rem;
  text-align: left;
  color: #fff !important;
  background: rgba(45, 52, 58, 0.82);
  text-shadow: none;
  transform: none;
}
.callout-title.on-image.top {
  top: auto;
  bottom: 0;
}
.callout-title.on-image.middle {
  top: auto;
  bottom: 0;
  transform: none;
}
.callout-title.below-image {
  display: block;
  width: 100%;
  padding: 0.85rem 0.25rem 0;
  text-align: left;
  color: var(--website-text, #0F172A) !important;
  white-space: normal;
}
.callout-title.on-hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.65rem 0.85rem;
  text-align: left;
  background: rgba(45, 52, 58, 0.88);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
a.kmj-callout-card:hover .callout-title.on-hover,
a.kmj-callout-card:focus-visible .callout-title.on-hover,
a.callout-card:hover .callout-title.on-hover,
a.callout-card:focus-visible .callout-title.on-hover {
  opacity: 1;
}
.callout-button { display: none !important; }

/* Featured Categories — equal responsive grid */
.kmj-featured-cats {
  padding: 2rem 0;
}
.kmj-featured-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
}
@media (max-width: 991px) {
  .kmj-featured-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .kmj-featured-cats__grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
}

/* Callout grid layouts 2 | 3 | 4 | 5 */
.kmj-callout-grid {
  padding: 2rem 0;
}
.kmj-callout-grid__inner {
  display: grid;
  gap: clamp(0.65rem, 1.4vw, 1rem);
  width: 100%;
}
.kmj-callout-grid__slot {
  min-width: 0;
  min-height: 0;
}
.kmj-callout-grid__slot > a.kmj-callout-card {
  height: 100%;
}
.kmj-callout-grid__empty-slot {
  aspect-ratio: 1 / 1;
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

/* 2: two equal large */
.kmj-callout-grid--layout-2 .kmj-callout-grid__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kmj-callout-grid--layout-2 .callout-media {
  aspect-ratio: 4 / 3;
}

/* 3: three equal */
.kmj-callout-grid--layout-3 .kmj-callout-grid__inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 4: 2×2 equal */
.kmj-callout-grid--layout-4 .kmj-callout-grid__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 5: one large left + 2×2 small right (reference) */
.kmj-callout-grid--layout-5 .kmj-callout-grid__inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large .callout-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
.kmj-callout-grid--layout-5 .kmj-callout-grid__slot:not(.kmj-callout-grid__slot--large) .callout-media {
  aspect-ratio: 1 / 1;
}
.kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large > a.kmj-callout-card {
  display: flex;
  flex-direction: column;
}
.kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large .callout-media {
  flex: 1;
}

@media (max-width: 767px) {
  .kmj-callout-grid--layout-2 .kmj-callout-grid__inner,
  .kmj-callout-grid--layout-3 .kmj-callout-grid__inner {
    grid-template-columns: 1fr;
  }
  .kmj-callout-grid--layout-3 .kmj-callout-grid__inner {
    grid-template-columns: 1fr 1fr;
  }
  .kmj-callout-grid--layout-3 .kmj-callout-grid__slot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  /* 5: large first, then 2×2 */
  .kmj-callout-grid--layout-5 .kmj-callout-grid__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .kmj-callout-grid--layout-5 .kmj-callout-grid__slot--large .callout-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}
@media (max-width: 480px) {
  .kmj-callout-grid--layout-3 .kmj-callout-grid__inner {
    grid-template-columns: 1fr;
  }
  .kmj-callout-grid--layout-3 .kmj-callout-grid__slot:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Brands strip */
.kmj-brands-strip {
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.55);
}
.kmj-brands-strip__inner { overflow: hidden; }
.kmj-brands-strip__track {
  display: flex;
  width: max-content;
  animation: kmj-brands-marquee 40s linear infinite;
}
.kmj-brands-strip__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
}
.kmj-brands-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.kmj-brands-strip__item:hover { opacity: 1; }
.kmj-brands-strip__item img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15);
}
@keyframes kmj-brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Company intro */
.kmj-intro {
  padding: 3rem 0;
}
.kmj-intro__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--website-muted-text, #64748B);
  margin-bottom: 0.5rem;
}
.kmj-intro__heading {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}
.kmj-intro__heading span {
  color: var(--website-primary, #1D4ED8);
}
.kmj-intro__accent {
  width: 48px;
  height: 3px;
  background: var(--website-primary, #1D4ED8);
  margin-bottom: 1rem;
}
.kmj-intro__box {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.kmj-intro__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--website-primary, #1D4ED8);
  margin-bottom: 0.75rem;
}
.kmj-intro__highlights {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}
.kmj-intro__highlights i {
  color: var(--website-primary, #1D4ED8);
  margin-right: 0.35rem;
}

/* Middle banners */
.kmj-middle-banners {
  background: rgba(15, 23, 42, 0.04);
}
.kmj-middle-banners img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* Homepage banner (Parse Banners) */
.kmj-homepage-banner img {
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: cover;
}

/* Product strip styles — generic .ps-style-* (not client-branded) */
.ps-style__subheading {
  text-align: center;
  margin: -0.35rem 0 1.25rem;
  color: var(--website-muted-text, #64748B);
  font-size: 0.98rem;
}
.ps-style .product-tag {
  z-index: 2;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.ps-style .new-tag { background: var(--website-text, #0F172A); }
.ps-style .featured-tag { background: var(--website-primary, #1D4ED8); }
.ps-card__name,
.ps-card__name a {
  text-decoration: none;
  color: var(--website-product-card-title, #0F172A);
  font-weight: 600;
}
.ps-card__name a:hover { color: var(--website-primary, #1D4ED8); }

/* Gallery Rail — square media, name below */
.ps-style--gallery-rail .ps-card--gallery {
  position: relative;
  text-align: center;
  height: 100%;
}
.ps-style--gallery-rail .ps-card--gallery .product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 4px;
}
.ps-style--gallery-rail .ps-card__media {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--website-product-card-border, rgba(15, 23, 42, 0.08));
  background: var(--website-product-card-background, #fff);
  overflow: hidden;
}
.ps-style--gallery-rail .ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ps-style--gallery-rail .ps-card--gallery:hover .ps-card__media img {
  transform: scale(1.04);
}

/* Soft Cards — bordered lift cards, contained image */
.ps-style--soft-cards.newArrival.modern { padding: 2.4rem 0 2.8rem; }
.ps-style--soft-cards .kmj-section-heading {
  text-align: center;
  font-size: 2.3rem;
  padding: 0.4rem 1rem 1.4rem;
}
.ps-style--soft-cards .ps-card--soft {
  border: 1px solid var(--website-product-card-border, #D5DCE1);
  border-radius: var(--website-product-card-radius, 14px);
  overflow: hidden;
  background: var(--website-product-card-background, #FFFFFF);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
  box-shadow: var(--website-card-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
}
.ps-style--soft-cards .ps-card--soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--website-card-shadow, 0 10px 24px rgba(15, 23, 42, 0.1));
}
.ps-style--soft-cards .ps-card__body { padding: 1rem 0.85rem 1.1rem; position: relative; }
.ps-style--soft-cards .ps-card--soft .product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
}
.ps-style--soft-cards .ps-card--soft img {
  border-radius: var(--website-button-radius, 8px);
  height: 200px;
  width: 100%;
  object-fit: contain;
  background: var(--website-background, #F8FAFC);
}
.ps-style--soft-cards .ps-card__name a { font-size: 14px; }
.kmj-products--featured.ps-style--soft-cards {
  background: var(--website-border, rgba(15, 23, 42, 0.04));
}

/* Editorial Row — large image, left meta, hairline */
.ps-style--editorial-row .ps-card--editorial {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--website-border, rgba(15, 23, 42, 0.12));
}
.ps-style--editorial-row .ps-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--website-background, #F8FAFC);
}
.ps-style--editorial-row .ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
  transition: opacity 0.3s ease;
}
.ps-style--editorial-row .ps-card--editorial:hover .ps-card__media img { opacity: 0.92; }
.ps-style--editorial-row .ps-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.ps-style--editorial-row .ps-card--editorial .product-tag {
  position: static;
  border-radius: 0;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--website-muted-text, #64748B);
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
}
.ps-style--editorial-row .ps-card__name {
  font-family: var(--website-heading-font, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

/* Compact Tiles — dense grid tiles */
.ps-style--compact-tiles .slide.p-1 { padding: 0.2rem !important; }
.ps-style--compact-tiles .ps-card--compact {
  background: var(--website-product-card-background, #fff);
  border: 1px solid var(--website-product-card-border, #E2E8F0);
  border-radius: 6px;
  padding: 0.4rem;
  height: 100%;
}
.ps-style--compact-tiles .ps-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--website-background, #F8FAFC);
}
.ps-style--compact-tiles .ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ps-style--compact-tiles .ps-card--compact .product-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  left: auto;
  padding: 2px 6px;
  font-size: 9px;
  border-radius: 2px;
}
.ps-style--compact-tiles .ps-card__name {
  display: block;
  margin-top: 0.35rem;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

/* Showcase Carousel — oversized media with gradient name overlay */
.ps-style--showcase-carousel .kmj-section-heading {
  text-align: left;
  padding-left: 0.25rem;
}
.ps-style--showcase-carousel .ps-card--showcase {
  border-radius: calc(var(--website-product-card-radius, 14px) + 2px);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--website-card-shadow, 0 8px 24px rgba(15, 23, 42, 0.12));
}
.ps-style--showcase-carousel .ps-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--website-text, #0F172A);
}
.ps-style--showcase-carousel .ps-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ps-style--showcase-carousel .ps-card--showcase:hover .ps-card__media img {
  transform: scale(1.05);
}
.ps-style--showcase-carousel .ps-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  color: #fff;
}
.ps-style--showcase-carousel .ps-card__overlay .ps-card__name {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.ps-style--showcase-carousel .ps-card--showcase .product-tag {
  border-radius: 4px;
  background: var(--website-accent, #0EA5E9);
}

@media (max-width: 767px) {
  .ps-style--soft-cards .ps-card--soft img { height: 160px; }
  .ps-style--soft-cards .kmj-section-heading { font-size: 1.75rem; }
  .ps-style--editorial-row .ps-card__name { font-size: 1rem; }
  .ps-style--showcase-carousel .ps-card__media { aspect-ratio: 4 / 5; }
}
