:root {
  color-scheme: light;
  font-family: Arial, sans-serif;
  color: #182332;
  background: #f5f7fa;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main { width: min(100% - 2rem, 68rem); margin-inline: auto; }
header { padding-block: 1.5rem; letter-spacing: 0.12em; }
main { padding-block: 2rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; }
p, a { font-size: 1rem; }
section { margin-top: 3rem; }
a { color: #1459b5; }
a:focus-visible { outline: 3px solid #1459b5; outline-offset: 4px; }
.preview-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.storefront { background: #fff; min-height: 100vh; }
.storefront-container { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.storefront-header { background: linear-gradient(110deg, #ffe56b 0%, #ffd32a 55%, #ffbf17 100%); }
.storefront-header { width: 100%; }
.storefront-header .storefront-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.storefront-header span { letter-spacing: 0; font-size: .95rem; }
.storefront main { width: 100%; padding: 0 0 3rem; }
.storefront-collection { margin-top: 1.5rem; }
.storefront-collection > h1 { margin-bottom: .15rem; font-size: clamp(1.65rem, 3vw, 2rem); }
.collection-intro { margin: 0 0 1.25rem; color: #526175; }
@media (max-width: 600px) {
  .storefront-header .storefront-container { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .storefront-header span { font-size: .82rem; }
}
.product-card { display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid #dce3ec; border-radius: 1.25rem; overflow: hidden; margin: 2rem 0; }
.product-card[hidden] { display: none; }
.product-photo { display: flex; align-items: center; padding: 1.5rem; }
.product-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.product-copy { padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .875rem; color: #46556a; }
.draft-badge { background: #eef2f7; padding: .25rem .6rem; border-radius: 1rem; }
.product-copy h2 { font-size: 2rem; line-height: 1.2; margin: 1rem 0; }
.product-discovery { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.product-copy h3 { font-size: 1rem; margin-bottom: 0; }
.product-copy details { border-block: 1px solid #dce3ec; padding-block: 1rem; }
summary { cursor: pointer; font-weight: 600; }
summary:focus-visible { outline: 3px solid #1459b5; outline-offset: 4px; }
.purchase-note, .affiliate-note { font-size: .875rem; color: #46556a; }
.product-button { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; background: #1459b5; color: white; border-radius: .6rem; font-weight: 700; text-decoration: none; }
.product-button:hover { background: #10468e; }
.product-grid {
  display: grid;
  grid-template-columns: minmax(22rem, 1.45fr) repeat(3, minmax(0, .85fr));
  grid-auto-flow: dense;
  gap: 1rem;
  align-items: stretch;
}
.discovery-card {
  border: 1px solid #dce3ec;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgb(24 35 50 / 7%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.discovery-card[hidden] { display: none; }
.discovery-card:hover { transform: translateY(-4px); box-shadow: 0 1.15rem 2.6rem rgb(24 35 50 / 13%); }
.discovery-card > img {
  display: block;
  width: 100%;
  height: 11.5rem;
  object-fit: contain;
  padding: .6rem;
  background: linear-gradient(145deg, #fff 0%, #f7f9fc 100%);
  border-bottom: 1px solid #edf1f5;
}
.discovery-copy { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.discovery-copy h3 { font-size: 1.08rem; line-height: 1.22; margin: .3rem 0 .45rem; }
.discovery-copy p { margin: 0 0 .7rem; font-size: .88rem; line-height: 1.45; }
.discovery-copy > p:not(.product-meta) { color: #46556a; }
.discovery-card:not(.discovery-card--featured) .discovery-copy > p:not(.product-meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.discovery-copy .product-button { margin-top: auto; width: 100%; justify-content: center; padding: .7rem .8rem; font-size: .9rem; }
.discovery-card--featured { grid-row: span 2; border-top: .45rem solid #ffd32a; }
.discovery-card--featured > img { height: 29rem; padding: .75rem; }
.discovery-card--featured .discovery-copy { padding: 1.35rem 1.5rem 1.5rem; }
.discovery-card--featured .discovery-copy h3 { font-size: 1.65rem; }
.discovery-card--featured .discovery-copy p { font-size: 1rem; }
.discovery-card--featured .discovery-copy .product-button { padding: .9rem 1rem; font-size: 1rem; }
.latest-discovery { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: .55rem; }
.latest-badge { padding: .3rem .65rem; border-radius: 999px; background: #ffd32a; color: #182332; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.latest-date { color: #68778a; font-size: .78rem; }
.product-lot { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.product-lot[hidden] { display: none; }
.product-lot h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.product-lot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.catalog-anchor { scroll-margin-top: 1rem; }
.catalog-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.show-more-button {
  width: min(100%, 32rem);
  min-height: 4.5rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(110deg, #ffe56b, #ffd32a);
  color: #182332;
  box-shadow: 0 .75rem 1.8rem rgb(24 35 50 / 12%);
  font-size: 1.1rem;
  font-weight: 800;
}
.show-more-button span { display: inline-block; margin-right: .45rem; font-size: 1.7rem; line-height: 1; vertical-align: -.1rem; }
.show-more-button:hover { background: #ffca19; transform: translateY(-2px); }
.show-more-button[hidden] { display: none; }
.catalog-rail {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 1rem;
  display: grid;
  gap: .35rem;
  padding: .65rem .5rem;
  transform: translateY(-50%);
  border: 1px solid #d7dee8;
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 .8rem 2rem rgb(24 35 50 / 16%);
}
.catalog-rail[hidden] { display: none; }
.catalog-rail::before { content: ""; position: absolute; z-index: -1; top: 2.4rem; bottom: 2.4rem; left: 50%; width: 2px; background: #dce3ec; }
.catalog-rail button { position: relative; width: 2.55rem; min-height: 2.55rem; padding: 0; border: 0; border-radius: 50%; color: #46556a; background: #eef2f7; font-weight: 800; }
.catalog-rail button.active { color: #182332; background: #ffd32a; box-shadow: 0 0 0 4px #fff; }
.catalog-rail .rail-top { color: #fff; background: #182332; }
.catalog-rail button.has-unseen-latest::after { content: "✦"; position: absolute; top: -.45rem; right: -.55rem; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border: 2px solid #fff; border-radius: 50%; background: #ffd32a; color: #182332; box-shadow: 0 .2rem .5rem rgb(24 35 50 / 25%); font-size: .65rem; line-height: 1; }
.catalog-rail button[hidden] { display: none; }
button { font: inherit; cursor: pointer; }
button.product-button { border: 0; }
button:focus-visible { outline: 3px solid #1459b5; outline-offset: 4px; }
.product-button[hidden] { display: none; }
#product-dialog { width: min(100% - 2rem, 68rem); max-height: 90vh; padding: 1rem; border: 0; border-radius: 1.25rem; color: #182332; }
#product-dialog::backdrop { background: rgb(15 23 42 / 65%); }
#product-dialog form { display: flex; justify-content: flex-end; }
.dialog-close { padding: .6rem 1rem; border: 1px solid #dce3ec; border-radius: .5rem; background: #fff; }
#product-dialog .product-card { margin: 1rem 0 0; border: 0; }
body:has(dialog[open]) { overflow: hidden; }
.brand-link { color: #182332; font-weight: 700; text-decoration: none; }
.storefront .product-page-main { width: min(100% - 2rem, 68rem); padding-top: 1.5rem; }
.product-breadcrumb { color: #46556a; font-size: .875rem; overflow-wrap: anywhere; }
.product-page .product-copy h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: .75rem 0; }
.product-page .product-copy h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.editorial-text { white-space: pre-line; }
.product-permalink { display: inline-block; margin-bottom: .75rem; }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-card--featured { grid-column: 1 / -1; grid-row: auto; }
  .discovery-card--featured > img { height: min(58vw, 30rem); }
  .product-lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; gap: 1rem; }
  .product-lot-grid { grid-template-columns: 1fr; }
  .discovery-card--featured { grid-column: auto; }
  .discovery-card > img, .discovery-card--featured > img { height: min(82vw, 24rem); }
  .discovery-card .discovery-copy { padding: 1.1rem; }
  .discovery-card .discovery-copy h3 { font-size: 1.3rem; }
  body.storefront { padding-bottom: 5rem; }
  .catalog-rail { top: auto; right: 50%; bottom: .7rem; grid-auto-flow: column; transform: translateX(50%); }
  .catalog-rail::before { top: 50%; right: 2.4rem; bottom: auto; left: 2.4rem; width: auto; height: 2px; }
}
@media (prefers-reduced-motion: reduce) { .discovery-card { transition: none; } }
@media (max-width: 720px) { .product-card { grid-template-columns: 1fr; } .product-photo img { max-height: 23rem; } }
.admin-page { background: #f3f6f9; }
.admin-header { width: 100%; max-width: none; margin: 0; padding: 1rem max(1rem, calc((100% - 76rem) / 2)); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(110deg, #ffe56b, #ffca19); }
.admin-header nav a { color: #182332; font-weight: 700; }
.admin-main { width: min(100% - 2rem, 76rem); }
.admin-heading { margin: 0 0 2rem; }
.admin-heading h1 { margin: 0; }
.admin-heading > p:last-child { color: #526175; }
.eyebrow { margin: 0 0 .25rem; color: #6b5200; font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .65fr); gap: 1.5rem; align-items: start; }
.admin-panel { background: #fff; border: 1px solid #dce3ec; border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.panel-heading h2 { margin: 0; }
#product-form { display: grid; gap: 1rem; }
#product-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea, select { width: 100%; padding: .75rem .85rem; border: 1px solid #b8c3d0; border-radius: .55rem; background: #fff; color: #182332; font: inherit; font-weight: 400; }
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgb(20 89 181 / 25%); border-color: #1459b5; }
.form-help, .current-image { margin: 0; color: #526175; font-size: .875rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.primary-button, .secondary-button { padding: .72rem 1rem; border-radius: .55rem; font-weight: 700; }
.primary-button { border: 0; background: #1459b5; color: #fff; }
.primary-button:hover { background: #10468e; }
.secondary-button { border: 1px solid #b8c3d0; background: #fff; color: #182332; }
#form-status { color: #33506f; }
.admin-product-list { display: grid; gap: .8rem; }
.admin-product-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid #e1e7ee; border-radius: .75rem; }
.admin-product-item img { width: 5rem; height: 5rem; object-fit: contain; background: #f7f8fa; border-radius: .5rem; }
.admin-product-item h3 { margin: .25rem 0 .6rem; font-size: 1rem; line-height: 1.3; }
.admin-product-item p { margin: 0; font-size: .78rem; }
.admin-product-item .secondary-button { padding: .4rem .7rem; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .catalog-panel { grid-row: 1; } }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .admin-header { align-items: flex-start; } }
