:root {
  color-scheme: light;
  --ink: #122c36;
  --muted: #58707a;
  --line: rgba(111, 153, 166, 0.22);
  --aqua-50: #f0fbfc;
  --aqua-100: #daf4f7;
  --aqua-200: #b9e8ed;
  --aqua-500: #2aa9b6;
  --aqua-700: #12727e;
  --navy: #102f3a;
  --white: rgba(255, 255, 255, 0.76);
  --shadow: 0 22px 70px rgba(42, 94, 108, 0.12);
  --shadow-lift: 0 30px 80px rgba(33, 85, 99, 0.18);
  --radius: 28px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -5%, rgba(164, 231, 239, 0.7), transparent 32rem),
    radial-gradient(circle at 94% 14%, rgba(202, 238, 231, 0.68), transparent 34rem),
    linear-gradient(145deg, #f7fcfc 0%, #edf7f8 45%, #f8fbf9 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(20, 91, 102, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 91, 102, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.75rem, 6.3vw, 6.4rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 500;
}

h3 {
  line-height: 1.28;
}

:focus-visible {
  outline: 3px solid rgba(18, 114, 126, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 40px, 1540px);
  margin-inline: auto;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-one {
  top: 17vh;
  left: -7rem;
  width: 23rem;
  height: 23rem;
  background: rgba(112, 216, 228, 0.18);
}

.ambient-two {
  right: -9rem;
  bottom: 10vh;
  width: 30rem;
  height: 30rem;
  background: rgba(149, 224, 203, 0.17);
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(132%);
  -webkit-backdrop-filter: blur(22px) saturate(132%);
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(248, 253, 252, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 70, 82, 0.32);
  border-radius: 50%;
  font: 1.2rem var(--serif);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.93rem;
  letter-spacing: 0.28em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  color: #3e5963;
  font-size: 0.9rem;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(43, 95, 109, 0.08);
}

.basket-count {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding-inline: 6px;
  border-radius: 999px;
  color: white;
  background: var(--aqua-700);
  font-size: 0.72rem;
}

.basket-count.is-empty {
  display: none;
}

.flash-stack {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.flash {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(31, 84, 98, 0.12);
  font-weight: 650;
}

.flash-success {
  color: #145c51;
  background: rgba(225, 250, 241, 0.95);
}

.flash-error {
  color: #843b3b;
  background: rgba(255, 238, 236, 0.96);
}

.search-hero {
  padding: clamp(80px, 11vw, 155px) 0 66px;
  text-align: center;
}

.search-hero-compact {
  padding-top: clamp(55px, 7vw, 92px);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--aqua-700);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.search-hero h1 {
  max-width: 1020px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 750px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.search-form {
  max-width: 1000px;
  margin: 44px auto 0;
  padding: 12px;
  border-radius: 32px;
  text-align: left;
}

.search-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.search-icon {
  width: 48px;
  display: grid;
  place-items: center;
  color: var(--aqua-700);
  font: 2rem var(--serif);
}

.search-control input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.04rem;
}

.search-control input::placeholder {
  color: #80959c;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.is-busy {
  position: relative;
  padding-left: 42px;
}

.button.is-busy::before {
  position: absolute;
  left: 18px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: button-spin 700ms linear infinite;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #153b47, #0f6975);
  box-shadow: 0 12px 28px rgba(18, 79, 91, 0.21);
}

.button-primary:hover {
  background: linear-gradient(135deg, #0f313b, #0c5d68);
  box-shadow: 0 16px 32px rgba(18, 79, 91, 0.25);
}

.button-secondary {
  border-color: rgba(61, 109, 120, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.button-secondary:hover,
.button-ghost:hover {
  background: white;
}

.button-ghost {
  border-color: rgba(84, 125, 135, 0.18);
  color: var(--muted);
  background: transparent;
}

.button-order {
  color: #0e3f45;
  background: linear-gradient(135deg, #b9f2ea, #9de2ec);
  box-shadow: 0 12px 30px rgba(38, 159, 171, 0.18);
}

.button-order:hover {
  background: linear-gradient(135deg, #9ce8dd, #80d7e2);
}

.button-danger {
  color: white;
  background: #9b4343;
}

.button-block {
  width: 100%;
}

.suggestion-groups {
  max-width: 1100px;
  margin: 30px auto 0;
  display: grid;
  gap: 19px;
  text-align: left;
}

.suggestion-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-row,
.component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip,
.component-list li,
.component-list span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  color: #35565f;
  background: rgba(255, 255, 255, 0.57);
  font-size: 0.81rem;
  font-weight: 650;
}

.chip:hover {
  color: var(--ink);
  background: white;
}

.chip-muted {
  background: rgba(226, 243, 244, 0.68);
}

.catalogue-section {
  padding: 12px 0 100px;
}

.results-heading,
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.results-heading h2,
.page-heading h1 {
  margin-bottom: 0;
}

.results-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #246151;
  background: rgba(220, 248, 237, 0.84);
  font-size: 0.78rem;
  font-weight: 750;
}

.filter-panel {
  margin-bottom: 30px;
  border-radius: 24px;
  overflow: hidden;
}

.filter-panel summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 14px 22px;
  font-weight: 750;
}

.filter-panel summary::marker {
  color: var(--aqua-700);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 17px;
  padding: 6px 22px 24px;
}

.filter-form label,
.purchase-form label,
.order-form label,
.basket-row-actions label {
  color: #526b74;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.filter-form input,
.filter-form select,
.purchase-form input,
.order-form input,
.basket-row-actions input {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid rgba(75, 117, 128, 0.2);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.checkbox-label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
}

.checkbox-label input {
  width: 19px;
  min-height: 19px;
  margin: 0;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 9px;
  grid-column: span 2;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.product-image-link {
  position: relative;
  aspect-ratio: 1.15 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, white, rgba(236, 246, 246, 0.65) 68%);
}

.product-image-link img {
  width: 100%;
  height: 100%;
  padding: 28px;
  object-fit: contain;
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #779097;
  background: linear-gradient(145deg, #f4fafa, #e7f2f3);
  font-family: var(--serif);
}

.image-badge,
.expand-label {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #275d66;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 7px 18px rgba(36, 84, 97, 0.1);
  font-size: 0.7rem;
  font-weight: 750;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.brand-label {
  margin-bottom: 8px;
  color: var(--aqua-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 14px;
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 550;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card h3 a:hover,
.basket-row h3 a:hover {
  color: var(--aqua-700);
}

.rating-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #6e8187;
  font-size: 0.78rem;
}

.rating-line strong {
  color: var(--ink);
}

.stars {
  color: #d18c2f;
}

.availability {
  margin: 9px 0 0;
  color: #3f776a;
  font-size: 0.79rem;
  font-weight: 650;
}

.card-price {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
}

.card-price strong {
  font-size: 1.23rem;
  font-variant-numeric: tabular-nums;
}

.card-price span,
.basket-prices span {
  color: var(--aqua-700);
  font-size: 0.86rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.microcopy,
.form-note,
.summary-note {
  color: #6b7f86;
  font-size: 0.71rem;
  line-height: 1.6;
}

.product-card .microcopy {
  margin: 14px 0;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.card-actions form,
.card-actions button {
  width: 100%;
}

.pagination {
  min-height: 78px;
  margin-top: 34px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  border-radius: 24px;
}

.pagination > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.end-note {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(229, 244, 243, 0.7);
}

.state-card {
  max-width: 820px;
  margin: 35px auto;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 32px;
  text-align: center;
}

.state-card h1,
.state-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.state-card > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.state-icon,
.confirmation-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  border-radius: 20px;
  color: var(--aqua-700);
  background: var(--aqua-100);
  font: 2rem var(--serif);
}

.detail-shell {
  padding-top: 38px;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--ink);
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(430px, 0.86fr);
  gap: 34px;
  padding: 22px 0 78px;
}

.main-image {
  position: relative;
  aspect-ratio: 1.1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.66);
}

.main-image img {
  width: 100%;
  height: 100%;
  padding: clamp(32px, 5vw, 76px);
  object-fit: contain;
}

.gallery-nav {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 4px;
}

.gallery-nav a {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-nav a[aria-current="true"] {
  border-color: var(--aqua-500);
}

.gallery-nav img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.purchase-panel {
  align-self: start;
  padding: clamp(24px, 3.4vw, 45px);
  border-radius: 34px;
}

.purchase-panel h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.55rem);
  line-height: 1.12;
}

.detail-rating {
  gap: 10px;
  font-size: 0.86rem;
}

.detail-rating .status-pill {
  margin-left: auto;
}

.price-panel {
  margin-top: 27px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(225, 249, 250, 0.84), rgba(255, 255, 255, 0.7));
}

.price-panel strong,
.price-panel span {
  display: block;
  font-variant-numeric: tabular-nums;
}

.price-panel strong {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.2;
}

.price-panel span {
  margin-top: 4px;
  color: var(--aqua-700);
  font-size: 1.12rem;
  font-weight: 800;
}

.price-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.delivery-box {
  display: flex;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(118, 196, 205, 0.23);
  border-radius: 18px;
  color: #506b74;
  background: rgba(224, 247, 249, 0.64);
  font-size: 0.78rem;
  line-height: 1.65;
}

.delivery-box p,
.delivery-box {
  margin-bottom: 0;
}

.delivery-box > span {
  color: var(--aqua-700);
  font-size: 1.2rem;
}

.purchase-form,
.order-form {
  margin-top: 22px;
}

.order-form {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quantity-action {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  margin-top: 7px;
}

.quantity-action input {
  margin-top: 0;
  text-align: center;
  font-weight: 800;
}

.form-note {
  margin: 10px 0 0;
}

.last-checked {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.last-checked span,
.last-checked strong {
  display: block;
}

.last-checked strong {
  color: #405d66;
}

.last-checked p {
  margin: 9px 0 0;
}

.information-band {
  padding: 82px 0 110px;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.27);
}

.information-band > .shell > h2 {
  margin-bottom: 34px;
}

.information-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 20px;
}

.info-card,
.spec-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
}

.info-card h2,
.info-card h3,
.spec-card h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  font-weight: 550;
}

.prose {
  color: #47616a;
  line-height: 1.88;
  white-space: pre-line;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 13px 14px 13px 37px;
  border-radius: 15px;
  color: #46616a;
  background: rgba(231, 248, 249, 0.72);
  font-size: 0.83rem;
}

.feature-list li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--aqua-700);
  content: "✓";
  font-weight: 850;
}

.info-card-wide,
.spec-card {
  margin-top: 20px;
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.attribute-grid > div {
  padding: 16px;
  border: 1px solid rgba(96, 137, 147, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.attribute-grid dt,
.spec-card dt,
.summary-list dt {
  color: #70848a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attribute-grid dd,
.spec-card dd,
.summary-list dd {
  margin: 6px 0 0;
  color: #294952;
}

.component-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-card {
  overflow: hidden;
  padding: 0;
}

.spec-card h3 {
  margin: 0;
  padding: 24px 30px;
}

.spec-card dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec-card dl > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--line);
}

.spec-card dl > div:last-child {
  border-bottom: 0;
}

.basket-shell {
  padding: 72px 0 110px;
}

.page-heading {
  align-items: center;
}

.page-heading h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.page-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.danger-link {
  color: #914747;
}

.basket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.38fr);
  gap: 24px;
  align-items: start;
}

.basket-items {
  display: grid;
  gap: 16px;
}

.basket-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: var(--radius);
}

