:root {
  --paper: #f3eee5;
  --paper2: #ebe3d7;
  --ink: #292821;
  --muted: #6f6a5f;
  --olive: #6d7256;
  --ochre: #b58745;
  --line: #d7cdbd;
  --white: #fbf8f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 9px 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 229, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 9px Arial, Helvetica, sans-serif;
  letter-spacing: 0.34em;
}

.links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}

.links a:not(.cart) {
  border-bottom: 1px solid transparent;
}

.links a:hover,
.links a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

.cart {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  padding: 8px 12px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  min-width: 210px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(60, 48, 30, 0.12);
}

.mobile-menu nav a,
.mobile-menu nav span {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mobile-menu nav > :last-child {
  border-bottom: 0;
  color: var(--muted);
}

.hero {
  padding: 54px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 54px;
}

.hero-art {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(60, 48, 30, 0.09);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--olive);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.95;
}

h1 span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.54em;
  font-style: italic;
}

.lead {
  max-width: 720px;
  color: #514d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  transition: background-color 160ms ease, color 160ms ease;
}

a.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.fill {
  background: var(--ink);
  color: var(--paper);
}

.btn.fill:hover {
  background: transparent;
  color: var(--ink);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.centered-buttons {
  justify-content: center;
  margin-top: 40px;
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
}

.section-copy {
  max-width: 560px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}

.image-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 11px;
  background: var(--white);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artwork-wide img {
  padding-block: 7%;
}

.portrait .image-wrap {
  aspect-ratio: 3 / 4;
}

.card-info {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
}

.card h3 {
  margin: 0;
  font-size: 21px;
}

.meta,
.price {
  color: var(--muted);
  font-size: 12px;
}

.price {
  flex: 0 0 auto;
}

.story {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) 1.18fr;
  align-items: center;
  gap: 60px;
}

.story p:not(.quote) {
  color: #514d45;
}

/* Family archive collage: keep every source image at its natural proportions.
   The smaller lower row is intentionally restrained so the photographs support
   the story rather than overpowering it. */
.archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}

.archive img {
  display: block;
  width: 100%;
  filter: grayscale(100%);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(60, 48, 30, 0.06);
}

.archive-feature {
  grid-column: 1 / -1;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}

.archive-square {
  width: 100%;
  height: 190px;
  padding: 7px;
  object-fit: contain;
}

.quote {
  font: 23px/1.45 Georgia, "Times New Roman", serif;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 270px;
  padding: 38px;
  background: var(--paper2);
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 31px;
}

.muted-action {
  width: max-content;
  color: var(--muted);
  cursor: default;
}

.dark-tile {
  background: var(--ink);
  color: var(--paper);
}

.dark-tile .eyebrow {
  color: #c9b994;
}

.dark-tile p {
  color: #cfc8bd;
}

footer {
  padding: 44px 0 58px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid a:hover {
  color: var(--ink);
}

.shop-title {
  padding: 70px 0 35px;
}

.shop-collection {
  padding-top: 28px;
}

.notice {
  margin-bottom: 40px;
  padding: 16px 20px;
  border-left: 3px solid var(--ochre);
  background: var(--paper2);
  font-size: 13px;
}

@media (max-width: 850px) {
  .links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-grid,
  .story,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: -1;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 24px), 1180px);
  }

  .nav {
    padding: 14px 0;
  }

  .brand {
    font-size: 15px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 34px;
  }

  h1 {
    font-size: 48px;
  }

  .section {
    padding: 62px 0;
  }

  .shop-collection {
    padding-top: 24px;
  }

  .archive {
    gap: 8px;
    max-width: 100%;
  }

  .archive-feature {
    max-height: none;
  }

  .archive-square {
    height: 150px;
    padding: 5px;
  }

  .tile {
    min-height: 240px;
    padding: 28px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Pottery collection */
.pottery-title {
  padding: 70px 0 36px;
}

.pottery-title h1 {
  max-width: 850px;
}

.collection-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(235, 227, 215, 0.55);
}

.collection-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.filter-btn {
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pottery-grid {
  align-items: start;
}

.pottery-card {
  min-width: 0;
}

.pottery-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 10px;
  background: var(--white);
}

.pottery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pottery-card .card-info {
  align-items: start;
}

.pottery-card h3 {
  margin: 0;
  font-size: 20px;
}

.pottery-card .eyebrow {
  margin: 0 0 6px;
  font-size: 9px;
}

