/* Shop-Startseite (inc/shop-landing.php).
   Basis: OrangeCAD-Look (Nunito, #ff591a, 20px-Karten, Pill-Buttons).
   Zusatzfarben aus Radix Colors (orange 2–4/11, gray 2/11). */

.ocm-shop {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: var(--wp--preset--spacing--10, 2.5rem);
  margin-bottom: var(--wp--preset--spacing--16, 4rem);
  color: var(--ocm-fg);
}

.ocm-shop a,
.ocm-listing-head a,
.ocm-sidebar a { text-decoration: none; }

.ocm-icon { width: 1.25rem; height: 1.25rem; flex: none; }

.ocm-h2 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.ocm-h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.ocm-muted { margin: .25rem 0 0; color: var(--ocm-muted); font-size: .875rem; }

.ocm-card {
  background: #fff;
  border: 1px solid var(--ocm-border-strong);
  border-radius: var(--ocm-radius);
}

/* Workflows */
.ocm-workflows { display: flex; flex-direction: column; gap: 1rem; }
.ocm-workflows__list { display: flex; flex-wrap: wrap; gap: .625rem; }
.ocm-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: 999px;
  background: var(--ocm-chip);
  color: #fff !important;
  font-weight: 700;
  font-size: .9375rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ocm-chip:hover { filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 4px 12px rgb(0 0 0 / .12); }
.ocm-chip--muted { --ocm-chip: #f0f0f0; color: var(--ocm-fg) !important; border: 1px solid var(--ocm-border-strong); }

/* Artikelnummer / Suche */
.ocm-lookup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ocm-lookup__card { padding: 1.5rem; margin: 0; }
.ocm-lookup__row { display: flex; gap: .625rem; margin-top: 1rem; }
.ocm-input {
  flex: 1;
  min-width: 0;
  height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--ocm-border-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: .9375rem;
  color: var(--ocm-fg);
}
.ocm-input:focus { outline: none; border-color: var(--ocm-primary); box-shadow: 0 0 0 3px var(--ocm-tint-strong); }
.ocm-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--ocm-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}
.ocm-btn:hover { filter: brightness(.94); }

/* Feature-Leisten */
.ocm-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 1.25rem 0; }
.ocm-feature { display: flex; align-items: center; gap: .875rem; padding: 0 1.5rem; }
.ocm-feature + .ocm-feature { border-left: 1px solid var(--ocm-border-strong); }
.ocm-feature__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 999px;
  background: var(--ocm-tint);
  color: var(--ocm-accent-text);
}
.ocm-feature__icon .ocm-icon { width: 1.5rem; height: 1.5rem; }
.ocm-feature div strong { display: block; font-size: .9375rem; }
.ocm-feature div span { display: block; color: var(--ocm-muted); font-size: .8125rem; line-height: 1.4; }
.ocm-features--trust { background: var(--ocm-surface); border-color: var(--ocm-border); }

/* Layout Sidebar + Inhalt */
.ocm-shop__layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ocm-shop__main { display: flex; flex-direction: column; gap: 1.5rem; }

