:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #12173e;
  background: #f7f8ff;
  --blue: #081578;
  --deep: #050b53;
  --red: #d60000;
  --muted: #4d5575;
  --line: #dce2fa;
  --pale: #eff1ff;
  --paper: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #4058cf; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1680px, calc(100% - clamp(40px, 4vw, 80px))); margin-inline: auto; }
.muted { color: var(--muted); }

.site-header { background: #080810; color: white; isolation: isolate; border-bottom: 1px solid #272841; }
.bar { min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; min-width: 0; flex: 0 1 350px; margin-block: -24px; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; mix-blend-mode: lighten; clip-path: inset(16% 0); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.primary, .secondary, .cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--deep); }
.secondary, .cart-button { color: var(--blue); background: var(--paper); border-color: var(--line); }
.secondary:hover, .cart-button:hover { background: var(--pale); }
.cart-button { flex-shrink: 0; }
.cart-button span { min-width: 25px; height: 25px; padding-inline: 4px; display: inline-grid; place-items: center; border-radius: 6px; color: white; background: var(--blue); font-size: .875rem; }

.hero { background: #f0f2ff; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 75px); padding-block: 36px; }
.hero-copy { padding-block: 20px; }
h1, h2, h3, p, figure { margin: 0; }
.hero h1 { color: var(--deep); max-width: 620px; font-size: clamp(2.65rem, 5.2vw, 4.75rem); line-height: 1.025; letter-spacing: -.059em; font-weight: 800; }
.intro { margin: 20px 0 24px; color: var(--muted); max-width: 410px; font-size: 1.12rem; line-height: 1.55; }
.hero .primary { background: var(--red); padding-inline: 1.2rem; }
.hero .primary:hover { background: #b90000; }
.hero-art { display: grid; align-items: center; justify-items: center; position: relative; gap: 3px; padding: 14px 22px 18px; overflow: hidden; border-radius: 18px; background: #e1e6ff; }
.hero-art img { display: block; width: 100%; height: clamp(200px, 24vw, 330px); object-fit: contain; mix-blend-mode: multiply; }
.hero-art figcaption { justify-self: stretch; display: grid; gap: 3px; padding: 10px 14px; border-left: 3px solid var(--red); background: #f8f9ff; border-radius: 0 6px 6px 0; }
.hero-art figcaption strong { color: var(--deep); }
.hero-art figcaption span { color: var(--muted); font-size: .875rem; }

.catalog, .buying { padding-block: 48px; }
.catalog h2, .buying h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -.045em; color: var(--deep); }
.search { display: grid; gap: 6px; width: min(100%, 345px); font-weight: 650; font-size: .94rem; }
.search input { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #aebad4; border-radius: 8px; background: var(--paper); color: var(--deep); font-size: 1rem; }
.search input::placeholder { color: var(--muted); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
#results { font-size: .875rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card:focus-within, .card:hover { border-color: #a9b7de; }
.media { display: grid; place-items: center; height: 170px; padding: 14px; border-bottom: 1px solid var(--line); background: #f0f2f9; text-align: center; color: var(--muted); }
.media:has(img) { background: #fff; }
.media img { display: block; max-width: 100%; width: auto; height: auto; max-height: 142px; object-fit: contain; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.card h3 { margin: 6px 0 8px; line-height: 1.3; font-size: 1.06rem; }
.card .meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.details { font: inherit; font-weight: 750; border: 0; text-align: left; background: none; padding: 0; color: var(--deep); }
.details:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { color: var(--deep); font-size: 1.14rem; font-variant-numeric: tabular-nums; }
#more { display: flex; width: fit-content; margin: 25px auto 0; }

.buying { background: #ecf0ff; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 23px; }
.steps article { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.steps h3 { color: var(--deep); font-size: 1.08rem; }
.steps p { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.site-footer { padding-block: 25px; background: var(--deep); color: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.site-footer span { color: #e1e7ff; }
.site-footer a { text-decoration: none; }

dialog { width: min(565px, calc(100% - 24px)); max-height: 88vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 23px; color: var(--deep); }
dialog::backdrop { background: #050b53af; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 16px; }
.dialog-top h2 { line-height: 1.13; font-size: 1.55rem; }
#product-content > p, #order-feedback:not(:empty) { margin-block: 12px; }
#cart { width: min(720px, calc(100% - 24px)); }
.cart-notice { position: fixed; inset-inline-end: 16px; inset-block-end: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100% - 32px)); padding: 12px; border: 1px solid var(--line); border-inline-start: 4px solid #197348; border-radius: 12px; background: var(--paper); color: var(--deep); box-shadow: 0 8px 28px #050b5326; pointer-events: none; }
.cart-notice { opacity: 0; visibility: hidden; }
.cart-notice.is-visible { opacity: 1; visibility: visible; }
.cart-notice .cart-thumbnail.media { flex: 0 0 52px; height: 52px; }
.cart-notice .cart-thumbnail.media img { height: 38px; }
.cart-notice strong, .cart-notice small { display: block; }
.cart-notice strong { color: #176740; }
.cart-notice small { overflow-wrap: anywhere; }
.cart-button { box-shadow: 0 0 0 3px transparent; }
.cart-button.cart-highlight { box-shadow: 0 0 0 3px #197348; }
@media (prefers-reduced-motion: no-preference) {
  .cart-notice { transform: translateY(8px); transition: opacity .32s ease, transform .32s ease, visibility 0s linear .32s; }
  .cart-notice.is-visible { transform: translateY(0); transition-delay: 0s; }
  .cart-button { transition: box-shadow .32s ease; }
  .cart-highlight span { animation: cart-count-in .3s ease-out; }
}
@keyframes cart-count-in { 50% { transform: scale(1.18); } }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumbnail.media { height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cart-thumbnail.media img { width: 100%; height: 58px; }
.cart-thumbnail small { font-size: .65rem; line-height: 1.2; }
.cart-description { overflow-wrap: anywhere; }
.cart-description small, .cart-controls small, .cart-line-total small, .cart-summary small { display: block; }
.cart-controls { text-align: center; }
.cart-line-total { text-align: right; }
.cart-line-total strong, .cart-summary > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.cart-summary > strong { font-size: 1.25rem; }
.cart-extras { margin-top: 16px; padding: 12px; background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.cart-extras h3 { font-size: 1rem; }
.cart-extra { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; }
.cart-extra .cart-thumbnail.media { height: 42px; padding: 4px; }
.cart-extra .cart-thumbnail.media img { height: 32px; }
.cart-extra a { color: inherit; overflow-wrap: anywhere; }
.cart-extra small { display: block; font-weight: 700; }
.cart-extra button { padding-inline: 10px; }
@media (max-width: 620px) {
  .cart-line { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; }
  .cart-thumbnail.media { height: 58px; align-self: start; }
  .cart-thumbnail.media img { height: 44px; }
  .cart-description { grid-column: 2 / -1; }
  .cart-controls { grid-column: 2; justify-self: start; }
  .cart-line-total { grid-column: 3; }
}
.quantity { display: flex; align-items: center; gap: 7px; }
.quantity button { min-width: 38px; padding-inline: 7px; }
.checkout { margin-top: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.form-grid label { display: grid; gap: 4px; }
.form-grid input { min-width: 0; width: 100%; padding: 8px; border-radius: 6px; border: 1px solid #aebad4; }
.order-page { padding-block: 28px 48px; }
.order-page h1 { margin-block: 10px; }
.terms-content { max-width: 860px; line-height: 1.65; }
.terms-content h2 { margin-top: 22px; }
.terms-content p { margin-block: 8px; }
.terms-form { display: block; }
.site-footer a { color: inherit; }
.order-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 20px; align-items: start; margin-top: 20px; }
.order-panel { min-width: 0; padding: clamp(14px, 3vw, 24px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.order-panel fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.order-panel select { width: 100%; min-height: 38px; border: 1px solid #aebad4; border-radius: 6px; background: var(--paper); color: inherit; }
.order-check { display: flex; align-items: baseline; gap: 8px; margin-block: 14px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.order-summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.order-summary-line strong { white-space: nowrap; }
.order-mail-preview { margin-top: 20px; }
.order-mail-preview p { overflow-wrap: anywhere; }
.order-mail-preview details { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.order-mail-preview summary { cursor: pointer; font-weight: 700; }
.order-mail-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin-bottom: 0; }
@media (max-width: 760px) { .order-layout { grid-template-columns: 1fr; } }
.source-link { display: block; margin: 12px 0; color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

@media (max-width: 970px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .bar { gap: 10px; min-height: 84px; }
  .brand { flex-basis: 240px; margin-block: -18px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 26px 18px; }
  .hero-copy { padding: 0; }
  .intro { margin: 13px 0 17px; }
  .hero-art { padding: 10px 12px 12px; }
  .hero-art img { height: clamp(148px, 41vw, 235px); }
  .search { width: 100%; }
  .catalog, .buying { padding-block: 33px; }
  .catalog-toolbar { margin-block: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-body { padding: 10px; }
  .card .media { height: 116px; padding: 9px; }
  .card .media img { max-height: 96px; }
  .card h3 { font-size: 1rem; }
  .item-actions .primary { padding-inline: 5px; font-size: .875rem; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .site-footer .wrap { flex-direction: column; }
  dialog { padding: 15px; }
}




/* Catalog discovery */
.bar { display: grid; grid-template-columns: minmax(155px, 260px) minmax(220px, 1fr) auto; min-height: 95px; }
.brand { margin-block: -18px; }
.search { position: relative; display: flex; gap: 0; width: min(100%, 610px); justify-self: center; }
.search input { min-width: 0; border-radius: 8px 0 0 8px; font-weight: 450; }
.search button { min-height: 45px; padding: 0 16px; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; background: var(--pale); color: var(--deep); font-weight: 700; }
.hero-inner { grid-template-columns: 1.2fr 1fr; padding-block: 23px; }
.hero-copy { padding-block: 6px; }
.hero h1 { font-size: clamp(2rem, 4.1vw, 3.45rem); }
.intro { margin: 10px 0 15px; }
.hero-art { grid-template-columns: .9fr 1fr; gap: 10px; padding: 12px; }
.hero-art img { height: clamp(110px, 15vw, 175px); }
.hero-art figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 10px; }
#featured-price { font-size: 1.05rem; color: var(--deep); font-weight: 750; }
#featured-product { padding-inline: 10px; font-size: .875rem; }
.catalog { padding-block: clamp(24px, 4vw, 42px); }

#list-title { scroll-margin: 15px; font-size: clamp(1.3rem, 2.4vw, 2rem); overflow-wrap: anywhere; }
.catalog-toolbar label { display: grid; gap: 4px; font-size: .875rem; font-weight: 650; }
.catalog-toolbar select { width: 100%; min-height: 44px; background: white; border: 1px solid #aebad4; border-radius: 8px; color: var(--deep); padding: 6px 10px; font: inherit; }
.card .media { height: clamp(145px, 21vw, 218px); padding: 8px; }
.card .media img { width: 100%; height: 100%; min-height: 0; max-height: none; }
@media (max-width: 700px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-block: 7px 12px; }
  .brand { max-width: 215px; margin-block: -15px; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .cart-button { grid-column: 2; grid-row: 1; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 15px; }
  .hero h1 { max-width: 22ch; }
  .intro { font-size: 1rem; }
  .hero-art { grid-template-columns: 85px 1fr; justify-self: stretch; padding: 6px; }
  .hero-art img { height: 90px; }
  .hero-art figcaption { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; align-items: center; }
  .hero-art figcaption strong { grid-column: 1 / -1; }
  .catalog-toolbar > div { flex: 1 0 100%; }
  .catalog-toolbar label { flex: 1 1 135px; }
}



.catalog { display: grid; grid-template-columns: minmax(205px, 245px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.catalog-sidebar { padding: 15px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.catalog-sidebar h2 { font-size: 1.18rem; margin: 0 0 10px; letter-spacing: -.02em; }
#categories { display: grid; gap: 4px; }
.category-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; min-height: 44px; border-radius: 8px; color: var(--deep); font-weight: 650; text-decoration: none; }
.category-link:hover { background: #eef1ff; }
.category-link[aria-current="page"] { background: var(--deep); color: white; }
.category-count { font-size: .8rem; opacity: .8; white-space: nowrap; }
.catalog-content { min-width: 0; }
.catalog-back { display: inline-block; color: var(--deep); font-weight: 650; }
.catalog-toolbar { margin-top: 12px; }
@media (min-width: 701px) and (max-width: 1050px) {
  .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .category-link { justify-content: space-between; }
}



.offer-note { width: fit-content; margin: 6px 0; padding: 5px 8px; border-radius: 6px; background: #fff1ef; color: #861c13; font-size: .82rem; font-weight: 700; }
.price-highlight { display: block; width: fit-content; margin-block: 3px 6px; padding: 2px 7px; border-radius: 5px; background: #fff1ef; color: #a50d17; font-size: .78rem; font-weight: 700; }
.featured-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
.hero-art .featured-price-row .price-highlight { margin: 0; color: #a50d17; font-size: .78rem; }

.special-offer { display: grid; gap: 2px; border-inline-start: 3px solid #ba1912; padding: 6px 9px; }
.special-offer span { font-weight: 600; }

#product { width: min(900px, calc(100% - 24px)); }
.product-photo-link { width: 100%; display: block; padding: 0; border: 0; background: white; }
.product-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.product-summary > .media { height: clamp(170px, 32vw, 290px); border: 1px solid var(--line); border-radius: 10px; }
.product-summary img { max-height: 100%; }
.product-info { display: grid; gap: 12px; }
.product-description { line-height: 1.5; }
.product-purchase { padding: 12px; display: grid; gap: 9px; border-radius: 10px; background: #f4f5fc; }
.product-unit-price { font-size: 1.15rem; font-weight: 750; }
.product-quantity-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.product-quantity-form label { display: grid; gap: 4px; font-size: .87rem; font-weight: 650; }
.product-quantity-form input { width: 84px; min-height: 44px; padding: 5px 9px; border: 1px solid #aebad4; border-radius: 8px; font: inherit; }
.product-specs, .related-products { margin-top: 20px; }
.product-specs dl { margin: 10px 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-specs dt, .product-specs dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.product-specs dt { background: #f4f5fc; font-weight: 650; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 10px; }
.related-product { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--deep); text-align: left; overflow-wrap: anywhere; }
.related-product:hover { border-color: var(--blue); }
.related-product .media { height: 85px; padding: 4px; }
.related-product img { max-height: 74px; }
@media (max-width: 580px) {
  .product-summary { grid-template-columns: 1fr; gap: 12px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

#product-page h1 { margin: 10px 0 18px; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.12; color: var(--deep); }
#product-page h2 { font-size: 1.35rem; letter-spacing: -.02em; }
#product-page .product-summary, #product-page .product-specs, #product-page .related-products { padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.category-link[aria-current="true"] { background: var(--deep); color: white; }
.product-photo-link, .related-product, .details, .featured-link { text-decoration: none; }
.featured-link { display: inline-flex; align-items: center; }
.product-gallery .media { grid-template: minmax(0, 1fr) / minmax(0, 1fr); overflow: hidden; height: clamp(225px, 32vw, 350px); border: 1px solid var(--line); border-radius: 9px; padding: 20px; }
.product-gallery .media img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; }
.gallery-stage { position: relative; touch-action: pan-y; }
.gallery-stage .media { padding-inline: 46px; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 39px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--deep); font: inherit; font-size: 1.85rem; line-height: 1; }
.gallery-arrow.previous { left: 5px; }
.gallery-arrow.next { right: 5px; }
.gallery-arrow:hover, .gallery-thumbnail:hover { border-color: var(--blue); }
.gallery-position { position: absolute; bottom: 6px; right: 8px; padding: 3px 7px; background: white; border-radius: 5px; color: var(--muted); font-size: .78rem; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gallery-thumbnail { width: 49px; height: 49px; padding: 4px; border-radius: 7px; border: 1px solid var(--line); background: white; }
.gallery-thumbnail[aria-pressed="true"] { border: 2px solid var(--deep); }
.gallery-thumbnail img { width: 100%; height: 100%; object-fit: contain; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.featured-section { margin-top: 24px; }
.featured-section + .featured-section { margin-top: 32px; }
.featured-section h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.selection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.selection-grid .card .media { height: clamp(104px, 11vw, 168px); }
.selection-grid .card-body { padding: 12px; }
@media (max-width: 880px) { .selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .selection-grid { grid-template-columns: 1fr; } }
.hero-art figcaption strong { min-height: 2.6em; }
.featured-controls { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; }
.featured-controls .secondary { min-width: 40px; min-height: 40px; padding: 5px 10px; font-size: .85rem; }

.season-navigation { display: flex; justify-content: center; padding-block: 8px 14px; }
.season-navigation .secondary { min-height: 44px; padding: 8px 20px; background: #ba0909; border-color: #ba0909; color: #fff; font-weight: 700; text-align: center; }
.season-navigation .secondary:hover { background: #980707; border-color: #980707; }
.season-navigation [aria-current="page"] { background: #e1e6ff; color: var(--deep); }
