/*
Theme Name: Oilpainting MesonArt Phase 11.4A
Description: Reversible Header and Homepage visual layer for Oil Painting Website v3.1.
Author: Oilpainting
Template: oilpainting-home-theme-v3-1
Version: 1.3.0
Text Domain: oilpainting-phase-11-4a
*/

:root {
  --oph-114-ink: #171717;
  --oph-114-muted: #676767;
  --oph-114-line: #dedede;
  --oph-114-paper: #ffffff;
  --oph-114-soft: #f5f5f3;
  --oph-114-width: 1344px;
}

.site-announcement,
.oph-service-strip,
.site-header,
.oph-home {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.site-announcement {
  min-height: 38px;
  padding: 10px 20px;
  background: #171717;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.oph-service-strip {
  min-height: 34px;
  padding: 7px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  border-bottom: 1px solid var(--oph-114-line);
  background: #fff;
  color: #4b4b4b;
  font-size: 11px;
  line-height: 20px;
}

.site-header {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-header-main {
  border-bottom: 1px solid var(--oph-114-line);
  background: #fff;
}

.site-header__inner {
  width: min(100%, var(--oph-114-width));
  min-height: 76px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 32px;
}

.site-brand {
  justify-self: center;
  max-width: 220px;
  color: var(--oph-114-ink);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.oph-header-search {
  display: flex;
  align-items: center;
  max-width: 290px;
  min-height: 38px;
  border-bottom: 1px solid #999;
}

.oph-header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 37px;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--oph-114-ink);
  font: inherit;
  font-size: 12px;
}

.oph-header-search button {
  min-width: 54px;
  height: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--oph-114-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.oph-header-utilities {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-width: 230px;
  font-size: 12px;
}

.oph-header-utilities .oph-header-tools {
  display: flex;
  align-items: center;
}

.oph-header-utilities .oph-product-search {
  display: none;
}

.oph-account-link,
.oph-mini-cart > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--oph-114-ink);
  cursor: pointer;
}

.oph-mini-cart > summary {
  padding: 0;
  list-style: none;
}

.oph-mini-cart > summary::-webkit-details-marker {
  display: none;
}

.oph-header-primary-nav {
  min-height: 46px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  border-bottom: 1px solid var(--oph-114-line);
  background: #fff;
  color: #303030;
  font-size: 13px;
  font-weight: 400;
}

.oph-header-primary-nav a,
.oph-account-link,
.oph-home-section__heading a {
  position: relative;
}

.oph-header-primary-nav a::after,
.oph-account-link::after,
.oph-home-section__heading a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 140ms ease;
}

.oph-header-primary-nav a:hover::after,
.oph-account-link:hover::after,
.oph-home-section__heading a:hover::after {
  transform: scaleX(1);
}

.oph-desktop-discovery .oph-discovery-nav {
  min-height: 44px;
  border: 0;
  background: #fff;
}

