:root {
  --bg: #090C0B;
  --card: #121918;
  --line: #1E2B29;
  --pine: #2D8A7E;
  --glacial: #67B7B2;
  --frost: #F0F5F4;
  --sage: #94A6A3;
  --s: 16px;
  --danger: #e06c75;
  --success: #2D8A7E;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--sage);
  font: var(--s)/1.6 Inter, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% 0, #10201d, var(--bg) 70%) var(--bg);
}

h1, h2, h3, .logo, summary {
  color: var(--frost);
  font-family: 'Barlow Condensed', Impact, sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  margin: .2em 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 .6em;
}

h3 {
  font-size: 1.5rem;
  margin: .3em 0;
}

i {
  color: var(--glacial);
  font-style: normal;
}

a {
  color: var(--glacial);
  text-decoration: none;
}

a:hover {
  color: var(--frost);
}

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

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 48px 20px;
}

.narrow {
  max-width: 800px;
}

/* =====================================================
   TICKER
===================================================== */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--pine), var(--glacial));
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 0;
}

.ticker div {
  display: inline-block;
  animation: run 40s linear infinite;
}

.ticker span::after {
  content: " \2022 ";
  margin: 0 24px;
}

.ticker:hover div {
  animation-play-state: paused;
}

@keyframes run {
  to {
    transform: translateX(-50%);
  }
}

/* =====================================================
   HEADER & NAVIGATION
===================================================== */
header {
  position: sticky;
  top: 0;
  background: rgba(9, 12, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  text-decoration: none;
  font-size: 1.8rem;
  letter-spacing: .05em;
}

.logo small {
  display: block;
  font: 11px Inter, sans-serif;
  letter-spacing: .2em;
  color: var(--sage);
  text-transform: uppercase;
}

.nav-group {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 24px;
  color: var(--frost);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
  transition: color .2s;
}

nav a:hover,
nav a[aria-current] {
  color: var(--glacial);
}

nav a[aria-current] {
  border-bottom: 2px solid var(--glacial);
}

.header-actions {
  display: flex;
  align-items: center;
  margin-left: 24px;
  gap: 12px;
}

#bag-btn {
  background: var(--card);
  color: var(--frost);
  border: 1px solid var(--pine);
  padding: 8px 16px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  transition: background .2s, border-color .2s;
}

#bag-btn:hover {
  background: var(--line);
  border-color: var(--glacial);
}

#bag-count {
  background: var(--glacial);
  color: var(--bg);
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
}

#menu {
  display: none;
  background: var(--card);
  color: var(--frost);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* =====================================================
   CINEMATIC HERO SLIDER
===================================================== */
.slider {
  display: grid;
  position: relative;
  border-bottom: 1px solid var(--line);
  min-height: 560px;
  overflow: hidden;
}

.slide {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.slide.on {
  opacity: 1;
  visibility: visible;
}

/* Individual Cinematic Backgrounds with Scrim Gradients */
.slide:nth-child(1) {
  background-image: linear-gradient(90deg, rgba(9, 12, 11, 0.95) 0%, rgba(9, 12, 11, 0.82) 42%, rgba(9, 12, 11, 0.25) 100%), url('images/ironkit-hero-kit.jpg');
}

.slide:nth-child(2) {
  background-image: linear-gradient(90deg, rgba(9, 12, 11, 0.95) 0%, rgba(9, 12, 11, 0.82) 42%, rgba(9, 12, 11, 0.25) 100%), url('images/ironkit-sharp-beard-kit.jpg');
}

.slide:nth-child(3) {
  background-image: linear-gradient(90deg, rgba(9, 12, 11, 0.95) 0%, rgba(9, 12, 11, 0.82) 42%, rgba(9, 12, 11, 0.25) 100%), url('images/ironkit-full-ironkit.jpg');
}

.hero-box {
  max-width: 620px;
  padding: 30px 0;
}

.big {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--frost);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  margin: .2em 0;
}

.lead {
  font-size: 1.15rem;
  color: var(--frost);
  margin-bottom: 24px;
  line-height: 1.5;
}

.dots {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 5;
}

.dots button {
  background: rgba(18, 25, 24, 0.8);
  color: var(--sage);
  border: 1px solid var(--line);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  min-height: 44px;
}

.dots button:hover {
  color: var(--frost);
  border-color: var(--glacial);
}

/* =====================================================
   GRIDS & LAYOUT
===================================================== */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

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

.four {
  grid-template-columns: repeat(4, 1fr);
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 32px;
}

.filter-btn {
  background: var(--card);
  color: var(--sage);
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  min-height: 44px;
  transition: all .2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--line);
  color: var(--frost);
  border-color: var(--glacial);
}

