/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --clr-bg: #fafaf9;
  --clr-surface: #ffffff;
  --clr-text: #1a1a1a;
  --clr-text-muted: #6b6b6b;
  --clr-accent: #1a1a1a;
  --clr-accent-hover: #333333;
  --clr-border: #e8e8e5;
  --clr-badge: #c8102e;
  --clr-badge-text: #ffffff;
  --clr-hero-overlay: rgba(0, 0, 0, 0.40);
  --clr-footer-bg: #111111;
  --clr-footer-text: #a0a0a0;

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.10);
  --shadow-nav: 0 1px 0 var(--clr-border);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background-color: var(--clr-bg);
}

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

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--clr-text);
  text-transform: uppercase;
}

.logo span {
  font-weight: 300;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--dur) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--dur) var(--ease-out);
}

.nav-links a:hover {
  color: var(--clr-text);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Cart Button */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: background var(--dur) var(--ease-out);
}

.cart-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-badge-text);
  background: var(--clr-badge);
  border-radius: var(--radius-full);
  padding: 0 5px;
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}

.cart-badge.visible {
  transform: scale(1);
}

.cart-badge.bump {
  animation: bump 0.35s var(--ease-out);
}

@keyframes bump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--dur) var(--ease-out);
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--clr-surface);
  padding: var(--space-2xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.mobile-nav.open .mobile-nav-inner {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  font-size: 1.6rem;
  color: var(--clr-text);
  padding: var(--space-sm);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-links a {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--dur);
}

.mobile-nav-links a:hover {
  color: var(--clr-badge);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-banner.webp') center/cover no-repeat;
  filter: brightness(0.65);
  transition: transform 8s linear;
}

.hero:hover .hero-bg {
  transform: scale(1.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #fff;
  padding: var(--space-4xl) 0;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  background: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  transition: background var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--dur) var(--ease-out);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-heading h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
}

.section-heading p {
  font-size: 1rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products {
  padding: var(--space-4xl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* PRODUCT CARD */
.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #f0efed;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

/* Quick-view overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  background: var(--clr-accent);
  padding: 11px 24px;
  border-radius: var(--radius-full);
  transform: translateY(12px);
  transition: background var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.product-card:hover .btn-add-cart {
  transform: translateY(0);
}

.btn-add-cart:hover {
  background: var(--clr-accent-hover);
}

.btn-add-cart svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Card info */
.product-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--clr-text-muted);
}

.product-name {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-top: var(--space-xs);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--clr-accent);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  pointer-events: auto;
}

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

.toast svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--clr-footer-bg);
  color: var(--clr-footer-text);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
  color: var(--clr-footer-text);
}

.footer-col h4 {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--clr-footer-text);
  transition: color var(--dur);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-footer-text);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.footer-socials a:hover {
  background: #fff;
  color: var(--clr-text);
  border-color: #fff;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding: var(--space-3xl) 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}