.oph-desktop-discovery .oph-discovery-nav__inner {
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.oph-desktop-discovery .oph-discovery-menu {
  position: relative;
}

.oph-desktop-discovery .oph-discovery-menu > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.oph-desktop-discovery .oph-discovery-menu > summary::-webkit-details-marker {
  display: none;
}

.oph-desktop-discovery .oph-discovery-menu__panel {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 50%;
  min-width: 230px;
  padding: 14px 18px;
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--oph-114-line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.oph-desktop-discovery .oph-discovery-nav a,
.oph-desktop-discovery .oph-discovery-nav summary {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.oph-mobile-menu,
.oph-mobile-discovery {
  display: none;
}

.oph-home {
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
}

.oph-home-hero {
  width: min(calc(100% - 64px), var(--oph-114-width));
  height: 650px;
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  align-items: stretch;
  background: var(--oph-114-soft);
}

.oph-home-hero__content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.oph-home .eyebrow {
  margin: 0 0 16px;
  color: #5c5c5c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.oph-home-hero h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0;
}

.oph-home-hero__content > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0 0 30px;
  color: var(--oph-114-muted);
  font-size: 15px;
  line-height: 1.7;
}

.oph-home-hero__media {
  height: 650px;
  min-height: 650px;
  display: block;
  overflow: hidden;
  background: #e7e3dd;
}

.oph-home-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.oph-home .hero__actions .button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.oph-home-section {
  width: min(calc(100% - 96px), var(--oph-114-width));
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-home-section__heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.oph-home-section__heading h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0;
}

.oph-home-section__heading > a {
  margin-bottom: 4px;
  font-size: 12px;
}

.oph-home-section .woocommerce ul.products {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 18px;
}

.oph-home-section .woocommerce ul.products::before,
.oph-home-section .woocommerce ul.products::after {
  display: none;
}

.oph-home-section .woocommerce ul.products li.product {
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
  background: transparent;
}

.oph-home-section .woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  display: block;
  object-fit: cover;
}

.oph-home-section .woocommerce ul.products li.product h2,
.oph-home-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.oph-home-section .woocommerce ul.products li.product .price {
  margin: 0;
  color: #333;
  font-size: 13px;
  font-weight: 400;
}

.oph-home-section .woocommerce ul.products li.product .button {
  min-height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.oph-home-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.oph-home-collection {
  min-width: 0;
}

.oph-home-collection__image {
  aspect-ratio: 4 / 5;
  margin-bottom: 16px;
  display: block;
  overflow: hidden;
  background: var(--oph-114-soft);
}

.oph-home-collection__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.oph-home-collection__name,
.oph-home-collection__action {
  display: block;
}

.oph-home-collection__name {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 400;
}

.oph-home-collection__action {
  color: var(--oph-114-muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.oph-home-trust {
  width: min(calc(100% - 96px), var(--oph-114-width));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-home-trust article {
  min-width: 0;
  padding: 4px 42px;
  text-align: center;
}

.oph-home-trust article + article {
  border-left: 1px solid var(--oph-114-line);
}

.oph-home-trust h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.oph-home-trust p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--oph-114-muted);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .site-header__inner {
    padding: 0 24px;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    gap: 18px;
  }

  .oph-header-primary-nav {
    gap: 22px;
  }

  .oph-home-hero {
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  }

  .oph-home-hero__content {
    padding: 50px 38px;
  }

  .oph-home-hero h1 {
    font-size: 43px;
  }
}

@media (max-width: 760px) {
  .site-announcement {
    min-height: 36px;
    padding: 9px 14px;
    font-size: 10px;
  }

  .oph-service-strip {
    min-height: 32px;
    padding: 6px 12px;
    gap: 18px;
    font-size: 9px;
    white-space: nowrap;
  }

  .oph-service-strip span:nth-child(3) {
    display: none;
  }

  .site-header__inner {
    position: relative;
    min-height: 56px;
    height: 56px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    overflow: visible;
  }

  .site-brand {
    max-width: 150px;
    font-size: 20px;
  }

  .oph-header-search--desktop,
  .oph-header-primary-nav,
  .oph-desktop-discovery,
  .oph-account-link {
    display: none;
  }

  .oph-mobile-menu {
    position: static;
    display: block;
  }

  .oph-mobile-menu > summary {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    list-style: none;
    cursor: pointer;
  }

  .oph-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .oph-mobile-menu > summary > span[aria-hidden="true"],
  .oph-mobile-menu > summary > span[aria-hidden="true"]::before,
  .oph-mobile-menu > summary > span[aria-hidden="true"]::after {
    width: 20px;
    height: 1px;
    display: block;
    background: var(--oph-114-ink);
  }

  .oph-mobile-menu > summary > span[aria-hidden="true"] {
    position: relative;
  }

  .oph-mobile-menu > summary > span[aria-hidden="true"]::before,
  .oph-mobile-menu > summary > span[aria-hidden="true"]::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .oph-mobile-menu > summary > span[aria-hidden="true"]::before {
    top: -6px;
  }

  .oph-mobile-menu > summary > span[aria-hidden="true"]::after {
    top: 6px;
  }

  .oph-mobile-menu__panel {
    position: absolute;
    z-index: 50;
    top: 56px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 124px);
    padding: 20px;
    overflow-y: auto;
    border-top: 1px solid var(--oph-114-line);
    border-bottom: 1px solid var(--oph-114-line);
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .oph-header-search--mobile {
    max-width: none;
    margin-bottom: 18px;
  }

  .oph-mobile-primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--oph-114-line);
  }

  .oph-mobile-primary-nav a {
    min-height: 46px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--oph-114-line);
    font-size: 12px;
  }

  .oph-mobile-primary-nav a:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--oph-114-line);
  }

  .oph-mobile-discovery {
    display: block;
    margin-top: 16px;
  }

  .oph-mobile-discovery .oph-discovery-nav {
    border: 0;
    background: #fff;
  }

  .oph-mobile-discovery .oph-discovery-nav__inner {
    padding: 0;
    display: grid;
    gap: 0;
  }

  .oph-header-utilities {
    min-width: 0;
    gap: 0;
  }

  .oph-header-utilities .oph-header-tools,
  .oph-header-utilities .oph-header-cart,
  .oph-header-utilities .oph-mini-cart > summary {
    min-width: 48px;
  }

  .oph-header-utilities .oph-mini-cart > summary {
    min-height: 44px;
    justify-content: flex-end;
    font-size: 11px;
  }

  .oph-header-utilities .oph-mini-cart__panel {
    position: fixed;
    top: 124px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

  .oph-home-hero {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .oph-home-hero__media {
    order: -1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1.08;
    height: auto;
    min-height: 0;
  }

  .oph-home-hero__content {
    padding: 22px 20px 26px;
  }

  .oph-home-hero h1 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.16;
  }

  .oph-home-hero__content > p:not(.eyebrow) {
    display: none;
  }

  .oph-home .hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oph-home .hero__actions .button {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
    font-size: 10px;
  }

  .oph-home-section {
    width: calc(100% - 32px);
    padding: 46px 0;
  }

  .oph-home-section__heading {
    margin-bottom: 22px;
    align-items: flex-end;
  }

  .oph-home-section__heading h2 {
    font-size: 24px;
  }

  .oph-home-section .woocommerce ul.products,
  .oph-home-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  .oph-home-section .woocommerce ul.products li.product h2,
  .oph-home-section .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.45;
  }

  .oph-home-section .woocommerce ul.products li.product .price {
    font-size: 11px;
  }

  .oph-home-section .woocommerce ul.products li.product .button {
    width: 100%;
    min-height: 34px;
    padding: 0 7px;
    white-space: normal;
  }

  .oph-home-collection__name {
    min-height: 42px;
    font-size: 13px;
    line-height: 1.5;
  }

  .oph-home-trust {
    width: calc(100% - 32px);
    padding: 20px 0 42px;
    grid-template-columns: 1fr;
  }

  .oph-home-trust article {
    padding: 22px 10px;
  }

  .oph-home-trust article + article {
    border-top: 1px solid var(--oph-114-line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oph-header-primary-nav a::after,
  .oph-account-link::after,
  .oph-home-section__heading a::after {
    transition: none;
  }
}

/* Phase 11.4B: shared WooCommerce product card */
.woocommerce ul.products,
.oph-product-search-results ul.products {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.oph-product-search-results ul.products::before,
.oph-product-search-results ul.products::after {
  display: none;
}

.woocommerce ul.products li.product.oph-product-card,
.oph-product-search-results ul.products li.product.oph-product-card {
  position: relative;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
  background: transparent;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.oph-product-card__media-shell {
  position: relative;
  aspect-ratio: 1 / 1;
}

.oph-product-card__media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: var(--oph-114-soft);
}

.woocommerce ul.products li.product.oph-product-card .oph-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.oph-product-card__image--hover {
  opacity: 0;
}

@media (hover: hover) {
  .oph-product-card:has(.oph-product-card__image--hover):hover .oph-product-card__image--primary,
  .oph-product-card:has(.oph-product-card__image--hover):focus-within .oph-product-card__image--primary {
    opacity: 0;
  }

  .oph-product-card:hover .oph-product-card__image--hover,
  .oph-product-card:focus-within .oph-product-card__image--hover {
    opacity: 1;
  }
}

.oph-product-card .onsale {
  top: 10px;
  right: auto;
  left: 10px;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.oph-product-card__quick-view {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  z-index: 3;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--oph-114-ink);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--oph-114-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.oph-product-card:hover .oph-product-card__quick-view,
.oph-product-card:focus-within .oph-product-card__quick-view {
  opacity: 1;
  transform: translateY(0);
}

.oph-product-card__body {
  padding-top: 14px;
}

.oph-product-card__title {
  min-height: 44px;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.oph-product-card__title a {
  color: var(--oph-114-ink);
  text-decoration: none;
}

.oph-product-card__rating {
  min-height: 18px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--oph-114-muted);
  font-size: 10px;
  line-height: 1;
}

.oph-product-card__rating .star-rating {
  width: 5.4em;
  margin: 0;
  color: var(--oph-114-ink);
  font-size: 10px;
}

.oph-product-card__stars--empty {
  color: var(--oph-114-muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.oph-product-card__price {
  min-height: 23px;
  margin: 0;
  color: var(--oph-114-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.oph-product-card__price-label {
  color: var(--oph-114-muted);
  font-size: 11px;
}

.oph-product-card__price .amount {
  color: inherit;
  font-weight: 500;
}

.oph-product-card__choose.button {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oph-114-ink);
  border-radius: 0;
  background: var(--oph-114-ink);
  color: var(--oph-114-paper);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.oph-product-card__choose.button:hover,
.oph-product-card__choose.button:focus-visible {
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
}

.oph-quick-view {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--oph-114-line);
  border-radius: 0;
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
}

.oph-quick-view::backdrop {
  background: rgba(0, 0, 0, 0.52);
}

.oph-quick-view__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--oph-114-line);
  border-radius: 0;
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.oph-quick-view__content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
}

.oph-quick-view__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--oph-114-soft);
}

.oph-quick-view__details {
  padding: 56px 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.oph-quick-view__eyebrow {
  margin: 0 0 10px;
  color: var(--oph-114-muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.oph-quick-view__title {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
}

.oph-quick-view__price {
  margin: 0 0 24px;
  font-size: 14px;
}

.oph-quick-view__link.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--oph-114-ink);
  color: var(--oph-114-paper);
  font-size: 11px;
}

@media (max-width: 1024px) and (min-width: 701px) {
  .woocommerce ul.products,
  .oph-home-section .woocommerce ul.products,
  .oph-product-search-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .woocommerce ul.products,
  .oph-home-section .woocommerce ul.products,
  .oph-product-search-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  .oph-product-card__quick-view {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 34px;
    opacity: 1;
    transform: none;
  }

  .oph-product-card__body {
    padding-top: 11px;
  }

  .oph-product-card__title {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.45;
  }

  .oph-product-card__rating {
    gap: 4px;
    font-size: 9px;
  }

  .oph-product-card__price {
    font-size: 11px;
  }

  .oph-product-card__price-label {
    display: block;
    font-size: 9px;
  }

  .oph-product-card__choose.button {
    min-height: 36px;
    padding: 0 7px;
    font-size: 10px;
  }

  .oph-quick-view__content {
    grid-template-columns: 1fr;
  }

  .oph-quick-view__image {
    aspect-ratio: 4 / 3;
  }

  .oph-quick-view__details {
    padding: 24px 20px 22px;
  }

  .oph-quick-view__title {
    padding-right: 28px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product.oph-product-card .oph-product-card__image,
  .oph-product-card__quick-view {
    transition: none;
  }
}

/* Phase 11.4C: single product */
.oph-product-page {
  padding-top: 42px;
  padding-bottom: 80px;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.oph-product-page .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: var(--oph-114-muted);
  font-size: 11px;
}

.oph-product-page .woocommerce-breadcrumb a {
  color: inherit;
}

.oph-pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
}

.oph-pdp-gallery {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.oph-pdp-gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  background: var(--oph-114-soft);
}

.oph-pdp-gallery__main img {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: contain;
}

.oph-pdp-gallery__thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 10px;
}

.oph-pdp-gallery__thumb {
  position: relative;
  width: 76px;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--oph-114-soft);
  cursor: pointer;
}

.oph-pdp-gallery__thumb[aria-current="true"] {
  border-color: var(--oph-114-ink);
}

.oph-pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: cover;
}

