:root {
  --dark: #171717;
  --darker: #101010;
  --accent: #f4b400;
  --red: #b3242b;
  --blue: #147ba8;
  --light: #f6f6f6;
  --text: #303030;
  --muted: #666;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Rubik, Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #fff;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px 16px 0;
  background: transparent;
  pointer-events: none;
}

.nav {
  position: relative;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  color: #151515;
  box-shadow: 0 12px 34px rgba(5, 20, 31, .16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.site-name,
.site-name:visited,
.site-name:hover,
.site-name:active {
  color: #151515;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.site-name:hover,
.menu a:hover {
  color: #8a0008;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
}

.menu a {
  color: #151515;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  opacity: 1;
}

.cart-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 21, 21, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #151515;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .66)), url("../images/dash-5-1400x788.png") center/cover no-repeat;
  padding: 132px 24px 78px;
}

.hero.small {
  min-height: 50vh;
  padding-bottom: 64px;
}

.hero-inner {
  max-width: 980px;
}

.hero-logo {
  width: min(520px, 82vw);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .38));
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .45);
}

.hero p {
  font-size: clamp(17px, 2vw, 22px);
  max-width: 860px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
  padding: 14px 24px;
  font-weight: 700;
  margin: 6px;
  cursor: pointer;
}

.btn.secondary {
  background: #fff;
  color: #111;
}

.btn.paypal {
  background: #005ea6;
  color: #fff;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.section {
  padding: 74px 24px;
}

.section.dark {
  background: #242424;
  color: #fff;
}

.section.grey {
  background: #f4f4f4;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.center {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: var(--red);
  font-weight: 800;
}

.dark .eyebrow {
  color: #ffd04d;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.section h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.lead {
  font-size: 20px;
  color: #555;
  max-width: 900px;
  margin: 0 auto 30px;
}

.lead.left {
  margin-left: 0;
}

.dark .lead {
  color: #ddd;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
  height: 100%;
}

.card p {
  margin: 0;
}

.feature-card {
  border-top: 4px solid var(--red);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
  color: #555;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 18px;
  border-bottom: 1px solid #eee;
}

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

.product-body .btn {
  width: max-content;
  margin-top: auto;
  margin-left: 0;
}

.product-body [data-product-action] {
  margin-top: auto;
}

.product-body [data-product-action] .btn {
  margin-top: 0;
}

.stock {
  width: max-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e5f4e9;
  color: #17552c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stock.out {
  background: #f7e4e5;
  color: #8a0008;
}

.price {
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0;
  color: #111;
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6e6e6;
}

