/* ==========================================================
   Casqueta Halawa — "Clean Streetwear" Theme
   Minimalist, high-contrast aesthetic inspired by Nike/Adidas
   ========================================================== */

:root {
  --bg-color: #FFFFFF;
  --bg-dim: #F6F6F6;
  --ink: #111111;
  --ink-light: #333333;
  --teal: #1B5E56;
  --gold: #F5BD05;
  --red: #D6472F;
  --line: #E5E5E5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-color);
}

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

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

button {
  font-family: inherit;
}

.mono {
  font-family: 'Space Mono', monospace;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Header — clean white ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--bg-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 20px;
}

.brandmark {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-header-img {
  height: 85px;
  width: auto;
  display: block;
}

nav.links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
  color: var(--bg-color);
}

nav.links a {
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Anton';
  letter-spacing: 0.04em;
  font-size: 15px;
}

nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--bg-color);
  transition: width .2s ease;
}

nav.links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  background: var(--bg-color);
  color: var(--ink);
  font-family: 'Anton';
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.nav-cta:hover {
  background: var(--red);
  color: var(--bg-color);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: 'Anton';
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--bg-color);
  transition: all .2s;
}

.cart-btn:hover {
  color: var(--red);
}

.cart-count {
  background: var(--red);
  color: var(--bg-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'Inter';
  font-weight: 700;
}

@media(max-width:760px) {
  nav.links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

/* ===== Hero — Stark & Bold ===== */
.hero {
  position: relative;
  padding: 100px 28px 80px;
  overflow: hidden;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/images/hero_bg_2.jpg') center/cover no-repeat;
  filter: grayscale(100%);
  opacity: 0.25;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono';
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--red);
  display: inline-block;
}

.hero h1 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 0.92;
  margin-bottom: 32px;
  color: var(--ink);
}

.hero h1 .l2 {
  display: inline-block;
  background: var(--red);
  color: var(--bg-color);
  padding: 0 12px;
  transform: skew(-8deg);
  margin-top: 4px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Anton';
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid var(--ink);
}

.btn-solid {
  background: var(--ink);
  color: var(--bg-color);
}

.btn-solid:hover {
  background: var(--red);
  border-color: var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg-color);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-cap-icon {
  width: 65%;
  position: relative;
  z-index: 2;
}

.hero-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--bg-color);
  font-family: 'Space Mono';
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  z-index: 3;
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Promo strip — Bold marquee ===== */
.promo {
  background: var(--ink);
  color: var(--bg-color);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.promo-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 20s linear infinite;
  -webkit-animation: scroll 20s linear infinite;
  transform: translateZ(0);
  will-change: transform;
  font-family: 'Anton';
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.promo-track span:nth-child(odd) {
  color: var(--bg-color);
}

.promo-track span:nth-child(even) {
  color: var(--gold);
}

@keyframes scroll {
  from {
    transform: translateX(0) translateZ(0);
  }

  to {
    transform: translateX(-50%) translateZ(0);
  }
}

@-webkit-keyframes scroll {
  from {
    -webkit-transform: translateX(0) translateZ(0);
  }

  to {
    -webkit-transform: translateX(-50%) translateZ(0);
  }
}

/* ===== Section heading ===== */
.section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
  margin-bottom: 16px;
  color: var(--ink);
}

.section-head p {
  font-size: 16px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ===== Shop / Cap Wall (Task 2 Refine) ===== */
.wall {
  background: var(--bg-color);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

@media(max-width:860px) {
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media(max-width:480px) {
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.slot {
  position: relative;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.slot:hover .slot-frame {
  background: var(--line);
}

.slot:hover .cap-photo {
  transform: translate(-50%, -50%) scale(1.05);
}

.slot-frame {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg-dim);
  transition: background .3s ease;
}

.cap-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  object-fit: contain;
  z-index: 1;
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}



.slot-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 4px;
}

.slot-name {
  font-family: 'Anton';
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
}

.price-tag {
  font-family: 'Space Mono';
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-light);
}

/* Sold Out Badges */
.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: var(--bg-color);
  font-family: 'Space Mono';
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  z-index: 5;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 4;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-dim) 25%, #E5E5E5 50%, var(--bg-dim) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-box {
  width: 100%;
  aspect-ratio: 1/1;
}