.oph-pdp-summary {
  position: sticky;
  top: 190px;
  min-width: 0;
}

.oph-pdp-summary > .eyebrow {
  margin-bottom: 12px;
}

.oph-pdp-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: 0;
}

.oph-pdp-rating {
  min-height: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--oph-114-muted);
  font-size: 11px;
}

.oph-pdp-rating .star-rating {
  width: 5.4em;
  margin: 0;
  color: var(--oph-114-ink);
  font-size: 12px;
}

.oph-pdp-rating__empty {
  font-size: 15px;
  letter-spacing: 1px;
}

.oph-pdp-price {
  margin: 0 0 18px;
  color: var(--oph-114-ink);
  font-size: 22px;
  font-weight: 500;
}

.oph-pdp-price__label {
  margin-right: 5px;
  color: var(--oph-114-muted);
  font-size: 12px;
  font-weight: 400;
}

.oph-pdp-intro {
  margin: 0 0 18px;
  color: #4e4e4e;
  font-size: 13px;
  line-height: 1.7;
}

.oph-pdp-stock {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #315f3a;
  font-size: 11px;
  font-weight: 500;
}

.oph-pdp-stock::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.oph-pdp-stock.is-unavailable {
  color: #8b2f2f;
}

.oph-pdp-summary form.cart {
  margin: 0;
}

