/* All overrides are opt-in through the child extension's body class. */
body.de-shop {
  --de-shop-bg: var(--de-bg);
  --de-shop-panel: var(--de-panel);
  --de-shop-text: var(--de-text);
  --de-shop-muted: var(--de-muted);
  --de-shop-gold: var(--de-gold);
  --de-shop-line: var(--de-line);
  --de-shop-font: "Public Sans", arial, sans-serif;
  --de-shop-heading: "Barlow Condensed", arial, sans-serif;
  --wd-primary-color: var(--de-shop-gold);
  --wd-text-color: var(--de-shop-text);
  --wd-title-color: var(--de-shop-text);
  --wd-link-color: var(--de-shop-text);
  --wd-link-color-hover: var(--de-shop-gold);
  --wd-main-bgcolor: var(--de-shop-bg);
  --wd-form-bg: var(--de-shop-panel);
  --wd-form-color: var(--de-shop-text);
  --wd-form-brd-color: var(--de-shop-line);
  --wd-text-font: var(--de-shop-font);
  --wd-title-font: var(--de-shop-heading);

  margin: 0;
  isolation: isolate;
  background: var(--de-shop-bg);
  color: var(--de-shop-text);
  color-scheme: dark;
  font: 400 16px/1.6 var(--de-shop-font);
}

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

.de-shop a {
  color: inherit;
}

.de-shop a:hover {
  color: var(--de-shop-gold);
}

.de-shop :focus-visible {
  outline: 3px solid var(--de-shop-gold);
  outline-offset: 4px;
}

.de-shop img {
  max-width: 100%;
  height: auto;
}

.de-shop h1, .de-shop h2, .de-shop h3, .de-shop h4 {
  color: var(--de-shop-text);
  font-family: var(--de-shop-heading);
  font-weight: 700;
  line-height: 1.1;
}

.de-shop h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
}

.de-shop h2 {
  font-size: 2rem;
}

.de-shop h3 {
  font-size: 1.625rem;
}

.de-shop .de-shop-wrap {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.de-shop main {
  min-height: 45vh;
  padding-block: 28px 40px;
}

.de-shop .de-shop-page-title {
  margin-block: 0 32px;
}

/* The same fixed backdrop and overlay as the main website. */
.de-shop .de-shop-backdrop {
  position: fixed;
  inset: 0;
  bottom: auto;
  height: 100vh;
  height: var(--de-backdrop-height, 100lvh);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--de-shop-bg);
}

.de-shop .de-shop-backdrop picture {
  display: block;
  width: 100%;
  height: 100%;
}

.de-shop .de-shop-backdrop img {
  display: block;
  width: 100%;
  height: 142.8571%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

/* Portrait fallback; the controller fits short pages to the full image. */
@media (max-aspect-ratio: 1/1) {
  .de-shop .de-shop-backdrop img {
    height: 125%;
  }
}

.de-shop .de-shop-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 8, 7, .76), rgba(9, 8, 7, .82));
}

/* Parent theme settings must not paint over the common backdrop. */
body.de-shop .main-page-wrapper,
body.de-shop .website-wrapper,
body.de-shop .page-title {
  background: transparent !important;
}

body.de-shop .footer-container {
  background: rgba(9, 8, 7, .45) !important;
}

body.de-shop .whb-row {
  background: var(--de-shop-bg) !important;
  border: 0;
}

body.de-shop .page-title {
  padding-block: 32px;
}

/* Only the catalog shortcode supplies its own h1. Other native pages retain theirs. */
body.de-shop-catalog-page .page-title {
  display: none;
}

body.de-shop .whb-general-header-inner:has(.de-shop-header) {
  height: auto;
}

.de-shop .whb-column:has(.de-shop-header),
.de-shop .wd-header-text:has(.de-shop-header) {
  width: 100%;
  flex: 1;
}

.de-shop .whb-column .de-shop-header,
.de-shop .footer-container .de-shop-footer {
  width: 100%;
}

