:root {
  color-scheme: light;
  --ink: #111a2a;
  --navy: #101b32;
  --blue: #214fda;
  --ice: #e7eefb;
  --paper: #f5f7fb;
  --white: #fff;
  --muted: #506078;
  --line: #d8e0ec;
  --heading: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
  --width: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 8rem; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.55 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--blue); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, input:focus-visible, a:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid #527dff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; }
h1 { font-size: clamp(2.35rem, 5vw, 4.15rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.04em; }
h3 { font-size: 1.19rem; letter-spacing: -.024em; }

.container { width: min(var(--width), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 54px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 10; background: var(--white); padding: 10px 16px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px;
  border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: var(--white); font-weight: 700;
  text-align: center; text-decoration: none; transition: background .16s, border-color .16s;
}
.button:hover { background: #153cb3; border-color: #153cb3; }
.button-secondary { background: transparent; color: var(--blue); }
.button-secondary:hover { color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.muted, .field-note { color: var(--muted); font-size: .9rem; }
.notice { background: var(--ice); border-left: 3px solid var(--blue); border-radius: 2px; padding: 12px 15px; }

.top-strip { background: var(--navy); color: #e1eaff; padding-block: 7px; font-size: .87rem; }
.top-strip .container { display: flex; justify-content: space-between; gap: 12px; }
.top-strip a { color: inherit; }
.header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(155px, 228px) auto; align-items: center; gap: 26px; min-height: 73px; }
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--white); }
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--ink); text-decoration: none; font: 750 1.65rem/1 var(--heading); letter-spacing: -.055em; white-space: nowrap; }
.brand span { color: var(--blue); }
.brand-mark { color: var(--blue); width: 36px; height: 36px; margin-right: 5px; flex: none; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.7vw, 27px); }
.header-nav a { text-decoration: none; color: var(--ink); font-weight: 650; font-size: .93rem; }
.header-nav a:hover, .header-nav a[aria-current] { color: var(--blue); }
.shop-nav { display: inline-flex; align-items: center; position: relative; }
.category-menu summary { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .category-menu summary { width: 24px; }
}
.category-menu summary::-webkit-details-marker { display: none; }
.category-menu summary svg { width: 15px; }
.category-menu > div {
  position: absolute; z-index: 2; top: 100%; left: 0; min-width: 250px; border: 1px solid var(--line);
  background: var(--white); border-radius: 8px; box-shadow: 0 12px 24px #101b321a; padding: 7px;
}
.category-menu a { display: block; padding: 8px 11px; border-radius: 4px; }
.category-menu a:hover { background: var(--ice); }
.category-menu[open] summary svg { transform: rotate(180deg); }
.language-menu { position: relative; }
.language-menu summary { display: flex; align-items: center; gap: 5px; min-height: 44px; list-style: none; font-weight: 650; font-size: .93rem; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { color: var(--blue); }
.language-menu summary svg { width: 17px; flex: none; }
.language-menu > div { position: absolute; top: 100%; right: 0; z-index: 3; min-width: 105px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 10px 24px #101b321a; font-size: .9rem; }
.icon-button { display: grid; place-items: center; background: transparent; color: var(--ink); border: 0; padding: 0; width: 40px; min-width: 40px; height: 40px; border-radius: 5px; }
.icon-button:hover, .cart-link:hover { background: var(--ice); }
.icon-button svg, .cart-link svg { width: 22px; height: 22px; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.header-search input { width: 100%; min-width: 0; padding: 8px 1px 8px 11px; border: 0; background: none; color: var(--ink); }
.header-search input::placeholder { color: var(--muted); opacity: 1; }
.cart-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 49px; min-height: 44px; padding: 4px; border-radius: 5px; text-decoration: none; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 3px; }
.account-link { width: 44px; min-width: 44px; height: 44px; }
[data-cart-count] { font: 700 .82rem var(--mono); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-slides, .hero-slide, .hero-slides::after { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position); }
.hero-slides::after { content: ""; background: linear-gradient(90deg, #0a152bfa, #0a152bed 27%, #0a152bc2 42%, #0a152b32 68%, #0a152b14 100%); }
.hero-inner { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: clamp(460px, 40vw, 620px); }
.hero-copy { display: grid; align-self: center; justify-items: start; gap: 17px; width: min(100%, 660px); padding: 55px 0 38px; }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 5.05rem); line-height: .99; }
.hero-copy > p:not(.hero-label) { color: #d8e4ff; max-width: 29rem; font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero-label { font: 600 .82rem/1.3 var(--mono); color: #9fc0ff; letter-spacing: .03em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-actions .button { background: #a7c3ff; color: #0b1a3e; border-color: #a7c3ff; }
.hero-actions .button:hover { background: #d5e2ff; border-color: #d5e2ff; }
.hero-actions .button-secondary { background: #101b327a; color: var(--white); border-color: #a7b9db; }
.hero-actions .button-secondary:hover { color: #102147; }
.hero-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 5px; margin-bottom: 20px; }
.hero-control { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border-radius: 5px; background: #101b32ec; color: var(--white); border: 1px solid #a7b9db; }
.hero-control svg { width: 19px; }
.hero-control:hover { background: #233d72; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.section-heading a { flex: none; font-weight: 650; font-size: .91rem; }
.categories-section { padding-bottom: 0; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-card {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden; color: var(--ink); text-decoration: none; background: var(--white); transition: border-color .16s;
}
.category-card:hover { border-color: var(--blue); color: var(--blue); }
.category-card div { height: clamp(90px, 11vw, 158px); background: var(--paper); }
.category-card img { width: 100%; height: 100%; object-fit: contain; }
.category-card span { display: flex; align-items: center; padding: 12px; font-weight: 700; line-height: 1.3; font-size: .95rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-card:hover { border-color: #9badce; }
.product-image { position: relative; display: block; aspect-ratio: 1 / 1; background: #f2f5fa; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 15px 17px; flex: 1; }
.product-card h3 a, .article-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover, .article-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.product-card p, .article-card p { color: var(--muted); font-size: .9rem; }
.product-category { font-size: .82rem; color: #2344a1; font-weight: 700; text-decoration: none; }
.product-category:hover { text-decoration: underline; }
.card-price { margin-top: auto; padding-top: 4px; font: 700 .98rem/1.3 var(--mono); color: var(--ink); width: fit-content; text-decoration: none; }
.card-price:hover { color: var(--blue); }
.card-add { width: 100%; padding-inline: 8px; }
.product-card .form-feedback:empty { display: none; }
.quick-buy { width: min(calc(100% - 24px), 450px); max-width: none; border: 0; border-radius: 8px; padding: 0; color: var(--ink); }
.quick-buy::backdrop { background: #0c152a8c; }
.quick-buy header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quick-buy-options { display: grid; gap: 8px; min-width: 0; }
.journal-section { background: var(--paper); border-top: 1px solid var(--line); }
.home-product-section + .home-product-section { padding-top: 0; }
.home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; gap: 18px 40px; }
.faq-questions { border-top: 1px solid var(--line); }
.faq-questions details { border-bottom: 1px solid var(--line); }
.faq-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding-block: 10px; list-style: none; font-weight: 700; }
.faq-questions summary::-webkit-details-marker { display: none; }
.faq-questions summary svg { width: 20px; flex: none; color: var(--blue); }
.faq-questions details[open] summary svg { transform: rotate(180deg); }
.faq-questions p { padding: 0 30px 14px 0; color: var(--muted); }
.review-section { background: var(--ice); border-top: 1px solid var(--line); }
.review-heading { align-items: center; }
.review-note { margin-top: 4px; font-size: .85rem; color: var(--muted); }
.carousel-controls { display: flex; flex: none; gap: 6px; }
.carousel-controls .icon-button { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); }
.carousel-controls .icon-button:hover { color: var(--blue); border-color: var(--blue); }
.card-carousel-track {
  --carousel-gap: 16px;
  position: relative; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--visible-cards) - 1) * var(--carousel-gap)) / var(--visible-cards));
  gap: var(--carousel-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.card-carousel-track::-webkit-scrollbar { display: none; }
.card-carousel-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.review-track { --visible-cards: 3; }
.review-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: clamp(16px, 2.2vw, 27px);
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px;
  background: var(--white); scroll-snap-align: start; overflow-wrap: anywhere;
}
.review-card-top { display: grid; align-content: start; gap: 4px; }
.review-stars { color: #a75a00; font-size: 1.18rem; letter-spacing: .12em; white-space: nowrap; }
.review-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.review-card h3 { font-size: clamp(1.04rem, 1.4vw, 1.22rem); }
.review-card p { color: var(--muted); }
.review-author { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 700; }
.review-initial { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--ice); color: #183b9e; font-size: .89rem; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-card { display: grid; grid-template-columns: 38% 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.article-cover { display: block; min-height: 145px; background: var(--paper); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card > div { padding: 16px; display: grid; align-content: start; gap: 6px; }

.page-heading { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 22px 35px; }
.page-heading h1 { margin-top: 13px; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 1.05rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #647895; }
.breadcrumbs a { color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: minmax(175px, 220px) minmax(0, 1fr); gap: 28px; }
.catalog-sidebar h2 { display: flex; align-items: center; gap: 7px; font-size: 1.12rem; margin-bottom: 10px; }
.catalog-sidebar svg { width: 20px; }
.catalog-sidebar nav { display: grid; gap: 4px; }
.catalog-sidebar a, .blog-filters a { display: block; color: var(--ink); text-decoration: none; padding: 8px 10px; font-size: .94rem; border-radius: 4px; }
.catalog-sidebar a:hover, .catalog-sidebar a[aria-current], .blog-filters a:hover, .blog-filters a[aria-current] { background: var(--ice); color: #183b9e; }
.price-filter { max-width: 360px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.price-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-filter-fields input { width: 100%; min-width: 0; }
.price-filter-fields label { font-size: .9rem; }
.price-filter-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.price-reset { min-height: 44px; padding: 8px; border: 0; background: none; color: var(--blue); text-decoration: underline; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.catalog-toolbar > div { display: flex; align-items: center; gap: 8px; }
.catalog-toolbar p, .catalog-toolbar label { color: var(--muted); font-size: .93rem; }
.catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-layout section > .header-search { max-width: 520px; margin-bottom: 15px; }
.blog-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.empty-state { padding: 25px; background: var(--paper); border-radius: 6px; }
.empty-state p { margin-block: 6px 12px; }

.product-section { padding-top: 22px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); margin-top: 23px; }
.gallery-main { position: relative; min-width: 0; aspect-ratio: 1.2; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.gallery-open { position: absolute; inset: 0; border: 0; border-radius: inherit; background: transparent; padding: 0; overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); }
.gallery-arrow:hover { background: var(--ice); }
.gallery-arrow svg { width: 21px; height: 21px; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery { min-width: 0; }
.gallery-thumbs {
  --thumb-count: 5;
  --thumb-gap: 8px;
  display: grid; position: relative; grid-auto-flow: column; gap: var(--thumb-gap);
  grid-auto-columns: calc((100% - (var(--thumb-count) - 1) * var(--thumb-gap)) / var(--thumb-count));
  overflow-x: auto; margin-top: 9px; padding: 3px; scroll-padding-inline: 3px; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.gallery-thumb { position: relative; width: 100%; aspect-ratio: 1; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; padding: 0; scroll-snap-align: start; }
.gallery-thumb[aria-pressed=true] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.gallery-thumb:focus-visible { outline-offset: 1px; }
.gallery-thumb img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.product-lightbox {
  width: min(100% - 18px, 1050px); max-width: none; max-height: 94dvh; border: 0; border-radius: 10px;
  padding: 10px; color: var(--white); background: var(--navy);
}
.product-lightbox::backdrop { background: #070e1de0; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: min(48dvh, 290px); background: #080f1f; border-radius: 6px; }
.lightbox-photo { width: 100%; height: min(73dvh, 800px); object-fit: contain; }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--white); color: var(--ink); }
.lightbox-count:not(:empty) { padding-block: 7px 2px; text-align: center; }
.purchase { display: grid; align-content: start; justify-items: start; gap: 11px; padding-block: 4px; }
.purchase h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); overflow-wrap: anywhere; }
.detail-price { font: 700 clamp(1.35rem, 2.5vw, 1.8rem)/1.3 var(--mono); }
.detail-summary { color: var(--muted); max-width: 33rem; }
.buy-form { width: min(100%, 500px); display: grid; gap: 10px; }
.buy-form label, .buy-form select { min-width: 0; }
.add-row { display: grid; grid-template-columns: 82px repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; }
.add-row .button { padding-inline: 8px; }
.purchase-foot { padding-top: 10px; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: .89rem; }
.product-information { max-width: 880px; padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.product-information h2:not(:first-child) { margin-top: 24px; }
.product-information p { margin-top: 10px; }
.product-information li + li, .prose li + li { margin-top: 4px; }
.product-reviews { max-width: 880px; margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.product-reviews-heading p { margin-top: 7px; color: var(--muted); }
.review-editor { margin-top: 14px; border: 1px solid var(--line); border-radius: 7px; }
.review-editor > summary { padding: 11px 15px; color: var(--blue); font-weight: 700; }
.review-editor form { display: grid; gap: 10px; border-top: 1px solid var(--line); padding: clamp(12px, 2.5vw, 22px); }
.review-editor form label, .review-editor input { min-width: 0; }
.review-editor .button { justify-self: start; }
.review-upload-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.review-upload-photos button { width: clamp(63px, 14vw, 108px); aspect-ratio: 1; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); cursor: zoom-in; }
.review-upload-photos img { width: 100%; height: 100%; object-fit: contain; }
.product-review-preview { margin-top: 14px; }
.product-review-preview > p { white-space: pre-line; }
.related { margin-top: 38px; }
.related-track { --visible-cards: 4; }
.related-track .product-card { scroll-snap-align: start; }
.related-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.product-note { background: var(--paper); border-radius: 5px; padding: 10px 12px; }

label { font-weight: 650; }
label:has(input:not([type=checkbox])), label:has(select), label:has(textarea) { display: grid; gap: 4px; }
input:not([type=checkbox]), textarea, select {
  min-height: 44px; max-width: 100%; border: 1px solid #aebbd0; border-radius: 5px; background: var(--white); color: var(--ink); padding: 8px 10px;
}
textarea { resize: vertical; }
select {
  appearance: none; padding-right: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23374863' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.header-search input { border: 0; background: none; }
.form-feedback:not(:empty) { background: var(--ice); color: var(--ink); border-radius: 4px; padding: 8px 10px; }
.form-feedback a { margin-left: 5px; }
.form-feedback:empty { margin: 0; }
.prose { max-width: 890px; }
.prose > :is(p, h2, ul, img) + :is(p, h2, ul, img) { margin-top: 16px; }
.prose > .button { margin-top: 16px; }
.prose-cover { width: 100%; max-height: 300px; object-fit: contain; background: var(--paper); border-radius: 6px; }
.latest-posts { display: none; }
@media (min-width: 841px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 890px) minmax(190px, 280px); align-items: start; gap: clamp(24px, 4vw, 54px); }
  .latest-posts { display: block; border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 26px); }
  .latest-posts h2 { font-size: 1.35rem; }
  .latest-posts ul { list-style: none; padding: 0; margin: 10px 0 0; }
  .latest-posts li { display: grid; gap: 2px; padding-block: 8px; }
  .latest-posts li + li { border-top: 1px solid var(--line); }
  .latest-posts a { font-weight: 650; }
  .latest-posts time { font-size: .87rem; color: var(--muted); }
}
.about-intro { display: grid; grid-template-columns: 1fr minmax(150px, .55fr); align-items: center; gap: 24px; }
.about-intro p { margin-bottom: 16px; }
.about-intro img { width: 100%; max-height: 250px; object-fit: contain; }
.form-grid, .checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 4vw, 38px); }
.form-grid > div > * + * { margin-top: 12px; }
.form-card { display: grid; align-content: start; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: clamp(15px, 3vw, 27px); }
.form-card h2 { font-size: 1.35rem; }
.form-card .button { width: fit-content; }
.account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 4vw, 38px); max-width: 1060px; }
.account-sign-in fieldset { display: grid; gap: 10px; min-width: 0; padding: 0; margin: 0; border: 0; }
.account-sign-in :disabled { cursor: default; }
.account-sign-in input:disabled { background: var(--paper); }
.account-sign-in .button:disabled { opacity: .65; }
.account-support > p { margin-top: 10px; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wide { grid-column: 1 / -1; }
.check { display: flex; gap: 7px; align-items: baseline; font-size: .92rem; }
.checkout-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); }
.required-mark { color: #b42318; }
.checkout-form { display: grid; gap: 25px; }
.checkout-section { display: grid; gap: 12px; }
.checkout-section + .checkout-section { padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-section h2, .order-summary h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.checkout-form :is(input:not([type=checkbox]), select) { width: 100%; min-height: 48px; }
.checkout-form .form-fields label { min-width: 0; }
.checkout-shipping { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #aebfe2; border-radius: 6px; background: var(--paper); }
.checkout-submit { min-height: 51px; }
.order-summary { position: sticky; top: 128px; padding: clamp(15px, 3vw, 24px); border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.order-summary > h2 { margin-bottom: 10px; }
.order-summary .checkout-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-block: 12px; }
.checkout-thumb { position: relative; width: 56px; height: 56px; }
.checkout-thumb img { width: 100%; height: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.checkout-item-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; border-radius: 999px; padding-inline: 4px; background: var(--navy); color: var(--white); font-size: .72rem; }
.checkout-item-name { font-weight: 650; overflow-wrap: anywhere; }
.checkout-item-detail p { font-size: .82rem; }
.order-summary .summary-total { font-size: 1.15rem; border-bottom: 0; }
.panel-wrap [data-checkout-empty] .button { margin-top: 8px; }
.narrow { max-width: 540px; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(95px, auto) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-block: 10px; }
.cart-row:first-child { border-top: 1px solid var(--line); }
.cart-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-product img { width: 55px; height: 55px; object-fit: contain; background: var(--paper); border-radius: 4px; }
.cart-product a { color: var(--ink); font-weight: 700; }
.cart-row label { font-size: .82rem; }
.cart-remove { color: var(--blue); padding: 6px; min-height: 44px; border: 0; background: none; text-decoration: underline; }
.cart-total { margin-block: 14px; display: grid; justify-items: end; gap: 7px; }
.cart-pricing { width: min(100%, 340px); }
.coupon-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 9px; }
.coupon-form label, .coupon-form input { min-width: 0; }
.coupon-form input { width: 100%; }
.coupon-form .button { min-height: 44px; }
.coupon-form :is(.coupon-remove, .form-feedback) { grid-column: 1 / -1; }
.coupon-form .form-feedback:empty { display: none; }
.coupon-remove { justify-self: start; padding: 5px 0; border: 0; background: transparent; color: var(--blue); text-decoration: underline; }
.cart-checkout-actions { display: grid; align-items: start; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 12px 20px; margin-top: 14px; }
.cart-checkout-actions .cart-total { margin-block: 0; }
.order-summary .coupon-form { margin-block: 12px; }
.mini-cart {
  position: fixed; inset: 0 0 0 auto; width: min(100%, 445px); max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink);
}
.mini-cart[open] { animation: slide-cart-in .24s ease-out both; }
.mini-cart::backdrop { background: #0c152a8c; }
@keyframes slide-cart-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mini-cart-panel { min-height: 100%; }
.mini-cart-panel > header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.mini-cart-panel > header h2 { font-size: 1.55rem; }
.mini-cart-body { padding: 16px 18px 24px; }
.mini-cart .cart-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 10px; }
.mini-cart .cart-product { grid-column: 1 / -1; }
.mini-cart .cart-row label { width: 73px; }
.mini-cart .cart-total { grid-template-columns: 1fr 1fr; }
.mini-cart .cart-pricing { grid-column: 1 / -1; width: 100%; }
.mini-cart .cart-total .button { width: 100%; padding-inline: 5px; }
.summary-row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.summary-row strong { white-space: nowrap; }
.summary-total { font-weight: 750; }
[data-cart-body] + p { margin-top: 12px; }

.site-footer { background: var(--navy); color: #f3f6ff; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr .8fr 1fr; gap: 20px; padding-block: 38px; }
.site-footer .brand, .site-footer .brand span { color: var(--white); }
.site-footer .brand-mark { color: #436fed; }
.site-footer p { max-width: 16rem; margin-top: 6px; color: #b9c6e1; font-size: .92rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: 8px; letter-spacing: 0; }
.site-footer a:not(.brand) { display: block; width: fit-content; color: #dce6fa; text-decoration: none; font-size: .91rem; padding-block: 3px; }
.site-footer a:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 6px; }
.social-links a, .site-footer .social-links a { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--blue); }
.social-links a:hover { background: var(--ice); }
.social-links svg { width: 19px; height: 19px; }
.site-footer .social-links { margin-top: 12px; }
.site-footer .social-links a { color: #f3f6ff; border-color: #62718b; }
.site-footer .social-links a:hover { background: #253758; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; border-top: 1px solid #334664; padding-block: 12px; color: #bac8e2; font-size: .8rem; }
.payment-marks { display: flex; flex-wrap: wrap; justify-content: end; gap: 5px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.payment-marks li { display: flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 28px; padding: 0 2px; border-radius: 4px; background: var(--white); color: #123373; font: 800 .7rem/1 Arial, sans-serif; white-space: nowrap; }
.payment-marks svg { width: 33px; height: 20px; }
.payment-marks .payment-visa { font-size: .82rem; font-style: italic; }
.payment-marks .payment-amex { background: #0069a5; color: var(--white); }
.payment-marks .payment-discover { font-size: .63rem; color: #252525; box-shadow: inset 0 -3px #f47b20; }
.payment-marks .payment-paypal { font-style: italic; }
.payment-paypal span { color: #0079ae; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 56px); }
  .header-row { gap: 15px; }
}

@media (max-width: 960px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px 9px; min-height: auto; padding-block: 7px; }
  .menu-toggle { display: grid; grid-column: 3; grid-row: 1; }
  .header-actions { grid-column: 4; grid-row: 1; }
  .header-row > .header-search { grid-column: 2; grid-row: 1; }
  .header-nav { display: none; grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: start; padding-block: 3px; gap: 5px 18px; }
  .header-nav.is-open { display: flex; }
  .header-nav > a, .shop-nav > a { display: inline-flex; align-items: center; min-height: 42px; }
  .language-menu > div { left: 0; right: auto; }
}

@media (max-width: 840px) {
  .review-track { --visible-cards: 2; }
  .related-track { --visible-cards: 2; --carousel-gap: 10px; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-grid .order-summary { position: static; grid-row: 1; }
  .catalog-layout { grid-template-columns: 1fr; gap: 15px; }
  .catalog-sidebar nav { display: flex; flex-wrap: wrap; }
  .catalog-sidebar a { border: 1px solid var(--line); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .cart-checkout-actions { grid-template-columns: minmax(0, 1fr); }
  .gallery-thumbs { --thumb-count: 4; }
  .review-track { --visible-cards: 1; --carousel-gap: 12px; }
  html { scroll-padding-top: 10rem; }
  .container { width: calc(100% - 28px); }
  .section { padding-block: 31px; }
  .categories-section { padding-bottom: 0; }
  .header-row > .header-search { grid-row: 3; grid-column: 1 / -1; }
  .hero-inner { min-height: clamp(450px, 123vw, 535px); }
  .hero-slide img { object-position: var(--hero-mobile-position); }
  .hero-slides::after { background: linear-gradient(180deg, #0a152b06, #0a152b39 24%, #0a152bd9 53%, #0a152bfa 83%); }
  .hero-copy { align-self: end; padding: 40px 0 20px; gap: 12px; }
  .hero-controls { justify-content: start; margin-bottom: 14px; }
  .hero-actions { margin-top: 1px; }
  .hero-actions .button { padding-inline: 12px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-card span { font-size: .88rem; padding: 8px; }
  .section-heading { align-items: start; flex-wrap: wrap; margin-bottom: 13px; }
  .section-heading a { font-size: .88rem; }
  .catalog-layout .product-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card-body { padding: 9px; gap: 6px; }
  .product-card h3 { font-size: 1.03rem; }
  .product-card p { font-size: .84rem; }
  .product-category { font-size: .76rem; }
  .card-price { font-size: .86rem; }
  .article-grid, .product-layout, .about-intro, .form-grid, .checkout-grid, .account-layout, .home-faq { grid-template-columns: minmax(0, 1fr); }
  .article-cover { min-height: 115px; }
  .product-layout { margin-top: 13px; }
  .product-section { padding-top: 15px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cart-product { grid-column: 1 / -1; }
  .cart-row label { width: 73px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .mini-cart[open] { animation: none; }
}

@media (max-width: 360px) {
  .add-row { grid-template-columns: 82px minmax(0, 1fr); }
  .buy-now-button { grid-column: 1 / -1; }
}
