/* DAO·ROOT — Shop by Category / Featured Collection / All Objects
   Load AFTER existing shop.css. Scoped to .dr-shop.
   Requires the three sections described in shop-three-sections-README.md. */
.dr-shop {
  --dr-cream: #faf8f3;
  --dr-ivory: #eeeae2;
  --dr-ink: #282620;
  --dr-muted: #716b62;
  --dr-clay: #795843;
  --dr-line: #ded8ce;
  background: var(--dr-cream);
  color: var(--dr-ink);
  padding: 36px 0 64px;
}
.dr-shop *, .dr-shop *::before, .dr-shop *::after { box-sizing: border-box; }
.dr-shop .dr-wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.dr-shop .dr-section { padding-top: 0; margin: 0 0 56px; }
.dr-shop .dr-section:last-child { margin-bottom: 0; }
.dr-shop .dr-section-head { display: flex; flex-direction: row; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.dr-shop h1, .dr-shop h2, .dr-shop h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--dr-ink); }
.dr-shop h2 { margin: 0; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.dr-shop .dr-label { margin: 0 0 9px; font: 10px/1.5 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--dr-muted); }
.dr-shop a { color: inherit; text-decoration: none; }
.dr-shop a:hover { color: var(--dr-clay); }
.dr-shop :is(a, button, select):focus-visible { outline: 2px solid var(--dr-clay); outline-offset: 4px; }
.dr-shop .dr-text-link { display: inline-flex; align-items: center; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--dr-clay); white-space: nowrap; font: 12px/1.5 Arial, sans-serif; }
/* Circular category navigation. Add dr-category-section to this section. */
.dr-shop .dr-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.dr-shop .dr-category-grid > li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.dr-shop .dr-category-link { display: block; text-align: center; }
.dr-shop .dr-category-image { display: block; width: min(100%, 174px); aspect-ratio: 1; margin: 0 auto 13px; overflow: hidden; border-radius: 50%; background: var(--dr-ivory); }
.dr-shop .dr-category-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dr-shop .dr-category-name { display: block; font: 16px/1.4 Georgia, serif; overflow-wrap: break-word; }
/* Both Featured Collection and All Objects use the existing product cards. */
.dr-shop .dr-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; margin: 0; padding: 0; list-style: none; }
.dr-shop .dr-product { min-width: 0; margin: 0; padding: 0; }
.dr-shop .dr-product-link { display: block; height: auto; }
.dr-shop .dr-product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--dr-cream); border-block: 7px solid var(--dr-ivory); }
.dr-shop .dr-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.dr-shop .dr-product-copy { padding-top: 12px; }
.dr-shop .dr-product h3 { margin: 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.35; letter-spacing: 0; overflow-wrap: break-word; }
.dr-shop .dr-price { margin-top: 6px; font: 13px/1.5 Arial, sans-serif; }
.dr-shop .dr-price ins { background: transparent; text-decoration: none; }
.dr-shop .dr-price del { color: var(--dr-muted); margin-right: 5px; }
.dr-shop .dr-all-section { padding-top: 34px; border-top: 1px solid var(--dr-line); }
.dr-shop .dr-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 24px; font: 13px/1.5 Arial, sans-serif; }
.dr-shop .dr-toolbar .woocommerce-result-count,
.dr-shop .dr-toolbar .woocommerce-ordering { float: none; margin: 0; }
.dr-shop .dr-toolbar select { max-width: 100%; min-height: 40px; padding: 8px 32px 8px 10px; background-color: var(--dr-cream); border: 1px solid var(--dr-line); border-radius: 0; color: var(--dr-ink); font: inherit; }
.dr-shop .dr-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.dr-shop .dr-pagination :is(a, span) { display: inline-flex; justify-content: center; align-items: center; min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--dr-line); }
.dr-shop .dr-pagination .current { background: var(--dr-ink); color: var(--dr-cream); }
@media (hover: hover) { .dr-shop .dr-product-link:hover img { transform: scale(1.025); } }
@media (max-width: 1000px) {
  .dr-shop .dr-wrap { width: calc(100% - 48px); }
  .dr-shop .dr-products { gap: 28px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dr-shop .dr-category-grid { gap: 18px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
@media (max-width: 680px) {
  .dr-shop { padding: 26px 0 40px; }
  .dr-shop .dr-wrap { width: calc(100% - 32px); }
  .dr-shop .dr-section { margin-bottom: 36px; }
  .dr-shop .dr-section-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 18px; }
  .dr-shop h2 { font-size: 26px; }
  .dr-shop .dr-text-link { font-size: 11px; gap: 8px; }
  .dr-shop .dr-category-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; grid-template-columns: none; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 12px; }
  .dr-shop .dr-category-grid > li { scroll-snap-align: start; }
  .dr-shop .dr-category-image { width: 104px; margin-bottom: 10px; }
  .dr-shop .dr-category-name { font-size: 14px; }
  .dr-shop .dr-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .dr-shop .dr-product-image { border-block-width: 6px; }
  .dr-shop .dr-product-copy { padding-top: 10px; }
  .dr-shop .dr-product h3 { font-size: 16px; }
  .dr-shop .dr-price { font-size: 12px; }
  .dr-shop .dr-all-section { padding-top: 26px; }
  .dr-shop .dr-toolbar { gap: 10px; margin-bottom: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dr-shop .dr-product-image img { transition: none; }
  .dr-shop .dr-product-link:hover img { transform: none; }
}