.de-shop .main-page-wrapper > .container,
.de-shop .whb-row > .container,
.de-shop .footer-container > .container {
  max-width: 1268px;
  padding-inline: 24px;
}

.de-shop .wd-logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.de-shop .de-shop-header {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  background: var(--de-shop-bg);
}

.de-shop .de-shop-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
}

.de-shop .de-shop-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.de-shop .de-shop-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  text-decoration: none;
}

.de-shop .de-shop-cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 20px;
  padding-inline: 4px;
  border-radius: 20px;
  background: var(--de-shop-gold);
  color: var(--de-shop-bg);
  font: 700 12px/20px var(--de-shop-font);
  text-align: center;
}

.de-shop .de-shop-brand img {
  width: 48px;
  height: 31px;
  object-fit: contain;
}

.de-shop .de-shop-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.de-shop .de-shop-quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  color: var(--de-shop-text);
  font: 700 26px/1.2 var(--de-shop-heading);
  text-transform: uppercase;
  text-decoration: none;
}

.de-shop .de-shop-quick-actions a:hover {
  color: var(--de-shop-gold);
}

.de-shop .de-shop-menu {
  position: relative;
  flex: 0 0 48px;
}

.de-shop .de-shop-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
}

.de-shop .de-shop-menu summary::-webkit-details-marker { display: none; }

.de-shop .de-shop-menu nav {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  display: grid;
  width: min(280px, calc(100vw - 48px));
  max-height: 70svh;
  overflow-y: auto;
  padding: 16px;
  background: var(--de-shop-bg);
  border: 1px solid var(--de-shop-line);
  box-shadow: var(--de-shadow);
}

.de-shop .de-shop-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  font: 600 14px/1.5 var(--de-shop-font);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
}

.de-shop .de-shop-menu a[aria-current] { color: var(--de-shop-gold); }

.de-shop .de-shop-footer a {
  min-height: 48px;
  text-underline-offset: 5px;
}

.de-shop .de-shop-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
  padding-block: 0 4px;
}

.de-shop .de-shop-intro h1 {
  margin: 0;
  text-transform: uppercase;
}

.de-shop .de-shop-eyebrow {
  margin: 0 0 12px;
  color: var(--de-shop-gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.de-shop .de-shop-intro-copy {
  margin: 0;
  color: var(--de-shop-muted);
}

/* Half the original catalog lead-in, without changing other native page spacing. */
body.de-shop-catalog-page .main-page-wrapper { padding-top: 10px; }
body.de-shop-catalog-page > main { padding-top: 7px; }
body.de-shop-catalog-page .main-page-wrapper main { padding-top: 14px; }

.de-shop .de-shop-browse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 12px;
  padding-block: 4px;
}

.de-shop .de-shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font: 500 18px/1.4 var(--de-shop-heading);
  text-transform: uppercase;
}

.de-shop .de-shop-categories a {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  text-decoration: none;
}

.de-shop .de-shop-categories a[aria-current] {
  color: var(--de-shop-gold);
}

.de-shop .de-shop-category-group { position: relative; }

.de-shop .de-shop-category-group summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.de-shop .de-shop-category-group summary::-webkit-details-marker { display: none; }

.de-shop .de-shop-category-group[open] summary,
.de-shop .de-shop-category-group:has([aria-current]) summary { color: var(--de-shop-gold); }

.de-shop .de-shop-category-children {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  display: grid;
  width: max-content;
  min-width: 180px;
  padding: 8px 16px;
  border: 1px solid var(--de-shop-line);
  background: var(--de-shop-bg);
  box-shadow: var(--de-shadow);
}

