/* Shared multi-page storefront styles (About, FAQ, policies, shop polish, PDP). */

:root {
  --sobae-ink: #171717;
  --sobae-muted: #626262;
  --sobae-line: #e2e2df;
  --sobae-paper: #f7f7f4;
  --sobae-accent: #1a1a1a;
}

.sobae-page {
  width: 100%;
  max-width: none;
  color: var(--sobae-ink);
  background: #fff;
}

body:has(.sobae-page) .hero-section {
  display: none;
}

.sobae-page__inner {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.sobae-page--wide .sobae-page__inner {
  width: min(100%, 1100px);
}

.sobae-page__eyebrow {
  margin: 0 0 12px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sobae-accent);
}

.sobae-page__title {
  margin: 0 0 24px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
}

.sobae-page__lead,
.sobae-page p {
  margin: 0 0 18px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sobae-ink);
}

.sobae-page__lead {
  font-size: 19px;
  color: var(--sobae-muted);
}

.sobae-page h2 {
  margin: 40px 0 14px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.sobae-page h3 {
  margin: 28px 0 10px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.sobae-page ul,
.sobae-page ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.sobae-page li + li {
  margin-top: 8px;
}

.sobae-page a {
  color: var(--sobae-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sobae-page a:hover {
  color: var(--sobae-accent);
}

/* About page — editable editorial brand story. */
body:has(.sobae-about) .hero-section {
  display: none;
}

body:has(.sobae-about) #main .ct-container-full,
body:has(.sobae-about) .entry-content {
  padding-top: 0;
  padding-bottom: 0;
}

.sobae-about {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--sobae-ink);
  background: #fff;
}

.sobae-about :where(h1, h2, h3, p, figure, ul) {
  margin-top: 0;
}

.sobae-about__eyebrow {
  margin-bottom: 16px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sobae-about__hero-title,
.sobae-about__section-title {
  margin-bottom: 24px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.sobae-about__hero-title {
  max-width: 680px;
  font-size: clamp(48px, 4.5vw, 68px);
}

.sobae-about__section-title {
  max-width: 700px;
  font-size: clamp(44px, 4.6vw, 68px);
}

.sobae-about__hero-body,
.sobae-about__body,
.sobae-about__principle p,
.sobae-about__standards-list {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  color: var(--sobae-muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

.sobae-about__hero-body,
.sobae-about__body {
  max-width: 570px;
  margin-bottom: 0;
}

.sobae-about__text-link {
  margin: 32px 0 0;
}

.sobae-about__text-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--sobae-ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.sobae-about__text-link a span {
  transition: transform 180ms ease;
}

.sobae-about__text-link a:hover span,
.sobae-about__text-link a:focus-visible span {
  transform: translateY(3px);
}

.sobae-about__text-link--horizontal a:hover span,
.sobae-about__text-link--horizontal a:focus-visible span {
  transform: translateX(3px);
}

.sobae-about__hero {
  background: #fff;
}

.sobae-about__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(100%, 1492px);
  min-height: 620px;
  margin: 0 auto;
}

.sobae-about__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(32px, 4vw, 64px);
}

.sobae-about__hero-image {
  width: 100%;
  height: 620px;
  margin: 0;
  overflow: hidden;
}

.sobae-about__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.sobae-about__philosophy {
  padding: 104px 32px;
  background: var(--sobae-paper);
}

.sobae-about__split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(52px, 7vw, 112px);
  align-items: center;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.sobae-about__split-image {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.sobae-about__split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 280ms ease, filter 280ms ease;
}

.sobae-about__split-image:hover img {
  transform: scale(1.012);
  filter: contrast(1.015);
}

.sobae-about__split-copy .sobae-about__body + .sobae-about__body {
  margin-top: 20px;
}

.sobae-about__ritual {
  padding: 112px 32px;
  background: #fff;
}

.sobae-about__ritual-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.sobae-about__ritual-intro {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.sobae-about__ritual-intro .sobae-about__section-title,
.sobae-about__ritual-intro .sobae-about__body {
  margin-right: auto;
  margin-left: auto;
}

.sobae-about__ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.sobae-about__ritual-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.sobae-about__ritual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sobae-about__principles {
  border-top: 1px solid var(--sobae-line);
}

.sobae-about__principle {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--sobae-line);
}

.sobae-about__principle-number {
  margin: 2px 0 0;
  color: var(--sobae-muted);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
}

.sobae-about__principle h3 {
  margin: 0 0 6px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.sobae-about__principle p {
  margin-bottom: 0;
  font-size: 15px;
}

.sobae-about__standards {
  padding: 96px 32px;
  color: var(--sobae-ink);
  background: var(--sobae-paper);
  border-top: 1px solid var(--sobae-line);
  border-bottom: 1px solid var(--sobae-line);
}

.sobae-about__standards-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.sobae-about__standards .sobae-about__eyebrow,
.sobae-about__standards .sobae-about__section-title {
  color: var(--sobae-ink);
}

.sobae-about__standards .sobae-about__body,
.sobae-about__standards-list {
  color: var(--sobae-muted);
}

.sobae-about__standards-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--sobae-line);
}

.sobae-about__standards-list li {
  position: relative;
  margin: 0;
  padding: 17px 0 17px 28px;
  border-bottom: 1px solid var(--sobae-line);
}

.sobae-about__standards-list li::before {
  position: absolute;
  top: 22px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--sobae-muted);
  border-radius: 50%;
  content: "";
}

.sobae-about__cta {
  padding: 104px 32px;
  background: #fff;
}

.sobae-about__cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  column-gap: clamp(56px, 8vw, 120px);
  row-gap: 0;
  align-items: center;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.sobae-about__cta-copy {
  display: contents;
}

.sobae-about__cta-copy > .sobae-about__eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.sobae-about__cta-copy > .sobae-about__section-title {
  grid-column: 1;
  grid-row: 2;
}

.sobae-about__cta-copy > .sobae-about__body {
  grid-column: 1;
  grid-row: 3;
}

.sobae-about__cta-copy > .sobae-about__actions {
  grid-column: 1;
  grid-row: 4;
}

.sobae-about__cta-image {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sobae-paper);
}

.sobae-about__cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sobae-about__actions {
  gap: 12px;
  margin-top: 36px;
}

.sobae-about__actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--sobae-ink);
  border-radius: 2px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.sobae-about__primary .wp-block-button__link {
  color: #fff;
  background: var(--sobae-ink);
}

.sobae-about__secondary .wp-block-button__link {
  color: var(--sobae-ink);
  background: #fff;
}

.sobae-about__actions .wp-block-button__link:hover,
.sobae-about__actions .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
}

