/* Shared colors and spacing keep future branding changes straightforward. */
:root {
  --navy: #102f42;
  --navy-light: #1d4659;
  --lime: #c2ef78;
  --paper: #f7f8f4;
  --white: #ffffff;
  --text: #172f3c;
  --muted: #61717a;
  --border: #dde3df;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #408398;
  outline-offset: 4px;
}

.container { width: min(1180px, 90%); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: white;
  z-index: 10;
}
.skip-link:focus { top: 10px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.navigation, .logo, nav, .footer-layout {
  display: flex;
  align-items: center;
}
.navigation { min-height: 88px; justify-content: space-between; gap: 20px; }
.logo { font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.logo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--lime);
  margin-right: 9px;
  border-radius: 9px;
  font-size: 21px;
}
.logo-dot { color: #5b842b; }
nav { gap: 30px; font-size: 14px; }
nav a:hover { color: #587733; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 650;
  transition: background .2s, transform .2s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-outline { background: transparent; border-color: var(--border); }
.button-accent { background: var(--lime); color: var(--navy); }
.button-dark { background: var(--navy); color: white; }
#cart-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 12px;
}

/* Hero and decorative boat illustration */
.hero { background: var(--navy); color: white; overflow: hidden; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  padding-block: 78px;
}
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.hero .eyebrow { color: var(--lime); }
h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 22px 0;
}
.hero-description { max-width: 420px; color: #c4d4db; margin-bottom: 30px; }
.hero-note { font-size: 12px; color: #aac0cb; margin-top: 21px; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  background: radial-gradient(ellipse, #29596c, transparent 70%);
}
.boat { width: 100%; position: relative; z-index: 1; }
.orbit {
  position: absolute;
  border: 1px solid #ffffff13;
  border-radius: 50%;
  width: 310px;
  height: 310px;
}
.orbit-two { width: 390px; height: 390px; }
.art-label {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  letter-spacing: 3px;
  color: #aac0cb;
}
.benefits { border-bottom: 1px solid var(--border); background: #edf0e9; }
.benefits-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 21px;
  font-size: 13px;
  font-weight: 600;
}

/* Catalog */
.catalog { padding-block: 70px; scroll-margin-top: 20px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
h2 { font-size: clamp(25px, 3vw, 35px); line-height: 1.2; letter-spacing: -1px; margin: 10px 0; }
.section-heading > p { color: var(--muted); font-size: 13px; max-width: 240px; }
.catalog-controls {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 18px;
  background: transparent;
  font-size: 13px;
}
.filter.active { background: var(--navy); color: white; border-color: var(--navy); }
input, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--text);
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {  text-transform: capitalize; background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-art {
  position: relative;
  height: 185px;
  display: grid;
  place-items: center;
  background: #eaf0ec;
}
.product-art svg { width: 92px; height: 92px; color: var(--navy-light); }
.product-category {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #52685d;
}
.product-content { padding: 22px; }
.product-content h3 { margin: 0 0 6px; font-size: 18px; }
.product-description { margin: 0; font-size: 13px; color: var(--muted); min-height: 44px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.product-price { font-size: 20px; font-weight: 750; }
.add-button {
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  padding: 10px 15px;
  font-size: 13px;
}
.add-button:hover { background: var(--navy-light); }
.empty-state { text-align: center; padding: 40px; color: var(--muted); }

/* About and footer */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  padding-block: 46px 66px;
}
.about > p { color: var(--muted); max-width: 460px; }
footer { background: white; border-top: 1px solid var(--border); padding-block: 28px; }
.footer-layout { justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer p { color: var(--muted); font-size: 12px; }

/* Shopping cart */
dialog {
  width: min(530px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 26px;
  border: 0;
  border-radius: 20px;
  color: var(--text);
}
dialog::backdrop { background: #071b2ac2; backdrop-filter: blur(4px); }
.cart-header, .total-row, .cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-item {

    text-transform: capitalize;
}
.cart-header { margin-bottom: 20px; }
.cart-header h2 { font-size: 26px; }
.icon-button { border: 0; background: #edf0e9; border-radius: 8px; width: 40px; height: 40px; }
.cart-item { border-bottom: 1px solid var(--border); padding-block: 16px; }
.cart-item h3 { margin: 0; font-size: 15px; }
.cart-item p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.quantity-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.quantity-controls button { width: 30px; height: 32px; border: 1px solid var(--border); background: white; border-radius: 6px; }
.cart-summary { padding-top: 22px; }
.total-row { font-size: 20px; }
.muted, .payment-note, #checkout-message { font-size: 13px; color: var(--muted); }
.cart-summary label { display: block; font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
.payment-note { background: #f1f5e9; border-radius: 8px; padding: 12px; }
.checkout-button { width: 100%; }

/* Tablet and mobile layouts */
@media (max-width: 850px) {
  .hero-layout { gap: 20px; }
  .hero-art { min-height: 260px; }
  .orbit { width: 220px; height: 220px; }
  .orbit-two { width: 280px; height: 280px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; }
  .catalog-controls { flex-direction: column; }
  .search { max-width: 400px; }
}
@media (max-width: 580px) {
  .navigation { min-height: 76px; gap: 10px; }
  .logo { font-size: 20px; }
  .logo-icon { display: none; }
  nav { display: none; }
  .navigation .button { padding: 8px 12px; gap: 10px; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 45px 30px; }
  .hero-art { min-height: 240px; }
  .boat { max-width: 330px; }
  .benefits-layout { flex-direction: column; gap: 8px; font-size: 12px; }
  .catalog { padding-block: 45px; }
  .section-heading { flex-direction: column; gap: 5px; }
  .section-heading > p { max-width: none; }
  .product-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 10px; }
  .footer-layout { flex-direction: column; align-items: start; gap: 5px; }
  dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Show the complete product without stretching or cropping it. */
.product-image {
  display: block;
  width: inherit;
  height: inherit;
  object-fit: contain;
  
}


/* Vessel delivery form */
.delivery-fields {
  min-width: 0;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.delivery-fields legend {
  padding-inline: 6px;
  font-size: 15px;
  font-weight: 750;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.delivery-grid > div {
  min-width: 0;
}

.cart-summary .delivery-fields label {
  margin-top: 14px;
}

.field-help {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.location-fields {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.location-fields legend {
  padding: 0;
  font-size: 14px;
}

textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: white;
  font: inherit;
  resize: vertical;
}

.price-breakdown {
  padding-top: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

.price-breakdown .total-row {
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 17px;
}

.price-breakdown strong {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .delivery-fields {
    padding: 12px;
  }
}


/* Mock crypto gateway */
.mock-gateway {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mock-gateway h3 {
  margin: 8px 0 16px;
  font-size: 22px;
}

.payment-details {
  margin: 20px 0;
}

.payment-details > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 8px;
}

.payment-details dt {
  color: var(--muted);
  font-size: 13px;
}

.payment-details dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 650;
}

.wallet-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#wallet-address {
  min-width: 0;
  font-family: monospace;
  font-size: 12px;
  background: var(--paper);
}

#payment-receipt {
  font-size: 13px;
}

#payment-receipt::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  cursor: pointer;
}

.receipt-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  margin-block: 16px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}

#payment-status:not(:empty) {
  margin-top: 16px;
  padding: 14px;
  border-radius: 9px;
  background: #fff4d6;
  color: #654c13;
  font-size: 13px;
}

/* Floating customer support */
.support-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
}

.support-toggle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-left: auto;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  box-shadow: 0 8px 26px #102f4230;
  cursor: pointer;
}

.support-toggle:hover {
  background: var(--navy-light);
}

.support-toggle svg {
  width: 27px;
  height: 27px;
}

.support-panel {
  width: min(290px, calc(100vw - 40px));
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  color: var(--text);
  box-shadow: 0 12px 40px #102f4226;
}

.support-panel h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.support-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

.support-option:hover {
  background: var(--paper);
  border-color: #94b66a;
}

/* Receipt confirmation modal */
.order-confirmation {
  width: min(480px, calc(100% - 28px));
  padding: 32px 24px;
  text-align: center;
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--navy);
  font-size: 30px;
  font-weight: 750;
}

.order-confirmation h2 {
  font-size: 28px;
}

#confirmation-description {
  color: var(--muted);
  font-size: 15px;
}

.confirmation-badge {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 8px 14px;
  border-radius: 30px;
  background: #fff4d6;
  color: #654c13;
  font-size: 12px;
  font-weight: 700;
}

.confirmation-support {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 24px 16px;
}

.confirmation-support a {
  flex: 1 1 160px;
}