/*
 * Compact editorial shop treatment. These overrides are intentionally scoped
 * to catalogue and product-detail surfaces, never cart, account or checkout.
 * Native Commerce7 forms, availability and member messages stay intact.
 */
.dierberg-shop-shell {
  width: min(calc(100% - 96px), var(--d-width));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.dierberg-shop-shell .dierberg-shop-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0 24px;
  margin-bottom: 24px;
}

.dierberg-shop-shell .dierberg-shop-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 9px;
  font-size: 9px;
}

.dierberg-shop-shell .dierberg-shop-intro h1 {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: .98;
  letter-spacing: -.025em;
}

.dierberg-shop-shell .dierberg-shop-intro p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.7;
}

.dierberg-shop-shell .dierberg-shop-tabs {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--d-gold);
}

.dierberg-shop-shell .dierberg-shop-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dierberg-shop-shell .dierberg-shop-tabs li {
  margin: 0;
  padding: 0;
}

.dierberg-shop-shell .dierberg-shop-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d7c9b9;
  background: transparent;
  color: var(--d-burgundy);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .065em;
  text-align: center;
  transition: background .18s ease, color .18s ease;
}

.dierberg-shop-shell .dierberg-shop-tabs a:hover {
  background: var(--d-bg-alt);
}

.dierberg-shop-shell .dierberg-shop-tabs a[aria-current="page"],
.dierberg-shop-shell .dierberg-shop-tabs a.is-active {
  border-color: var(--d-burgundy);
  background: var(--d-burgundy);
  color: #fff;
}

.dierberg-shop-shell .dierberg-shop-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
  margin-bottom: 16px;
  scroll-margin-top: 24px;
}

.dierberg-shop-shell .dierberg-shop-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.dierberg-shop-shell .dierberg-shop-note {
  max-width: 600px;
  margin: 0;
  color: var(--d-muted);
  font-size: 11px;
  line-height: 1.65;
}

