/* Hornseys premium editorial theme layer.
   Shared across listing + PDP + home (kept lightweight; no checkout overrides). */

:root {
  --hs-shell: min(1400px, calc(100vw - 3rem));
  --hs-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --hs-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Page background: warm cream, subtle depth */
.hornseys-editorial {
  background:
    radial-gradient(900px 560px at 10% 0%, rgba(181, 138, 74, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(246, 240, 231, 1), rgba(255, 255, 255, 0.86) 42%, rgba(239, 230, 218, 0.98)),
    var(--t-bg);
  color: var(--t-text);
}

/* Hornseys blue top/bottom bars */
html[data-theme="light"] .navbar,
html[data-theme="light"] #nav-search-mobile {
  background: #02173f;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(2, 23, 63, 0.22);
}

html[data-theme="light"] .navbar a,
html[data-theme="light"] .navbar button,
html[data-theme="light"] .navbar .nav-phone,
html[data-theme="light"] .navbar .theme-toggle,
html[data-theme="light"] #nav-search-mobile input,
html[data-theme="light"] #nav-search-mobile button {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .navbar .nav-search .rounded-lg,
html[data-theme="light"] #nav-search-mobile .rounded-lg {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .navbar input::placeholder,
html[data-theme="light"] #nav-search-mobile input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .product-detail .product-breadcrumb {
  background: #02173f;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .product-detail .product-breadcrumb a,
html[data-theme="light"] .product-detail .product-breadcrumb span {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .product-detail .product-breadcrumb span.text-gray-800 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .product-mobile-buy-bar {
  background: rgba(2, 23, 63, 0.92);
  border-top-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 -18px 44px rgba(2, 23, 63, 0.35);
}

html[data-theme="light"] .product-mobile-buy-bar span,
html[data-theme="light"] .product-mobile-buy-bar strong {
  color: rgba(255, 255, 255, 0.92);
}

/* Footer already dark; align to Hornseys blue */
html[data-theme="light"] .site-footer {
  background: #02173f;
}

.hs-shell {
  width: 100%;
  max-width: var(--hs-shell);
  margin: 0 auto;
}

/* Large screens: use more canvas for imagery without stretching text too far */
@media (min-width: 1536px) {
  .hornseys-editorial {
    --hs-shell: min(1760px, calc(100vw - 5.5rem));
  }
}

.hs-kicker {
  font-family: var(--hs-sans);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.62);
  margin: 0 0 0.75rem;
}

.hs-h1,
.hs-h2 {
  font-family: var(--hs-serif);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.06;
  margin: 0;
}

.hs-h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
}

.hs-h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
}

.hs-body {
  font-family: var(--hs-sans);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(33, 28, 23, 0.76);
}

.hs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--hs-sans);
  font-weight: 650;
  text-decoration: none;
  color: var(--t-text);
  border-bottom: 1px solid rgba(45, 38, 30, 0.22);
  padding-bottom: 0.25rem;
  transition: border-color var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease);
}

.hs-link:hover {
  border-bottom-color: rgba(201, 168, 106, 0.9);
}

.hs-panel {
  border: 1px solid rgba(45, 38, 30, 0.1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-md), var(--inset-light);
}

/* PDP typography: ensure Sotheby's-like serif title */
.product-detail--hornseys h1 {
  font-family: var(--hs-serif);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.06;
}

.product-detail--hornseys .key-points-card h2,
.product-detail--hornseys .product-section-title,
.product-detail--hornseys #about-piece-heading {
  font-family: var(--hs-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(33, 28, 23, 0.62);
}

.product-detail--hornseys .key-points-card {
  border-radius: 1.5rem;
}

/* PDP purchase block — minimal, Sotheby's-style */
.pdp-purchase {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(45, 38, 30, 0.1);
}

.pdp-purchase__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 640px) {
  .pdp-purchase__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
}

.pdp-purchase__label {
  margin: 0;
  font-family: var(--hs-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.56);
}

.pdp-purchase__price {
  margin: 0.4rem 0 0;
  font-family: var(--hs-serif);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: rgba(33, 28, 23, 0.92);
  font-size: clamp(2.2rem, 2.4vw, 2.85rem);
  font-variant-numeric: tabular-nums;
}

.pdp-purchase__availability {
  margin: 0.55rem 0 0;
  font-family: var(--hs-sans);
  font-size: 0.92rem;
  color: rgba(33, 28, 23, 0.66);
}

.pdp-purchase__qtyCol {
  min-width: 200px;
}

.pdp-stepper {
  margin-top: 0.45rem;
  display: inline-grid;
  grid-template-columns: 44px 64px 44px;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(45, 38, 30, 0.2);
}

