.shop .nav { gap: 14px; }
.home-link { margin-left: auto; font-size: 14px; font-weight: 700; }
#cart-count { margin-left: 4px; }
.shop-hero {
  background: linear-gradient(90deg, #19352e 40%, #19352ebd 100%), url(house.jpg) center 53% / cover;
  color: var(--white);
  padding: clamp(38px, 6vw, 86px) 0;
}
.shop-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.shop-hero h1 { font-size: clamp(47px, 6.3vw, 88px); }
.shop-hero .eyebrow, .shop-hero .intro { color: #e1ebdc; }
.browse-link { text-decoration: underline; text-underline-offset: 5px; font-weight: 700; }
.delivery-panel { background: var(--white); color: var(--ink); border-radius: 16px; padding: 24px; }
.delivery-panel h2 { font-size: 34px; }
.delivery-panel p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
.delivery-panel label, .search-label { display: block; font-size: 14px; font-weight: 700; }
.pin-fields { display: flex; gap: 8px; margin-top: 5px; }
.shop input {
  color: var(--ink);
  width: 100%;
  min-width: 0;
  border: 1px solid #8b9b8f;
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
}
.pin-fields button { white-space: nowrap; padding: 10px 14px; }
#delivery-status { margin-bottom: 0; }
#delivery-status:empty { display: none; }
.catalog { padding-block: 48px 60px; }
.preview-note, .catalog-status { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.search-label { width: min(100%, 250px); }
.search-label input { display: block; margin-top: 4px; font-weight: 400; }
.catalog-actions { width: min(100%, 250px); flex-shrink: 0; display: grid; gap: 10px; }
.catalog-actions .search-label { width: 100%; }
.catalog-actions .catalog-checkout { width: 100%; text-align: center; margin: 0; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { border-radius: 30px; padding: 7px 14px; font-size: 14px; }
.category-filters [aria-pressed="false"] { background: transparent; color: var(--ink); border-color: #8b9b8f; }
.catalog-status { margin: 16px 0 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  padding: 17px;
  display: flex;
  flex-direction: column;
}
.product-card .category { color: var(--muted); font-size: 13px; font-weight: 700; margin: 0 0 7px; }
.product-card .spec { color: var(--muted); margin: 6px 0 16px; font-size: 14px; }
.product-card .price { margin: auto 0 10px; font-size: 19px; font-weight: 700; }
.product-card .price small { color: var(--muted); font-size: 13px; font-weight: 400; }
.product-card button { padding: 8px 12px; }
.door-category-preview { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:4px; aspect-ratio:4/3; overflow:hidden; border-radius:8px; margin-bottom:14px; background:#e9e4dc; }
.door-category-preview img { width:100%; height:100%; object-fit:cover; }
.door-design-card .product-image { object-fit:contain; background:#e9e4dc; }
.shop-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--border); padding-block: 20px; font-size: 14px; }
.shop #cart { width: min(540px, calc(100% - 24px)); max-height: 90dvh; }
.shop-cart { padding: clamp(14px, 4vw, 24px); }
.shop-cart h2 { font-size: 40px; }
.cart-head, .cart-total, .cart-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-head button { padding: 4px 12px; }
.cart-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.cart-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cart-quantity { display: flex; align-items: center; gap: 8px; }
.cart-quantity button { width: 36px; height: 36px; padding: 0; }
.cart-total { margin-top: 16px; }
.shop-cart > p { color: var(--muted); font-size: 14px; }
#download-list:disabled { opacity: .55; cursor: default; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shop-hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .catalog-actions { width: 100%; }
  .search-label { margin-top: 15px; }
  .home-link { font-size: 12px; text-align: right; }
}
@media (max-width: 370px) {
  .product-grid { grid-template-columns: 1fr; }
}

.checkout-link { display: inline-block; background: var(--ink); color: white; padding: 12px 16px; border-radius: 8px; font-weight: 700; margin: 0 6px 6px 0; }
.order-heading { font-size: clamp(46px, 6vw, 75px); }
.order-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.order-grid[hidden] { display: none; }
.order-panel { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.order-panel h2 { font-size: 38px; margin-bottom: 16px; }
.order-panel label { display: block; font-size: 14px; font-weight: 700; }
.order-panel form > label + label { margin-top: 10px; }
.order-panel select, .order-panel textarea { color: var(--ink); width: 100%; min-width: 0; border: 1px solid #8b9b8f; border-radius: 8px; background: var(--white); padding: 9px; }
.order-panel label > :is(input, textarea) { display: block; margin-top: 4px; font-weight: 400; }
.order-panel .cart-quantity input { width: 66px; padding: 6px; }
.order-panel .cart-item { flex-wrap: wrap; }
#submit-order { margin-top: 12px; }
#submit-order:disabled { opacity: .55; cursor: default; }
#order-error { color: #8b3025; }
#order-error:empty { display: none; }
.confirmation { max-width: 680px; overflow-wrap: anywhere; }
.inbox-list { display: grid; gap: 12px; }
.inbox-list p { margin: 5px 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .order-grid { grid-template-columns: 1fr; } }

.product-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #f1eee6; margin-bottom: 13px; }
.brand-select { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.brand-select select { display: block; width: 100%; margin-top: 4px; color: var(--ink); border: 1px solid #8b9b8f; border-radius: 8px; background: var(--white); padding: 8px; font-weight: 400; }

.admin-controls { margin-block: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-controls .checkout-link { margin: 0; padding: 7px 14px; border-radius: 30px; font-size: 14px; }
.admin-catalogue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 14px; }
.admin-setting { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.admin-setting button { margin-top: 8px; padding: 6px 12px; }
.admin-amount { display: flex; gap: 6px; align-items: center; margin-top: 5px; }
.admin-amount input { width: 8em; }
.admin-amount span { white-space: nowrap; }
.submission-details { white-space: pre-wrap; }