.skeleton-text {
  height: 20px;
  margin-top: 12px;
}

.skeleton-text.short {
  width: 40%;
}

/* ===== About ===== */
.about-visual {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  background: var(--bg-dim);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  padding: 32px 0;
  border-top: 2px solid var(--ink);
}

.step .num {
  font-family: 'Anton';
  font-size: 54px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'Anton';
  font-size: 22px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-light);
}

@media(max-width:760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact ===== */
.contact {
  background: var(--ink);
  color: var(--bg-color);
  padding: 70px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact .eyebrow {
  color: var(--bg-color);
}

.contact .eyebrow::before {
  background: var(--gold);
}

.contact h2 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
  line-height: 1.05;
}

.contact p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 440px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 0;
  font-family: 'Anton';
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all .2s;
}

.clink:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

.clink small {
  display: block;
  font-family: 'Inter';
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  margin-top: 4px;
}

.clink .arrow {
  font-size: 24px;
}

@media(max-width:860px) {
  .contact {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

/* ===== Footer ===== */
footer {
  padding: 60px 0;
  background: var(--ink);
  color: var(--bg-color);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.foot-brand img {}

.foot-note {
  font-family: 'Space Mono';
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .promo-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cap-photo {
    transition: none;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ===== Product view ===== */
#productView {
  display: none;
}

.backbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Anton';
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  margin-bottom: 32px;
}

.backbtn:hover {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-visual {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg-dim);
}

/* ===== Product Slider ===== */
.product-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
}

.product-slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.product-slide img.img-secondary {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-color);
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  font-family: 'Space Mono';
}

.slider-arrow:hover {
  background: var(--ink);
  color: var(--bg-color);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--ink);
}

.p-name {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 12px;
  color: var(--ink);
}

.p-price {
  font-family: 'Space Mono';
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 24px;
}

.p-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 28px;
  max-width: 480px;
}

.p-promo-note {
  display: inline-block;
  font-family: 'Space Mono';
  font-size: 13px;
  font-weight: 700;
  background: var(--ink);
  color: var(--bg-color);
  padding: 10px 16px;
  margin-bottom: 32px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
}

.qty-stepper button {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  transition: all .2s;
}

.qty-stepper button:hover {
  background: var(--bg-dim);
}

.qty-stepper span {
  width: 40px;
  text-align: center;
  font-family: 'Space Mono';
  font-weight: 700;
  color: var(--ink);
}

.p-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.p-actions .btn {
  flex: 1;
}

@media(max-width:860px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Cart drawer ===== */
.overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  display: none;
}

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

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: var(--bg-color);
  z-index: 95;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: 24px;
  color: var(--ink);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.cart-promo-hint {
  background: var(--ink);
  color: var(--gold);
  font-family: 'Space Mono';
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  font-family: 'Space Mono';
  font-size: 14px;
  color: var(--ink-light);
  text-align: center;
  margin-top: 50px;
}

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

.dot-sm {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg-dim);
  padding: 4px;
}

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

.cart-item-info b {
  display: block;
  font-family: 'Anton';
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-item-info .mono {
  font-size: 13px;
  color: var(--ink-light);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-actions button {
  background: none;
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--ink);
}

.cart-item-actions .qv {
  font-family: 'Space Mono';
  font-size: 13px;
  width: 20px;
  text-align: center;
  color: var(--ink);
}

.remove-x {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--red);
  font-size: 13px;
  font-family: 'Space Mono';
  margin-left: 4px;
  text-decoration: underline;
}

.cart-item-trash {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
  margin-left: auto;
}

.cart-item-trash:hover {
  opacity: 1;
  color: var(--red);
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono';
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--ink-light);
}

.sum-row.total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
  color: var(--ink);
}

.sum-row.discount {
  color: var(--red);
}

