body.ojsl-active {
  --ojsl-ink: #211b18;
  --ojsl-muted: #756d67;
  --ojsl-line: #ddd6ce;
  --ojsl-surface: #f1ede7;
  --ojsl-surface-dark: #2b2521;
  --ojsl-focus: #9b8650;
  background: #fff;
}

body.ojsl-active .shop-page-title,
body.ojsl-active .woocommerce-result-count,
body.ojsl-active .woocommerce-ordering,
body.ojsl-active .shop-container > .products,
body.ojsl-active .shop-container .products.row,
body.ojsl-active .woocommerce-pagination,
body.ojsl-active .term-description,
body.ojsl-active #shop-sidebar,
body.ojsl-active .shop-sidebar {
  display: none !important;
}

body.ojsl-active .shop-container {
  max-width: none;
  padding: 0;
}

body.ojsl-active .category-page-row,
body.ojsl-active .category-page-row > .col {
  max-width: 100%;
  flex-basis: 100%;
}

.ojsl,
.ojsl *,
.ojsl *::before,
.ojsl *::after {
  box-sizing: border-box;
}

.ojsl {
  width: min(100%, 112rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1.125rem, 2.4vw, 3rem) clamp(3rem, 6vw, 6rem);
  color: var(--ojsl-ink);
  font-family: "Open Sans", sans-serif !important;
}

/* Flatsome sets fonts on individual elements. Supporting copy stays in
   Open Sans while editorial headings are explicitly set to Opulent below. */
body.ojsl-active .ojsl p,
body.ojsl-active .ojsl a,
body.ojsl-active .ojsl button {
  font-family: "Open Sans", sans-serif !important;
}

.ojsl__hero {
  display: grid;
  min-height: min(38rem, calc(100dvh - 11rem));
  grid-template-columns: minmax(20rem, 0.82fr) minmax(0, 1.18fr);
  background: var(--ojsl-surface);
}

.ojsl__hero-copy {
  display: flex;
  min-width: 0;
  max-width: 42rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 7vw, 8rem) clamp(2rem, 5vw, 6rem);
}

.ojsl__eyebrow {
  margin: 0 0 1rem;
  color: var(--ojsl-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ojsl__title {
  width: 100%;
  max-width: 11ch;
  margin: 0;
  color: var(--ojsl-ink);
  font-family: Opulent, "Times New Roman", serif !important;
  font-size: clamp(3rem, 4.7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
  text-wrap: balance;
}

.ojsl__title > span {
  display: block;
  font-family: Opulent, "Times New Roman", serif !important;
}

.ojsl__intro {
  max-width: 34rem;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  color: #5f5853;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}

.ojsl__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}

.ojsl__button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.125rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ojsl__button--dark {
  border-color: var(--ojsl-surface-dark);
  background: var(--ojsl-surface-dark);
  color: #fff;
}

.ojsl__button--dark:hover {
  border-color: #51453d;
  background: #51453d;
  color: #fff;
}

.ojsl__button--light {
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
}

.ojsl__button--light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ojsl-surface-dark);
}

.ojsl__button:active {
  transform: translateY(1px);
}

.ojsl__text-link {
  color: var(--ojsl-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.ojsl__text-link:hover {
  color: var(--ojsl-muted);
}

.ojsl__hero-media,
.ojsl__category-media,
.ojsl__product-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8e2da;
}

.ojsl__hero-media {
  min-height: 32rem;
}

.ojsl__hero-image,
.ojsl__category-image,
.ojsl__product-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ojsl__hero-media:hover .ojsl__hero-image,
.ojsl__category-card:hover .ojsl__category-image,
.ojsl__product-card:hover .ojsl__product-image {
  transform: scale(1.025);
}

.ojsl__media--empty {
  background:
    radial-gradient(circle at 22% 25%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(135deg, #e7e0d7, #cfc5b9);
}

.ojsl__media-label {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ojsl-ink);
  font-family: Opulent, "Times New Roman", serif !important;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}

body.ojsl-active .ojsl .ojsl__media-label {
  font-family: Opulent, "Times New Roman", serif !important;
}

.ojsl__section {
  padding-top: clamp(4rem, 6vw, 6.5rem);
}

.ojsl__section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ojsl-line);
}

.ojsl__section-header--compact {
  align-items: center;
}

.ojsl__section-header .ojsl__eyebrow {
  margin-bottom: 0.6rem;
}

.ojsl__section-title {
  margin: 0;
  color: var(--ojsl-ink);
  font-family: Opulent, "Times New Roman", serif !important;
  font-size: clamp(2.25rem, 3.4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: none;
  text-wrap: balance;
}

.ojsl__category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) clamp(0.875rem, 1.35vw, 1.5rem);
}

