/* Figma-matched styles for Frantic Blades */
:root {
  --black: #000000;
  --dark-green: #355E3B;
  --red: #FF0000;
  --red-hover: #FF7F7F;
  --red-active: #AD0000;
  --btn-dark: #130E10;
  --btn-dark-hover: #777374;
  --btn-dark-active: #2C2C2C;
  --disabled-grey: #606060;
  --hover-grey: #777374;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

html {
  min-height: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: 'Montserrat', system-ui, -apple-system, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER (1440 x 70 px — Sticky Across All Pages)
   ========================================================================== */
.site-header {
  background: var(--black);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 70px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  width: 86px;
  height: 40px;
  overflow: hidden;
}

.site-header .logo img {
  width: 86px;
  height: 40px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  color: transparent;
  font-size: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Top Navbar User Account Widget */
.nav-account-widget {
  display: inline-flex;
  align-items: center;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Green Variant (Brand Cohesive & Elegant) */
.nav-auth-btn.nav-auth-green {
  background: var(--dark-green);
  color: var(--white);
  border: 1px solid var(--white);
}

.nav-auth-btn.nav-auth-green:hover {
  background: #254429;
  border-color: #A3D9A5;
  box-shadow: 0 0 10px rgba(53, 94, 59, 0.5);
}

/* Red Variant (High Visibility CTA) */
.nav-auth-btn.nav-auth-red {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--white);
}

.nav-auth-btn.nav-auth-red:hover {
  background: var(--red-hover);
  border-color: var(--white);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Logged-In User Avatar Pill - Clean & Seamless (Matches Cart Icon Size) */
.nav-user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--white);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.nav-user-avatar-btn:hover {
  opacity: 0.85;
}

.nav-avatar-icon {
  position: relative;
  width: 22px;
  height: 26px;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-user-avatar-btn:hover .nav-avatar-icon {
  transform: scale(1.08);
}

.nav-avatar-icon svg {
  width: 22px;
  height: 26px;
  fill: currentColor;
  display: block;
}

.nav-guest-alert-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  animation: popIn 0.25s ease-out;
}

.nav-user-label {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

@media (max-width: 480px) {
  .nav-user-label {
    max-width: 75px;
  }
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  width: 21px;
  height: 26px;
  overflow: visible;
}

.cart-icon img,
.cart-icon svg {
  width: 21px;
  height: 26px;
  object-fit: contain;
  display: block;
  color: transparent;
  font-size: 0;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  animation: popIn 0.25s ease-out;
}

/* ==========================================================================
   STOREFRONT & HERO SECTION (1440 x 750 Proportion-Locked Viewport Canvas)
   ========================================================================== */
.storefront-view {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.hero {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100svh - 70px);
  min-height: 360px;
  max-height: calc(100vw * 750 / 1440);
  margin: 0 auto;
  container-type: size;
  --u: min(1cqw, 1.92cqh);
}

.deer-bg {
  position: absolute;
  top: calc(-4.8611 * var(--u));
  left: 0;
  width: calc(100 * var(--u));
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: block;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 36%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.25) 52%,
    rgba(0, 0, 0, 0) 58%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 36%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0.25) 52%,
    rgba(0, 0, 0, 0) 58%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-logo {
  display: none;
}

/* Red "Forged in Chaos" nestled inside the stag antlers */
.chaos-image {
  position: absolute;
  left: calc(10.7639 * var(--u));
  top: calc(6.5972 * var(--u));
  width: calc(33.2639 * var(--u));
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

/* Right side "CRAFTED FOR PRECISION" + Featured Damascus Knife */
.hero-media {
  position: absolute;
  right: clamp(16px, 2.5cqw, 48px);
  top: calc(23.5 * var(--u));
  width: calc(63.75 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 4;
}

.hero-sub {
  position: relative;
  left: auto;
  top: auto;
  text-align: left;
  margin: 0 calc(2.5 * var(--u)) calc(-1.8 * var(--u)) 0;
  color: var(--white);
  text-transform: uppercase;
  z-index: 4;
  white-space: nowrap;
}

.hero-sub-top {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(8.5px, calc(2.2222 * var(--u)), 32px);
  font-weight: 300;
  letter-spacing: 0.23em;
  line-height: 1.15;
}

.hero-sub-bottom {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12.5px, calc(3.3333 * var(--u)), 48px);
  font-weight: 300;
  letter-spacing: 0.14em;
  line-height: 1.08;
  margin-top: calc(0.28 * var(--u));
}

.featured-dagger {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-out;
  will-change: opacity, transform;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.featured-dagger.knife-fading-out {
  opacity: 0;
  transform: translateY(6px) scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .featured-dagger {
    transition: opacity 0.2s ease-in-out;
    transform: none !important;
  }
}

@keyframes fadeInImage {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes slideInDown {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* ==========================================================================
   PRODUCTS GRID & ITEM CARDS (240 x 340 px Card + 240 x 38 px Button)
   ========================================================================== */
.products-section {
  position: relative;
  z-index: 2;
  padding: 0;
}

#hand-daggers {
  margin-top: 24px;
}

.products-section--pocket {
  margin-top: 120px;
  padding-bottom: 116px;
}

.section-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0 0 28px 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  column-gap: 133px;
  row-gap: 89px;
  width: 986px;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.card {
  width: 240px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--dark-green);
  border: none;
  border-radius: 0;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.card-surface {
  width: 240px;
  height: 302px;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  display: block;
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

.badge {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 75px;
  height: 26px;
  background: var(--btn-dark);
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
}

/* Overhanging Knife Media (293 px wide over 240 px card, blade pointing left as in Figma) */
.card-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 240px;
  height: 180px;
  overflow: visible;
  pointer-events: auto;
  z-index: 2;
}

.card-media img {
  position: absolute;
  left: 50%;
  top: 105px;
  width: 293px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) scaleX(-1);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.card--hatchet .card-media img {
  width: 267px;
  top: 102px;
}

.card-surface:hover .card-media img {
  transform: translate(-50%, -50%) scaleX(-1) scale(1.04);
}

.card-body {
  position: absolute;
  top: 180px;
  left: 0;
  right: 0;
  z-index: 3;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-name {
  margin: 0;
  padding: 0 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  color: var(--white);
  letter-spacing: 0;
}

.product-desc {
  margin: 0;
  padding: 0 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  color: var(--white);
}

.price-section {
  margin-top: 18px;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
  width: 100%;
}

.price-original {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--white);
  margin: 0;
}

.sale-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.price {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin: 0;
}

.in-stock {
  margin: 4px 0 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: var(--white);
  text-align: right;
  align-self: flex-end;
  white-space: nowrap;
}

/* Buttons (Figma Component States) */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  padding: 0 16px;
  background: var(--btn-dark);
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  margin: 0;
}

.btn:hover:not(:disabled) {
  background: var(--btn-dark-hover);
  border-color: var(--white);
  color: var(--white);
}

.btn:active:not(:disabled) {
  background: var(--btn-dark-active);
  border-color: var(--white);
  color: var(--white);
}

.btn:disabled {
  background: var(--btn-dark);
  border-color: var(--white);
  color: var(--disabled-grey);
  cursor: not-allowed;
  opacity: 1;
}

.card > .btn.add-cart {
  width: 240px;
  height: 38px;
  margin-top: 0;
  flex: 0 0 38px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE VIEW (Proportion-Locked Viewport Fit matching Image 4)
   ========================================================================== */
.detail-page {
  position: relative;
  background: var(--black);
  width: 100%;
  padding: 0 0 96px 0;
}

.detail-page.active {
  display: block !important;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 60px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  z-index: 10;
  display: none;
}

.detail-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4.5vw, 60px) 0 clamp(24px, 4.5vw, 60px);
  container-type: inline-size;
  box-sizing: border-box;
}

.modal-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5cqw, 72px);
  min-height: calc(100vh - 140px);
  width: 100%;
}

.modal-images {
  flex: 1 1 56%;
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 530 x 400 px Main Image with 35px Soft White Outer Glow */
.main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 530 / 380;
  background: url('assets/detail_bg.png') center / cover no-repeat;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px 8px rgba(255, 255, 255, 0.38);
}

.main-image img {
  width: 92%;
  max-width: 95%;
  max-height: 94%;
  height: auto;
  object-fit: contain;
  display: block;
}

.main-image.is-sub-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* Thumbnail Gallery (43px below 530x400 image at 1440px) */
.thumbnail-gallery {
  margin-top: 2.9861cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.9444cqw;
}

.thumbnails {
  display: flex;
  align-items: center;
  gap: 0.7639cqw;
}

.thumbnail-wrap {
  width: 5.5556cqw;
  height: 5cqw;
  min-width: 56px;
  min-height: 50px;
  background: url('assets/detail_bg.png') center / cover no-repeat;
  border: 1px solid transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnail-wrap.active {
  border-color: var(--white);
  opacity: 1;
}

.thumbnail-wrap:hover {
  opacity: 0.85;
}

.thumbnail-wrap.active:hover {
  opacity: 1;
}

.thumbnail-wrap .thumbnail {
  width: 87.5%;
  height: auto;
  max-height: 88.89%;
  object-fit: contain;
  display: block;
}

.thumbnail-wrap[data-index="1"] .thumbnail {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.modal-nav {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.modal-nav svg {
  width: clamp(16px, 1.5278cqw, 22px);
  height: auto;
}

.modal-nav:hover {
  color: var(--hover-grey);
}

/* Right Column: Product Info, Price & Action Controls */
.modal-details {
  padding-top: 0;
  margin-bottom: 5cqw;
  flex: 0 0 clamp(320px, 38%, 460px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modal-details h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 1.6667cqw, 24px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: 0;
}

#modalProductDesc {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 1.6667cqw, 24px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.detail-price-block {
  margin-top: 4.7222cqw;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.detail-price-original {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1.0417cqw, 15px);
  font-weight: 400;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.75);
}

.detail-sale-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(12px, 1.0417cqw, 15px);
  font-weight: 700;
  color: var(--white);
}

.detail-price-current {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 1.6667cqw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.detail-stock-status {
  margin: 6px 0 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(11px, 0.9722cqw, 14px);
  font-weight: 400;
  color: var(--white);
  text-align: right;
}

/* Action Row: Quantity + ADD TO CART + BUY NOW (Flush Left-Aligned with Title & Price) */
.detail-actions-row {
  margin-top: 5.4167cqw;
  margin-left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 0.6944cqw, 10px);
}

/* Figma Quantity Control (40x38 px, #130E10 fill, 1px #FFFFFF inside border, no internal lines) */
.qty-box {
  width: 42px;
  height: 38px;
  background: var(--btn-dark);
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 5px 0 6px;
  color: var(--white);
  user-select: none;
  flex: 0 0 42px;
  box-sizing: border-box;
}

.qty-box.is-disabled {
  color: var(--disabled-grey);
  border-color: var(--disabled-grey);
}

.qty-box-val {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: inherit;
}

.qty-box-arrows {
  width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  gap: 8px;
  padding: 3px 0;
}

.qty-arrow-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 12px;
  height: 8px;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.qty-arrow-btn svg {
  width: 10px;
  height: 6px;
  display: block;
  pointer-events: none;
}

.qty-arrow-btn:hover:not(:disabled) {
  opacity: 0.7;
}

.qty-arrow-btn:active:not(:disabled) {
  opacity: 0.45;
}

.qty-arrow-btn:disabled {
  color: var(--disabled-grey);
  cursor: not-allowed;
}

.modal-btn {
  height: clamp(36px, 2.6389cqw, 38px);
  padding: 0;
  font-size: clamp(12px, 1.1111cqw, 16px);
  font-weight: 700;
}

.add-to-cart-modal {
  width: clamp(136px, 11.9444cqw, 172px);
  flex: 0 0 clamp(136px, 11.9444cqw, 172px);
}

.buy-now-btn {
  width: clamp(136px, 11.875cqw, 171px);
  flex: 0 0 clamp(136px, 11.875cqw, 171px);
}

/* Full-width Horizontal Divider Line (Edge to Edge all the way across screen) */
.detail-divider {
  border: none;
  border-top: 1px solid var(--white);
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 60px;
  margin-bottom: 44px;
  box-sizing: border-box;
}

/* Specifications Section (left-aligned below divider) */
.detail-specs-section {
  padding-left: 0;
  text-align: left;
}

.detail-specs-title {
  margin: 0 0 36px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-align: left;
}

.detail-specs-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 3px;
}

.detail-specs-list p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.detail-specs-list strong {
  font-weight: 700;
  color: var(--white);
}

/* ==========================================================================
   CART PAGE VIEW (Fits Above Bottom White Line, Sticky Navbar + Scrollable)
   ========================================================================== */
.cart-page {
  min-height: calc(100svh - 70px - 44px);
  padding: 24px 0 32px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cart-container {
  max-width: 1480px;
  width: 100%;
  flex: 1;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--hover-grey);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.cart-page .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-page .breadcrumb a {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cart-page .breadcrumb a:hover {
  color: var(--hover-grey);
  text-decoration: underline;
}

.cart-page .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.cart-page .cart-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 24px 0;
  color: var(--white);
}

.cart-page .continue-shopping-wrap {
  margin: 0 0 24px 0;
}

.cart-page .continue-shopping {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.cart-page .continue-shopping:hover {
  color: var(--white);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: flex-start;
  flex: 1;
}

.cart-layout.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cart-layout.is-empty .cart-items-list {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.cart-layout.is-empty #cartItemsContainer {
  min-height: 0;
  max-height: none;
  padding-right: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.cart-layout.is-empty .cart-summary {
  display: none !important;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
}

/* ONLY SCROLLABLE AREA IN CART: Knives list container */
#cartItemsContainer {
  max-height: calc(100vh - 250px);
  min-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #355E3B rgba(255, 255, 255, 0.06);
}

#cartItemsContainer::-webkit-scrollbar {
  width: 6px;
}

#cartItemsContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#cartItemsContainer::-webkit-scrollbar-thumb {
  background: #355E3B;
  border-radius: 4px;
}

#cartItemsContainer::-webkit-scrollbar-thumb:hover {
  background: #4A8253;
}

.cart-item {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
}

/* Figma Spacious Cart Item Thumbnail */
.cart-item-image {
  width: 140px;
  height: 140px;
  min-width: 140px;
  background: url('assets/detail_bg.png') center / cover no-repeat;
  border: 1px solid var(--white);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-image img {
  width: 124px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.cart-item-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  margin: 0;
  color: var(--white);
}

.cart-item-desc {
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.cart-item-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin: 8px 0 0 0;
}

.cart-item-delete {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.cart-item-delete svg {
  width: 22px;
  height: 24px;
  display: block;
}

.cart-item-delete:hover {
  color: var(--hover-grey);
}

.cart-summary {
  padding: 8px 0;
  position: sticky;
  top: 24px;
}

.cart-summary h3 {
  margin: 0 0 8px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.subtotal-price {
  margin: 0 0 22px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
}

.shipping-note {
  margin: 0 0 26px 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

/* Figma CHECKOUT Button (240 x 38 px, #FF0000 default, #FF7F7F hover, #AD0000 active, 1px solid #FFFFFF outline, 16px font) */
.btn-continue {
  width: 240px;
  height: 38px;
  background: var(--red);
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-continue:hover:not(:disabled) {
  background: var(--red-hover);
  border-color: var(--white);
  color: var(--white);
}

.btn-continue:active:not(:disabled) {
  background: var(--red-active);
  border-color: var(--white);
  color: var(--white);
}

/* Cart empty state */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 54px 0;
}

.cart-empty-image {
  width: 170px;
  max-width: 60vw;
  height: auto;
}

.cart-empty-text {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 20px;
}

.cart-empty-start {
  appearance: none;
  width: 240px;
  height: 38px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--btn-dark);
  color: var(--white);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  transition: background-color 0.15s ease;
}

.cart-empty-start:hover {
  background: var(--btn-dark-hover);
}

.cart-empty-start:active {
  background: var(--btn-dark-active);
}

/* ==========================================================================
   CHECKOUT PAGE VIEW (Fits Above Bottom White Line, Sticky Navbar + Scrollable)
   100% Grounded in Figma Palette (#000000, #355E3B, #130E10, #777374, #FF0000)
   ========================================================================== */
.checkout-page {
  min-height: calc(100svh - 70px - 44px);
  padding: 20px 0 24px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.checkout-container {
  max-width: 1480px;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
}

.checkout-page .breadcrumb {
  margin: 0 0 4px 0;
  font-size: 13.5px;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-page .breadcrumb a {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.checkout-page .breadcrumb a:hover {
  color: var(--hover-grey);
  text-decoration: underline;
}

.checkout-page .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.checkout-page .cart-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
}

.checkout-page .continue-shopping-wrap {
  margin: 0 0 18px 0;
}

.checkout-page .continue-shopping {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.checkout-page .continue-shopping:hover {
  color: var(--white);
  text-decoration: underline;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 460px;
  gap: 40px;
  align-items: stretch;
}

.checkout-steps-col,
.checkout-summary-col {
  display: flex;
  flex-direction: column;
}

.checkout-panel {
  background: var(--btn-dark);
  border: 1px solid var(--white);
  border-radius: 0;
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.checkout-panel.is-locked .checkout-form {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.checkout-panel-header {
  background: var(--dark-green);
  border-bottom: 1px solid var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-step-num {
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: var(--btn-dark);
  border: 1px solid var(--white);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}

.checkout-panel-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--white);
  text-transform: uppercase;
}

.checkout-panel-body {
  padding: 20px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.checkout-helper-text {
  margin: 0 0 14px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.checkout-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  border: 1px solid var(--white);
  border-radius: 0;
  overflow: hidden;
}

.checkout-tab-btn {
  appearance: none;
  height: 38px;
  background: var(--btn-dark);
  border: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.checkout-tab-btn:first-child {
  border-right: 1px solid var(--white);
}

.checkout-tab-btn:hover:not(.active) {
  background: var(--btn-dark-hover);
  color: var(--white);
}

.checkout-tab-btn.active {
  background: var(--dark-green);
  color: var(--white);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--white);
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--black);
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.checkout-field select {
  padding: 0 38px 0 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23FFFFFF' d='M5 3.72973L1.16667 0L0 1.13514L5 6L10 1.13514L8.83333 0L5 3.72973Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 10px 6px;
  cursor: pointer;
}

.checkout-field select option {
  background: #130E10;
  color: var(--white);
}

.checkout-select-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.checkout-select-wrap select {
  width: 100%;
  padding-right: 36px !important;
  background-image: none !important;
}

.checkout-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 0;
  width: 10px;
  height: 6px;
}

.checkout-select-arrow svg {
  width: 10px;
  height: 6px;
  display: block;
}

.checkout-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: var(--dark-green);
  box-shadow: inset 0 0 0 1px var(--dark-green);
}

.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-grid-3 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

.checkout-action-btn {
  width: 240px;
  height: 42px;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.checkout-alert {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.checkout-alert.error {
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.4);
  color: #FFB3B3;
}

.checkout-alert.success {
  background: rgba(53, 94, 59, 0.2);
  border: 1px solid rgba(53, 94, 59, 0.5);
  color: #A3D9A5;
}

/* Logged-In User Strip */
.checkout-logged-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(53, 94, 59, 0.12);
  border: 1px solid rgba(53, 94, 59, 0.4);
  border-radius: 4px;
}

.checkout-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.checkout-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #355E3B;
  border: 1px solid #A3D9A5;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.checkout-user-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.checkout-user-name {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-verified-tag {
  font-size: 10px;
  font-weight: 700;
  color: #A3D9A5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout-user-email {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.checkout-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 3px 6px;
  transition: color 0.2s ease;
}

.checkout-link-btn:hover {
  color: #FFFFFF;
}

.checkout-locked-notice {
  padding: 12px 16px;
  margin-bottom: 14px;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.35);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

/* Right Column: Order Summary Card (Matches Delivery Details Height) */
.checkout-summary-card {
  background: var(--btn-dark);
  border: 1px solid var(--white);
  border-radius: 0;
  overflow: hidden;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.checkout-summary-header {
  background: var(--dark-green);
  border-bottom: 1px solid var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
}

.checkout-summary-header h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.checkout-summary-body {
  padding: 20px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* THE ONLY SCROLLABLE AREA: Knives list in order summary */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #355E3B rgba(255, 255, 255, 0.06);
}

.checkout-items-list::-webkit-scrollbar {
  width: 6px;
}

.checkout-items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
}

.checkout-items-list::-webkit-scrollbar-thumb {
  background: #355E3B;
  border-radius: 0;
}

.checkout-items-list::-webkit-scrollbar-thumb:hover {
  background: #4A8253;
}

.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-summary-thumb {
  width: 62px;
  height: 62px;
  min-width: 62px;
  background: url('assets/detail_bg.png') center / cover no-repeat;
  border: 1px solid var(--white);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.checkout-summary-thumb img {
  width: 56px;
  max-width: 90%;
  height: auto;
  object-fit: contain;
}

.checkout-summary-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item-name {
  margin: 0 0 4px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-summary-item-qty {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.checkout-summary-item-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.checkout-totals {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  margin-bottom: 18px;
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.checkout-grand-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--white);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.checkout-tax-note {
  margin: 4px 0 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}

.checkout-stripe-note {
  margin: 14px 0 16px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Figma Primary Red Button (#FF0000 default, #FF7F7F hover, #AD0000 active, 1px solid #FFFFFF outline, 16px font) */
.checkout-pay-btn {
  width: 100%;
  height: 42px;
  background: var(--red) !important;
  border: 1px solid var(--white) !important;
  border-radius: 0 !important;
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.checkout-pay-btn:hover:not(:disabled) {
  background: var(--red-hover) !important;
  border-color: var(--white) !important;
  color: var(--white) !important;
  transform: none;
  box-shadow: none !important;
}

.checkout-pay-btn:active:not(:disabled) {
  background: var(--red-active) !important;
  border-color: var(--white) !important;
  color: var(--white) !important;
}

.btn-stripe-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: stripeSpin 0.75s linear infinite;
  vertical-align: middle;
}

@keyframes stripeSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   FOOTER (Matches Landing & Detail Page PDFs: 1440 x 565 px)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--black);
  border-top: 1.5px solid var(--white);
  padding: 88px 0 0 0;
  margin-top: 0;
}

.footer-grid {
  max-width: 1440px;
  padding: 0 91px;
  display: grid;
  grid-template-columns: 634px 272px 1fr;
  align-items: start;
}

.footer-left-col {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo.large {
  display: inline-block;
  width: 290px;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.footer-brand .logo.large img {
  width: 290px;
  height: 136px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  color: transparent;
  font-size: 0;
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.contact-heading {
  margin-top: 32px;
  margin-bottom: 18px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.footer-contact-row a {
  color: var(--white);
  text-decoration: none;
}

.footer-contact-row a:hover {
  text-decoration: underline;
}

.footer-social {
  margin-top: 40px;
}

.footer-social .footer-heading {
  margin-bottom: 18px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icons .icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.15s ease;
}

.social-icons a:hover .icon {
  opacity: 0.75;
}

.footer-policies-col,
.footer-menu-col {
  padding-top: 44px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--white);
  margin-top: 36px;
  padding: 28px 0 36px 0;
}

.footer-bottom-inner {
  max-width: 1440px;
  padding: 0 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.copyright {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ruhtech-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.payments {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   NOTIFICATION POPUP STACK (Stacks Vertically Downward, Centered Close Icon)
   ========================================================================== */
.notification-stack {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  max-height: calc(100svh - 104px);
  overflow: visible;
}

.notification-popup {
  position: relative;
  background: var(--dark-green);
  border: 1px solid var(--white);
  border-radius: 0;
  padding: 16px 46px 16px 20px;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.notification-popup.stock-error {
  background: #130E10;
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
}

.notification-popup.exit {
  animation: slideOutUp 0.3s ease-out forwards;
}

.notification-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  color: var(--white);
  line-height: 1.3;
  word-break: break-word;
}

.notification-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.notification-popup.stock-error .notification-desc {
  margin-bottom: 0;
}

.notification-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.5px;
  margin: 0;
}

.notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-box: trim-both cap alphabetic;
  transition: all 0.2s ease;
}

.notification-close svg {
  width: 10px;
  height: 10px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.notification-close:hover {
  background: var(--red);
  border-color: var(--white);
  color: var(--white);
}

/* ==========================================================================
   POLICY PAGES TYPOGRAPHY (Montserrat — Fits Above Bottom White Line)
   ========================================================================== */
.policy-main {
  padding: 32px 0 48px 0;
  min-height: calc(100svh - 65px + 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.policy-container {
  max-width: 1440px;
  padding: 0 91px;
}

.policy-divider {
  border: none;
  border-top: 1px solid var(--white);
  margin: 0 0 20px 0;
}

.policy-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--white);
}

.policy-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--white);
  line-height: 1.65;
  max-width: 1000px;
}

.policy-content p {
  margin: 0 0 14px 0;
}

.policy-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 22px 0 8px 0;
  color: var(--white);
}

.policy-inline-link {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.policy-inline-link:hover {
  color: var(--hover-grey);
}

.refund-policy-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.refund-policy-cta p {
  margin: 0;
}

.fill-form-btn {
  width: 240px;
  height: 38px;
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE ADAPTATION (< 1100px, Tablet, and Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    width: 100%;
    column-gap: 72px;
    padding: 0 36px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 960px) {
  body.checkout-mode,
  body.cart-mode {
    overflow-y: auto !important;
  }
  #cartItemsContainer {
    max-height: none !important;
    min-height: 0 !important;
    padding-right: 0;
  }
  .header-inner {
    padding: 0 24px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 240px);
    column-gap: 64px;
    row-gap: 64px;
  }
  .detail-container,
  .cart-container,
  .checkout-container,
  .policy-container,
  .footer-grid,
  .footer-bottom-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
  .detail-container {
    width: 100%;
    padding-top: 24px;
  }
  .modal-grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .modal-images {
    width: 100%;
    max-width: 530px;
    flex: 1 1 auto;
  }
  .main-image {
    width: 100%;
    max-width: 530px;
    height: auto;
    aspect-ratio: 530 / 380;
  }
  .thumbnail-gallery {
    margin-top: 16px;
    gap: 16px;
  }
  .thumbnails {
    gap: 10px;
  }
  .thumbnail-wrap {
    width: 72px;
    height: 64px;
  }
  .modal-details {
    padding-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 530px;
    flex: 1 1 auto;
  }
  .modal-details h2,
  #modalProductDesc {
    font-size: 20px;
  }
  .detail-price-block {
    margin-top: 16px;
  }
  .detail-price-original,
  .detail-sale-label {
    font-size: 14px;
  }
  .detail-price-current {
    font-size: 22px;
  }
  .detail-actions-row {
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .qty-box {
    width: 52px;
    flex: 0 0 52px;
    height: 40px;
  }
  .add-to-cart-modal,
  .buy-now-btn {
    flex: 1 1 0;
    width: auto;
    height: 40px;
    font-size: 14px;
  }
  .detail-divider {
    margin: 28px 0 24px 0;
  }
  .detail-specs-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .detail-specs-list {
    gap: 12px;
  }
  .detail-specs-list p {
    font-size: 15px;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cart-summary {
    position: static;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-left-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    height: 60px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-header .logo,
  .site-header .logo img {
    width: 76px;
    height: 36px;
  }
  /* Keep Hero 100% Proportional on Mobile so "Forged in Chaos" stays between antlers and deer face + knife stay aligned */
  .hero-canvas {
    width: 100%;
    aspect-ratio: 1440 / 750;
    height: auto;
    min-height: 0;
  }
  #hand-daggers {
    margin-top: 12px;
  }
  .products-section--pocket {
    margin-top: 64px;
    padding-bottom: 64px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 22px;
  }
  .products-grid {
    grid-template-columns: 240px;
    row-gap: 44px;
    padding: 0 16px;
  }
  .detail-page {
    padding-bottom: 48px;
  }
  .detail-container,
  .cart-container,
  .checkout-container,
  .policy-container,
  .footer-grid,
  .footer-bottom-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .detail-container {
    padding-top: 16px;
  }
  .modal-grid {
    gap: 20px;
  }
  .main-image {
    aspect-ratio: 530 / 340;
    box-shadow: 0 0 24px 4px rgba(255, 255, 255, 0.3);
  }
  .thumbnail-gallery {
    margin-top: 12px;
    gap: 12px;
  }
  .thumbnail-wrap {
    width: 64px;
    height: 54px;
    min-width: 64px;
    min-height: 54px;
  }
  .modal-details h2,
  #modalProductDesc {
    font-size: 18px;
  }
  .detail-price-block {
    margin-top: 12px;
  }
  .detail-actions-row {
    margin-top: 16px;
    gap: 8px;
  }
  .qty-box {
    width: 52px;
    flex: 0 0 52px;
    height: 40px;
  }
  .add-to-cart-modal,
  .buy-now-btn {
    height: 40px;
    font-size: 13px;
  }
  /* Compact Horizontal Mobile Cart Item Row */
  .cart-page {
    padding: 14px 0 28px 0;
  }
  .cart-page .cart-title,
  .checkout-page .cart-title {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
  }
  .cart-item-image {
    width: 76px;
    height: 76px;
    min-width: 76px;
  }
  .cart-item-image img {
    width: 66px;
  }
  .cart-item-info {
    flex: 1;
    min-width: 0;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }
  .cart-item-details {
    min-width: 0;
    gap: 2px;
  }
  .cart-item-name {
    font-size: 14px;
  }
  .cart-item-desc {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .cart-item-price {
    font-size: 15px;
    margin-top: 4px;
  }
  .cart-item-delete {
    padding: 6px;
  }
  .cart-summary {
    padding-top: 16px;
  }
  .cart-summary h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .subtotal-price {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .cart-summary .btn-continue {
    width: 100%;
    height: 42px;
  }
  .cart-empty-state {
    padding: 28px 0;
  }
  .cart-empty-image {
    width: 130px;
  }
  /* Compact Mobile Checkout */
  .checkout-page {
    padding: 14px 0 28px 0;
  }
  .checkout-layout {
    gap: 20px;
  }
  .checkout-panel-header,
  .checkout-summary-header {
    padding: 12px 18px;
  }
  .checkout-panel-body,
  .checkout-summary-body {
    padding: 16px 18px;
  }
  .checkout-form {
    gap: 14px;
  }
  .checkout-grid-2,
  .checkout-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .checkout-logged-in {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Mobile Notifications */
  .notification-stack {
    top: 68px;
    left: 16px;
    right: 16px;
    align-items: stretch;
  }
  .notification-popup {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  /* Compact Mobile Footer */
  .site-footer {
    padding-top: 40px;
  }
  .footer-brand .logo.large,
  .footer-brand .logo.large img {
    width: 200px;
    height: auto;
  }
  .contact-heading,
  .footer-social {
    margin-top: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-policies-col,
  .footer-menu-col {
    padding-top: 8px;
  }
  .footer-bottom {
    margin-top: 28px;
    padding: 20px 0 28px 0;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .copyright {
    justify-content: center;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   ULTRA-OPTIMIZED BUTTERY SMOOTH SCROLL REVEAL (100% GPU / ZERO LAG)
   Compatible with all iPhones, Android devices, Macs, and PCs
   ========================================================================== */
.section-title,
.products-grid .card {
  opacity: 0;
  transform: translate3d(0, 52px, 0);
  transition: opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Pronounced 4-column cascade on desktop / tablet */
.products-grid .card:nth-child(4n + 1) { transition-delay: 0s; }
.products-grid .card:nth-child(4n + 2) { transition-delay: 0.07s; }
.products-grid .card:nth-child(4n + 3) { transition-delay: 0.14s; }
.products-grid .card:nth-child(4n + 4) { transition-delay: 0.21s; }

/* 2-column cascade on mobile screens */
@media (max-width: 600px) {
  .section-title,
  .products-grid .card {
    transform: translate3d(0, 40px, 0);
    transition-duration: 0.46s;
  }
  .products-grid .card:nth-child(2n + 1) { transition-delay: 0s; }
  .products-grid .card:nth-child(2n + 2) { transition-delay: 0.08s; }
}

.section-title.is-visible,
.products-grid .card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Hero section: smoothly dissolves when user scrolls into catalog */
.hero {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero.is-hidden {
  opacity: 0.15;
  transform: translate3d(0, -45px, 0);
}

/* Accessibility: instantaneous display if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .section-title,
  .products-grid .card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
