
.detail + .complete-the-look { padding-top: 24px; }
.complete-the-look .products, .you-might-like .products { column-gap: 16px; }

#site-menu {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(380px, 100%);
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: 20px max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-bottom));
  overflow: auto;
}
.site-menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.site-menu-heading h2 { margin: 0; font-size: 28px; }
.site-menu-heading form { margin: 0; }
.site-menu-heading .close { min-width: 44px; min-height: 44px; font-size: 28px; }
#site-menu nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 15px;
}
body:has(#site-menu[open]) { overflow: hidden; }

@media (max-width: 1023px) {
  .header { padding: 6px 4%; display: grid; grid-template-columns: minmax(44px,1fr) auto minmax(0,1fr); gap: 0; }
  .header #desktop-navigation { display: none; }
  .header:has(.menu-trigger[hidden]) { display: flex; flex-wrap: wrap; }
  .header:has(.menu-trigger[hidden]) #desktop-navigation { display: flex; width: 100%; order: 3; overflow: auto; }
  .header .brand { font-size: clamp(24px,4vw,34px); }
  .header .tools { justify-self: end; gap: 0; margin-right: -6px; }
  .menu-trigger, .tools button { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
  .menu-trigger:not([hidden]), .tools button { display: inline-flex; }
  .menu-trigger { background: none; border: 0; color: inherit; margin-left: -6px; }
  .menu-trigger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .tools span { top: 1px; right: 1px; }
  .categories { justify-content: flex-start; }
  .filters input, .filters select, .dialog-input { font-size: 16px; min-height: 44px; }
  .filter-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .products { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .department-products > .product-card:nth-child(n+9) { display: none; }
  .detail { gap: 4%; }
}

@media (max-width: 760px) {
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .department-products > .product-card:nth-child(n+5) { display: none; }
  .header { grid-template-columns: auto minmax(0,1fr) auto; }
  .header .brand { justify-self: start; margin-left: 4px; }
  .detail { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .details-copy { grid-row: auto; }
  .detail-media {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    padding-bottom: 5px;
  }
  .detail-media img {
    flex: 0 0 88%;
    width: 88%;
    scroll-snap-align: start;
    height: min(105vw, 570px);
    object-fit: contain;
  }
  .detail-media img:only-child { flex-basis: 100%; width: 100%; }
  .filters { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .filters label:first-of-type { grid-column: 1 / -1; }
  .filters input[type="search"], .filters select { width: 100%; }
  .filters .button { min-height: 44px; }
  .shop .product-card { min-width: 0; }
  dialog#dialog { padding: 18px; max-height: calc(100dvh - 24px); }
  .checkout-form label { min-width: 0; }
}

.product-quantity { display: grid; gap: 4px; margin: 12px 0; width: max-content; }
.product-quantity input { width: 88px; font-size: 16px; }
.bag-row { flex-wrap: wrap; align-items: center; }
.bag-quantity { display: inline-flex; align-items: center; }
.bag-quantity button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: inherit; font-size: 18px; }
.bag-quantity button:disabled { opacity: .45; }
.bag-quantity output { min-width: 32px; text-align: center; }

.numbered-pagination { flex-wrap: wrap; gap: 8px; }
.page-numbers { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 4px; }
.page-control { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 4px 9px; border: 1px solid var(--line); }
.page-control[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: white; }
.page-control[aria-disabled="true"] { color: #767676; }
a.page-control:hover { background: var(--wash); text-decoration: none; }
.page-gap { padding: 0 2px; }
@media (max-width: 600px) {
  .numbered-pagination { display: grid; grid-template-columns: auto auto; justify-content: center; }
  .numbered-pagination .page-numbers { grid-area: 1 / 1 / 2 / 3; }
  .numbered-pagination > .page-control { justify-self: center; }
}
.gallery-photo { display: block; width: 100%; padding: 0; border: 0; background: var(--wash); cursor: zoom-in; min-width: 0; }
.detail-media > .gallery-photo:first-child { grid-column: span 2; }
.gallery-photo img { display: block; width: 100%; }
.product-lightbox {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 12px;
  background: #202020;
  color: #fff;
}
.product-lightbox::backdrop { background: #000c; }
body:has(.product-lightbox[open]) { overflow: hidden; }
.lightbox-photo { display: grid; place-items: center; }
.lightbox-photo img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 138px); object-fit: contain; }
.lightbox-close { display: flex; justify-content: flex-end; }
.lightbox-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.product-lightbox button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 26px; cursor: pointer; }
@media (max-width: 760px) {
  .detail-media > .gallery-photo { flex: 0 0 88%; scroll-snap-align: start; }
  .detail-media > .gallery-photo:only-child { flex-basis: 100%; }
  .detail-media > .gallery-photo img { width: 100%; }
}

.account-centre { max-width: 1240px; margin-inline: auto; }