.oph-pdp-summary table.variations {
  width: 100%;
  margin: 0 0 8px;
  border: 0;
}

.oph-pdp-summary table.variations tbody,
.oph-pdp-summary table.variations tr,
.oph-pdp-summary table.variations th,
.oph-pdp-summary table.variations td {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
}

.oph-pdp-summary table.variations tr {
  position: relative;
  margin-bottom: 16px;
}

.oph-pdp-summary table.variations .label {
  margin-bottom: 7px;
  color: var(--oph-114-ink);
  font-size: 11px;
  font-weight: 500;
}

.oph-pdp-summary table.variations label {
  font-weight: inherit;
}

.oph-pdp-summary table.variations select {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 38px 0 13px;
  border: 1px solid var(--oph-114-line);
  border-radius: 0;
  background-color: var(--oph-114-paper);
  color: var(--oph-114-ink);
  font-family: inherit;
  font-size: 12px;
}

.oph-pdp-summary .reset_variations {
  margin-top: 7px;
  display: inline-block;
  color: var(--oph-114-muted);
  font-size: 10px;
}

.oph-pdp-summary .woocommerce-variation {
  margin: 4px 0 14px;
}

.oph-pdp-summary .woocommerce-variation-price {
  color: var(--oph-114-ink);
  font-size: 20px;
  font-weight: 500;
}

