.design-grid {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem) clamp(0.75rem, 2.2vw, 2rem);
}
.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.design-card {
  min-width: 0;
}
.design-frame {
  isolation: isolate;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: clamp(0.7rem, 1.3vw, 1.2rem);
  overflow: hidden;
  color: #fffaf0;
  background: #142820;
}
.design-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(4, 14, 10, 0.93),
    rgba(6, 17, 13, 0.58) 19%,
    rgba(5, 17, 12, 0.05) 52%,
    transparent 78%
  );
}
.design-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.design-card .design-frame::after {
  background: linear-gradient(to top, #030e0bf0, #06130e8c 11%, #08120e19 23%, transparent 33%);
}
a.design-frame:hover img {
  transform: scale(1.025);
}
.design-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: clamp(0.8rem, 2.4vw, 2.7rem);
}
.design-caption p {
  color: #f5d69c;
  font: 650 clamp(0.73rem, 1vw, 0.88rem)/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.095em;
  margin: 0 0 0.32rem;
}
.design-caption :is(h1, h3) {
  color: #fffaf0;
  font: 500 clamp(1.6rem, 3.4vw, 3.7rem)/0.98 var(--serif);
  letter-spacing: -0.035em;
  margin: 0;
}
.design-caption h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.design-caption h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}
.product-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.9rem;
}
.product-actions .order-now {
  margin: 0;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
}
.product-actions .shop-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  background: #f4f3e9;
  border: 1px solid #859384;
  border-radius: 0.65rem;
  color: #203a2a;
  padding: 0.7rem 1rem;
  min-height: 46px;
  font: 600 0.94rem/1.3 var(--sans);
  cursor: pointer;
}
.shop-add svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.catalog-grid .product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(4px, 0.8vw, 10px);
  width: 100%;
}
.catalog-grid .order-now {
  min-width: 0;
  min-height: 44px;
  padding: 0.58rem clamp(0.375rem, 1.1vw, 1.25rem);
  font-size: clamp(0.8125rem, 3.6vw, 0.9rem);
  white-space: nowrap;
  text-align: center;
}
.catalog-grid .shop-add {
  width: clamp(44px, 3.5vw, 50px);
  aspect-ratio: 1;
  min-height: 44px;
  padding: 0;
}
.catalog-grid .shop-add > * {
  display: none;
}
.catalog-grid .shop-add::before {
  content: "+";
  font: 500 1.55rem/1 var(--sans);
}
.product-actions .shop-add:hover {
  background: #e5eadf;
  border-color: #476450;
}
.shop-directory h1 {
  font-size: clamp(3.25rem, 6.4vw, 6.5rem);
}
.home-browse-sequence {
  display: grid;
  gap: clamp(1.85rem, 4vw, 4rem);
}
.home-browse-sequence > .studio-letter {
  width: min(100%, 74rem);
  margin-block: 0;
}
#shop,
#more-products {
  scroll-margin-top: 1rem;
}
.shop-directory .eyebrow {
  margin-bottom: 0.75rem;
}
.catalog-sr-only,
.studio-letter .newsletter-form > label[for] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.catalog-tools {
  margin: clamp(1.5rem, 3vw, 3rem) 0 0.7rem;
}
.search-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-box input {
  height: 100%;
  min-height: 50px;
  border-radius: 0.55rem;
  padding: 0.85rem 2.85rem 0.85rem 1rem;
  color: #11231c;
  background: #fbfcf7;
  border: 1px solid #8f9c90;
}
.search-box > svg {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: #42614f;
}
.search-box input:placeholder-shown::-webkit-search-cancel-button {
  display: none;
}
.search-toolbar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
#filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border: 1px solid #8f9c90;
  border-radius: 0.55rem;
  background: #e6eadf;
  color: #203a2c;
  font: 600 0.94rem/1.3 var(--sans);
  cursor: pointer;
}
#filter-toggle:is([aria-expanded="true"], [data-active="true"]) {
  background: #234538;
  color: #f7f6e9;
}
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  margin-top: 0.7rem;
  background: #e6eadfe8;
  color: #1b3428;
  border: 1px solid #c6cdbf;
  border-radius: 0.6rem;
}
.catalog-filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.catalog-filters select {
  border-radius: 0.4rem;
  padding-right: 2.1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%233f5948' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: right 0.8rem center;
  background-repeat: no-repeat;
}
.catalog-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  margin: 0.35rem 0 1.05rem;
}
.catalog-results p {
  margin: 0;
  font-size: 0.94rem;
}
#clear-filters {
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  padding: 0.5rem 0;
}
.catalog-empty {
  padding-block: clamp(2rem, 6vw, 5rem);
  text-align: center;
}
.catalog-empty h2 {
  margin: 0.6rem 0 1.2rem;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
}
.product-detail .design-frame {
  max-height: min(74vh, 750px);
}
.detail-render {
  min-width: 0;
}
.detail-render img {
  object-fit: cover;
}
.detail-render .design-caption h1 {
  font-size: clamp(2.5rem, 4.1vw, 4.65rem);
}
.product-gallery {
  container-type: inline-size;
}
.product-gallery .gallery-frame {
  width: 100%;
  background: #0f1b16;
}
.gallery-landscape .gallery-frame {
  aspect-ratio: 3 / 2;
}
.product-gallery .gallery-main-image {
  object-fit: contain;
}
.gallery-enlarge {
  display: block;
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}
.gallery-enlarge,
.gallery-lightbox-stage {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-enlarge:focus-visible {
  outline-offset: -5px;
}
.product-gallery .design-caption {
  pointer-events: none;
}
.gallery-control {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #f1e9d180;
  background: #122720de;
  color: #fff8e8;
  cursor: pointer;
}
.gallery-control:hover,
.gallery-enlarge:hover .gallery-expand-icon {
  background: #254338;
  border-color: #f1e9d1;
}
.gallery-expand-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  pointer-events: none;
}
.gallery-arrows {
  position: absolute;
  z-index: 2;
  top: 48%;
  inset-inline: 0.65rem;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.gallery-arrows button {
  pointer-events: auto;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 1vw, 0.7rem);
  margin-top: 0.65rem;
}
.gallery-thumb {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.75rem);
  min-width: 0;
  min-height: 52px;
  padding: 0.25rem;
  border: 1px solid #a6afa1;
  border-radius: 0.5rem;
  background: #f8f8f0;
  color: #263a2d;
  font-weight: 550;
  font-size: clamp(0.74rem, 1vw, 0.95rem);
  line-height: 1.2;
}
.gallery-thumb img {
  width: clamp(30px, 3.2vw, 48px);
  height: clamp(38px, 4vw, 54px);
  object-fit: cover;
  flex: none;
  border-radius: 0.23rem;
}
.gallery-thumb[aria-current="true"] {
  color: #fff9e7;
  background: #1e382d;
  border-color: #1e382d;
}
.gallery-thumb:hover {
  border-color: #2f5945;
  box-shadow: 0 0 0 1px #2f5945;
}
html:has(.gallery-dialog[open]) {
  overflow: hidden;
}
.gallery-dialog {
  width: min(78rem, calc(100% - 2rem));
  max-width: none;
  height: min(54rem, calc(100% - 2rem));
  max-height: none;
  margin: auto;
  border: 1px solid #778475;
  border-radius: 1rem;
  padding: 0;
  background: #10221c;
  color: #fff7e5;
}
.gallery-dialog::backdrop {
  background: #07100de8;
}
.gallery-lightbox {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.gallery-lightbox-head,
.gallery-lightbox-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem clamp(0.7rem, 2.3vw, 1.6rem);
}
.gallery-lightbox-head {
  justify-content: space-between;
}
.gallery-lightbox-head h2 {
  color: #fff7e5;
  font-size: clamp(1.5rem, 2.7vw, 2.8rem);
  margin: 0;
}
.gallery-lightbox-stage {
  min-height: 0;
  background: #091510;
}
.gallery-lightbox-stage img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.gallery-lightbox-foot {
  justify-content: center;
}
.gallery-lightbox-foot p {
  min-width: 11rem;
  color: #f6e7c6;
  text-align: center;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
@container (max-width: 380px) {
  .gallery-landscape .gallery-frame {
    aspect-ratio: 4 / 3;
  }
  .gallery-thumb {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 0.26rem 0.26rem 0.42rem;
  }
  .gallery-thumb img {
    width: 100%;
    height: clamp(44px, 13vw, 62px);
  }
}
@media (max-width: 480px) {
  .gallery-dialog {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .gallery-lightbox-head {
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }
  .gallery-lightbox-foot {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
}
.product-brief h2 {
  font-size: clamp(2.75rem, 4.1vw, 4.4rem);
  margin-bottom: 1rem;
}
.product-brief h3 {
  font: 600 1.05rem/1.45 var(--sans);
  letter-spacing: 0;
  margin-top: 1.45rem;
}
.product-description {
  font-size: 1.18rem;
  max-width: 40ch;
}
.product-design .product-actions {
  margin-top: 1rem;
}
.product-brief .render-note {
  margin-top: 1.25rem;
  font-size: 0.83rem;
  opacity: 0.86;
}
@media (max-width: 880px) {
  .product-detail {
    gap: 1.6rem;
  }
  .product-actions {
    gap: 0.25rem 0.65rem;
  }
}
@media (max-width: 640px) {
  .catalog-grid {
    column-gap: clamp(0.55rem, 2.4vw, 0.9rem);
    row-gap: 1.45rem;
  }
  .catalog-grid .design-caption {
    padding: clamp(0.52rem, 2.2vw, 1rem);
  }
  .catalog-grid .design-caption h3 {
    font-size: clamp(1.25rem, 4.8vw, 1.86rem);
  }
  .catalog-grid .product-actions {
    margin-top: 0.55rem;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail .design-frame {
    max-height: none;
  }
  .catalog-filters {
    grid-template-columns: 1fr;
  }
  #filter-toggle {
    padding-inline: 0.7rem;
  }
  .catalog-results {
    margin-bottom: 0.65rem;
  }
}
@media (max-width: 380px) {
  .search-box input {
    padding-inline: 0.65rem 2rem;
  }
  .search-box > svg {
    right: 0.5rem;
  }
  #filter-toggle {
    padding-inline: 0.55rem;
  }
  #filter-toggle svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .design-frame img {
    transition: none;
  }
}