/* ===== Checkout modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: var(--bg-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}

.modal-card h3 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

.modal-sub {
  font-family: 'Space Mono';
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: 'Space Mono';
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--ink-light);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-family: 'Inter';
  font-size: 15px;
  background: var(--bg-color);
  color: var(--ink);
  transition: border-color .2s;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.policy-box {
  background: var(--bg-dim);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--ink-light);
  border-left: 4px solid var(--ink);
}

.policy-box b {
  color: var(--ink);
}

.modal-summary {
  background: var(--bg-dim);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: 'Space Mono';
  font-size: 13px;
  color: var(--ink);
}

.confirm-view {
  text-align: center;
  padding: 20px 0;
}

.confirm-view .big {
  font-family: 'Anton';
  font-size: 32px;
  text-transform: uppercase;
  margin: 20px 0 12px;
  color: var(--ink);
}

.confirm-view p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.6;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono';
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--ink-light);
}

.sum-row.total {
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
  color: var(--ink);
}

.sum-row.discount {
  color: var(--red);
}

/* ===== Checkout modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: var(--bg-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}

.modal-card h3 {
  font-family: 'Anton';
  text-transform: uppercase;
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

.modal-sub {
  font-family: 'Space Mono';
  font-size: 13px;
  color: var(--ink-light);
  margin-bottom: 28px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: 'Space Mono';
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--ink-light);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-family: 'Inter';
  font-size: 15px;
  background: var(--bg-color);
  color: var(--ink);
  transition: border-color .2s;
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.policy-box {
  background: var(--bg-dim);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--ink-light);
  border-left: 4px solid var(--ink);
}

.policy-box b {
  color: var(--ink);
}

.modal-summary {
  background: var(--bg-dim);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: 'Space Mono';
  font-size: 13px;
  color: var(--ink);
}

.confirm-view {
  text-align: center;
  padding: 20px 0;
}

.confirm-view .big {
  font-family: 'Anton';
  font-size: 32px;
  text-transform: uppercase;
  margin: 20px 0 12px;
  color: var(--ink);
}

.confirm-view p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* ===== Bottom Slider ===== */
.bottom-slider {
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  border-top: 2px solid var(--ink);
}

.bottom-slider-track {
  display: flex;
  width: max-content;
  animation: bottom-scroll 35s linear infinite;
  -webkit-animation: bottom-scroll 35s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}

.bottom-slider-track img {
  height: 55vh;
  min-height: 320px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 2px solid var(--ink);
  filter: grayscale(20%) contrast(110%);
  transition: filter 0.4s ease;
  transform: translateZ(0);
}

.bottom-slider-track img:hover {
  filter: grayscale(0%) contrast(100%);
}

@media(max-width:860px) {
  .bottom-slider-track img {
    height: 45vh;
  }
}

@keyframes bottom-scroll {
  0% {
    transform: translateX(0) translateZ(0);
  }

  100% {
    transform: translateX(-50%) translateZ(0);
  }
}

@-webkit-keyframes bottom-scroll {
  0% {
    -webkit-transform: translateX(0) translateZ(0);
  }

  100% {
    -webkit-transform: translateX(-50%) translateZ(0);
  }
}

/* ===== Filters Bar ===== */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--bg-color);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

#searchInput {
  padding: 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--bg-dim);
  color: var(--ink);
  width: 280px;
  max-width: 100%;
  border-radius: 0;
  transition: all 0.2s;
}

#searchInput:focus {
  outline: none;
  background: var(--bg-color);
  border-color: var(--red);
  box-shadow: 4px 4px 0px var(--ink);
}

#searchInput::placeholder {
  color: var(--ink-light);
  opacity: 0.6;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.filter-checkbox .checkmark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  background: var(--bg-color);
  transition: all 0.2s;
  position: relative;
}

.filter-checkbox:hover .checkmark {
  background: var(--bg-dim);
}

.filter-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: var(--red);
  border-color: var(--red);
}

.filter-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#sortSelect {
  padding: 12px 40px 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--bg-dim);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23111" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: all 0.2s;
}

#sortSelect:focus {
  outline: none;
  border-color: var(--red);
  background-color: var(--bg-color);
  box-shadow: 4px 4px 0px var(--ink);
}

@media(max-width: 860px) {
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }
  
  .filter-group {
    width: 100%;
    justify-content: flex-start;
  }
  
  #searchInput {
    width: 100%;
  }
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--bg-color);
  padding: 16px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}