.oph-pdp-summary .woocommerce-variation-availability {
  color: #315f3a;
  font-size: 11px;
}

.oph-pdp-summary .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
}

.oph-pdp-summary .quantity,
.oph-pdp-summary .quantity .qty {
  width: 84px;
}

.oph-pdp-summary .quantity .qty {
  min-height: 48px;
  border: 1px solid var(--oph-114-line);
  border-radius: 0;
  font-family: inherit;
}

.oph-pdp-summary .single_add_to_cart_button.button {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--oph-114-ink);
  border-radius: 0;
  background: var(--oph-114-ink);
  color: var(--oph-114-paper);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.oph-pdp-summary .single_add_to_cart_button.button:hover,
.oph-pdp-summary .single_add_to_cart_button.button:focus-visible {
  background: var(--oph-114-paper);
  color: var(--oph-114-ink);
}

.oph-pdp-trust {
  margin-top: 28px;
  border-top: 1px solid var(--oph-114-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oph-pdp-trust article {
  min-width: 0;
  padding: 16px 12px 14px 0;
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-pdp-trust article:nth-child(2n) {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid var(--oph-114-line);
}

.oph-pdp-trust h2 {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 500;
}

.oph-pdp-trust p {
  margin: 0;
  color: var(--oph-114-muted);
  font-size: 10px;
  line-height: 1.55;
}

.oph-pdp-section {
  margin-top: 86px;
  padding-top: 54px;
  border-top: 1px solid var(--oph-114-line);
}

.oph-pdp-section__heading {
  margin-bottom: 30px;
}

.oph-pdp-section__heading h2,
.oph-product-page .related.products > h2,
.oph-product-page .woocommerce-Reviews-title {
  margin: 0;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
}

.oph-pdp-description__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
}

.oph-pdp-description__copy {
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.8;
}

.oph-pdp-description__copy > :first-child {
  margin-top: 0;
}

.oph-pdp-story {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--oph-114-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.oph-pdp-story h3,
.oph-pdp-specs dt {
  margin: 0 0 7px;
  color: var(--oph-114-ink);
  font-size: 11px;
  font-weight: 500;
}

.oph-pdp-story p,
.oph-pdp-specs dd {
  margin: 0;
  color: var(--oph-114-muted);
  font-size: 12px;
  line-height: 1.65;
}

.oph-pdp-specs {
  margin: 0;
  border-top: 1px solid var(--oph-114-line);
}

.oph-pdp-specs > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-product-page .related.products {
  margin-top: 86px;
  padding-top: 54px;
  border-top: 1px solid var(--oph-114-line);
}

.oph-product-page .related.products > h2 {
  margin-bottom: 30px;
}

.oph-product-page .related.products ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oph-pdp-reviews #reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 64px;
}

.oph-pdp-reviews #comments,
.oph-pdp-reviews #review_form_wrapper {
  width: auto;
  float: none;
}

.oph-pdp-reviews .comment-reply-title {
  font-size: 22px;
  font-weight: 400;
}

.oph-pdp-reviews .woocommerce-Reviews-title {
  display: none;
}

.oph-pdp-reviews #reply-title {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

.oph-pdp-reviews textarea,
.oph-pdp-reviews input[type="text"],
.oph-pdp-reviews input[type="email"] {
  width: 100%;
  border: 1px solid var(--oph-114-line);
  border-radius: 0;
}

.woocommerce .oph-pdp-reviews #respond input#submit {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--oph-114-ink);
  border-radius: 0;
  background: var(--oph-114-ink);
  color: var(--oph-114-paper);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .oph-pdp-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 38px;
  }

  .oph-pdp-gallery {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .oph-pdp-gallery__thumb {
    width: 62px;
  }

  .oph-pdp-title {
    font-size: 32px;
  }

  .oph-product-page .related.products ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .oph-product-page {
    width: calc(100% - 32px);
    padding-top: 22px;
    padding-bottom: 54px;
  }

  .oph-product-page .woocommerce-breadcrumb {
    margin-bottom: 18px;
  }

  .oph-pdp-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .oph-pdp-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .oph-pdp-gallery__main {
    grid-column: 1;
    grid-row: 1;
  }

  .oph-pdp-gallery__thumbs {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(4, 64px);
    gap: 8px;
    overflow-x: auto;
  }

  .oph-pdp-gallery__thumb {
    width: 64px;
  }

  .oph-pdp-summary {
    position: static;
  }

  .oph-pdp-title {
    font-size: 28px;
  }

  .oph-pdp-price {
    font-size: 19px;
  }

  .oph-pdp-summary table.variations select {
    min-height: 44px;
    font-size: 11px;
  }

  .oph-pdp-summary .woocommerce-variation-add-to-cart {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .oph-pdp-summary .quantity,
  .oph-pdp-summary .quantity .qty {
    width: 70px;
  }

  .oph-pdp-section,
  .oph-product-page .related.products {
    margin-top: 58px;
    padding-top: 38px;
  }

  .oph-pdp-section__heading h2,
  .oph-product-page .related.products > h2,
  .oph-product-page .woocommerce-Reviews-title {
    font-size: 26px;
  }

  .oph-pdp-description__grid,
  .oph-pdp-reviews #reviews {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .oph-pdp-story {
    grid-template-columns: 1fr;
  }

  .oph-product-page .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oph-pdp-gallery__main img {
    transition: none;
  }
}