th {
  background: #222;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

td:first-child,
td:nth-child(3) {
  font-weight: 800;
  white-space: nowrap;
}

td .btn {
  padding: 10px 14px;
  margin: 0;
}

td .stock {
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}

.list {
  padding-left: 20px;
}

.list li {
  margin: 9px 0;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-list {
  display: grid;
  gap: 14px;
}

.video-library-heading {
  white-space: nowrap;
}

.video-preview {
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.video-preview summary {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.video-preview summary::-webkit-details-marker {
  display: none;
}

.video-preview summary::after {
  content: "Open";
  justify-self: end;
  grid-column: 2;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.video-preview[open] summary::after {
  content: "Close";
}

.video-preview img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.video-preview strong {
  display: block;
  line-height: 1.25;
}

.video-preview small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.video-preview .video-frame {
  margin: 0 14px 14px;
}

.contact-box {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.contact-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 12px 13px;
  font: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form button {
  width: max-content;
}

.map-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
  margin-top: 24px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .72;
}

.turnstile-wrap {
  min-height: 0;
}

.turnstile-wrap.cf-turnstile {
  margin: 4px 0 2px;
}

.turnstile-wrap:empty {
  display: none;
}

.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 17px;
  background: #151515;
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.cart-fab.visible {
  display: inline-flex;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(0, 0, 0, .38);
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(440px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  box-shadow: -18px 0 44px rgba(0, 0, 0, .18);
  transform: translateX(105%);
  transition: transform .2s ease;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e6e6e6;
}

.cart-header h2 {
  margin: 0;
  font-size: 26px;
}

.cart-close {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 26px;
  cursor: pointer;
}

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

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

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.quantity button,
.cart-remove {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.quantity button {
  width: 30px;
  height: 30px;
}

.cart-remove {
  padding: 6px 9px;
  color: #8a0008;
}

.cart-footer {
  border-top: 1px solid #e6e6e6;
  padding-top: 18px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

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

.checkout-note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 16px;
}

.checkout-button {
  width: 100%;
  margin: 0;
}

.footer {
  padding: 0;
  background: linear-gradient(rgba(0, 0, 0, .76), rgba(0, 0, 0, .88)), url("../images/dash-5-1400x788.png") center/cover no-repeat;
  color: #eee;
  text-align: center;
}

.footer-overlay {
  padding: 42px 20px 36px;
  background: rgba(0, 0, 0, .2);
}

.footer p {
  margin: 6px 0;
}

.footer a {
  color: #fff;
}

.copyright {
  font-size: 14px;
  color: #aaa;
}

@media (max-width: 950px) {
  .grid.cols-2,
  .grid.cols-3,
  .split,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    align-items: start;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding-inline: 10px;
  }

  .nav {
    width: min(100% - 8px, 620px);
    max-width: calc(100vw - 20px);
    min-height: 64px;
    border-radius: 28px;
    gap: 12px;
  }

  .brand img {
    height: 38px;
  }

  .site-name {
    font-size: .98rem;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 20px;
    background: rgba(255, 255, 255, .86);
    color: #151515;
    box-shadow: 0 18px 44px rgba(5, 20, 31, .2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .menu.open {
    display: flex;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu a {
    color: #151515;
  }

  .hero {
    padding-top: 150px;
  }
}

@media (max-width: 650px) {
  .form-row,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-form button,
  .product-body .btn {
    width: 100%;
  }

  .nav {
    width: min(100% - 20px, 1160px);
  }

  .brand img {
    height: 34px;
  }

  .site-name {
    display: none;
  }

  .menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .section {
    padding: 58px 18px;
  }

  .product-card img {
    height: 185px;
  }

  .hero h1 {
    font-size: 34px;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 13px;
  }

  .cart-drawer {
    padding: 18px;
  }

  .video-preview summary {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
  }

  .video-preview img {
    width: 110px;
  }

  .video-library-heading {
    white-space: normal;
  }
}

.admin-body {
  background: #f4f4f4;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.admin-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
  padding: 28px;
}

.admin-card h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.admin-card h2 {
  margin-top: 34px;
  font-size: 22px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-topbar p {
  margin: 0;
  color: var(--muted);
}

.admin-topbar nav {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.admin-form,
.admin-batch-form,
.admin-product-form {
  display: grid;
  gap: 14px;
}

.admin-form label,
.admin-product-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.admin-form input,
.admin-product-form input,
.admin-product-form textarea,
.admin-product-form select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
}

.admin-login {
  max-width: 460px;
  margin: 12vh auto 0;
}

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

.admin-product-list {
  display: grid;
  gap: 18px;
}

.admin-product-form {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 18px;
  background: #fbfbfb;
}

.admin-product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #111;
}

.admin-product-head span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.admin-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.admin-checkbox input {
  width: auto;
}

.admin-success,
.admin-error {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.admin-success {
  background: #e5f4e9;
  color: #17552c;
}

.admin-error {
  background: #f7e4e5;
  color: #8a0008;
}

.setup-secret {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fbfbfb;
}

.setup-secret code,
.admin-card code {
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  overflow: auto;
  margin-bottom: 26px;
  border-radius: 8px;
}

.admin-table-wrap table {
  min-width: 760px;
}

.admin-save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(560px, 100%);
  margin: 22px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(5, 20, 31, .16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 800;
}

.admin-save-bar.visible {
  display: flex;
}

.admin-save-bar.saved {
  border-color: rgba(23, 85, 44, .28);
  background: rgba(229, 244, 233, .96);
  color: #17552c;
}

.admin-save-bar.dirty {
  border-color: rgba(138, 0, 8, .22);
}

.admin-save-bar .btn {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 850px) {
  .admin-topbar,
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }
}