.basket-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(246, 251, 251, 0.8);
}

.basket-image img {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
}

.basket-row-content h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 550;
}

.basket-prices {
  display: grid;
}

.basket-prices strong {
  font-size: 1.04rem;
  font-variant-numeric: tabular-nums;
}

.basket-row .microcopy {
  margin: 12px 0;
}

.basket-row-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.basket-row-actions form:first-child {
  display: grid;
  grid-template-columns: 94px auto;
  gap: 8px;
  align-items: end;
}

.basket-row-actions label {
  grid-column: span 2;
}

.basket-row-actions input {
  margin: 0;
  text-align: center;
}

.text-button {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
}

.order-summary {
  position: sticky;
  top: 24px;
  padding: 28px;
  border-radius: var(--radius);
}

.order-summary h2 {
  font-size: 2rem;
}

.summary-list {
  margin: 24px 0;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-summary .delivery-box {
  margin-bottom: 19px;
}

.editorial-shell,
.terms-shell {
  padding: clamp(75px, 10vw, 145px) 0 115px;
}

.editorial-shell > h1,
.terms-shell > h1 {
  max-width: 980px;
}

.editorial-lead {
  max-width: 800px;
  margin: 28px 0 45px;
  color: var(--muted);
  font-size: 1.15rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.editorial-grid p,
.terms-shell p {
  color: var(--muted);
}

.editorial-notice {
  max-width: 820px;
  margin-top: 30px;
}

.terms-shell {
  max-width: 1060px;
}

.terms-shell > section {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.terms-shell h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 2rem;
}

.confirmation-shell {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding: 75px 0 100px;
}

.confirmation-card {
  width: min(100%, 760px);
  padding: clamp(32px, 7vw, 74px);
  border-radius: 34px;
  text-align: center;
}

.confirmation-card h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.confirmation-message {
  color: #3a5962;
  font-size: 1.08rem;
  font-weight: 650;
}

.confirmation-details {
  margin: 27px 0;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(229, 248, 249, 0.7);
  font-size: 0.82rem;
}

.confirmation-details p:last-child {
  margin-bottom: 0;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.confirmation-actions form {
  margin: 0;
}

.warning-icon {
  color: #8a5050;
  background: #f9e8e6;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.site-footer {
  position: relative;
  padding: 60px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  color: #4d6871;
  background: rgba(239, 248, 248, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.26em;
}

.footer-copy {
  max-width: 590px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-grid nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 750;
}

.footer-grid nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom p:first-child {
  max-width: 850px;
}

.loading-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  background: rgba(222, 239, 241, 0.62);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: opacity 220ms ease;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay.is-visible {
  opacity: 1;
}

.loading-card {
  width: min(100%, 470px);
  padding: 40px 34px;
  border-radius: 32px;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms ease;
}

.loading-overlay.is-visible .loading-card {
  transform: translateY(0) scale(1);
}

.loading-card .eyebrow {
  margin: 21px 0 9px;
}

.loading-card strong,
.loading-card small {
  display: block;
}

.loading-card strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 550;
  line-height: 1.2;
}

.loading-card small {
  max-width: 340px;
  margin: 12px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.water-loader {
  position: relative;
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(81, 170, 181, 0.22);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(220, 249, 249, 0.9), white);
  box-shadow: 0 14px 40px rgba(36, 126, 139, 0.16);
}

.water-loader::before {
  width: 28px;
  height: 36px;
  border-radius: 60% 60% 55% 55% / 75% 75% 40% 40%;
  content: "";
  background: linear-gradient(160deg, #83dfe9, #1f95a4);
  transform: rotate(45deg);
  animation: water-float 1.4s ease-in-out infinite;
}

.water-loader span {
  position: absolute;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua-500);
  opacity: 0;
  animation: bubble-rise 1.5s ease-out infinite;
}

.water-loader span:nth-child(1) {
  left: 13px;
}

.water-loader span:nth-child(2) {
  right: 14px;
  animation-delay: 0.45s;
}

.water-loader span:nth-child(3) {
  left: 21px;
  animation-delay: 0.8s;
}

.toast {
  position: fixed;
  z-index: 90;
  top: 105px;
  left: 50%;
  min-height: 62px;
  width: min(calc(100% - 28px), 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  color: #174f49;
  background: rgba(229, 252, 244, 0.96);
  box-shadow: 0 22px 60px rgba(26, 91, 92, 0.22);
  opacity: 0;
  transform: translate(-50%, -18px) scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast.is-error {
  color: #7f3838;
  background: rgba(255, 238, 236, 0.97);
}

.toast-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #2c9685;
  font-weight: 900;
}

.toast.is-error .toast-mark {
  background: #a64a4a;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes water-float {
  0%,
  100% {
    transform: translateY(1px) rotate(45deg) scale(0.96);
  }
  50% {
    transform: translateY(-4px) rotate(45deg) scale(1.03);
  }
}

@keyframes bubble-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  35% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateY(-34px) scale(1.15);
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-form {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .detail-top {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.88fr);
  }

  .basket-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-width: 920px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-form {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .detail-top,
  .basket-layout,
  .information-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .attribute-grid,
  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 24px, 1540px);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 0.79rem;
    letter-spacing: 0.2em;
  }

  .primary-nav {
    gap: 1px;
  }

  .primary-nav a {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.77rem;
  }

  .primary-nav a:nth-child(2) {
    display: none;
  }

  .toast {
    top: 84px;
  }

  .search-hero {
    padding: 60px 0 46px;
  }

  .search-hero h1 {
    font-size: clamp(3.15rem, 16vw, 4.7rem);
  }

  .search-form {
    margin-top: 30px;
    padding: 9px;
    border-radius: 25px;
  }

  .search-control {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .search-control .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-icon {
    width: 36px;
  }

  .results-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-form,
  .product-grid,
  .attribute-grid,
  .editorial-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions .button {
    width: 100%;
  }

  .product-card h3 {
    -webkit-line-clamp: 2;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .detail-top {
    padding-bottom: 55px;
  }

  .main-image {
    aspect-ratio: 1 / 1;
    border-radius: 27px;
  }

  .purchase-panel {
    border-radius: 27px;
  }

  .detail-rating .status-pill {
    margin-left: 0;
  }

  .quantity-action {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .information-band {
    padding: 60px 0 80px;
  }

  .spec-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 20px;
  }

  .basket-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }

  .basket-row-content h3 {
    font-size: 1.1rem;
  }

  .basket-row .microcopy {
    grid-column: 1 / -1;
  }

  .basket-row-actions {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .primary-nav a:first-child {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .basket-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .basket-row-actions form:first-child {
    grid-template-columns: 78px auto;
  }

  .confirmation-actions,
  .confirmation-actions .button,
  .confirmation-actions form {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