/* Phase 11.5C Artist system */
.oph-artists-page,
.oph-artist-page {
  width: min(var(--oph-114-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  color: var(--oph-114-ink);
  letter-spacing: 0;
}

.oph-artists-intro,
.oph-artist-profile {
  border-bottom: 1px solid var(--oph-114-line);
}

.oph-artists-intro {
  max-width: 760px;
  padding-bottom: 42px;
}

.oph-artists-intro h1,
.oph-artist-profile h1 {
  margin: 8px 0 14px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.oph-artists-intro > p:last-child {
  margin: 0;
  color: var(--oph-114-muted);
  font-size: 14px;
  line-height: 1.8;
}

.oph-artist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 22px;
  margin-top: 46px;
}

.oph-artist-card {
  min-width: 0;
}

.oph-artist-card__portrait,
.oph-artist-profile__portrait {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--oph-114-soft);
}

.oph-artist-card__portrait {
  aspect-ratio: 4 / 5;
}

.oph-artist-card__portrait img,
.oph-artist-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oph-artist-card__portrait-placeholder,
.oph-artist-profile__portrait-placeholder {
  color: #9a9a96;
  font-size: 36px;
  font-weight: 300;
}

.oph-artist-card h2 {
  margin: 18px 0 4px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.oph-artist-card__country,
.oph-artist-card__intro {
  margin: 0;
  color: var(--oph-114-muted);
  font-size: 12px;
  line-height: 1.65;
}

.oph-artist-card__intro {
  margin-top: 10px;
}

.oph-artist-card__action {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--oph-114-ink);
  color: var(--oph-114-ink);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.oph-artist-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 72px;
  padding-bottom: 64px;
}

.oph-artist-profile__content {
  align-self: center;
}

.oph-artist-profile__location,
.oph-artist-profile__born {
  margin: 0;
  color: var(--oph-114-muted);
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
}

.oph-artist-profile__born {
  margin-top: 8px;
}

.oph-artist-profile__credentials {
  margin-top: 26px;
}

.oph-artist-profile__credentials h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
}

