:root {
  --black: #090909;
  --charcoal: #151515;
  --white: #ffffff;
  --offwhite: #f3f1ed;
  --line: #d9d6d0;
  --muted: #6f6d69;
  --accent: #e31b23;
  --accent-dark: #bd1017;
  --shadow: 0 24px 70px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--offwhite);
  font-family: Inter, Arial, sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9,9,9,.97);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  max-width: 1380px;
  margin: auto;
  padding: 18px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand-mark {
  font-family: Oswald, sans-serif;
  font-size: 25px;
  letter-spacing: .16em;
  font-weight: 600;
}
.brand-sub {
  color: #aaa;
  font-size: 9px;
  letter-spacing: .16em;
  margin-top: 3px;
}
.basket-button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
}
.basket-count {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--accent);
  border-radius: 50%;
  font-size: 12px;
}

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
  background: #000;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(227,27,35,.28) 54.1% 54.5%, transparent 54.6%),
    linear-gradient(165deg, transparent 0 73%, rgba(255,255,255,.07) 73.1% 73.3%, transparent 73.4%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  width: 100%;
  margin: auto;
  padding: 100px 5vw;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}
.eyebrow.dark { color: var(--accent); }
.hero h1, h2 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: .92;
  margin: 0;
}
.hero h1 { font-size: clamp(64px, 9vw, 126px); }
.hero h1 span { color: var(--accent); }
.hero-copy {
  max-width: 540px;
  color: #ddd;
  line-height: 1.7;
  margin: 28px 0 35px;
}
.hero-cta {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  padding: 16px 22px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.hero-cta:hover { background: var(--accent-dark); }

.intro, .products-section, .order-note {
  max-width: 1380px;
  margin: auto;
  padding-left: 5vw;
  padding-right: 5vw;
}
.intro {
  padding-top: 95px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
h2 { font-size: clamp(42px, 5vw, 70px); }
.intro-copy, .section-heading > p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.category-nav {
  max-width: 1380px;
  margin: auto;
  padding: 0 5vw;
  display: flex;
  gap: 2px;
  overflow-x: auto;
}
.category-nav button {
  flex: 1 0 auto;
  border: 0;
  padding: 18px 24px;
  background: #ddd9d2;
  color: #555;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.category-nav button.active {
  color: #fff;
  background: var(--black);
}

.products-section { padding-top: 75px; padding-bottom: 60px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}
.section-heading h2 { font-size: clamp(38px, 4.5vw, 62px); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid #e0ddd7;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.product-image {
  height: 220px;
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  overflow: hidden;
}
.product-image:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.25);
  transform: rotate(45deg);
}
.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.product-image span {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 14px;
  font-family: Oswald, sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px #000;
}
.product-body {
  padding: 25px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-tag {
  font-size: 9px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 9px;
}
.product-body h3 {
  margin: 0 0 10px;
  font-family: Oswald, sans-serif;
  font-size: 28px;
  line-height: 1;
}
.product-body p {
  margin: 0 0 22px;
  color: #777;
  line-height: 1.55;
  font-size: 13px;
}
.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.add-button {
  border: 0;
  background: var(--black);
  color: #fff;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
.add-button:hover { background: var(--accent); }

.order-note {
  margin-bottom: 90px;
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: #dedbd5;
}
.note-icon, .success-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  font-weight: 800;
}
.note-icon svg {
  width: 30px;
  height: 24px;
  display: block;
}
.order-note strong { font-size: 12px; letter-spacing: .12em; }
.order-note p { margin: 6px 0 0; color: #666; font-size: 13px; }

footer {
  background: var(--black);
  color: #999;
}
.footer-inner {
  max-width: 1380px;
  margin: auto;
  padding: 35px 5vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: .16em;
}

.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 30;
}
.drawer-backdrop.open, .modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.basket-drawer {
  position: fixed;
  z-index: 31;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100vh;
  height: 100dvh;
  background: #f7f5f1;
  transform: translateX(100%);
  transition: .3s ease;
  display: block;
  overflow: hidden;
}
.basket-drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.drawer-header h2 { font-size: 42px; }
.close-button {
  border: 0;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: #222;
}
.basket-items {
  position: absolute;
  top: 115px;
  bottom: 150px;
  left: 0;
  right: 0;
  padding: 18px 30px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.empty-basket {
  padding: 50px 0;
  text-align: center;
  color: #777;
}
.basket-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.basket-row h4 {
  margin: 0 0 5px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
}
.basket-row small { color: #888; }
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.quantity button {
  width: 26px;
  height: 26px;
  border: 1px solid #bbb;
  background: #fff;
  cursor: pointer;
}
.remove {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}
.basket-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 18px 30px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #f7f5f1;
  box-shadow: 0 -10px 30px rgba(0,0,0,.10);
}
.basket-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: .12em;
}
.checkout-button {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 17px 20px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}
.checkout-button:hover { background: var(--accent-dark); }
.checkout-button:disabled { opacity: .45; cursor: not-allowed; }

.checkout-modal {
  position: fixed;
  z-index: 41;
  width: min(620px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  background: #f7f5f1;
  padding: 45px;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  box-shadow: var(--shadow);
}
.checkout-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.modal-close { position: absolute; top: 20px; right: 24px; }
.modal-copy { color: #777; line-height: 1.6; }
#checkoutForm { display: grid; gap: 18px; margin-top: 28px; }
#checkoutForm label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#checkoutForm label span { color: #999; font-weight: 500; }
.dealer-hint { display: block; margin-top: 7px; color: #888; font-size: 11px; letter-spacing: .02em; text-transform: none; font-weight: 500; }
#dealerName[readonly] { background: #eeeae4; color: #333; cursor: not-allowed; }
#dealerCode:invalid:not(:placeholder-shown) { border-color: var(--accent); }
input, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ccc8c0;
  background: #fff;
  padding: 14px;
  outline: none;
  font-size: 14px;
}
input:focus, textarea:focus { border-color: var(--black); }
.checkout-review {
  margin: 6px 0 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .12em;
}
.success-view { text-align: center; padding: 30px 10px 10px; }
.success-view .success-mark { margin: 0 auto 25px; }
.success-view h2 { font-size: 60px; }
.success-view p:not(.eyebrow) { color: #666; line-height: 1.7; margin-bottom: 28px; }

@media (max-width: 850px) {
  .intro, .section-heading { grid-template-columns: 1fr; display: grid; }
  .intro { gap: 30px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .product-image { height: 190px; min-height: 190px; }
  .basket-drawer { height: 100dvh; }
  .basket-items { top: 112px; bottom: 145px; padding: 18px 20px 30px; }
  .basket-footer { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
  .header-inner { padding: 15px 20px; }
  .brand-mark { font-size: 20px; }
  .brand-sub { font-size: 7px; }
  .hero { min-height: 580px; }
  .hero-content, .intro, .products-section, .order-note { padding-left: 20px; padding-right: 20px; }
  .category-nav { padding: 0 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .checkout-modal { padding: 38px 24px 24px; }
  .footer-inner { padding-left: 20px; padding-right: 20px; flex-direction: column; }
}

.hidden-field { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

.basket-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  background: #090909;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  font-size: 12px;
}
.basket-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast-check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: #e31b23;
  border-radius: 50%;
  font-weight: 800;
}
.basket-toast strong { font-weight: 700; }

@media (max-width: 600px) {
  .basket-toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    font-size: 11px;
  }
}


/* Clean category navigation: text headers replace the large image tiles. */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f7f5f1;
  border-bottom: 1px solid #d9d6cf;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 17px 22px;
  border: 0;
  border-right: 1px solid #d9d6cf;
  background: #ebe8e1;
  color: #555;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
}
.category-nav button.active {
  background: #090909;
  color: #fff;
}
@media (max-width: 600px) {
  .category-nav button {
    min-width: 205px;
    padding: 16px 18px;
  }
}

/* Fixed header + category bar: category tabs never slide underneath the header. */
:root { --site-header-height: 78px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--site-header-height);
  background: #090909;
  isolation: isolate;
}

.header-inner {
  height: 100%;
}

.category-nav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 90;
  background: #f7f5f1;
  border-bottom: 1px solid #d9d6cf;
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
  padding: 0;
  max-width: none;
}

.category-nav button {
  min-height: 54px;
}

@media (max-width: 600px) {
  :root { --site-header-height: 74px; }

  .site-header {
    height: var(--site-header-height);
  }

  .header-inner {
    padding: 12px 20px;
  }

  .brand-mark {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .basket-button {
    font-size: 10px;
    gap: 8px;
  }

  .basket-count {
    width: 28px;
    height: 28px;
  }

  .category-nav {
    top: var(--site-header-height);
  }

  .category-nav button {
    min-width: 205px;
    min-height: 52px;
    padding: 14px 18px;
  }
}

/* Category navigation scrolls away; only the main Triumph header remains sticky. */
.category-nav {
  position: relative !important;
  top: auto !important;
  z-index: 20;
  box-shadow: none;
}

@media (max-width: 600px) {
  .category-nav {
    position: relative !important;
    top: auto !important;
  }
}

/* High-resolution pack artwork */
.product-image {
  image-rendering: auto;
  overflow: hidden;
}
.product-image img {
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Product photography: show the complete pack image with generous breathing room. */
.product-image {
  height: 250px;
  min-height: 250px;
  background: #fff;
}
.product-image:before {
  display: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px 22px;
}
@media (max-width: 600px) {
  .product-image {
    height: 245px;
    min-height: 245px;
  }
  .product-image img {
    padding: 16px 26px;
  }
}

/* Product image placeholders until final approved photography is supplied. */
.product-image {
  height: 250px;
  min-height: 250px;
  background: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.product-image .image-placeholder {
  position: static;
  color: #999;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-shadow: none;
}
@media (max-width: 600px) {
  .product-image {
    height: 230px;
    min-height: 230px;
  }
}

/* Clean pack headings: no repeated red category labels. */
.section-eyebrow,
.product-tag {
  display: none !important;
}

/* Repeated red category label on individual packs only. */
.product-tag {
  display: block !important;
  color: #e31b23;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-eyebrow {
  display: none !important;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product-original {
  color: #222;
  text-decoration: line-through;
  font-weight: 600;
}
.product-discounted {
  color: #e31b23;
  font-size: 22px;
  font-weight: 800;
}
.product-saving {
  flex-basis: 100%;
  color: #e31b23;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}
.basket-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.basket-price s { color: #777; }
.basket-price strong { color: #e31b23; }
.header-saving {
  color: #e31b23;
  font-weight: 800;
  font-size: 11px;
  margin-left: auto;
  margin-right: 12px;
  white-space: nowrap;
}
.basket-saving-row, .basket-total-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.basket-saving-row { color:#e31b23; font-weight:800; }
.basket-total-row { font-size:18px; font-weight:900; margin-bottom:14px; }
@media (max-width:600px) {
  .header-saving { position:absolute; right:72px; bottom:7px; font-size:10px; }
}

.continue-shopping-button {
  width: 100%;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  min-height: 48px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 11px;
  margin-bottom: 10px;
  cursor: pointer;
}
.continue-shopping-button:hover {
  background: #f1efeb;
}

/* Basket drawer: keep the fixed actions from covering the final basket item. */
.basket-items {
  bottom: 305px;
  padding-bottom: 42px;
}

@media (max-width: 600px) {
  .basket-items {
    bottom: 335px;
    padding-bottom: 50px;
  }
}

@media (max-height: 760px) and (max-width: 600px) {
  .basket-items {
    bottom: 320px;
  }
}

/* Basket drawer sits below the fixed Triumph header so its title is never obscured. */
.basket-drawer {
  top: var(--site-header-height);
  height: calc(100vh - var(--site-header-height));
  height: calc(100dvh - var(--site-header-height));
}

@media (max-width: 600px) {
  .basket-drawer {
    top: var(--site-header-height);
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
  }
}

/* Basket drawer heading: red YOUR ORDER label only. */
.basket-drawer .order-heading {
  color: #e31b23;
}

/* Compact basket header: keep only the small YOUR ORDER label. */
.basket-drawer .drawer-header {
  min-height: 150px;
}

/* Compact basket drawer header. */
.basket-drawer .drawer-header {
  min-height: 92px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.basket-drawer .drawer-header .eyebrow {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .basket-drawer .drawer-header {
    min-height: 92px;
    padding-top: 20px;
    padding-bottom: 16px;
  }
}

/* Keep total saving directly underneath the basket control. */
.basket-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-left: auto;
}

.basket-cluster .header-saving {
  position: static;
  text-align: right;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 600px) {
  .basket-cluster {
    gap: 2px;
  }
}

/* Align saving with the left edge of ORDER in the header. */
.basket-cluster {
  align-items: flex-start;
}
.basket-cluster .header-saving {
  text-align: left;
  padding-left: 0;
}

/* Triumph header logo is a home link. */
.site-header .brand {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Larger basket drawer title. */
.basket-drawer .drawer-header {
  min-height: 118px;
  padding-top: 24px;
  padding-bottom: 22px;
}
.basket-drawer .basket-drawer-title {
  margin: 0;
  color: #e31b23;
  font-family: Oswald, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}
.basket-drawer .basket-items {
  top: 125px;
}
@media (max-width: 600px) {
  .basket-drawer .drawer-header {
    min-height: 118px;
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .basket-drawer .basket-drawer-title {
    font-size: 28px;
  }
  .basket-drawer .basket-items {
    top: 125px;
  }
}

/* Consistent CTA sizing across every product pack. */
.add-button {
  width: 180px;
  min-width: 180px;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 180px;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .add-button {
    width: 180px;
    min-width: 180px;
    flex-basis: 180px;
  }
}

/* iPhone Safari: keep form controls at 16px to prevent focus auto-zoom. */
@media (max-width: 767px) {
  input, textarea, select { font-size: 16px !important; }
}