.sobae-about__primary .wp-block-button__link:hover,
.sobae-about__primary .wp-block-button__link:focus-visible {
  color: var(--sobae-ink);
  background: #fff;
}

.sobae-about__secondary .wp-block-button__link:hover,
.sobae-about__secondary .wp-block-button__link:focus-visible {
  color: #fff;
  background: var(--sobae-ink);
}

.sobae-about a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .sobae-about__hero-inner,
  .sobae-about__split,
  .sobae-about__ritual-grid,
  .sobae-about__standards-inner,
  .sobae-about__cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .sobae-about__hero-inner {
    min-height: 0;
  }

  .sobae-about__hero-copy {
    align-items: center;
    padding: 64px 28px 48px;
    text-align: center;
  }

  .sobae-about__hero-title,
  .sobae-about__hero-body {
    margin-right: auto;
    margin-left: auto;
  }

  .sobae-about__hero-image {
    height: min(70vw, 520px);
  }

  .sobae-about__philosophy,
  .sobae-about__ritual,
  .sobae-about__standards,
  .sobae-about__cta {
    padding: 72px 28px;
  }

  .sobae-about__split,
  .sobae-about__ritual-grid,
  .sobae-about__standards-inner,
  .sobae-about__cta-inner {
    gap: 44px;
  }

  .sobae-about__text-link {
    display: flex;
    justify-content: center;
  }

  .sobae-about__split {
    gap: 0;
  }

  .sobae-about__split-copy {
    display: contents;
  }

  .sobae-about__split-copy > .sobae-about__eyebrow {
    order: 1;
    text-align: center;
  }

  .sobae-about__split-copy > .sobae-about__section-title {
    order: 2;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .sobae-about__split-image {
    order: 3;
    margin-top: 4px;
    margin-bottom: 28px;
  }

  .sobae-about__split-copy > .sobae-about__body {
    order: 4;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .sobae-about__ritual-intro {
    margin-bottom: 44px;
    text-align: center;
  }

  .sobae-about__ritual-intro .sobae-about__section-title,
  .sobae-about__ritual-intro .sobae-about__body {
    margin-right: auto;
    margin-left: auto;
  }

  .sobae-about__standards-copy {
    max-width: 680px;
  }

  .sobae-about__standards-inner {
    gap: 30px;
  }

  .sobae-about__standards-heading,
  .sobae-about__standards-copy > .sobae-about__body {
    text-align: center;
  }

  .sobae-about__standards-heading .sobae-about__section-title,
  .sobae-about__standards-copy > .sobae-about__body {
    margin-right: auto;
    margin-left: auto;
  }

  .sobae-about__standards-list,
  .sobae-about__principles {
    text-align: left;
  }

  .sobae-about__cta-copy > .sobae-about__eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .sobae-about__cta-copy > .sobae-about__section-title {
    grid-column: 1;
    grid-row: 2;
  }

  .sobae-about__cta-copy > .sobae-about__body {
    grid-column: 1;
    grid-row: 3;
  }

  .sobae-about__cta-image {
    grid-column: 1;
    grid-row: 4;
    margin-top: 32px;
  }

  .sobae-about__cta-copy > .sobae-about__actions {
    grid-column: 1;
    grid-row: 5;
    justify-content: center;
    margin-top: 24px;
  }

  .sobae-about__cta-copy > .sobae-about__eyebrow,
  .sobae-about__cta-copy > .sobae-about__section-title,
  .sobae-about__cta-copy > .sobae-about__body {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }
}

@media (max-width: 599px) {
  .sobae-about__hero-title {
    font-size: 42px;
  }

  .sobae-about__section-title {
    font-size: 38px;
  }

  .sobae-about__hero-body,
  .sobae-about__body {
    font-size: 16px;
  }

  .sobae-about__hero-copy {
    padding: 48px 20px 38px;
  }

  .sobae-about__hero-body {
    max-width: 32ch;
  }

  .sobae-about__hero-image {
    height: 370px;
  }

  .sobae-about__hero-image img {
    object-position: 70% center;
  }

  .sobae-about__philosophy,
  .sobae-about__ritual,
  .sobae-about__standards,
  .sobae-about__cta {
    padding: 56px 20px;
  }

  .sobae-about__split,
  .sobae-about__ritual-grid,
  .sobae-about__standards-inner,
  .sobae-about__cta-inner {
    gap: 34px;
  }

  .sobae-about__split-image {
    aspect-ratio: 1 / 1.08;
  }

  .sobae-about__split-copy > .sobae-about__body {
    max-width: 36ch;
  }

  .sobae-about__ritual-image {
    aspect-ratio: 4 / 5;
  }

  .sobae-about__principle {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }

  .sobae-about__actions,
  .sobae-about__actions .wp-block-button,
  .sobae-about__actions .wp-block-button__link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sobae-about__split-image img,
  .sobae-about__text-link a span,
  .sobae-about__actions .wp-block-button__link {
    transition: none;
  }

  .sobae-about__split-image:hover img,
  .sobae-about__text-link a:hover span,
  .sobae-about__text-link a:focus-visible span,
  .sobae-about__actions .wp-block-button__link:hover,
  .sobae-about__actions .wp-block-button__link:focus-visible {
    transform: none;
  }
}

.sobae-faq details {
  border-top: 1px solid var(--sobae-line);
  padding: 18px 0;
}

.sobae-faq details:last-child {
  border-bottom: 1px solid var(--sobae-line);
}

.sobae-faq summary {
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.sobae-faq summary::-webkit-details-marker {
  display: none;
}

.sobae-faq details[open] summary {
  color: var(--sobae-accent);
}

.sobae-faq details p {
  margin: 12px 0 0;
  color: var(--sobae-muted);
}

.sobae-journal-hero {
  width: min(calc(100% - 48px), 1290px);
  margin: 0 auto;
  padding: 72px 0 22px;
  color: var(--sobae-ink);
}

.sobae-journal-hero p {
  margin: 0 0 12px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sobae-journal-hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.sobae-journal-hero span {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  color: var(--sobae-muted);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.blog #main {
  background: #fff;
}

body.blog .entries {
  width: min(calc(100% - 48px), 1290px);
  max-width: 1290px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  padding-top: 34px;
  padding-bottom: 96px;
}

body.blog .entry-card {
  overflow: hidden;
  border: 1px solid var(--sobae-line);
  border-radius: 4px;
  box-shadow: none;
}

body.blog .entry-card .entry-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

body.blog .entry-card .entry-excerpt,
body.blog .entry-card .entry-meta {
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

/* Shared Woo button base (PDP + non-shop surfaces keep pill CTAs) */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single-product .single_add_to_cart_button {
  background: var(--sobae-ink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  padding: 12px 22px !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single-product .single_add_to_cart_button:hover {
  background: #000 !important;
}

.woocommerce ul.products li.product .button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.single-product .single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--sobae-ink);
  outline-offset: 3px;
}

/* Shop archive — premium quiet surface */
body.woocommerce-shop {
  background: #fff;
}

body.woocommerce-shop #main,
body.woocommerce-shop .ct-container[data-vertical-spacing] {
  background: #fff;
}

/* Replace Blocksy grey page-title band with white space; intro lives in products header */
body.woocommerce-shop .hero-section {
  display: none !important;
}

body.woocommerce-shop .woocommerce-products-header {
  margin: 0;
  padding: 0;
  border: 0;
}

body.woocommerce-shop .woo-listing-top,
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering {
  display: none !important;
}

.sobae-shop-intro {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
  gap: 16px 64px;
  align-items: end;
  width: 100%;
  margin: 0 0 40px;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--sobae-line);
  color: var(--sobae-ink);
  text-align: left;
}

.sobae-shop-intro__eyebrow {
  grid-column: 1;
  margin: 0 0 10px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sobae-ink);
}

.sobae-shop-intro__title {
  grid-column: 1;
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--sobae-ink);
}

.sobae-shop-intro__lead {
  grid-column: 1;
  margin: 0;
  max-width: 38em;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--sobae-muted);
}