.product-excerpt {
  min-height: 3.1em;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.piece-status {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pottery-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.text-link {
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.text-link:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.pottery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.pottery-preview-grid .pottery-image {
  aspect-ratio: 4 / 3;
}

/* Pottery product pages */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 54px;
  align-items: start;
}

.product-gallery-main {
  padding: 12px;
  background: var(--white);
}

.product-gallery-main img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.product-thumbs button {
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.product-thumbs button:hover,
.product-thumbs button.active {
  border-color: var(--ink);
}

.product-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 64px);
}

.product-price {
  margin: 18px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.product-description p {
  margin: 0 0 16px;
}

.product-facts {
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 13px;
}

.product-facts span:first-child {
  color: var(--muted);
}

.not-live {
  padding: 14px 16px;
  border-left: 3px solid var(--ochre);
  background: var(--paper2);
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 850px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pottery-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .collection-note {
    grid-template-columns: 1fr;
  }

  .pottery-preview-grid {
    grid-template-columns: 1fr;
  }

  .product-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Mary Crawford artwork product pages */
.product-page {
  padding-top: 54px;
}

.art-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 60px;
  align-items: start;
}

.art-product-image {
  position: sticky;
  top: 104px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(60, 48, 30, .07);
}

.art-product-image img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
}

.art-product-copy h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5vw, 68px);
}

.product-paper {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.live-price {
  margin: 22px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.artwork-order-form {
  margin-top: 4px;
}

.field-label,
.product-option-group legend,
.option-heading {
  display: block;
  margin: 19px 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.artwork-order-form select {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.product-option-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.choice-pill {
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-size: 13px;
}

.choice-pill input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.choice-pill input:focus-visible + span {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.fixed-option {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper2);
  font-size: 13px;
}

.framing-options[hidden] {
  display: none;
}

.option-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.add-to-basket-btn {
  width: 100%;
  margin-top: 24px;
  cursor: pointer;
}

.basket-feedback {
  min-height: 1.6em;
  margin: 9px 0 0;
  color: var(--olive);
  font-size: 12px;
}

.artwork-facts strong {
  max-width: 62%;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
}

.artwork-description {
  max-width: 760px;
  margin: 72px auto 0;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.artwork-description p {
  margin: 0 0 18px;
  color: #514d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.7;
}

.product-back {
  margin-top: 48px;
  text-align: center;
}

/* Basket */
.basket-section {
  padding-top: 26px;
}

.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 56px;
  align-items: start;
}

.basket-empty {
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(251,248,242,.5);
}

.basket-empty[hidden] {
  display: none;
}

.basket-empty h2 {
  margin-top: 0;
}

.basket-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.basket-row:first-child {
  border-top: 0;
}

.basket-row img {
  width: 110px;
  height: 110px;
  padding: 6px;
  background: var(--white);
  object-fit: contain;
}

.basket-row h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.basket-row p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.basket-row-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.remove-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.remove-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.basket-summary {
  position: sticky;
  top: 104px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper2);
}

.basket-total-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.checkout-placeholder {
  width: 100%;
  margin-top: 22px;
}

.checkout-placeholder:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 850px) {
  .art-product-layout,
  .basket-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .art-product-image,
  .basket-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .product-page {
    padding-top: 34px;
  }

  .art-product-image {
    padding: 10px;
  }

  .artwork-description {
    margin-top: 50px;
  }

  .basket-row {
    grid-template-columns: 82px 1fr;
  }

  .basket-row img {
    width: 82px;
    height: 82px;
  }

  .basket-row-price {
    grid-column: 2;
  }
}


/* Pottery basket controls */
.pottery-order-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pottery-order-form .add-to-basket-btn {
  margin-top: 0;
}


/* Representative pottery variants */
.pottery-variant-form select {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.representative-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--ochre);
  background: var(--paper2);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}


/* Delivery + Stripe checkout */
.delivery-country {
  margin-top: 22px;
}

.delivery-country select {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.delivery-quote-button {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

.shipping-breakdown {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.shipping-breakdown[hidden] {
  display: none;
}

.shipping-breakdown > div,
.basket-grand-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  font-size: 13px;
}

.shipping-breakdown .shipping-total {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.basket-grand-total {
  margin-top: 15px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.checkout-message {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--olive);
  font-size: 11px;
  line-height: 1.45;
}

.success-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.success-card {
  max-width: 700px;
}

.success-card h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 7vw, 78px);
}

.success-card p:not(.lead) {
  max-width: 650px;
  color: var(--muted);
}


/* Dynamic one-off pottery availability */
.pottery-image {
  position: relative;
}

.inventory-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.inventory-badge.reserved {
  background: var(--ochre);
}

.inventory-unavailable .pottery-image img {
  opacity: .64;
}

.inventory-product-banner {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper2);
}

.inventory-product-banner strong,
.inventory-product-banner span {
  display: block;
}

.inventory-product-banner strong {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.inventory-product-banner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.inventory-product-banner.sold_pending,
.inventory-product-banner.removed {
  border-left: 4px solid var(--ink);
}

.inventory-product-banner.reserved {
  border-left: 4px solid var(--ochre);
}

/* Private stock approval screen */
.admin-section {
  padding-top: 58px;
}

.admin-wrap {
  max-width: 900px;
}

.admin-wrap > h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 7vw, 74px);
}