.de-shop .woocommerce-product-search {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.de-shop .woocommerce-product-search input {
  min-width: 0;
  width: 210px;
}

.de-shop .woocommerce-result-count {
  color: var(--de-shop-muted);
}

.de-shop .woocommerce-ordering {
  max-width: 100%;
}

.de-shop .woocommerce-ordering select {
  max-width: 100%;
}

/* Native WooCommerce and WoodMart grids retain their server queries/actions. */
.de-shop .woocommerce ul.products, .de-shop ul.products, .de-shop .products.wd-products:not(.wd-carousel-container) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
  margin: 12px 0 40px;
  padding: 0;
}

.de-shop ul.products::before, .de-shop ul.products::after {
  display: none;
}

.de-shop .woocommerce ul.products li.product, .de-shop ul.products li.product, .de-shop .products.wd-products > .product {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.de-shop ul.products li.product a {
  text-decoration: none;
}

.de-shop ul.products li.product img, .de-shop .product-image-link img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
}

/* Keep WooCommerce's original action in place in the DOM; only move its visual
   position into the title row. Reserve room so long names never run beneath it. */
body.de-shop .wd-product .product-element-top { overflow: visible; }
body.de-shop .wd-product .product-element-top .wd-buttons { display: contents; }

body.de-shop .wd-product .product-element-top .wd-add-btn {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.de-shop .wd-product .product-element-top .quick-view {
  position: absolute;
  top: 12px;
  right: 12px;
}

body.de-shop .wd-product .product-element-bottom:has(.wd-entities-title) {
  min-height: 72px;
  padding-right: 60px !important;
}

body.de-shop .wd-product .product-element-bottom .wd-entities-title { margin: 0 !important; }

/* WoodMart owns carousel widths. Small recommendation cards need their full
   text width, with the native action anchored inside the image instead. */
body.de-shop .wd-carousel-container .wd-product .product-element-bottom:has(.wd-entities-title) {
  padding-right: 0 !important;
}

body.de-shop .wd-carousel-container .wd-product .product-element-top .wd-add-btn {
  top: auto;
  bottom: 8px;
  right: 8px;
}

body.de-shop .wd-carousel-container .wd-add-btn > a {
  width: 48px;
  height: 48px;
  padding: 0;
}

/* Keep the carousel arrows inside the section, not clipped at screen edges. */
body.de-shop .wd-products.wd-carousel-container > .wd-carousel-inner > .wd-nav-arrows {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

body.de-shop .wd-products.wd-carousel-container .wd-nav-arrows .wd-btn-arrow {
  position: relative;
  inset: auto;
  width: 44px;
  height: 44px;
  transform: none;
}

body.de-shop .wd-products.wd-carousel-container .wd-nav-arrows .wd-arrow-inner {
  opacity: 1;
  transform: none;
}

.de-shop .woocommerce ul.products li.product .woocommerce-loop-product__title, .de-shop ul.products li.product .woocommerce-loop-product__title, .de-shop .wd-entities-title {
  font: 700 clamp(1.375rem, 2.1vw, 1.875rem)/1.15 var(--de-shop-heading);
  color: var(--de-shop-text);
  padding-block: 12px 6px;
  margin: 0;
}

.de-shop .price, .de-shop .woocommerce ul.products li.product .price, .de-shop ul.products li.product .price {
  color: var(--de-shop-gold);
  font-size: 1rem;
}

.de-shop .price del {
  color: var(--de-shop-muted);
  opacity: 1;
}

.de-shop .price ins {
  text-decoration: none;
}

.de-shop .product-wrapper, .de-shop .product-element-bottom {
  background: transparent;
  box-shadow: none;
}

.de-shop .woocommerce ul.products li.product .button, .de-shop ul.products li.product .button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--de-shop-gold);
  color: var(--de-shop-gold);
  padding: 8px 0;
  margin-top: 8px;
  text-transform: none;
}

/* Inputs remain native controls, including browser and provider validation. */
.de-shop :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], textarea, select) {
  background: rgba(9, 8, 7, .7);
  color: var(--de-shop-text);
  border: 1px solid #91867c;
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 10px 12px;
  max-width: 100%;
}