.ojsl__category-card {
  display: grid;
  height: 100%;
  min-width: 0;
  grid-template-rows: auto 1fr;
}

.ojsl__category-media {
  aspect-ratio: 43 / 20;
}

.ojsl__category-copy {
  position: relative;
  display: flex;
  min-height: 7.15rem;
  height: 100%;
  flex-direction: column;
  padding: 1rem 2.75rem 1rem 0;
  border-bottom: 1px solid var(--ojsl-line);
}

.ojsl__category-title {
  min-height: 2.2em;
  margin: 0;
  color: var(--ojsl-ink);
  font-family: Opulent, "Times New Roman", serif !important;
  font-size: clamp(1.45rem, 1.55vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

body.ojsl-active .ojsl .ojsl__category-title,
body.ojsl-active .ojsl .ojsl__category-title a {
  font-family: Opulent, "Times New Roman", serif !important;
}

.ojsl__category-title a,
.ojsl__product-title a {
  color: inherit;
  text-decoration: none;
}

.ojsl__category-children {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: var(--ojsl-muted);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ojsl__category-arrow {
  position: absolute;
  top: 1rem;
  right: 0;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ojsl-line);
  border-radius: 50%;
  color: var(--ojsl-ink);
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ojsl__category-arrow:hover {
  border-color: var(--ojsl-ink);
  background: var(--ojsl-ink);
  color: #fff;
  transform: translateX(2px);
}

.ojsl__product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.875rem, 1.4vw, 1.5rem);
}

.ojsl__product-card {
  min-width: 0;
}

.ojsl__product-media {
  aspect-ratio: 4 / 5;
}

.ojsl__product-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding-top: 0.9rem;
}

.ojsl__product-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ojsl-ink);
  font-family: "Open Sans", sans-serif !important;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.ojsl__product-price {
  color: var(--ojsl-ink);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.ojsl__product-price del {
  margin-right: 0.3em;
  color: var(--ojsl-muted);
  font-weight: 400;
  opacity: 0.7;
}

.ojsl__product-price ins {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.ojsl__all-products {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(4.5rem, 9vw, 9rem);
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--ojsl-surface-dark);
  color: #fff;
}

.ojsl__all-products .ojsl__eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.ojsl__all-title {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-family: Opulent, "Times New Roman", serif !important;
  font-size: clamp(2.25rem, 3.6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: none;
  text-wrap: balance;
}

.ojsl a:focus-visible,
.ojsl button:focus-visible {
  outline: 2px solid var(--ojsl-focus);
  outline-offset: 4px;
}

@media (max-width: 64rem) {
  .ojsl__hero {
    min-height: auto;
    grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr);
  }

  .ojsl__category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .ojsl__hero {
    grid-template-columns: 1fr;
  }

  .ojsl__hero-copy {
    max-width: none;
    min-height: 30rem;
  }

  .ojsl__hero-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ojsl__section-header {
    display: block;
  }

  .ojsl__category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ojsl__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 40rem) {
  .ojsl {
    padding-inline: 1rem;
  }

  .ojsl__hero-copy {
    min-height: 27rem;
    padding: 3rem 1.5rem 3.5rem;
  }

  .ojsl__title {
    font-size: clamp(3.25rem, 17vw, 4.8rem);
  }

  .ojsl__hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ojsl__section {
    padding-top: 4.5rem;
  }

  .ojsl__category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 0.65rem;
  }

  .ojsl__category-copy {
    min-height: 6.6rem;
    padding: 0.8rem 2.2rem 0.75rem 0;
  }

  .ojsl__category-title {
    min-height: 2.2em;
    font-size: 1.3rem;
  }

  .ojsl__category-children {
    -webkit-line-clamp: 2;
  }

  .ojsl__category-arrow {
    top: 0.72rem;
    width: 1.8rem;
    height: 1.8rem;
  }

  .ojsl__section-header--compact {
    display: flex;
  }

  .ojsl__product-grid {
    display: grid;
    grid-auto-columns: 78%;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0.75rem;
    overflow-x: auto;
    margin-right: -1rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .ojsl__product-grid::-webkit-scrollbar {
    display: none;
  }

  .ojsl__product-card {
    scroll-snap-align: start;
  }

  .ojsl__all-products {
    align-items: flex-start;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
  }

  .ojsl__all-products .ojsl__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ojsl *,
  .ojsl *::before,
  .ojsl *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
