@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --black: #000000;
  --near-black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --grey-dark: #2e2e2e;
  --grey-mid: #6b6b6b;
  --grey-light: #aaaaaa;
  --grey-pale: #e0e0dc;
  --off-white: #f5f5f0;
  --cream: #fafaf7;
  --white: #ffffff;
  --border: #e0e0dc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-height: 72px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100vw; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  padding-top: var(--nav-height);
}
body.home-page { padding-top: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar.solid { background: var(--white); border-bottom: 1px solid var(--border); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo {
  height: 40px; width: auto;
  mix-blend-mode: multiply;
  transition: var(--transition);
}
/* On transparent (hero) navbar: use screen blend so the white PNG background
   disappears against the dark video overlay, revealing the logo naturally */
.navbar.transparent .nav-logo { mix-blend-mode: screen; filter: none; }
.nav-brand-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: 20px;
  color: var(--dark);
  letter-spacing: 0.5px;
}
.navbar.transparent .nav-brand-name { color: var(--white); }
.nav-center { display: flex; align-items: center; gap: 32px; margin: 0 auto; flex: 1; justify-content: center; }
.nav-link {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--dark);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.navbar.transparent .nav-link { color: var(--white); }
.navbar.transparent .nav-link::after { background: var(--white); }
.nav-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.nav-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  transition: var(--transition);
  position: relative;
  color: var(--dark);
  background: none;
  border: none;
  text-decoration: none;
}
.nav-icon:hover { background: var(--off-white); }
/* Transparent navbar (over hero video): icons must be white & clearly visible */
.navbar.transparent .nav-icon { color: var(--white); }
.navbar.transparent .nav-icon:hover { background: rgba(255,255,255,0.18); }
/* Scrolled navbar: keep icons dark on white background */
.navbar.scrolled .nav-icon { color: var(--dark); }
.navbar.scrolled .nav-icon:hover { background: var(--off-white); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--dark); color: var(--white);
  width: 18px; height: 18px;
  border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: var(--transition); }
.navbar.transparent .nav-hamburger span { background: var(--white); }

/* HERO */
.hero {
  position: relative; width: 100vw; height: 100vh;
  min-height: 600px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  max-width: 800px;
}
.hero-label {
  font-size: 11px; font-weight: 600; letter-spacing: 5px;
  color: rgba(255,255,255,0.7); text-transform: uppercase;
  margin-bottom: 20px; display: block;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800; color: var(--white);
  line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px; font-weight: 300;
  animation: fadeUp 0.8s ease 0.6s both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--dark);
  padding: 16px 40px; border-radius: 2px;
  font-weight: 600; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition);
  animation: fadeUp 0.8s ease 0.8s both;
}
.hero-cta:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(0);opacity:0} 50%{transform:scaleY(1);opacity:1} }

/* SECTIONS */
.section { padding: 80px 5%; }
.section-sm { padding: 60px 5%; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--grey-mid);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--dark);
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-sub { font-size: 15px; color: var(--grey-mid); max-width: 500px; margin: 0 auto; }