.de-shop input::placeholder, .de-shop textarea::placeholder {
  color: var(--de-shop-muted);
  opacity: 1;
}

.de-shop :is(input[type="radio"], input[type="checkbox"]) {
  accent-color: var(--de-shop-gold);
}

.de-shop .button, .de-shop button, .de-shop input[type="submit"], .de-shop .woocommerce a.button, .de-shop .woocommerce button.button, .de-shop .woocommerce input.button {
  font: 700 1rem/1.3 var(--de-shop-font);
  min-width: 48px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--de-shop-gold);
  border-radius: var(--de-radius);
  background: var(--de-shop-gold);
  color: var(--de-shop-bg);
  cursor: pointer;
  text-decoration: none;
}

.de-shop .button:hover, .de-shop button:hover, .de-shop .woocommerce a.button:hover, .de-shop .woocommerce button.button:hover {
  background: var(--de-shop-text);
  color: var(--de-shop-bg);
  border-color: var(--de-shop-text);
}

.de-shop .button.disabled, .de-shop button:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.de-shop .woocommerce-info, .de-shop .woocommerce-message, .de-shop .woocommerce-error {
  background: var(--de-shop-panel);
  color: var(--de-shop-text);
  border-top-color: var(--de-shop-gold);
}

.de-shop .woocommerce-info::before, .de-shop .woocommerce-message::before {
  color: var(--de-shop-gold);
}

.de-shop .woocommerce-error {
  border-top-color: #ffb3a7;
}

.de-shop .woocommerce-error::before, .de-shop .woocommerce-invalid label, .de-shop .stock.out-of-stock {
  color: #ffb3a7;
}

.de-shop .stock.in-stock {
  color: #b5d8af;
}

.de-shop .woocommerce-breadcrumb {
  color: var(--de-shop-muted);
  margin-bottom: 24px;
}

.de-shop .woocommerce-breadcrumb a {
  display: inline-block;
  padding-block: 8px;
}

.de-shop .woocommerce div.product .product_title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.de-shop .woocommerce div.product .summary .price, .de-shop div.product .summary .price {
  font-size: 1.375rem;
}

.de-shop .woocommerce div.product .woocommerce-tabs ul.tabs li, .de-shop div.product .woocommerce-tabs ul.tabs li {
  background: var(--de-shop-panel);
  color: var(--de-shop-text);
}

.de-shop .woocommerce div.product .woocommerce-tabs ul.tabs li.active, .de-shop div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--de-shop-bg);
  color: var(--de-shop-gold);
}

.de-shop .woocommerce-tabs .panel {
  padding-block: 16px;
}

.de-shop .variations select {
  width: 100%;
}

.de-shop .variations .reset_variations {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.de-shop .quantity .qty {
  min-width: 76px;
}

/* Reuse WooCommerce's accessible select and its native variation events. The
   installed WoodMart swatches are non-focusable divs and otherwise hide it. */
.de-shop .variations .wd-swatches-single {
  display: none;
}

body.de-shop .variations .with-swatches select {
  display: block !important;
}

body.de-shop h1.product_title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}

body.de-shop .quantity input[type="button"] {
  width: 48px;
  min-height: 48px;
  font: 600 16px/1 var(--de-shop-font);
  color: var(--de-shop-text);
  background: var(--de-shop-panel);
}

/* Override WoodMart's joined-control corners for both quantity button types. */
body.de-shop .quantity :is(button, input[type="button"]):is(.minus, .plus) {
  flex: 0 0 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: var(--de-radius);
}

body.de-shop .cookies-accept-btn {
  min-height: 48px;
  padding: 12px 18px;
  font: 600 16px/1.5 var(--de-shop-font);
  background: var(--de-shop-gold);
  color: var(--de-shop-bg);
}

.de-shop table.shop_table, .de-shop table.shop_table td, .de-shop table.shop_table th {
  border-color: var(--de-shop-line);
}