.sobae-shop-intro__cta {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 14px 18px;
  border: 1px solid var(--sobae-ink);
  border-radius: 2px;
  background: var(--sobae-ink);
  color: #fff;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.sobae-shop-intro__cta:hover,
.sobae-shop-intro__cta:focus-visible {
  background: #fff;
  color: var(--sobae-ink);
}

.sobae-shop-intro__cta:focus-visible {
  outline: 2px solid var(--sobae-ink);
  outline-offset: 3px;
}

.sobae-shop-categories {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
}

.sobae-shop-categories__label {
  margin-right: 8px;
  color: var(--sobae-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sobae-shop-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--sobae-line);
  border-radius: 2px;
  color: var(--sobae-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.sobae-shop-categories a:hover,
.sobae-shop-categories a:focus-visible,
.sobae-shop-categories a[aria-current="page"] {
  border-color: var(--sobae-ink);
  background: var(--sobae-ink);
  color: #fff;
}

.sobae-shop-categories a:focus-visible {
  outline: 2px solid var(--sobae-ink);
  outline-offset: 2px;
}

/* Two guided cards per row; each card keeps the product and purpose together. */
body.woocommerce-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  margin: 0 0 72px !important;
  padding: 0 !important;
  width: 100%;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-shop ul.products li.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(190px, 0.85fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  gap: 0 24px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 0 24px;
  border-top: 1px solid var(--sobae-line);
  border-bottom: 1px solid var(--sobae-line);
  float: none !important;
  clear: none !important;
  text-align: left;
  background: #fff;
}

/* Stable square packshot; inspectable image with restrained hover */
body.woocommerce-shop ul.products li.product figure {
  grid-column: 1;
  grid-row: 1 / span 4;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--sobae-paper);
}

body.woocommerce-shop ul.products li.product .ct-media-container {
  display: block;
  width: 100%;
  height: 100%;
  padding-bottom: 0 !important;
  aspect-ratio: 1 / 1;
}

body.woocommerce-shop ul.products li.product .ct-media-container img,
body.woocommerce-shop ul.products li.product img.wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  aspect-ratio: 1 / 1 !important;
  transition: transform 220ms ease;
}

body.woocommerce-shop ul.products li.product:hover .ct-media-container img,
body.woocommerce-shop ul.products li.product:hover img.wp-post-image,
body.woocommerce-shop ul.products li.product:focus-within .ct-media-container img,
body.woocommerce-shop ul.products li.product:focus-within img.wp-post-image {
  transform: scale(1.03);
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 4px;
  padding: 0;
  min-height: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--sobae-ink);
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title a:hover,
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title a:focus-visible {
  color: var(--sobae-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sobae-shop-card__role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--sobae-muted);
}

.sobae-shop-card__step {
  padding-right: 8px;
  border-right: 1px solid var(--sobae-line);
  font-weight: 700;
  text-transform: uppercase;
}

.sobae-shop-card__role-name {
  font-weight: 700;
  text-transform: uppercase;
}

.sobae-shop-card__details {
  grid-column: 2;
  grid-row: 2;
}

.sobae-shop-card__purpose {
  margin: 0 0 16px;
  color: var(--sobae-muted);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.sobae-shop-card__use {
  margin: 0;
  color: var(--sobae-ink);
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.woocommerce-shop ul.products li.product .price {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  display: block;
  margin: 0 0 14px;
  color: var(--sobae-ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body.woocommerce-shop ul.products li.product .price .amount {
  color: inherit;
}

/* Hide generic category labels (e.g. Uncategorized) */
body.woocommerce-shop ul.products li.product .entry-meta,
body.woocommerce-shop ul.products li.product .meta-categories,
body.woocommerce-shop ul.products li.product .posted_in,
body.woocommerce-shop ul.products li.product .star-rating {
  display: none !important;
}

body.woocommerce-shop ul.products li.product .ct-woo-card-actions {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  display: block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sobae-line);
  width: 100%;
}

/* Quiet outlined action; invert on interaction. */
body.woocommerce-shop ul.products li.product .button,
body.woocommerce-shop ul.products li.product a.button.add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid var(--sobae-ink) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--sobae-ink) !important;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

body.woocommerce-shop ul.products li.product .button:hover,
body.woocommerce-shop ul.products li.product a.button.add_to_cart_button:hover {
  background: var(--sobae-ink) !important;
  border-color: var(--sobae-ink) !important;
  color: #fff !important;
}

body.woocommerce-shop ul.products li.product .button:focus-visible,
body.woocommerce-shop ul.products li.product a.button.add_to_cart_button:focus-visible {
  outline: 2px solid var(--sobae-ink);
  outline-offset: 3px;
  background: #000 !important;
  color: #fff !important;
}

body.woocommerce-shop ul.products li.product a.added_to_cart.wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--sobae-ink);
  border-radius: 2px;
  background: #fff !important;
  color: var(--sobae-ink) !important;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.woocommerce-shop ul.products li.product a.added_to_cart.wc-forward:hover,
body.woocommerce-shop ul.products li.product a.added_to_cart.wc-forward:focus-visible {
  background: var(--sobae-ink) !important;
  color: #fff !important;
}

body.woocommerce-shop ul.products li.product a.added_to_cart.wc-forward:focus-visible {
  outline: 2px solid var(--sobae-ink);
  outline-offset: 3px;
}

body.woocommerce-shop .sobae-prefooter__inner {
  grid-template-columns: minmax(0, 700px) minmax(220px, 280px);
  align-items: center;
  gap: 48px;
  min-height: 240px;
  padding-top: 52px;
  padding-bottom: 52px;
}

body.woocommerce-shop .sobae-prefooter__eyebrow {
  margin-bottom: 12px;
  color: var(--sobae-ink);
}

body.woocommerce-shop .sobae-prefooter h2 {
  max-width: 680px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
}

body.woocommerce-shop .sobae-prefooter__support {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--sobae-muted);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body.woocommerce-shop .sobae-prefooter__button {
  width: 100%;
}

body.woocommerce-shop ul.products li.product .button.loading,
body.woocommerce-shop ul.products li.product .button.added {
  border-radius: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-shop ul.products li.product .ct-media-container img,
  body.woocommerce-shop ul.products li.product img.wp-post-image,
  body.woocommerce-shop ul.products li.product .button {
    transition: none;
  }

  body.woocommerce-shop ul.products li.product:hover .ct-media-container img,
  body.woocommerce-shop ul.products li.product:hover img.wp-post-image,
  body.woocommerce-shop ul.products li.product:focus-within .ct-media-container img,
  body.woocommerce-shop ul.products li.product:focus-within img.wp-post-image {
    transform: none;
  }
}

@media (max-width: 999px) {
  body.woocommerce-shop ul.products {
    gap: 28px 20px;
  }

  body.woocommerce-shop ul.products li.product {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.9fr);
    gap: 0 18px;
  }
}

@media (max-width: 781px) {
  .sobae-shop-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    padding: 40px 0 22px;
  }

  .sobae-shop-intro__eyebrow,
  .sobae-shop-intro__title,
  .sobae-shop-intro__lead,
  .sobae-shop-intro__cta,
  .sobae-shop-categories {
    grid-column: 1;
  }

  .sobae-shop-intro__cta {
    grid-row: auto;
    margin-top: 6px;
  }

  .sobae-shop-categories {
    margin-top: 12px;
  }

  .sobae-shop-categories__label {
    flex-basis: 100%;
    margin: 0 0 2px;
  }

  .sobae-shop-intro__lead {
    font-size: 15px;
  }

  body.woocommerce-shop ul.products {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 56px !important;
  }

  body.woocommerce-shop ul.products li.product {
    grid-template-columns: minmax(128px, 0.85fr) minmax(0, 1.15fr);
    gap: 0 14px;
    padding: 16px 0 18px;
  }

  body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    min-height: 0;
  }

  .sobae-shop-card__role {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .sobae-shop-card__purpose {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  body.woocommerce-shop .sobae-prefooter__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 42px;
    padding-bottom: 44px;
  }

  body.woocommerce-shop .sobae-prefooter h2 {
    font-size: 34px;
  }

  body.woocommerce-shop .sobae-prefooter__support {
    margin-top: 14px;
    font-size: 13px;
  }

  body.woocommerce-shop ul.products li.product .price {
    font-size: 13px;
    margin-bottom: 12px;
  }

  body.woocommerce-shop ul.products li.product .button,
  body.woocommerce-shop ul.products li.product a.button.add_to_cart_button {
    min-height: 44px;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

/* PDP */
.single-product .product .product_title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
}

.single-product .product .price {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  color: var(--sobae-ink);
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-Tabs-panel {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sobae-muted);
}

.single-product .woocommerce-tabs ul.tabs {
  padding-left: 0;
}

.single-product .woocommerce-tabs ul.tabs li a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
}

@media (max-width: 781px) {
  .sobae-page__inner {
    padding: 48px 20px 72px;
  }

  .sobae-journal-hero {
    width: calc(100% - 40px);
    padding-top: 52px;
  }

  body.blog .entries {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 72px;
  }
}
