/* Native WooCommerce blocks, shared geometry and isolated brand colours. */
.brand-shop-main { margin-block-start: 0 !important; }
.brand-shop-content {
  --shop-bg: var(--walkin-canvas, #f3eee4);
  --shop-text: var(--walkin-ink, #181714);
  --shop-muted: var(--walkin-muted, #625e55);
  --shop-accent: var(--walkin-wine, #6e2833);
  --shop-line: var(--walkin-line, #d8cfbe);
  --shop-panel: var(--walkin-paper, #fbf8f1);
  background: var(--shop-bg);
  color: var(--shop-text);
  margin-block: 0 !important;
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.25rem, 5vw, 5rem);
  min-height: calc(100vh - 6.5rem);
  min-height: calc(100svh - 6.5rem);
}
.brand-shop--miaoling,
.brand-shop--miaoling .brand-shop-content,
.brand-shop-content.brand-shop--miaoling,
body.brand-miaoling .brand-shop-content {
  --shop-bg: var(--miaoling-shadow, #4a160f);
  --shop-text: var(--miaoling-cream, #f2e5d5);
  --shop-muted: var(--miaoling-blush, #dec3b0);
  --shop-accent: var(--miaoling-gold, #cda65a);
  --shop-line: rgba(205, 166, 90, .4);
  --shop-panel: rgba(74, 22, 15, .38);
}
.brand-shop--miaoling .brand-shop-content,
.brand-shop-content.brand-shop--miaoling,
body.brand-miaoling .brand-shop-content {
  background-image: linear-gradient(120deg, rgba(74,22,15,.15), rgba(74,22,15,.42)),
    url("../../images/brands/miaoling/miaoling-surface-20260827.webp");
  background-size: cover;
  background-position: center;
}
.brand-shop-content .brand-shop-inner { max-width: 1240px; margin-inline: auto; min-width: 0; }
.brand-shop-content .brand-shop-topline { gap: 1rem; }
.brand-shop-content .brand-shop-kicker {
  color: var(--shop-accent); font: 600 .75rem/1.6 var(--wp--preset--font-family--sans);
  letter-spacing: .2em; margin: 0; text-transform: uppercase;
}
.brand-shop-content .brand-shop-intro {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end;
  gap: 2rem; padding-block: clamp(2rem, 4vw, 3.75rem);
}
.brand-shop-content .brand-shop-title {
  color: var(--shop-text); font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  font-weight: 400; line-height: 1.3; letter-spacing: .06em; margin: 0;
}
.brand-shop-content .brand-shop-intro-copy { margin: 0; }
.brand-shop-content .brand-shop-intro-copy > p {
  color: var(--shop-muted); font-size: .95rem; margin: .75rem 0 0; line-height: 1.8;
}
.brand-shop-content .brand-shop-intro-copy > .brand-shop-lead {
  color: var(--shop-text); font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin: 0;
}
.brand-shop-content .brand-shop-catalog { border-top: 1px solid var(--shop-line); margin: 0; min-width: 0; }
.brand-shop-content .brand-shop-catalog-heading { padding-block: 1.4rem; gap: .75rem; }
.brand-shop-content .brand-shop-catalog-heading > * { min-width: 0; }
.brand-shop-content .brand-shop-section-title { color: var(--shop-text); font-size: 1.3rem; margin: 0; }
.brand-shop-content .brand-shop-products { margin: 0; min-width: 0; }
.brand-shop-content .brand-shop-empty {
  background: var(--shop-panel); border: 1px solid var(--shop-line);
  isolation: isolate; overflow: hidden;
  margin-inline: auto; max-inline-size: 64rem;
  padding: clamp(2.25rem, 5vw, 4rem) 1.25rem; text-align: center; position: relative;
}
.brand-shop-content .brand-shop-empty > * { position: relative; z-index: 1; }
.brand-shop--miaoling .brand-shop-empty,
body.brand-miaoling .brand-shop-content .brand-shop-empty {
  background: rgba(48, 12, 8, .84);
  box-shadow: inset 0 1px rgba(242,229,213,.06);
}
.brand-shop--miaoling .brand-shop-empty::before,
body.brand-miaoling .brand-shop-content .brand-shop-empty::before {
  background: url("../../images/brands/miaoling/miaoling-magic-circle-normal-20260827.png") center / auto 190% no-repeat;
  content: ""; inset: 0; opacity: .24; pointer-events: none; position: absolute; z-index: 0;
}
.brand-shop-content .brand-shop-empty h2,
.brand-shop-content .brand-shop-empty h3 {
  color: var(--shop-text); font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 400; letter-spacing: .1em; margin-block: .75rem;
}
.brand-shop-content .brand-shop-empty .brand-shop-empty-copy {
  color: var(--shop-muted); font-size: .95rem; line-height: 1.9;
  margin: 1rem auto 1.5rem; max-inline-size: 48ch;
}
.brand-shop-content .brand-shop-empty .wp-block-buttons {
  justify-content: center; margin: 0;
}
.brand-shop-content .wp-block-button__link {
  background: transparent; color: var(--shop-text); border: 1px solid var(--shop-accent);
  align-items: center; box-sizing: border-box; display: inline-flex; justify-content: center;
  border-radius: 0; min-height: 44px; padding: .75rem 1.5rem; font-size: .875rem;
  font-weight: 500; line-height: 1.6; letter-spacing: .06em; box-shadow: none;
}
.brand-shop-content .wp-block-button__link:hover {
  background: var(--shop-text); color: var(--shop-bg); text-decoration: none; transform: none;
}
.brand-shop-content .brand-shop-back-icon { margin-inline-end: .4em; }
.brand-shop-content :where(a, button):focus-visible { outline: 3px solid var(--shop-accent); outline-offset: 4px; }
.brand-shop-content .brand-shop-cart .wp-block-button__link { padding: .5rem 1rem; }
.brand-shop-content .brand-shop-notes {
  border-top: 1px solid var(--shop-line); margin-top: 1.5rem; padding-top: 1rem;
  display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap;
}
.brand-shop-content .brand-shop-notes p { color: var(--shop-muted); font-size: .8rem; line-height: 1.8; margin: 0; }
.brand-shop-content .wc-block-product-template {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2.5vw, 2rem); list-style: none; padding: 0; margin: 0;
}
.brand-shop-content .wc-block-product-template > li {
  min-width: 0; margin: 0; display: flex; flex-direction: column;
  border: 1px solid var(--shop-line); background: var(--shop-panel); padding: 1rem;
}
.brand-shop-content .wc-block-components-product-image { width: 100%; margin: 0 0 1rem; }
.brand-shop-content .wc-block-components-product-image img {
  aspect-ratio: 4 / 5; object-fit: contain; width: 100%; background: rgba(255,255,255,.04);
}
.brand-shop-content .brand-shop-product-title { font-size: 1.2rem; line-height: 1.6; margin: .25rem 0; overflow-wrap: anywhere; }
.brand-shop-content .brand-shop-product-title a { color: var(--shop-text); }
.brand-shop-content .wc-block-components-product-price { color: var(--shop-text); font-size: 1rem; margin-block: .5rem 1.25rem; }
.brand-shop-content .wc-block-components-product-button { margin-top: auto; }
.brand-shop-content .wc-block-components-product-button .wp-block-button__link { width: 100%; }
.brand-shop-content .wc-block-components-product-sale-badge { background: var(--shop-bg); color: var(--shop-text); border-color: var(--shop-line); }
.brand-shop-content .wp-block-query-pagination { color: var(--shop-text); flex-wrap: wrap; gap: .75rem; padding-top: 2rem; }
.brand-shop-content .wp-block-query-pagination a,
.brand-shop-content .wp-block-query-pagination .page-numbers { color: var(--shop-text); display: inline-flex; padding: .5rem .75rem; min-height: 44px; }
.brand-shop-content .wp-block-query-pagination .current { outline: 1px solid var(--shop-accent); }
@media (max-width: 900px) {
  .brand-shop-content { min-height: calc(100svh - 4.5rem); }
  .brand-shop-content .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 780px) {
  .brand-shop-content .brand-shop-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 2rem; }
  .brand-shop-content .brand-shop-catalog-heading { align-items: stretch; flex-direction: column; }
  .brand-shop-content :is(.wp-block-woocommerce-catalog-sorting, .woocommerce-ordering),
  .brand-shop-content :is(.wp-block-woocommerce-catalog-sorting, .woocommerce-ordering) select {
    margin-inline: 0; max-inline-size: 100%; width: 100%;
  }
  .brand-shop-content :is(.wp-block-woocommerce-catalog-sorting, .woocommerce-ordering) select {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .brand-shop-content .brand-shop-title { font-size: clamp(2rem, 7.4vw, 2.8rem); }
  .brand-shop-content .brand-shop-topline .wp-block-buttons { margin: 0; }
  .brand-shop-content .brand-shop-kicker { font-size: .7rem; letter-spacing: .14em; }
  .brand-shop-content .brand-shop-empty { padding-block: 2.25rem; }
  .brand-shop-content .brand-shop-notes { display: block; }
}
@media (max-width: 480px) {
  .brand-shop-content .wc-block-product-template { grid-template-columns: minmax(0, 1fr) !important; }
  .brand-shop-content .brand-shop-topline .wp-block-button { width: auto; }
  .brand-shop-content .brand-shop-empty .wp-block-buttons,
  .brand-shop-content .brand-shop-empty .wp-block-button,
  .brand-shop-content .brand-shop-empty .wp-block-button__link { width: 100%; }
  .brand-shop-content .brand-shop-empty .wp-block-button__link {
    align-items: center; display: inline-flex; justify-content: center; white-space: normal;
  }
}
@media (forced-colors: active) {
  .brand-shop-content .brand-shop-empty,
  .brand-shop-content .wc-block-product-template > li,
  .brand-shop-content .wp-block-button__link { border: 1px solid CanvasText; }
}
