
:root {
  --background: #05091e;
  --panel: #0d1430;
  --panel-light: #121c3a;
  --text: #f4f6ff;
  --muted: #a4aec9;
  --accent: #72e2db;
  --border: rgba(255,255,255,.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

body.cart-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.equipment-header {
  min-height: 78px;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(5,9,30,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.equipment-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.equipment-header nav a {
  color: var(--muted);
  font-size: 13px;
}

.equipment-header nav a:hover,
.equipment-header nav a.current {
  color: var(--accent);
}

.cart-button,
.checkout-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 19px;
  background: var(--accent);
  color: #061321;
  font-weight: 700;
  cursor: pointer;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 5px;
  border-radius: 50%;
  background: #061321;
  color: white;
  font-size: 12px;
}

.equipment-hero {
  padding: 50px 24px 45px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(62,129,180,.2), transparent 65%),
    var(--background);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
}

.equipment-hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.15;
}

.equipment-hero h1 {
  max-width: 850px;
  margin: auto;
  font-size: clamp(38px, 6vw, 68px);
}

.equipment-hero h1 em,
.section-heading h2 em {
  color: var(--accent);
  font-weight: 600;
}

.hero-copy {
  max-width: 580px;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.primary-button {
  display: inline-block;
}

.equipment-section {
  padding: 70px 6% 100px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

#equipmentSearch {
  width: min(100%, 270px);
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

#equipmentSearch:focus {
  border-color: var(--accent);
}

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

.equipment-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}

.equipment-card:hover {
  transform: translateY(-4px);
  border-color: rgba(114,226,219,.5);
}

.equipment-image {
  height: 245px;
  background: var(--panel-light);
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equipment-info {
  padding: 22px;
}

.product-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.equipment-info h3 {
  margin: 10px 0;
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

.equipment-info p {
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.product-price {
  font-size: 19px;
  font-weight: 700;
}

.add-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #061321;
  font-size: 26px;
  cursor: pointer;
}

.add-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.message {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.equipment-footer {
  padding: 35px 6%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.equipment-footer p {
  color: var(--muted);
  font-size: 13px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  padding: 25px;
  background: var(--panel);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .25s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-heading,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.drawer-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
}

.close-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 65px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.cart-item small {
  color: var(--muted);
}

.remove-item {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}

.cart-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.cart-total strong {
  font-size: 21px;
}

.shipping-note,
.continue-link {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.checkout-button {
  width: 100%;
  margin-top: 10px;
}

.checkout-button:disabled {
  opacity: .6;
  cursor: wait;
}

.continue-link {
  display: block;
  margin-top: 15px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-light);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .2s ease;
}

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

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

  .equipment-header nav {
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .equipment-header {
    padding: 15px 4%;
    flex-wrap: wrap;
    gap: 13px;
  }

  .equipment-header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .equipment-header nav a {
    font-size: 11px;
  }

  .brand {
    font-size: 20px;
  }

  .cart-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .equipment-hero {
    padding: 75px 20px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .equipment-section {
    padding: 50px 5% 70px;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  #equipmentSearch {
    width: 100%;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .equipment-image {
    height: 250px;
  }

  .equipment-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