/* =====================================================
   CARDS & PRODUCTS
===================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px;
  text-decoration: none;
  color: var(--sage);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--pine);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #0b0f0e;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover img {
  transform: scale(1.02);
}

.tag {
  color: var(--glacial);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 6px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sage);
  margin-bottom: 4px;
}

.meta-tag {
  color: var(--glacial);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .12em;
}

.meta-size {
  color: var(--sage);
  font-weight: 600;
}

.benefit {
  font-size: 14px;
  color: var(--frost);
  line-height: 1.45;
  margin: 6px 0 10px;
}

.spec {
  font-size: 13px;
  color: var(--sage);
  margin: 3px 0;
  line-height: 1.4;
}

.spec strong {
  color: var(--frost);
  font-weight: 600;
}

.price {
  font-weight: 700;
  color: var(--frost);
  font-size: 1.25rem;
  margin: 14px 0;
  margin-top: auto;
}

.price small {
  color: var(--sage);
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}

.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.card-actions .btn {
  flex: 1;
  margin: 0;
  text-align: center;
}

.btn-guide {
  font-size: 13px;
  font-weight: 600;
  color: var(--glacial);
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-guide:hover {
  text-decoration: underline;
  color: var(--frost);
}

.cat {
  scroll-margin-top: 90px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-block;
  background: var(--glacial);
  color: var(--bg);
  border: 1px solid var(--glacial);
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin: 4px 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  min-height: 44px;
  line-height: 1.3;
  transition: all .2s;
}

.btn:hover {
  background: #7fd0cb;
  border-color: #7fd0cb;
  color: var(--bg);
}

.btn.ghost {
  background: transparent;
  color: var(--glacial);
  border-color: var(--pine);
}

.btn.ghost:hover {
  background: rgba(45, 138, 126, 0.15);
  border-color: var(--glacial);
  color: var(--frost);
}

.btn-add.added {
  background: var(--pine) !important;
  border-color: var(--pine) !important;
  color: #fff !important;
}

:focus-visible {
  outline: 3px solid var(--glacial);
  outline-offset: 2px;
}

/* =====================================================
   FORMS & INPUTS
===================================================== */
label {
  display: block;
  margin-bottom: 16px;
  color: var(--frost);
  font-size: 14px;
  font-weight: 600;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--card);
  color: var(--frost);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 15px;
  border-radius: 0;
  min-height: 44px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--glacial);
  outline: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 14px;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--glacial);
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.hp {
  display: none !important;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* =====================================================
   CART DRAWER & OVERLAY
===================================================== */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--line);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.6rem;
  margin: 0;
}

#cart-close {
  background: transparent;
  color: var(--frost);
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

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

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--sage);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: #0b0f0e;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  color: var(--frost);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--glacial);
  font-weight: 700;
  font-size: 14px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  background: var(--bg);
  color: var(--frost);
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.qty-btn:hover {
  border-color: var(--glacial);
}

.cart-item-qty {
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--sage);
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  background: rgba(9, 12, 11, 0.5);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-summary-row.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--frost);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.cart-note {
  font-size: 12px;
  color: var(--glacial);
  margin: 8px 0 16px;
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* =====================================================
   CHECKOUT PAGE
===================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.checkout-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
}

.order-items-list {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30, 43, 41, 0.5);
  font-size: 14px;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: var(--frost);
  padding-top: 12px;
}

.payment-options {
  margin: 16px 0;
}

.payment-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--bg);
}

.payment-opt input {
  width: auto;
  margin: 0;
  min-height: auto;
}

.order-confirm-box {
  background: var(--card);
  border: 1px solid var(--pine);
  padding: 32px;
  margin-top: 24px;
}

.order-confirm-box h2 {
  color: var(--glacial);
}

/* =====================================================
   TABLE OF CONTENTS & COMPARISON TABLE
===================================================== */
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin: 24px 0 40px;
}

.toc h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--glacial);
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.toc-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--frost);
  padding: 4px 0;
  border-bottom: 1px dotted var(--line);
}

.toc-links a:hover {
  color: var(--glacial);
  border-color: var(--glacial);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--line);
}

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

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--card);
  color: var(--frost);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: .08em;
}

td strong {
  color: var(--frost);
}

/* =====================================================
   DETAILS & ACCORDION
===================================================== */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

details summary {
  cursor: pointer;
  font-size: 1.25rem;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: .05em;
}

details summary:hover {
  color: var(--glacial);
}

details p {
  margin-top: 10px;
  font-size: 15px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  border-top: 1px solid var(--line);
  font-size: 14px;
  background: #060908;
  margin-top: 48px;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: var(--sage);
}

footer a:hover {
  color: var(--glacial);
}

.muted {
  color: #617370;
  font-size: 13px;
}

/* =====================================================
   MEDIA QUERIES & RESPONSIVENESS
===================================================== */
@media(max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
  }
  .grid, .four {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 768px) {
  .wrap {
    padding: 32px 16px;
  }
  
  #menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav.open {
    display: flex;
  }
  
  nav a {
    margin: 0;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(30, 43, 41, 0.5);
    font-size: 16px;
  }
  
  nav a[aria-current] {
    border-bottom: 1px solid var(--glacial);
  }
  
  .slide {
    min-height: 480px;
    background-position: center bottom;
  }
  
  .slide:nth-child(1),
  .slide:nth-child(2),
  .slide:nth-child(3) {
    background-image: linear-gradient(180deg, rgba(9, 12, 11, 0.94) 0%, rgba(9, 12, 11, 0.8) 50%, rgba(9, 12, 11, 0.9) 100%), var(--bg);
  }
  
  .hero-box {
    padding: 24px 0 60px;
  }
  
  .dots {
    bottom: 12px;
    right: 16px;
  }
}

@media(max-width: 600px) {
  .grid, .four {
    grid-template-columns: 1fr;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .card-actions .btn {
    width: 100%;
  }
  
  #cart-drawer {
    width: 100vw;
  }
}

@media(prefers-reduced-motion: reduce) {
  .ticker div {
    animation: none;
  }
  .slide {
    transition: none;
  }
  .card {
    transition: none;
  }
}