/* Sidebar-Navigation */
.ocm-nav { overflow: hidden; font-size: .875rem; color: var(--ocm-fg); }
.ocm-shop__layout .ocm-nav { position: sticky; top: 1.5rem; }
.ocm-nav__head {
  padding: .875rem 1.25rem;
  background: var(--ocm-fg);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .8125rem;
}
.ocm-nav summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ocm-nav summary::-webkit-details-marker { display: none; }
.ocm-nav summary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
  opacity: .6;
}
.ocm-nav details[open] > summary::after { transform: rotate(-135deg); }
.ocm-nav__section { padding: 1rem 1.25rem; border-bottom: 1px solid var(--ocm-border); }
.ocm-nav__section > summary { gap: .5rem; font-weight: 800; text-transform: uppercase; font-size: .8125rem; letter-spacing: .04em; hyphens: auto; overflow-wrap: anywhere; }
.ocm-nav ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.ocm-nav li a {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .3rem .5rem;
  margin: 0 -.5rem;
  border-radius: 8px;
  color: var(--ocm-fg);
}
.ocm-nav li a:hover,
.ocm-nav li a.is-active { background: var(--ocm-tint); color: var(--ocm-accent-text); }
.ocm-nav li a.is-active { font-weight: 700; }
.ocm-nav li .ocm-icon { width: 1.125rem; height: 1.125rem; color: var(--ocm-muted); }
.ocm-nav__maker { margin-top: .5rem; }
.ocm-nav__maker > summary { font-weight: 700; padding: .2rem 0; }
.ocm-nav__maker ul { margin: .25rem 0 .25rem .75rem; }
.ocm-dot { width: .625rem; height: .625rem; border-radius: 999px; background: var(--ocm-chip); flex: none; }
.ocm-nav__all { display: block; padding: 1rem 1.25rem; }
.ocm-link { color: var(--ocm-primary) !important; font-weight: 700; }
.ocm-link:hover { text-decoration: underline; }

/* Panels */
.ocm-panel { padding: 1.5rem; }
.ocm-panel__head { margin-bottom: 1.25rem; }