.oph-artist-profile__credentials ul,
.oph-artist-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oph-artist-profile__credentials li,
.oph-artist-profile__tags span {
  padding: 7px 10px;
  border: 1px solid var(--oph-114-line);
  font-size: 10px;
  line-height: 1.2;
}

.oph-artist-profile blockquote {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 1px solid var(--oph-114-ink);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.oph-artist-profile__bio,
.oph-artist-profile__style {
  margin: 22px 0 0;
  color: var(--oph-114-muted);
  font-size: 13px;
  line-height: 1.8;
}

.oph-artist-profile__portrait {
  min-height: 520px;
  aspect-ratio: 4 / 5;
}

.oph-artist-artworks {
  margin-top: 62px;
}

.oph-artist-artworks__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.oph-artist-artworks__heading h2 {
  margin: 6px 0 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.oph-artist-artworks__count {
  color: var(--oph-114-muted);
  font-size: 11px;
}

.oph-artist-artworks .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
  margin: 0;
}

.oph-artist-page .oph-home-section,
.oph-artist-page .oph-home-trust {
  width: 100%;
}

.oph-artist-page .oph-home-section {
  margin-top: 76px;
}

@media (max-width: 1024px) {
  .oph-artist-grid,
  .oph-artist-artworks .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oph-artist-profile {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 44px;
  }
}

@media (max-width: 760px) {
  .oph-artists-page,
  .oph-artist-page {
    width: calc(100% - 32px);
    padding: 34px 0 56px;
  }

  .oph-artists-intro h1,
  .oph-artist-profile h1 {
    font-size: 32px;
  }

  .oph-artist-grid,
  .oph-artist-artworks .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
  }

  .oph-artist-profile {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 42px;
  }

  .oph-artist-profile__portrait {
    grid-row: 1;
    min-height: 0;
  }

  .oph-artist-profile__content {
    grid-row: 2;
  }

  .oph-artist-artworks {
    margin-top: 44px;
  }

  .oph-artist-artworks__heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .oph-artist-artworks__heading h2 {
    font-size: 26px;
  }

  .oph-artist-page .oph-home-section {
    margin-top: 58px;
  }
}