.pdp-stepper__btn {
  height: 44px;
  width: 44px;
  border: 0;
  background: transparent;
  color: rgba(33, 28, 23, 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t-quick) var(--ease), background var(--t-quick) var(--ease);
}

.pdp-stepper__btn:hover {
  color: rgba(33, 28, 23, 0.92);
  background: rgba(45, 38, 30, 0.04);
}

.pdp-stepper__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--t-focus);
  border-radius: 10px;
}

.pdp-stepper__input {
  height: 44px;
  width: 64px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--hs-sans);
  font-weight: 700;
  color: rgba(33, 28, 23, 0.92);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.pdp-stepper__input::-webkit-outer-spin-button,
.pdp-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-purchase__hint {
  margin: 0.55rem 0 0;
  font-family: var(--hs-sans);
  font-size: 0.82rem;
  color: rgba(33, 28, 23, 0.58);
}

.pdp-purchase__vatRow {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(33, 28, 23, 0.62);
  font-family: var(--hs-sans);
  font-size: 0.9rem;
}

.pdp-purchase__vatRate {
  font-variant-numeric: tabular-nums;
}

.pdp-purchase__vatToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  user-select: none;
}

.pdp-taxonomy-links {
  margin: 0.85rem 0 0;
  font-family: var(--hs-sans);
  color: rgba(33, 28, 23, 0.68);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pdp-taxonomy-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease);
}

.pdp-taxonomy-links a:hover {
  color: rgba(33, 28, 23, 0.88);
  border-bottom-color: rgba(201, 168, 106, 0.72);
}

.pdp-taxonomy-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--t-focus);
  border-radius: 8px;
}

/* PDP: remove panel/card feel — a continuous editorial flow */
.product-detail--hornseys .pdp-detail-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-detail--hornseys .pdp-detail-panel__inner {
  padding: 0;
}

.product-detail--hornseys h1 {
  line-height: 1.12;
}

.product-detail--hornseys .text-xs.uppercase.tracking-wider {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(33, 28, 23, 0.56);
}

.pdp-section {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: clamp(1.2rem, 2.5vw, 1.8rem);
  border-top: 1px solid rgba(45, 38, 30, 0.08);
}

.pdp-accordion {
  border-top: 1px solid rgba(45, 38, 30, 0.1);
  padding: 1rem 0;
}

.pdp-accordion:first-child {
  border-top-color: rgba(45, 38, 30, 0.08);
}

.pdp-accordion summary {
  font-family: var(--hs-sans);
  font-weight: 650;
  color: rgba(33, 28, 23, 0.9);
}

.pdp-details {
  padding-top: 0.25rem;
}

.pdp-details__row {
  border-bottom: 1px solid rgba(45, 38, 30, 0.08);
  padding-bottom: 0.6rem;
}

.pdp-meta-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(45, 38, 30, 0.08);
}

.pdp-meta-row:last-child {
  border-bottom: 0;
}

.product-enquiry-link {
  border-radius: 10px;
}

/* Category / listing cards — no heavy boxes, image-led */
.product-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.product-card__media {
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid rgba(45, 38, 30, 0.08);
  box-shadow: var(--shadow-sm), var(--inset-light);
  aspect-ratio: 4 / 5;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.85s var(--ease-out), filter 0.85s var(--ease-out), opacity 0.5s var(--ease);
}

.product-card:hover .product-card__media img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
  opacity: 0.985;
}

.product-card__body {
  padding: 0.85rem 0.25rem 0;
  text-align: left;
}

.product-card__title {
  font-family: var(--hs-sans);
  font-weight: 650;
  line-height: 1.35;
  color: rgba(33, 28, 23, 0.92);
  margin: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card:hover .product-card__title a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.product-card__meta {
  margin-top: 0.35rem;
  font-family: var(--hs-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.56);
  font-weight: 780;
}

.product-card__priceRow {
  margin-top: 0.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-family: var(--hs-sans);
  font-weight: 700;
  color: rgba(33, 28, 23, 0.7);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), color var(--t) var(--ease);
}

.product-card:hover .product-card__price {
  opacity: 1;
  transform: translateY(0);
  color: rgba(33, 28, 23, 0.88);
}

.product-card__stock {
  font-family: var(--hs-sans);
  font-size: 0.78rem;
  color: rgba(33, 28, 23, 0.6);
  white-space: nowrap;
}

.related-pieces {
  padding: clamp(2.8rem, 6vw, 4.6rem) 0;
  border-top: 1px solid rgba(45, 38, 30, 0.08);
}

.related-pieces__head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.related-pieces__kicker {
  margin: 0 0 0.55rem;
}