.de-shop .woocommerce-cart-form a.remove {
  color: var(--de-shop-text) !important;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.de-shop .woocommerce-cart-form a.remove:hover {
  background: var(--de-shop-panel);
}

.de-shop [id="add_payment_method"] #payment, .de-shop .woocommerce-cart #payment, .de-shop .woocommerce-checkout #payment {
  background: var(--de-shop-panel);
  color: var(--de-shop-text);
}

.de-shop #payment div.payment_box {
  background: #29251f;
  color: var(--de-shop-text);
}

.de-shop #payment div.payment_box::before {
  border-bottom-color: #29251f;
}

.de-shop .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
}

.de-shop .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--de-shop-line);
}

.de-shop .woocommerce-pagination li a, .de-shop .woocommerce-pagination li span {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.de-shop .woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--de-shop-gold);
  color: var(--de-shop-bg);
}

.de-shop .wc-block-components-product-name {
  color: var(--de-shop-text);
}

.de-shop .wc-block-components-totals-wrapper {
  border-color: var(--de-shop-line);
}

.de-shop .de-shop-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px clamp(24px, 5vw, 64px);
  padding-block: 40px max(24px, env(safe-area-inset-bottom));
}

.de-shop .de-shop-footer h2 {
  font: 700 32px/1.1 var(--de-shop-heading);
  margin: 0 0 24px;
  text-transform: none;
}

.de-shop .de-shop-address { font-style: normal; }

