.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.search-link {
  padding: 8px;
}
.menu-toggle {
  display: none;
  font-size: 1.4rem;
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.8125rem;
  margin-left: auto;
}
.type-choice {
  padding-top: 0;
  border: 0;
}
.type-choice legend {
  font-size: 0.8125rem;
  color: var(--muted);
}
.type-options {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
  background: #f0f1ea;
}
.type-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.type-options input {
  position: absolute;
  opacity: 0;
}
.type-options span {
  padding: 11px;
  display: block;
  text-align: center;
  font-size: 0.875rem;
  border-radius: 5px;
}
.type-options input:checked + span {
  background: white;
  box-shadow: 0 2px 6px #0001;
}
.type-options input:focus-visible + span {
  outline: 3px solid #41647b;
}
.item-actions a {
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home {
  max-width: none;
  padding: 0;
}
.home-hero {
  position: relative;
  height: 670px;
  overflow: hidden;
  background: #deddd2;
}
.home-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.home-hero:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #f5f2eaf2 0%, #f5f2eae0 22%, #f5f2ea55 45%, transparent 65%);
}
.hero-copy {
  position: absolute;
  z-index: 1;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 500px;
}
.hero-copy h1 {
  font-size: clamp(3rem, 4.3vw, 5.2rem);
  line-height: 1.03;
  margin: 22px 0;
}
.hero-copy p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5c6456;
  margin-bottom: 30px;
}
.hero-copy .primary {
  max-width: 280px;
}
.hero-secondary {
  font-size: 0.875rem;
  display: block;
  margin-top: 22px;
}
.hero-caption {
  position: absolute;
  z-index: 1;
  bottom: 23px;
  right: 4%;
  color: white;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 4px #0009;
}
.intro-strip {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 24px 5%;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: #59634e;
}
.home > section:not(.home-hero) {
  max-width: 1600px;
  margin: 75px auto;
  padding: 0 5%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 29px;
}
.section-heading h2 {
  font-size: 2.7rem;
  margin-top: 10px;
}
.section-heading > a {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  white-space: nowrap;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.world-card {
  height: 210px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.world-card:hover img {
  transform: scale(1.035);
}
.world-card:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, #1b291dc4, transparent 80%);
}
.world-card > div {
  position: absolute;
  left: 24px;
  bottom: 23px;
  color: white;
  z-index: 1;
}
.world-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 7px;
}
.world-card > div > span {
  font-size: 0.8125rem;
}
.world-arrow {
  position: absolute;
  right: 24px;
  bottom: 27px;
  color: white;
  z-index: 1;
  font-size: 1.5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}
.card-image {
  position: relative;
  aspect-ratio: 1.25;
  overflow: hidden;
  border-radius: 5px;
  background: #e6e7dd;
}
.card-image > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.product-card:hover .card-image > img {
  transform: scale(1.035);
}
.card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 35px;
  height: 35px;
  background: #ffffffe8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.card-category {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.625rem;
  color: #778068;
  margin-top: 17px;
}
.product-card h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.4;
  margin: 7px 0;
}
.product-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.door-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
}
.door-visual {
  height: 520px;
  background: #e3e7dc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
}
.door-visual img {
  height: 87%;
  aspect-ratio: 90/210;
  object-fit: cover;
  box-shadow: 10px 8px 20px #2333212b;
  border: 7px solid #fbfaf5;
}
.door-feature h2 {
  font-size: 3.5rem;
  margin: 18px 0 23px;
}
.door-feature p {
  max-width: 400px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}