/* CATEGORY CARDS */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.category-card:hover { border-color: var(--dark); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.category-card-img {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
}
.category-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-img img { transform: scale(1.08); }
.category-card-body { padding: 16px 20px; }
.category-card-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.category-card-count { font-size: 12px; color: var(--grey-mid); }

/* PRODUCT CARDS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { border-color: var(--dark); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-img {
  width: 100%; aspect-ratio: 1/1;
  overflow: hidden; background: var(--off-white);
  position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--dark); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 3px; letter-spacing: 0.3px;
}
.out-of-stock-badge {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; color: var(--grey-mid);
}
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-title {
  font-size: 13px; font-weight: 500; color: var(--dark);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price-current { font-size: 16px; font-weight: 700; color: var(--dark); }
.price-original { font-size: 13px; color: var(--grey-light); text-decoration: line-through; }
.product-card-actions { display: flex; gap: 8px; }
.btn-cart {
  flex: 1; padding: 9px 12px;
  background: var(--dark); color: var(--white);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  transition: var(--transition); letter-spacing: 0.3px;
}
.btn-cart:hover { background: var(--grey-dark); }
.btn-wishlist {
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-wishlist:hover { border-color: var(--dark); background: var(--off-white); }
.btn-wishlist.wishlisted {
  border-color: #e00;
  background: #fff5f5;
}
.btn-wishlist.wishlisted svg {
  fill: #e00;
  stroke: #e00;
}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; letter-spacing: 0.3px; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--grey-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--white); color: var(--dark); border: 1.5px solid var(--dark); }
.btn-secondary:hover { background: var(--dark); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--dark); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-body);
  transition: var(--transition); background: var(--white);
}
.form-control:focus { border-color: var(--dark); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.form-error { font-size: 12px; color: #c00; margin-top: 4px; }

/* SKELETON LOADER */
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* TOAST */
.toast-container {
  position: fixed; top: calc(var(--nav-height) + 16px); right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--dark); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease; pointer-events: all;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
@keyframes toastIn { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastOut { from{transform:translateX(0);opacity:1} to{transform:translateX(110%);opacity:0} }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; transition: var(--transition); cursor: pointer;
  background: var(--white); text-decoration: none; color: var(--dark);
}
.page-btn:hover, .page-btn.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* MINI CART */
.mini-cart {
  position: fixed; top: 0; right: -400px; width: 380px; height: 100vh;
  background: var(--white); z-index: 1100;
  box-shadow: var(--shadow-lg); transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.mini-cart.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1099;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.mini-cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.mini-cart-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.mini-cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mini-cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--off-white); }
.mini-cart-item-info { flex: 1; }
.mini-cart-item-name { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 6px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.mini-cart-item-price { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.qty-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 4px; background: var(--white); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.mini-cart-remove { font-size: 11px; color: var(--grey-mid); cursor: pointer; transition: var(--transition); }
.mini-cart-remove:hover { color: var(--dark); }
.mini-cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.mini-cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.mini-cart-empty { text-align: center; padding: 60px 0; color: var(--grey-mid); }

/* FOOTER */
.footer { background: var(--near-black); color: var(--grey-light); padding: 72px 5% 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--grey-light); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--grey-dark); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.footer-logo { height: 36px; filter: brightness(0) invert(1) !important; mix-blend-mode: normal !important; margin-bottom: 16px; }

/* ANIMATIONS */
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 1200; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box { width: 100%; max-width: 600px; padding: 0 24px; }
.search-input {
  width: 100%; padding: 20px 0; background: transparent;
  border: none; border-bottom: 2px solid rgba(255,255,255,0.3);
  font-family: var(--font-head); font-size: 32px; font-weight: 300;
  color: var(--white); caret-color: var(--white);
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-hint { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 16px; }

/* UTILITIES */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* RESPONSIVE */
@media(max-width:1200px){ .categories-grid{grid-template-columns:repeat(3,1fr)} .products-grid{grid-template-columns:repeat(3,1fr)} }
@media(max-width:1024px){ .footer-grid{grid-template-columns:1fr 1fr} }
@media (max-width: 768px) {
  /* Navbar */
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .navbar { padding: 0 14px; }
  .nav-brand-name { font-size: 16px; }
  .nav-right { gap: 2px; }
  .nav-icon { width: 36px; height: 36px; }
  .nav-center.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-center.open .nav-link {
    color: var(--dark) !important;
  }

  /* Grids */
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important; 
    width: 100% !important;
  }
  .categories-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
  }
  .why-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important; 
  }

  /* Store page */
  #sidebar { display: none !important; }
  .store-main { padding: 12px !important; }

  /* Sections */
  .section { padding: 40px 14px !important; width: 100% !important; }
  .section > * { width: 100% !important; max-width: 100% !important; }
  .section-sm { padding: 32px 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer { padding: 40px 14px 20px; }

  /* Mini cart */
  .mini-cart { width: 100% !important; right: -100% !important; }
  .mini-cart.open { right: 0 !important; }

  /* Hero */
  .hero-cta { padding: 13px 24px; font-size: 13px; }

  /* Product cards */
  .product-card-body { padding: 9px 10px; }
  .product-card-title { font-size: 12px; }
  .price-current { font-size: 13px; }
  .btn-cart { font-size: 11px; padding: 7px 8px; }
  .btn-wishlist { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 8px !important; 
  }
}