.de-shop .de-shop-address a {
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.de-shop .de-shop-address a:is(:hover, :focus-visible) {
  color: var(--de-shop-gold);
  text-decoration: underline;
}

.de-shop .de-shop-visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.de-shop .de-shop-text-link {
  display: inline-flex;
  align-items: center;
  color: var(--de-shop-gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.de-shop .de-shop-text-link:hover { color: var(--de-shop-text); }

.de-shop .de-shop-map {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  border: 1px solid currentcolor;
  border-radius: 50%;
}

.de-shop .de-shop-map svg {
  width: 22px;
  height: 22px;
}

.de-shop .de-shop-hours > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.de-shop .de-shop-hours strong { white-space: nowrap; }

.de-shop .de-shop-footer .de-shop-privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 14px;
  margin: 12px 0 0;
}

.de-shop .de-shop-privacy a {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  text-decoration: underline;
}

.de-shop .de-shop-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.de-shop .de-shop-local-note {
  text-align: center;
  font-size: 12px;
  padding: 8px 16px;
  background: var(--de-shop-panel);
  color: var(--de-shop-muted);
}

.de-shop .screen-reader-text, .de-shop .de-shop-skip:not(:focus) {
  clip-path: inset(50%);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.de-shop .de-shop-skip:focus {
  display: block;
  padding: 12px 24px;
}

/* Same two-column phone layout; 48px controls and 16px form text remain. */
@media (max-width: 767px) {
  .de-shop .de-shop-wrap {
    width: calc(100% - 32px);
  }

  .de-shop .de-shop-header { gap: 8px; }

  .de-shop .de-shop-quick-actions { gap: 4px 16px; }

  .de-shop .main-page-wrapper > .container,
  .de-shop .whb-row > .container,
  .de-shop .footer-container > .container { padding-inline: 16px; }

  .de-shop .de-shop-intro {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .de-shop .de-shop-intro-copy {
    max-width: none;
  }

  .de-shop .de-shop-categories {
    gap: 4px 20px;
  }

  .de-shop .woocommerce-product-search {
    width: 100%;
  }

  .de-shop .woocommerce-product-search input {
    flex: 1;
  }

  .de-shop .woocommerce ul.products, .de-shop ul.products, .de-shop .products.wd-products:not(.wd-carousel-container) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .de-shop .woocommerce-ordering, .de-shop .woocommerce-result-count {
    float: none;
    margin: 0 0 16px;
  }

  .de-shop .de-shop-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .de-shop .woocommerce table.shop_table_responsive tr:nth-child(2n) td {
    background: var(--de-shop-panel);
  }

  .de-shop .woocommerce table.shop_table_responsive tr td {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .de-shop *, .de-shop *::before, .de-shop *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* WooCommerce's .alt and single-product rules have more specific selectors. */
body.de-shop button.button.alt,
body.de-shop button.button.alt.disabled,
body.de-shop a.button.alt,
body.de-shop input.button.alt {
  background: var(--de-shop-gold);
  color: var(--de-shop-bg);
}

body.de-shop button.button.alt:hover,
body.de-shop a.button.alt:hover {
  background: var(--de-shop-text);
  color: var(--de-shop-bg);
}

body.de-shop div.product p.price,
body.de-shop div.product span.price {
  color: var(--de-shop-gold);
}

body.de-shop div.product .woocommerce-tabs ul.tabs li a {
  color: inherit;
}

/* Keep unavailable native controls readable; WooCommerce supplies the state. */
body.de-shop button.button.alt.disabled,
body.de-shop button.button.alt.disabled:hover {
  opacity: 1;
  background: #bda374;
  color: var(--de-shop-bg);
  cursor: not-allowed;
}

/* Match the website's compact header at its existing 700px breakpoint. */
@media (max-width: 700px) {
  .de-shop .de-shop-header { min-height: 60px; }
}

/* Persist the same navigation while browsing longer catalogs and checkout. */
body.de-shop .whb-header,
body.de-shop > .de-shop-header {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-bottom: 0;
  background: var(--de-shop-bg);
}

body.de-shop.admin-bar .whb-header { top: 32px; }

@media (max-width: 782px) {
  body.de-shop.admin-bar .whb-header { top: 46px; }
}

/* WoodMart's light-scheme components define their own palette below body. */
body.de-shop,
body.de-shop .color-scheme-dark {
  --color-white: var(--de-text);
  --color-gray-100: var(--de-panel);
  --color-gray-200: var(--de-panel-alt);
  --color-gray-300: var(--de-muted);
  --color-gray-400: var(--de-muted);
  --color-gray-500: var(--de-muted);
  --color-gray-600: var(--de-muted);
  --color-gray-700: var(--de-text);
  --color-gray-800: var(--de-text);
  --color-gray-900: var(--de-text);
  --bgcolor-white: var(--de-panel);
  --bgcolor-white-rgb: 18, 16, 15;
  --bgcolor-gray-100: var(--de-panel);
  --bgcolor-gray-200: var(--de-panel-alt);
  --bgcolor-gray-300: var(--de-panel-alt);
  --bgcolor-gray-400: var(--de-line);
  --wd-entities-title-color: var(--de-text);
  --wd-entities-title-color-hover: var(--de-gold);
  --wd-entities-title-font: var(--de-shop-heading);
  --wd-entities-title-font-weight: 700;
}

body.de-shop .main-page-wrapper { margin-top: 0; }

body.de-shop .wd-product .product-wrapper,
body.de-shop .wd-product .product-element-bottom {
  background: transparent !important;
  box-shadow: none;
}

body.de-shop .wd-product .wd-entities-title {
  font: 700 clamp(1.375rem, 2.1vw, 1.875rem)/1.15 var(--de-shop-heading) !important;
}

body.de-shop .wd-product .wd-entities-title a {
  color: inherit;
  font: inherit;
}

body.de-shop .wd-product .wd-entities-title a:hover { color: var(--de-gold); }

body.de-shop .wd-product .product-element-bottom { padding: 0; }

/* Native checkout validation must remain legible on the shared dark theme. */
body.de-shop .woocommerce form .form-row.woocommerce-invalid label,
body.de-shop .woocommerce form .form-row.woocommerce-invalid .required,
body.de-shop .woocommerce form .form-row.woocommerce-invalid [id$="_description"],
body.de-shop .woocommerce form .form-row.woocommerce-invalid .woocommerce-terms-and-conditions-checkbox-text,
body.de-shop .woocommerce form .form-row.woocommerce-invalid .woocommerce-terms-and-conditions-link {
  color: #ffb3a7;
}

body.de-shop .woocommerce .woocommerce-terms-and-conditions-link {
  text-decoration: underline;
  text-underline-offset: .15em;
}

body.de-shop .product-image-summary-inner { background: transparent !important; }

body.de-shop .product-tabs-wrapper { background: rgba(9, 8, 7, .7); }

/* Search shares the header with cart/logo; narrow screens use a native disclosure. */
.de-shop .de-shop-header-search { width: 245px; }
.de-shop .de-shop-header-search .woocommerce-product-search { gap: 0; }
.de-shop .de-shop-header-search input { width: 100%; }
.de-shop .de-shop-header-search button { padding-inline: 12px; }
.de-shop .de-shop-search { display: none; }

.de-shop .de-shop-search summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  list-style: none;
  cursor: pointer;
}

.de-shop .de-shop-search summary::-webkit-details-marker { display: none; }

.de-shop .de-shop-search-panel {
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  background: var(--de-shop-bg);
  box-shadow: var(--de-shadow);
}

/* One native sort form in the browse row; retain borders on editable controls. */
body.de-shop .de-shop-browse .de-shop-ordering {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  float: none;
  border: 0;
}

body.de-shop .de-shop-browse .de-shop-ordering select {
  font-family: var(--de-shop-heading);
  appearance: auto;
  width: 210px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  padding-right: 28px;
}

/* Decorative catalog separators only: purchase controls/focus outlines stay clear. */
body.de-shop .de-shop-browse,
body.de-shop .de-shop-browse :is(a, summary),
body.de-shop .shop-loop-head,
body.de-shop .shop-loop-head::before,
body.de-shop .shop-loop-head::after,
body.de-shop .woocommerce-pagination :is(ul, li),
body.de-shop-catalog-page .de-shop-hours > div { border: 0; }

body.de-shop .shop-loop-head:empty { display: none; }

@media (max-width: 767px) {
  .de-shop .de-shop-header { position: relative; }
  .de-shop .de-shop-header-search { display: none; }
  .de-shop .de-shop-search { display: block; }
  .de-shop .de-shop-header-end { gap: 4px; }
}

/* Keep every sharing target easy to tap without changing follow/profile links. */
body.de-shop .de-shop-sharing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

body.de-shop .de-shop-sharing :is(.wd-social-icon, .de-share-button) {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--de-radius);
  background: transparent;
  color: var(--de-shop-text);
  box-shadow: none;
  vertical-align: middle;
}

body.de-shop .de-shop-sharing :is(.wd-social-icon, .de-share-button):hover {
  color: var(--de-shop-gold);
}

body.de-shop .de-instagram-share {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--de-shop-line);
  border-radius: var(--de-radius);
  background: var(--de-shop-panel);
  color: var(--de-shop-text);
  font: 400 15px/1.5 var(--de-shop-font);
}

body.de-shop .de-instagram-share::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

body.de-shop .de-instagram-share h2 {
  margin: 0 36px 16px 0;
}

body.de-shop .de-instagram-share .de-share-close {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--de-shop-text);
  font-size: 28px;
}

body.de-shop .de-instagram-share textarea {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 8px 12px;
  padding: 8px;
  resize: none;
  font-size: 16px;
}

body.de-shop .de-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

body.de-shop .de-share-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.de-shop .de-share-photo {
  margin-top: 16px;
}

body.de-shop .de-share-photo img {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-bottom: 12px;
  object-fit: contain;
}

body.de-shop .de-instagram-share [hidden] {
  display: none;
}

body.de-shop .de-share-status {
  margin: 12px 0 0;
}

body.de-shop .de-share-status:empty {
  display: none;
}