.door-feature .primary {
  width: 280px;
  margin-top: 28px;
}
.catalog-heading h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin: 20px 0;
}
.catalog-heading p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
.catalog-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 15px;
  margin: 37px 0 25px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.catalog-controls > label {
  font-size: 0.75rem;
  color: var(--muted);
}
select,
.address-grid input,
.admin-product input:not([type="checkbox"]),
.admin-product textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced3c4;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  min-height: 45px;
}
.catalog-controls select {
  margin-top: 7px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ced3c4;
  background: #fff;
  border-radius: 5px;
  padding: 0 13px;
  height: 45px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.875rem;
}
.search-field:focus-within {
  outline: 2px solid #41647b;
}
.search-field svg {
  width: 20px;
  flex-shrink: 0;
}
.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 23px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.catalog-page .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-page {
  padding-bottom: 55px;
}
.door-card .card-image {
  aspect-ratio: 1;
  background: #e7e9df;
  display: flex;
  justify-content: center;
  padding: 20px;
}
.door-card .card-image > img {
  width: auto;
  height: 100%;
  aspect-ratio: 90/210;
  object-fit: cover;
  box-shadow: 8px 6px 12px #0002;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 45px;
  font-size: 0.875rem;
}
.pagination button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.empty-results {
  padding: 70px 0;
  text-align: center;
}
.empty-results p {
  margin-top: 15px;
  color: var(--muted);
}
.checkout-page {
  padding-bottom: 65px;
}
.checkout-page > h1 {
  font-size: 3rem;
  line-height: 1.1;
}
.checkout-notice {
  padding: 15px 19px;
  background: #e9ecdf;
  border-radius: 7px;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 25px 0 35px;
  max-width: 800px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7%;
}
.checkout-layout h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 25px 0 32px;
}
.address-grid label {
  font-size: 0.8125rem;
}
.address-grid input,
.address-grid select {
  margin-top: 8px;
  display: block;
}
.address-grid .full {
  grid-column: 1/-1;
}
.checkout-summary {
  background: #f0f1e9;
  padding: 27px;
  border-radius: 9px;
  align-self: start;
}
.checkout-item {
  display: flex;
  align-items: start;
  gap: 14px;
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.checkout-item > img {
  width: 65px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
}
.checkout-item > div {
  flex: 1;
}
.checkout-item strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.checkout-item p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}
.checkout-item > span {
  font-size: 0.875rem;
  white-space: nowrap;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin: 17px 0;
}
.terms {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  line-height: 1.7;
  align-items: start;
  margin: 20px 0;
}
.terms input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
#pay-button {
  width: 100%;
  margin-top: 25px;
}
.order-page {
  max-width: 800px;
  min-height: 65vh;
  padding-top: 80px;
  padding-bottom: 70px;
}
.order-page h1 {
  font-size: 3rem;
  margin: 25px 0;
}
.order-page > p {
  line-height: 1.8;
  color: var(--muted);
}
#order-details {
  padding: 25px 0;
}
#order-details h2 {
  margin-top: 12px;
}
.order-page > .primary {
  max-width: 280px;
}
.admin-page {
  padding-top: 40px;
  padding-bottom: 60px;
}
.admin-page h1 {
  font-size: 2.8rem;
}
.admin-page > h2 {
  margin: 35px 0 15px;
}
.admin-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.admin-status > div {
  background: #e9ecdf;
  padding: 20px;
  border-radius: 6px;
}
.admin-status strong,
.admin-status span {
  display: block;
  font-size: 0.875rem;
}
.admin-status span {
  font-size: 0.8125rem;
  margin-top: 10px;
  color: var(--muted);
}
.admin-empty {
  padding: 25px;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.admin-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}
