html { scroll-behavior: smooth; }
main { min-height: 54vh; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 5; padding: .6rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.preview-bar a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.header-inner nav a[aria-current] { color: var(--plum); text-decoration: underline; text-underline-offset: 7px; }
.page { padding-block: 43px 64px; }
.display-title { font: 600 clamp(2.45rem, 5vw, 4.4rem)/1.04 var(--heading); letter-spacing: -.046em; margin: 11px 0 15px; text-wrap: balance; }
.lead { max-width: 53ch; font-size: 1.075rem; color: var(--muted); margin-block: 0 24px; }
.hero { margin-top: 33px; display: grid; grid-template-columns: .93fr 1.07fr; min-height: 485px; background: #f5e9e6; border: 1px solid #e9dad5; border-radius: 5px; overflow: hidden; }
.hero-copy { padding: clamp(30px, 5vw, 68px); align-self: center; }
.hero .display-title { max-width: 540px; font-size: clamp(2.7rem, 5.2vw, 4.85rem); }
.hero-without-photo { grid-template-columns: 1fr; min-height: 0; }
.hero-media { min-height: 100%; background: #ead4d1; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; object-position: 50% 52%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-heading { display: flex; gap: 14px; align-items: end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); margin: 0; line-height: 1.15; }
.section-heading p { color: var(--muted); margin: 6px 0 0; }
.featured { margin-block: 45px; }
.text-link { color: var(--plum); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface); display: block; transition: box-shadow .16s ease; }
.product-card:hover { text-decoration: none; box-shadow: 0 5px 22px #39252812; }
.card-photo { position: relative; aspect-ratio: 1.16; overflow: hidden; background: #f0dedb; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card-copy { padding: 13px 14px 15px; }
.card-copy h3 { font: 600 1.08rem/1.28 var(--heading); margin: 0 0 8px; }
.card-copy p { margin: 3px 0 0; }
.product-meta { color: var(--muted); font-size: .83rem; }
.card-price { color: var(--plum); font-weight: 700; }
.custom-feature { position: relative; margin-block: 0 54px; display: grid; grid-template-columns: 1fr minmax(260px, .48fr); gap: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; align-items: center; }
.custom-feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-block: 0 5px; }
.custom-feature p { margin-block: 0 13px; color: var(--muted); }
.custom-feature-media { height: 150px; width: 100%; object-fit: cover; border-radius: 3px; }
.shop-tools { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-group button, .photo-thumbs button { background: var(--surface); color: var(--ink); border: 1px solid var(--line); min-height: 42px; border-radius: 5px; padding: 6px 12px; font-weight: 600; }
.filter-group button[aria-pressed='true'], .photo-thumbs button[aria-pressed='true'] { background: var(--blush); border-color: var(--plum); }
.search-field { min-width: min(100%, 225px); }
.narrow { max-width: 740px; }
.surface-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: clamp(17px, 3vw, 28px); }
.surface-panel h2, .info-copy h2 { margin: 0 0 9px; font-size: 1.52rem; }
.surface-panel h2:not(:first-child), .info-copy h2:not(:first-child) { margin-top: 22px; }
.surface-panel p, .info-copy p { color: var(--muted); }
.stack { display: grid; gap: 15px; }
.stack .field small { margin-top: -2px; }
.dispatch-line { margin-bottom: 20px; }
.product-page { padding-block: 31px 49px; }
.product-page section h2 { font-size: 1.42rem; margin-block: 0 8px; }
.product-bottom { margin-top: 30px; }
.product-bottom p { margin: 0; color: var(--muted); }
.photo-thumbs { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-thumbs button { padding: 3px; }
.photo-thumbs img { width: 54px; height: 54px; object-fit: cover; }
.breadcrumb a { color: var(--plum); font-weight: 700; }
.checkout-layout { display: grid; grid-template-columns: 1fr minmax(240px, .55fr); align-items: start; gap: 18px; }
.checkout-layout > *, .product-layout > * { min-width: 0; }
.checkout-layout aside { grid-column: 2; grid-row: 1; }
.notice { padding: 11px 14px; border-radius: 5px; background: #f6ebe7; color: var(--plum-dark); font-size: .9rem; }
.form-error { color: #87213b; font-size: .9rem; margin-block: 0; }
.toast { position: fixed; bottom: 16px; right: 16px; z-index: 3; padding: 11px 17px; background: var(--plum-dark); color: white; border-radius: 6px; max-width: calc(100% - 32px); box-shadow: 0 3px 20px #32101f22; }
.basket-details { overflow-wrap: anywhere; }
.basket-line .row-title { font-size: .95rem; }
.basket-quantity { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.basket-quantity button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; }
.basket-quantity button:disabled { opacity: .48; cursor: default; }
.totals { display: grid; gap: 5px; margin: 12px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals > div:last-child { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 5px; font-weight: 700; }
.drawer-inner .actions .primary { flex: 1; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 35px; padding-block: 28px; }
.footer-grid p { margin: 5px 0 0; }
.footer-grid nav { display: grid; gap: 5px; }
.footer-brand { font: 600 1.19rem var(--heading); color: var(--ink); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.admin-tabs a[aria-current] { background: var(--plum); color: white; }
.admin-list { display: grid; gap: 9px; }
.admin-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; }
.admin-item p { margin: 3px 0 0; overflow-wrap: anywhere; }
.admin-thumbnail { width: 112px; border-radius: 5px; border: 1px solid var(--line); overflow: hidden; }
.admin-thumbnail img { width: 100%; height: 73px; object-fit: cover; }
.admin-thumbnail button { width: 100%; border: 0; background: var(--surface); min-height: 35px; }
.admin-page { max-width: 1050px; }
.admin-page .display-title { font-size: clamp(2.35rem, 4vw, 3.45rem); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 15px; }
.editor-grid .surface-panel { min-width: 0; align-content: start; }
.editor-name-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, .33fr); gap: 12px; }
.product-editor .section-heading { margin-bottom: 0; }
.product-editor .surface-panel h2 { margin-bottom: 0; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.editor-actions p { flex-basis: 100%; }
.field select {
  appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #dbcbc6;
  border-radius: 5px;
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, var(--plum) 50%) right 14px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--plum) 50%, transparent 50%) right 9px center / 5px 5px no-repeat,
    var(--surface);
  font: inherit;
  font-weight: 400;
}
.product-editor .field-help, .term-editor .field-help { margin-block: 0; }
[data-stock-field] .field-help { margin-top: 5px; }
.term-editor { max-width: 720px; }
.term-fields, .tag-options, .product-answers { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.term-fields legend, .tag-options legend, .product-answers legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.term-fields .field-pair { grid-template-columns: minmax(0, 2fr) minmax(115px, 1fr); }
.tag-choices, .product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-choices label, .product-tags li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); overflow-wrap: anywhere; }
.tag-choices label { min-height: 36px; }
.product-tags { list-style: none; padding: 0; margin-block: 0 14px; font-size: .85rem; }
.product-answers.stack { margin: 0 0 13px; gap: 10px; }
.product-custom-link { margin-block: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.detail-grid p { margin: 4px 0; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.field input[type='file'] { max-width: 100%; font-weight: 500; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 600; }
.check-field input { accent-color: var(--plum); width: 18px; height: 18px; }
.shop-empty { padding: 24px 0; color: var(--muted); }

@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hero { min-height: 430px; } }
@media (max-width: 740px) { .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 22px; } .hero-media { min-height: 270px; } .hero-copy { padding: 26px; } .checkout-layout, .custom-feature { grid-template-columns: 1fr; } .checkout-layout aside { grid-column: 1; grid-row: auto; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 17px; } }
@media (max-width: 740px) { .editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .page { padding-block: 26px 41px; } .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .card-copy { padding: 9px; } .card-copy h3 { font-size: .99rem; } .featured { margin-block: 33px; } .detail-grid { grid-template-columns: 1fr; } .search-field { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