/* Implantatsysteme */
.ocm-systems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem; }
.ocm-system--wide { grid-column: 1 / -1; }
.ocm-systems .ocm-system--wide .ocm-system__title { text-align: left; }
.ocm-systems .ocm-system--wide ul { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.ocm-systems .ocm-system--wide a { background: #fff; border: 1px solid var(--ocm-border-strong); border-radius: 999px; padding: .375rem .5rem .375rem .875rem; }
.ocm-system {
  padding: 1.25rem 1rem;
  border: 1px solid var(--ocm-border);
  border-radius: 16px;
  background: var(--ocm-surface);
}
.ocm-system__title { margin: 0 0 .75rem; font-size: 1rem; font-weight: 800; text-align: center; }
.ocm-system ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.ocm-system a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .4rem .625rem;
  border-radius: 10px;
  color: var(--ocm-fg);
  font-size: .875rem;
  line-height: 1.3;
}
.ocm-system a:hover { background: #fff; color: var(--ocm-accent-text); box-shadow: 0 1px 0 var(--ocm-border-strong); }
.ocm-count {
  flex: none;
  min-width: 1.5rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ocm-border-strong);
  color: var(--ocm-muted);
  font-size: .75rem;
  text-align: center;
}

/* Produktgruppen */
.ocm-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem; }
.ocm-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid var(--ocm-border);
  border-radius: var(--ocm-radius);
  background: var(--ocm-surface);
  color: var(--ocm-fg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ocm-group:hover { border-color: var(--ocm-primary); box-shadow: 0 6px 20px rgb(255 89 26 / .12); transform: translateY(-2px); }
.ocm-group__media { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: .75rem; color: var(--ocm-muted); }
.ocm-group__media .ocm-icon { width: 3.5rem; height: 3.5rem; }
.ocm-group__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ocm-group__title { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.ocm-group__text { margin-top: .375rem; color: var(--ocm-muted); font-size: .8125rem; line-height: 1.4; }

/* Listing: Kopf-Karte */
.ocm-listing-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: var(--wp--preset--spacing--8, 2rem) !important;
  margin-bottom: var(--wp--preset--spacing--8, 2rem) !important;
  padding: 1.75rem;
  color: var(--ocm-fg);
}
.ocm-listing-head__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.ocm-eyebrow {
  display: inline-block;
  margin-bottom: .375rem;
  color: var(--ocm-accent-text);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ocm-listing-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}
.ocm-code {
  padding: .2rem .625rem;
  border-radius: 999px;
  background: var(--ocm-surface);
  border: 1px solid var(--ocm-border-strong);
  color: var(--ocm-muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.ocm-dot--lg { width: .875rem; height: .875rem; }
.ocm-listing-head__count {
  flex: none;
  padding: .375rem .875rem;
  border-radius: 999px;
  background: var(--ocm-tint);
  color: var(--ocm-accent-text);
  font-size: .875rem;
  font-weight: 700;
}
.ocm-filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--ocm-border); }
.ocm-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem .4rem .875rem;
  border: 1px solid var(--ocm-border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ocm-fg) !important;
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.ocm-filter-chip:not(:has(.ocm-count)) { padding-right: .875rem; }
.ocm-filter-chip:hover { border-color: var(--ocm-primary); }
.ocm-filter-chip.is-active { background: var(--ocm-primary); border-color: var(--ocm-primary); color: #fff !important; }
.ocm-filter-chip.is-active .ocm-count { background: rgb(255 255 255 / .25); border-color: transparent; color: #fff; }

/* Listing: Sidebar (Navigation + WooCommerce-Filter) */
.ocm-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.ocm-filters { padding: 0 1.25rem 1.25rem; overflow: hidden; }
.ocm-filters__head {
  margin: 0 -1.25rem 1.25rem;
  padding: .875rem 1.25rem;
  background: var(--ocm-fg);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .8125rem;
}
.ocm-filters .wp-block-separator { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
.ocm-filters h3 { margin-bottom: .875rem !important; font-weight: 800; letter-spacing: .04em; }

/* Produktseite */
.single-product .wp-block-woocommerce-product-gallery-large-image {
  background: var(--ocm-surface);
  border: 1px solid var(--ocm-border);
  border-radius: var(--ocm-radius);
  overflow: hidden;
}
.single-product .wp-block-woocommerce-product-gallery-large-image img { mix-blend-mode: multiply; }
.ocm-product-info {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ocm-border-strong);
  border-radius: var(--ocm-radius);
  background: #fff;
  color: var(--ocm-fg);
  font-size: .875rem;
}
.ocm-product-info .taxonomy-product_cat { display: none; }

/* Produktseite: Titel-Kopf (Eyebrow mit System + Code, darunter kurzer Name) */
.ocm-product-head { display: flex; flex-direction: column; gap: .5rem; }
.ocm-product-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.ocm-product-eyebrow .ocm-code { letter-spacing: .02em; text-transform: none; }
.ocm-product-head .wp-block-post-title { margin: 0 !important; font-weight: 800 !important; line-height: 1.15; }

/* Produktseite: Vorteils-Liste als helle Karte mit orangen Haken (wie Feature-Icons der Startseite) */
.single-product main .wp-block-column .wp-block-columns.alignfull {
  gap: .875rem 1.5rem !important;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ocm-border);
  border-radius: var(--ocm-radius);
  background: var(--ocm-surface);
}
.single-product main .wp-block-column .wp-block-columns.alignfull .wp-block-column { display: flex; flex-direction: column; gap: .875rem; }
.single-product main .wp-block-column .wp-block-columns.alignfull .wp-block-column > * { margin: 0 !important; }
.single-product main .wp-block-column .wp-block-columns.alignfull .wp-block-group { align-items: center; gap: .75rem; }
.single-product main .wp-block-column .wp-block-columns.alignfull .wp-block-outermost-icon-block { flex: none; margin: 0 !important; }
.single-product main .wp-block-column .wp-block-columns.alignfull .icon-container {
  position: relative;
  width: 2rem !important;
  height: 2rem;
  border-radius: 99px;
  background: var(--ocm-tint);
}
.single-product main .wp-block-column .wp-block-columns.alignfull .icon-container svg { display: none; }
.single-product main .wp-block-column .wp-block-columns.alignfull .icon-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ocm-accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
}
.single-product main .wp-block-column .wp-block-columns.alignfull p { font-size: .875rem !important; line-height: 1.35; }

/* Produktseite: "Ähnliche Produkte" wie die übrigen Abschnittstitel */
.single-product .wp-block-woocommerce-product-collection h2.is-style-text-display {
  font-size: 1.5rem !important;
  font-weight: 800;
  letter-spacing: 0;
}
.single-product .wp-block-woocommerce-product-collection h2.is-style-text-display strong { font-weight: inherit; }

/* Produktseite: Varianten-Auswahl (Plattform, Gingivahöhe …) als Pills */
.wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
  color: var(--ocm-fg);
  font-size: .8125rem;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__items { gap: .5rem; }
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__item {
  /* Maße/Typo wie der "In den Warenkorb"-Button (wp-element-button) */
  min-width: 3.5rem;
  min-height: 41px;
  padding: 9px 20px; /* + 1px Rand = Höhe des Buttons */
  border: 1px solid var(--ocm-border-strong);
  border-radius: 99px;
  background: #fff;
  color: var(--ocm-fg);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .4px;
  line-height: 1.55;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__item:hover:not(:disabled) {
  border-color: var(--ocm-primary);
  color: var(--ocm-accent-text);
}
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ocm-tint-strong);
  border-color: var(--ocm-primary);
}
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__item[aria-checked="true"] {
  border-color: var(--ocm-primary);
  background: var(--ocm-primary);
  color: #fff;
}
/* Kombination nicht lieferbar */
.wp-block-woocommerce-add-to-cart-with-options .wc-block-product-filter-chips__item:disabled {
  border-style: dashed;
  background: var(--ocm-surface);
  color: #b4b4b4;
  text-decoration: line-through;
  cursor: not-allowed;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .ocm-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .ocm-shop__layout { grid-template-columns: 1fr; }
  .ocm-nav { position: static; order: 2; }
  .ocm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }
  .ocm-feature:nth-child(3) { border-left: 0; }
}
@media (max-width: 781px) {
  .ocm-listing-head { padding: 1.25rem; }
  .ocm-listing-head__top { flex-direction: column; align-items: flex-start; }
  /* Chips als wischbare Zeile statt Block */
  .ocm-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -1.25rem;
    padding: 1.25rem 1.25rem .25rem;
    scrollbar-width: none;
  }
  .ocm-filter-chips::-webkit-scrollbar { display: none; }
  .ocm-filter-chip { flex: none; }
  /* Sidebar (Navigation + Filter) unter die Produkte */
  .wp-block-column:has(> .ocm-sidebar) { order: 2; }
  .ocm-lookup { grid-template-columns: minmax(0, 1fr); }
  .ocm-systems, .ocm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocm-h2 { font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .ocm-features { grid-template-columns: 1fr; }
  .ocm-feature + .ocm-feature { border-left: 0; }
  .ocm-systems { grid-template-columns: 1fr; }
  .ocm-btn span { display: none; }
  .ocm-btn { padding: 0 1rem; }
  .ocm-lookup__card, .ocm-panel { padding: 1.125rem; }
  .ocm-chip { padding: .5rem 1rem; font-size: .875rem; }
}

/* Produktseite: nicht vorrätig (inc/shop-landing.php) */
.ocm-stock-notice {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ocm-border-strong);
  border-radius: var(--ocm-radius);
  background: var(--ocm-surface);
}
.ocm-stock-notice__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--ocm-tint);
  color: var(--ocm-accent-text);
}
.ocm-stock-notice__icon svg { width: 1.25rem; height: 1.25rem; }
.ocm-stock-notice p { margin: 0; }
.ocm-stock-notice__title { color: var(--ocm-fg); font-weight: 800; }
.ocm-stock-notice .ocm-muted { margin-top: .25rem; font-size: .9375rem; }
.ocm-stock-notice .ocm-btn {
  height: auto;
  min-height: 41px;
  margin-top: 1rem;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .4px;
  text-decoration: none;
}