.admin-product {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: start;
}
.admin-product > img {
  width: 90px;
  height: 115px;
  object-fit: cover;
  border-radius: 3px;
}
.admin-product > div {
  flex: 1;
  min-width: 0;
}
.admin-product label {
  display: block;
  font-size: 0.8125rem;
  margin-top: 12px;
}
.admin-product input,
.admin-product textarea {
  margin-top: 6px;
}
.admin-product textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.admin-product .admin-active {
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-product .admin-active input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.admin-product button {
  margin-top: 15px;
  min-height: 40px;
  padding: 10px 18px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .intro-strip {
    gap: 35px;
  }
  .world-card {
    height: 170px;
  }
  .world-card h3 {
    font-size: 1.2rem;
  }
  .world-card > div {
    left: 17px;
    bottom: 20px;
  }
  .world-arrow {
    right: 16px;
  }
  .home-hero {
    height: 600px;
  }
  .hero-copy {
    left: 6%;
  }
  .product-grid {
    gap: 25px 16px;
  }
  .door-feature h2 {
    font-size: 2.6rem;
  }
  .catalog-controls {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .admin-products {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .header-actions {
    gap: 13px;
  }
  .menu-toggle {
    display: block;
  }
  .search-link {
    display: none;
  }
  #mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 5px 6% 20px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    font-size: 0.9375rem;
  }
  .home-hero {
    height: 670px;
    display: flex;
    flex-direction: column;
    background: #e9eade;
  }
  .home-hero > img {
    height: 58%;
    object-position: center;
    order: 0;
  }
  .home-hero:after {
    display: none;
  }
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding: 25px 6% 28px;
    order: 1;
    max-width: none;
  }
  .hero-copy .eyebrow {
    font-size: 0.625rem;
  }
  .hero-copy h1 {
    font-size: 2.55rem;
    margin: 12px 0 14px;
    line-height: 1.04;
  }
  .hero-copy p {
    font-size: 0.875rem;
    margin-bottom: 18px;
    line-height: 1.6;
  }
  .hero-copy p br {
    display: none;
  }
  .hero-copy .primary {
    max-width: none;
    min-height: 48px;
    padding: 13px 18px;
  }
  .hero-secondary {
    margin-top: 13px;
    text-align: center;
    font-size: 0.8125rem;
  }
  .hero-caption {
    top: 20px;
    bottom: auto;
    right: 5%;
    font-size: 0.5625rem;
    display: none;
  }
  .intro-strip {
    padding: 18px 6%;
    gap: 20px;
    justify-content: space-between;
    font-size: 0.6875rem;
    line-height: 1.6;
  }
  .home > section:not(.home-hero) {
    margin: 40px auto;
    padding: 0 6%;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .section-heading h2 {
    font-size: 2rem;
  }
  .section-heading > a {
    font-size: 0.8125rem;
  }
  .world-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .world-card {
    height: 155px;
  }
  .world-card > div {
    left: 13px;
    bottom: 17px;
    right: 10px;
  }
  .world-card h3 {
    font-size: 1.1rem;
    line-height: 1.15;
  }
  .world-card > div > span {
    font-size: 0.6875rem;
  }
  .world-arrow {
    display: none;
  }
  .product-grid,
  .catalog-page .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 13px;
  }
  .card-image {
    aspect-ratio: 1;
  }
  .card-category {
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin-top: 12px;
  }
  .product-card h3 {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 5px 0;
  }
  .product-card p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .card-arrow {
    width: 27px;
    height: 27px;
    right: 9px;
    bottom: 9px;
    font-size: 1rem;
  }
  .door-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .door-visual {
    height: 370px;
  }
  .door-feature h2 {
    font-size: 2.5rem;
  }
  .door-feature p {
    font-size: 0.9375rem;
    line-height: 1.8;
  }
  .door-feature .primary {
    width: 100%;
    margin-top: 22px;
  }
  .footer-links {
    margin: 7px 0;
    width: 100%;
    gap: 16px;
    font-size: 0.75rem;
  }
  .catalog-heading h1 {
    font-size: 2.5rem;
    margin: 15px 0;
  }
  .catalog-heading p {
    font-size: 0.9375rem;
  }
  .catalog-controls {
    grid-template-columns: 1fr 1fr;
    gap: 15px 12px;
    margin: 28px 0 18px;
  }
  .catalog-controls > label:last-child {
    grid-column: 1/-1;
  }
  .results-line {
    gap: 10px;
    font-size: 0.75rem;
  }
  .results-line .text-button {
    font-size: 0.75rem;
  }
  .door-card .card-image {
    padding: 15px;
  }
  .pagination {
    gap: 13px;
    font-size: 0.8125rem;
  }
  .pagination button {
    padding: 10px 12px;
  }
  .checkout-page > h1 {
    font-size: 2.6rem;
  }
  .checkout-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }
  .checkout-summary {
    width: 100%;
    padding: 20px;
  }
  .checkout-item {
    gap: 10px;
  }
  .checkout-item > span {
    font-size: 0.8125rem;
  }
  .checkout-notice {
    font-size: 0.8125rem;
  }
  .address-grid {
    gap: 16px 12px;
  }
  .order-page {
    padding-top: 50px;
  }
  .order-page h1 {
    font-size: 2.5rem;
  }
  .admin-status {
    grid-template-columns: 1fr 1fr;
  }
  .admin-status > div {
    padding: 15px;
  }
  .admin-product {
    padding: 13px;
    gap: 12px;
  }
  .admin-product > img {
    width: 55px;
    height: 80px;
  }
}
@media (min-width: 801px) {
  .home-hero:has(.hero-copy) {
    min-height: 570px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-card img,
  .card-image > img {
    transition: none;
  }
}

.apply-crop {
  width: 100%;
  margin-top: 18px;
}
.eyebrow,
.card-category {
  font-size: 0.75rem;
}
.world-card > div > span {
  font-size: 0.8125rem;
}

.product-tile { position: relative; min-width: 0; }
.favorite-button { display: grid; place-items: center; position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 50%; color: #292925; background: #fffffff2; cursor: pointer; z-index: 2; }
.favorite-button svg, .favorites-link svg { width: 22px; height: 22px; }
.favorite-button[aria-pressed="true"] { color: #c85850; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.favorite-button:focus-visible, .favorites-link:focus-visible { outline: 3px solid #a34034; outline-offset: 3px; }
.favorites-link { display: flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.favorites-link span { font-size: 11px; }
.favorites-filter { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.results-line { flex-wrap: wrap; gap: 12px; }
.product-intro { position: relative; }
.product-intro h1 { padding-right: 48px; }
.product-favorite { top: 8px; right: 0; }

/* Complete room photographs fill the card without the original-door framing. */
.product-card.has-moodshot .card-image {
  aspect-ratio: 3/2;
  padding: 0;
  display: block;
}
.product-card.has-moodshot .card-image > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: none;
}

/* Incremental catalog: one small batch at a time; button remains a keyboard fallback. */
.catalog-load {display:flex;flex-direction:column;align-items:center;gap:12px;margin:36px 0 12px;min-height:50px}
.catalog-load p {color:var(--muted);font-size:14px}
.catalog-load button {padding:13px 25px;border:1px solid #d8d8d3;border-radius:24px;background:white;color:inherit;cursor:pointer;font:inherit;min-height:44px}
.catalog-load button:hover {background:#f4f3ef}
.catalog-load button:focus-visible {outline:2px solid #d96059;outline-offset:4px}
.catalog-load button[hidden] {display:none}

.product-tile .favorite-button { width:30px; height:30px; }
.product-tile .favorite-button svg { width:17px; height:17px; }
.product-tile .favorite-button::after { content:""; position:absolute; inset:-7px; border-radius:50%; }
.product-card .card-arrow { display:none; }