.related-pieces__title {
  font-family: var(--hs-serif);
  font-weight: 520;
  letter-spacing: 0.01em;
  line-height: 1.06;
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.75rem);
  color: rgba(33, 28, 23, 0.92);
}

.related-pieces__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.6vw, 2.8rem);
}

.related-piece {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.05rem;
}

.related-piece__media {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(45, 38, 30, 0.06);
  box-shadow: none;
  aspect-ratio: 4 / 5;
  transform: translateY(0);
  transition: transform var(--t) var(--ease-out);
  text-decoration: none;
  padding: clamp(0.6rem, 1.2vw, 0.9rem);
}

.related-piece__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.01);
  transition: transform 0.85s var(--ease-out), filter 0.85s var(--ease-out), opacity 0.5s var(--ease);
  display: block;
}

.related-piece__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(520px 280px at 30% 20%, rgba(201, 168, 106, 0.16), transparent 60%),
    linear-gradient(135deg, #efe6da, #f8f2ea);
}

.related-piece:hover .related-piece__media {
  transform: translateY(-2px);
}

.related-piece:hover .related-piece__img {
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.02);
  opacity: 0.99;
}

.related-piece__copy {
  padding: 0;
}

.related-piece__name {
  margin: 0;
  font-family: var(--hs-sans);
  font-weight: 650;
  line-height: 1.35;
  color: rgba(33, 28, 23, 0.92);
  font-size: 1rem;
}

.related-piece__name a {
  color: inherit;
  text-decoration: none;
}

.related-piece:hover .related-piece__name a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.related-piece__meta {
  margin: 0.65rem 0 0;
  font-family: var(--hs-sans);
  font-size: 0.88rem;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(33, 28, 23, 0.6);
  font-weight: 600;
}

.related-piece__price {
  margin: 0.85rem 0 0;
  font-family: var(--hs-sans);
  font-weight: 700;
  color: rgba(33, 28, 23, 0.68);
  opacity: 0.6;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}

.related-piece:hover .related-piece__price {
  opacity: 0.92;
  color: rgba(33, 28, 23, 0.82);
}

/* Editorial hierarchy: first item subtly larger on wide screens */
@media (min-width: 1100px) {
  .related-pieces__grid > .related-piece:first-child {
    grid-column: span 2;
  }
  .related-pieces__grid > .related-piece:first-child .related-piece__media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 1100px) {
  .related-pieces__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .related-pieces__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-piece__img,
  .related-piece__media,
  .related-piece__price {
    transition: none;
  }
}

/* Category toolbar: slim, understated */
.hs-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 0.75rem;
  border-top: 1px solid rgba(45, 38, 30, 0.08);
}

.hs-toolbar label {
  font-family: var(--hs-sans);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(33, 28, 23, 0.6);
}

.hs-select {
  appearance: none;
  border: 1px solid rgba(45, 38, 30, 0.14);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.65rem 2.35rem 0.65rem 1rem;
  font-family: var(--hs-sans);
  font-weight: 650;
  color: rgba(33, 28, 23, 0.9);
  box-shadow: var(--shadow-sm), var(--inset-light);
}

.hs-selectWrap {
  position: relative;
  display: inline-block;
}

.hs-selectWrap span[aria-hidden="true"] {
  position: absolute;
  right: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(33, 28, 23, 0.55);
  pointer-events: none;
  font-size: 0.8rem;
}

.hs-filterBtn {
  border: 1px solid rgba(45, 38, 30, 0.14);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  font-family: var(--hs-sans);
  font-weight: 700;
  color: rgba(33, 28, 23, 0.9);
  box-shadow: var(--shadow-sm), var(--inset-light);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.hs-filterBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--inset-light);
}

/* Drawer (filters) */
.hs-drawer {
  border: 1px solid rgba(45, 38, 30, 0.1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg), var(--inset-light);
  padding: 1.25rem;
}

.hs-fieldRow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.hs-input {
  width: 100%;
  border: 1px solid rgba(45, 38, 30, 0.14);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-family: var(--hs-sans);
  color: rgba(33, 28, 23, 0.92);
}

.hs-actionsRow {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hs-apply {
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(45, 38, 30, 0.18);
  background: linear-gradient(180deg, var(--brand-deep), #17130f);
  color: #fff;
  font-family: var(--hs-sans);
  font-weight: 800;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22), var(--inset-light);
}

.hs-clear {
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(45, 38, 30, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(33, 28, 23, 0.9);
  font-family: var(--hs-sans);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hs-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root { --hs-shell: calc(100vw - 2rem); }
  .hs-fieldRow { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media img {
    transition: none;
    transform: none;
  }
  .product-card__price {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

