:root {
  --navy: #063b68;
  --navy-deep: #042c4d;
  --blue: #087cc4;
  --aqua: #15aaa9;
  --ink: #112b43;
  --muted: #64798b;
  --wash: #f1f7fa;
  --line: #d9e6ed;
  --paper: #ffffff;
  --green: #07875f;
  --warn: #8a5a08;
  --danger: #a32318;
  --shadow: 0 12px 30px rgba(10, 43, 67, .09);
}

* { box-sizing: border-box; }
html { background: var(--wash); scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  padding: 0 0 158px;
  overflow-x: hidden;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #f6be31;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-shell { width: min(100%, 1180px); margin: 0 auto; }
.site-header {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 18px clamp(18px, 4vw, 42px) 38px;
  color: #fff;
  background:
    radial-gradient(circle at 87% 17%, rgba(45, 208, 202, .65), transparent 19rem),
    radial-gradient(circle at 75% 120%, rgba(21, 170, 169, .42), transparent 19rem),
    linear-gradient(132deg, var(--navy-deep), var(--navy) 54%, #087ec4);
}
.site-header::after {
  position: absolute;
  right: -7rem;
  bottom: -11rem;
  width: 29rem;
  height: 29rem;
  border: 2rem solid rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.site-header__bar, .site-header__copy { position: relative; z-index: 1; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 13px; background: #fff; object-fit: contain; box-shadow: 0 6px 16px rgba(0,0,0,.17); }
.brand b { display: block; font-size: 1rem; letter-spacing: .1em; }
.brand small { display: block; margin-top: 2px; font-size: .7rem; letter-spacing: .02em; opacity: .76; }
.tax-badge { padding: 8px 11px; border: 1px solid rgba(255,255,255,.27); border-radius: 999px; background: rgba(255,255,255,.12); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.site-header__copy { max-width: 720px; margin-top: 33px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: .69rem; font-weight: 900; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.site-header .eyebrow { color: #99ecea; }
.site-header h1 { max-width: 670px; margin: 0; font-size: clamp(1.72rem, 4.3vw, 2.9rem); font-weight: 820; letter-spacing: -.055em; line-height: 1.08; }
.site-header h1 em { color: #bdf6f1; font-family: Georgia, serif; font-weight: 400; }
.site-header__copy > p:last-child { max-width: 535px; margin: 13px 0 0; color: rgba(255,255,255,.82); font-size: .94rem; }

.catalog { min-width: 0; padding: clamp(24px, 4vw, 42px) clamp(16px, 3vw, 32px) 38px; }
.catalog-topline { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.catalog h2 { margin: 0; color: var(--ink); font-size: clamp(1.3rem, 3vw, 1.75rem); letter-spacing: -.035em; line-height: 1.15; }
.product-count { min-height: 1.4em; margin: 7px 0 0; color: var(--muted); font-size: .84rem; }
.search { display: flex; flex: 0 1 315px; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #5d7688; box-shadow: 0 4px 14px rgba(21,58,81,.04); }
.search:focus-within { border-color: #75bce3; box-shadow: 0 0 0 4px rgba(8,124,196,.11); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search input::placeholder { color: #8293a0; }
.catalog-status { display: flex; align-items: center; gap: 10px; min-height: 30px; margin: 18px 0 12px; color: var(--muted); font-size: .82rem; }
.catalog-status::before { width: 8px; height: 8px; border-radius: 50%; background: #b9cbd6; content: ""; }
body[data-prices="ready"] .catalog-status::before { background: #0cab7c; box-shadow: 0 0 0 4px rgba(12,171,124,.11); }
body[data-prices="error"] .catalog-status::before { background: #d97706; box-shadow: 0 0 0 4px rgba(217,119,6,.11); }
.retry { padding: 7px 10px; border: 1px solid #bfd5e2; border-radius: 9px; background: #fff; color: var(--navy); font-size: .76rem; font-weight: 800; }

.products { display: grid; gap: 28px; min-width: 0; }
.product-group { content-visibility: auto; contain-intrinsic-size: auto 920px; min-width: 0; }
.product-group__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 2px 11px; }
.product-group__title { margin: 0; color: #173b57; font-size: clamp(1.05rem, 2.2vw, 1.28rem); letter-spacing: -.025em; line-height: 1.25; }
.product-group__count { flex: 0 0 auto; color: var(--muted); font-size: .76rem; }
.product-group__list { display: grid; gap: 10px; }
.product {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-width: 0;
  min-height: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(12,52,77,.045);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.product.selected { border-color: #61c2b4; box-shadow: 0 8px 22px rgba(7,135,95,.11); }
.product-photo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: 105px; height: 105px; place-items: center; overflow: hidden; padding: 4px; border: 1px solid #e2edf2; border-radius: 14px; background: #f5fafc; color: var(--muted); }
button.product-photo { cursor: zoom-in; }
/* Tall originals must shrink inside the grid instead of enlarging its implicit row. */
.product-photo img { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.product-photo__cue { position: absolute; right: 6px; bottom: 6px; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; background: rgba(5,59,104,.78); color: #fff; font-size: .78rem; opacity: .9; }
.product-copy { min-width: 0; }
.product-name { margin: 0; color: #112b43; font-size: clamp(.98rem, 2.5vw, 1.12rem); font-weight: 820; letter-spacing: -.022em; line-height: 1.28; overflow-wrap: anywhere; }
.product-meta { margin: 5px 0 0; color: var(--muted); font-size: .73rem; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price { color: var(--navy); font-size: clamp(1.18rem, 3.4vw, 1.46rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.price small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: 0; }
.price--pending { color: #758997; font-size: .85rem; font-weight: 750; letter-spacing: 0; }
.product-action { flex: 0 0 auto; min-width: 111px; }
.add-button, .quantity-control { display: flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; border-radius: 12px; font-weight: 850; }
.add-button { gap: 7px; border: 1px solid #087cc4; background: #087cc4; color: #fff; box-shadow: 0 5px 12px rgba(8,124,196,.18); }
.add-button span { font-size: 1.2rem; line-height: .7; }
.add-button:disabled { border-color: #e4edf2; background: #eff4f7; color: #788d9a; box-shadow: none; }
.quantity-control { overflow: hidden; border: 1px solid #bcd8e8; background: #fff; }
.quantity-control button { display: grid; width: 38px; height: 46px; place-items: center; border: 0; background: #edf7fc; color: #075b91; font-size: 1.45rem; font-weight: 850; line-height: 1; }
.quantity-control button[data-change="1"] { background: #087cc4; color: #fff; }
.qty-input { width: 38px; min-width: 38px; height: 46px; margin: 0; padding: 0 2px; border: 0; border-right: 1px solid #dce9ef; border-left: 1px solid #dce9ef; border-radius: 0; outline: 0; background: #fff; color: var(--ink); font-size: 1.04rem; font-weight: 900; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.qty-input:focus { position: relative; z-index: 1; background: #fff9de; box-shadow: inset 0 0 0 3px #f5c341; }
.empty-results { margin: 36px 0; color: var(--muted); text-align: center; }
.catalog-placeholder { height: 132px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(100deg,#eef4f7 15%,#f8fbfc 35%,#eef4f7 55%); background-size: 220% 100%; animation: sheen 1.25s linear infinite; }

.selection { margin-top: 36px; padding: clamp(18px, 3vw, 25px); border: 1px solid #c9dfe9; border-radius: 21px; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 18px; }
.selection-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.selection-heading .eyebrow { margin-bottom: 5px; }
.selection-heading h2 { font-size: 1.12rem; }
.selection-heading > span { padding: 6px 8px; border-radius: 8px; background: #eaf8f5; color: #08745b; font-size: .71rem; font-weight: 850; }
.selection-row { display: grid; grid-template-columns: minmax(0,1fr) auto 34px; gap: 11px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf2f5; }
.selection-row strong { display: block; font-size: .88rem; line-height: 1.35; }
.selection-row span { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.selection-row b { color: var(--navy); font-size: .88rem; white-space: nowrap; }
.selection-row button { width: 34px; height: 38px; border: 0; border-radius: 9px; background: #f0f5f7; color: #587384; font-size: 1.25rem; }
.note-label { display: block; margin: 19px 0 8px; color: #31526a; font-size: .82rem; font-weight: 850; }
.note-label span { color: var(--muted); font-weight: 500; }
.notebox { width: 100%; min-height: 89px; resize: vertical; padding: 13px; border: 1px solid #cfdee6; border-radius: 13px; background: #fbfdfe; color: var(--ink); font-size: 16px; line-height: 1.48; }
.notebox:focus { border-color: #72b9df; box-shadow: 0 0 0 4px rgba(8,124,196,.1); }
.catalog-footer { max-width: 670px; margin: 0 auto; padding: 8px 24px 18px; color: var(--muted); text-align: center; }
.catalog-footer strong { display: block; color: #31536a; font-size: .78rem; letter-spacing: .14em; }
.catalog-footer span { display: block; margin-top: 4px; font-size: .72rem; }
.catalog-footer p { margin: 12px 0 0; font-size: .75rem; line-height: 1.65; }

.cart { position: fixed; z-index: 20; right: max(10px, calc((100% - 1160px) / 2)); bottom: 10px; left: max(10px, calc((100% - 1160px) / 2)); border: 1px solid rgba(255,255,255,.22); border-radius: 21px; background: linear-gradient(115deg, rgba(4,39,67,.96), rgba(8,69,108,.96)); color: #fff; box-shadow: 0 15px 37px rgba(3,29,49,.34); backdrop-filter: blur(12px); }
.cart__inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(180px,.65fr); gap: 16px; align-items: center; padding: 13px 15px; }
.cart-summary { min-width: 0; padding: 3px; border: 0; background: transparent; color: #d5e7f2; text-align: left; }
.cart-summary:disabled { cursor: default; }
.cart-summary span { display: block; overflow: hidden; font-size: .84rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.cart-summary small { display: block; margin-top: 2px; color: #93b6c9; font-size: .67rem; }
.cart-summary:not(:disabled) small { color: #7edac7; }
.cart-total { min-width: 126px; text-align: right; }
.cart-total strong { display: block; font-size: clamp(1.35rem, 3vw, 1.72rem); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.cart-total span { display: block; margin-top: 5px; color: #a8c5d5; font-size: .67rem; }
.send { min-height: 50px; border: 0; border-radius: 13px; background: linear-gradient(120deg,#18b884,#079765); color: #fff; font-size: .91rem; font-weight: 900; box-shadow: 0 7px 17px rgba(0,30,26,.24); }
.send span { margin-left: 7px; font-size: 1.1rem; }
.send:disabled { background: #55778c; color: #d7e4eb; box-shadow: none; cursor: not-allowed; }
.cart-status { min-height: 0; max-width: 920px; margin: 0 auto; padding: 0 15px 10px; color: #f8d88a; font-size: .71rem; line-height: 1.35; text-align: center; }
.cart-status:empty { display: none; }

dialog { width: min(92vw, 700px); padding: 17px; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 25px 80px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(2,25,43,.72); backdrop-filter: blur(3px); }
dialog #close-photo { float: right; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #eff5f8; color: var(--navy); font-size: 1.65rem; line-height: 1; }
dialog img { display: block; width: 100%; max-height: min(66vh, 620px); margin-top: 8px; border-radius: 12px; object-fit: contain; }
dialog h2 { margin: 13px 4px 3px; font-size: 1rem; }
.noscript { margin: 20px; color: var(--danger); text-align: center; }

.opening-loader { position: fixed; z-index: 100; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; background: #f9fcfe; color: var(--navy); opacity: 1; transition: opacity .25s ease, visibility .25s ease; }
.opening-loader.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.opening-loader__visual { position: relative; width: min(88vw, 360px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 16px 44px rgba(5,52,84,.12); }
.opening-loader__poster, .opening-loader__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.opening-loader__poster { display: block; }
.opening-loader__video { opacity: 0; transition: opacity .16s ease; }
.opening-loader.video-playing .opening-loader__video { opacity: 1; }
.opening-loader.video-fallback .opening-loader__video { display: none; }
.opening-loader__ring { position: absolute; inset: 8.3% 12%; border: 2px solid rgba(8,86,149,.14); border-top-color: #087cc4; border-right-color: #087cc4; border-radius: 50%; animation: loader-spin 1.1s linear infinite; pointer-events: none; }
.opening-loader.video-playing .opening-loader__ring { opacity: 0; }
.opening-loader strong { margin-top: 7px; font-size: .9rem; letter-spacing: .14em; }
.opening-loader p { max-width: 300px; margin: 0; color: #61778a; font-size: .84rem; text-align: center; }

@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes sheen { to { background-position-x: -220%; } }
@keyframes total-bump { 50% { transform: scale(1.06); color: #a8ffdf; } }
.total-bump { animation: total-bump .23s ease-out; }

@media (min-width: 760px) {
  body { padding-top: 20px; }
  .site-shell { overflow: hidden; border-radius: 26px; background: var(--wash); box-shadow: 0 14px 40px rgba(7,48,72,.08); }
  .site-header { min-height: 275px; }
  .product-group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 98px minmax(0, 1fr); }
  .product-photo { width: 98px; height: 98px; }
}

@media (max-width: 620px) {
  body { padding-bottom: 188px; }
  .site-header { min-height: 226px; padding: 15px 17px 29px; }
  .brand img { width: 47px; height: 47px; }
  .brand b { font-size: .9rem; }
  .tax-badge { padding: 7px 9px; font-size: .68rem; }
  .site-header__copy { margin-top: 25px; }
  .site-header h1 { font-size: 1.67rem; }
  .catalog { padding: 23px 12px 34px; }
  .catalog-topline { display: block; }
  .search { width: 100%; margin-top: 16px; }
  .product-group { contain-intrinsic-size: auto 780px; }
  .product-group__head { margin: 0 3px 9px; }
  .product { grid-template-columns: 88px minmax(0,1fr); gap: 11px; min-height: 121px; padding: 10px; border-radius: 16px; }
  .product-photo { width: 88px; height: 88px; border-radius: 12px; }
  .product-name { font-size: .93rem; }
  .product-bottom { align-items: end; gap: 8px; margin-top: 8px; }
  .price { font-size: 1.17rem; }
  .product-action { min-width: 101px; }
  .add-button, .quantity-control { min-height: 43px; }
  .quantity-control button, .qty-input { height: 43px; }
  .quantity-control button { width: 34px; }
  .qty-input { width: 33px; min-width: 33px; }
  .cart { right: 0; bottom: 0; left: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 19px 19px 0 0; }
  .cart__inner { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 12px 13px 10px; }
  .cart-total { min-width: 108px; }
  .send { grid-column: 1 / -1; min-height: 47px; }
  .cart-status { padding-bottom: 7px; }
  .opening-loader__visual { width: min(82vw, 330px); border-radius: 20px; }
}

@media (max-width: 365px) {
  .site-header h1 { font-size: 1.49rem; }
  .product { grid-template-columns: 78px minmax(0,1fr); gap: 9px; }
  .product-photo { width: 78px; height: 78px; }
  .product-name { font-size: .86rem; }
  .product-action { min-width: 94px; }
  .quantity-control button { width: 31px; }
  .qty-input { width: 32px; min-width: 32px; }
  .price { font-size: 1.08rem; }
}

@media (hover: hover) {
  .product:hover { border-color: #aacfe1; box-shadow: 0 11px 25px rgba(12,52,77,.09); transform: translateY(-1px); }
  .add-button:not(:disabled):hover, .send:not(:disabled):hover { filter: brightness(1.06); }
  .product-photo:hover img { transform: scale(1.035); }
  .product-photo img { transition: transform .2s ease; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .opening-loader__video, .opening-loader__ring { display: none; }
}