.admin-login {
  max-width: 520px;
  margin-top: 38px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper2);
}

.admin-login input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  margin-bottom: 12px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 14px;
}

.admin-signout {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.admin-group {
  margin-top: 46px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.section-head.compact h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.admin-stock-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.admin-stock-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.admin-stock-card p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-stock-card code {
  font-size: 10px;
}

.admin-stock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-stock-actions .btn {
  cursor: pointer;
}

.admin-empty {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 680px) {
  .admin-stock-card {
    grid-template-columns: 1fr;
  }

  .admin-stock-actions {
    justify-content: flex-start;
  }
}


/* Finite representative pottery stock */
.finite-stock-note {
  margin: 12px 0 14px;
  color: var(--olive);
  font-size: 11px;
}

.admin-help {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.representative-stock-admin {
  border-top: 1px solid var(--line);
}

.representative-stock-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 100px auto auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.representative-stock-copy h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.representative-stock-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.stock-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  white-space: nowrap;
}

.stock-number {
  width: 90px;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.stock-number:disabled {
  opacity: .45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .representative-stock-row {
    grid-template-columns: 1fr 1fr;
  }

  .representative-stock-copy {
    grid-column: 1 / -1;
  }

  .representative-stock-row .btn {
    width: 100%;
  }
}


/* Strathy House story link */
.story-house-link {
  margin: 18px 0 22px;
}


/* Legal and customer-information pages */
.legal-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) auto;
  gap: 30px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 34px;
  font-size: 11px;
  line-height: 1.65;
}

.legal-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a,
.legal-footer a {
  text-decoration: none;
}

.footer-links a:hover,
.legal-footer a:hover {
  text-decoration: underline;
}

.footer-copyright {
  white-space: nowrap;
}

.legal-page {
  padding-top: 58px;
}

.legal-wrap {
  max-width: 860px;
}

.legal-wrap > h1 {
  margin: 0 0 10px;
  font-size: clamp(46px, 7vw, 76px);
}

.legal-updated {
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 11px;
}

.legal-intro {
  margin-bottom: 42px;
  padding: 22px 24px;
  border-left: 3px solid var(--ochre);
  background: var(--paper2);
}

.legal-wrap section {
  margin: 42px 0;
}

.legal-wrap section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 36px);
}

.legal-wrap section h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.legal-wrap p,
.legal-wrap li,
.legal-address {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.legal-wrap a {
  color: var(--ink);
}

.legal-address {
  font-style: normal;
}

.legal-list {
  padding-left: 20px;
}

.legal-list li {
  margin: 7px 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.55;
}

.legal-table th {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.cancellation-form {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper2);
}

.form-line {
  min-height: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 46px 0 10px;
}

.legal-actions .btn {
  cursor: pointer;
}

.checkout-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  margin: 18px 0 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.checkout-consent input {
  margin-top: 2px;
}

.checkout-consent a {
  color: var(--ink);
}

@media (max-width: 760px) {
  .legal-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-copyright {
    white-space: normal;
  }
}

@media print {
  header,
  footer,
  .legal-actions {
    display: none !important;
  }

  .legal-page {
    padding-top: 0;
  }

  body {
    background: white;
  }

  .legal-wrap {
    max-width: none;
  }
}


/* Discreet public footer: full sole-trader details remain on the legal pages */
.discreet-footer {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) auto;
}

.legal-note {
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  background: var(--paper2);
  font-size: 11px !important;
}