.dierberg-shop-shell .dierberg-catalog {
  min-width: 0;
  scroll-margin-top: 24px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection > div,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection__products,
.dierberg-shop-shell .dierberg-catalog > #c7-content > .c7-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection > div > h1.c7-h1 {
  margin: 0 0 18px;
  font-family: var(--d-display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.dierberg-shop-shell .dierberg-catalog[data-portfolio]:not([data-portfolio="native"]) .c7-product-collection > div > h1.c7-h1 {
  display: none;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection__content {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.65;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection__content > :last-child {
  margin-bottom: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection__product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid #d7c9b9;
  background: #fff;
  box-shadow: 0 5px 18px rgba(58, 39, 23, .035);
  text-align: left;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product[hidden] {
  display: none !important;
}

.dierberg-shop-shell .dierberg-catalog[data-portfolio="current_releases"] .c7-product-collection .c7-product:not([data-dierberg-visible="true"]),
.dierberg-shop-shell .dierberg-catalog[data-portfolio="red_wines"] .c7-product-collection .c7-product:not([data-dierberg-visible="true"]),
.dierberg-shop-shell .dierberg-catalog[data-portfolio="white_wines"] .c7-product-collection .c7-product:not([data-dierberg-visible="true"]) {
  display: none !important;
}

.dierberg-shop-shell .dierberg-catalog-count {
  margin: 0 0 12px;
  color: var(--d-muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .04em;
}

/* White product photography becomes a deliberate, gallery-like alcove. */
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 230px;
  margin: 0;
  padding: 22px 26px 18px;
  border: 0;
  background: #fff;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image > a,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 20px;
  border-top: 1px solid #e7ded2;
  background: #f9f6f1;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__title {
  margin: 0 0 8px;
  color: var(--d-ink);
  font-family: var(--d-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.13;
  overflow-wrap: anywhere;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__title a {
  color: inherit;
  text-decoration: none;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__title a:hover {
  color: var(--d-burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__subtitle {
  margin: 0 0 12px;
  color: var(--d-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Native copy is retained in an accessible, initially collapsed disclosure. */
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__teaser {
  margin: 0 0 12px;
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.65;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-collection-notes {
  margin: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes summary,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-collection-notes summary {
  width: fit-content;
  padding: 5px 0;
  color: var(--d-burgundy);
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes summary::marker,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-collection-notes summary::marker {
  font-size: 9px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes[open] > div,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-collection-notes[open] > div {
  padding-top: 9px;
  font-size: 12px;
  line-height: 1.75;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes p:last-child,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-collection-notes p:last-child {
  margin-bottom: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__login-message {
  margin: 10px 0 0;
  color: var(--d-muted);
  font-size: 12px;
  line-height: 1.65;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__login-message a {
  color: var(--d-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart {
  width: 100%;
  margin: auto 0 0;
  padding: 13px 0 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__price {
  margin: 0 0 12px;
  color: var(--d-ink);
  font-size: 15px;
  line-height: 1.5;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form > * {
  min-width: 0;
  margin-bottom: 0;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form > :is(.c7-product__add-to-cart__form__quantity, .c7-product__add-to-cart__form__quantity--select, :has(input[inputmode="numeric"])) {
  flex: 0 0 56px;
  width: 56px;
  max-width: 56px;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form :is(.c7-product__add-to-cart__form__quantity input, .c7-product__add-to-cart__form__quantity--select select, input[inputmode="numeric"]) {
  width: 56px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 5px;
  border: 1px solid #b9ab9a;
  background: #fff;
  color: var(--d-ink);
  font-size: 13px;
  text-align: center;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form label {
  font-size: 10px;
  line-height: 1.4;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form button {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  font-family: var(--d-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-product-link,
.dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-view-wine {
  align-self: start;
  margin-top: 12px;
  color: var(--d-burgundy);
  font-size: 10px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Product detail keeps its full description, protected by a separate scope. */
.dierberg-product-detail > #c7-content > .c7-content,
.dierberg-shop-shell .c7-product-detail {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.dierberg-shop-shell .c7-product-detail > .c7-product {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.dierberg-shop-shell .c7-product-detail .c7-product__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 360px;
  margin: 0;
  padding: 28px;
  border: 1px solid #d7c9b9;
  background: #fff;
}

.dierberg-shop-shell .c7-product-detail .c7-product__image picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dierberg-shop-shell .c7-product-detail .c7-product__image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.dierberg-shop-shell .c7-product-detail .c7-product__details {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
}

.dierberg-shop-shell .c7-product-detail .c7-product__title {
  margin: 0 0 14px;
  font-family: var(--d-display);
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 1.04;
}

.dierberg-shop-shell .c7-product-detail .c7-product__subtitle {
  margin-bottom: 18px;
  color: var(--d-muted);
  font-size: 13px;
}

@media (max-width: 999px) {
  .dierberg-shop-shell {
    width: calc(100% - 48px);
    padding-top: 30px;
  }

  .dierberg-shop-shell .dierberg-shop-intro {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection__product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .dierberg-shop-shell {
    width: calc(100% - 32px);
    padding: 24px 0 46px;
  }

  .dierberg-shop-shell .dierberg-shop-intro {
    margin-bottom: 18px;
    gap: 10px;
  }

  .dierberg-shop-shell .dierberg-shop-intro h1 {
    font-size: 43px;
  }

  .dierberg-shop-shell .dierberg-shop-intro p:not(.eyebrow) {
    font-size: 11px;
  }

  .dierberg-shop-shell .dierberg-shop-tabs {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  .dierberg-shop-shell .dierberg-shop-tabs ul {
    gap: 6px;
  }

  .dierberg-shop-shell .dierberg-shop-tabs li {
    flex: 1 0 auto;
  }

  .dierberg-shop-shell .dierberg-shop-tabs a {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: .015em;
  }

  .dierberg-shop-shell .dierberg-shop-note {
    font-size: 10px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection__product-list {
    gap: 12px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image {
    height: 170px;
    padding: 15px 14px 12px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__details {
    padding: 13px 11px 14px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__title {
    margin-bottom: 7px;
    font-size: 21px;
    line-height: 1.13;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__subtitle {
    margin-bottom: 8px;
    font-size: 10px;
    line-height: 1.5;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__login-message {
    font-size: 10px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes summary {
    font-size: 10px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .dierberg-tasting-notes[open] > div {
    font-size: 11px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart {
    padding-top: 9px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__price {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form {
    gap: 6px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form :is(.c7-product__add-to-cart__form__quantity input, .c7-product__add-to-cart__form__quantity--select select, input[inputmode="numeric"]) {
    width: 44px;
    font-size: 12px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form > :is(.c7-product__add-to-cart__form__quantity, .c7-product__add-to-cart__form__quantity--select, :has(input[inputmode="numeric"])) {
    flex-basis: 44px;
    width: 44px;
    max-width: 44px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__add-to-cart__form button {
    padding: 9px 6px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .dierberg-shop-shell .c7-product-detail > .c7-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .dierberg-shop-shell .c7-product-detail .c7-product__image {
    height: 220px;
    padding: 20px;
  }

  .dierberg-shop-shell .c7-product-detail .c7-product__title {
    font-size: 36px;
  }
}

@media (max-width: 359px) {
  .dierberg-shop-shell .dierberg-catalog .c7-product-collection__product-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__image {
    height: 210px;
  }

  .dierberg-shop-shell .dierberg-catalog .c7-product-collection .c7-product__details {
    padding: 18px;
  }
}
.dierberg-shop-shell .dierberg-shop-empty {
  padding: 30px;
  border: 1px solid #d7c9b9;
  color: var(--d-muted);
  font-size: 13px;
}
