/* ============================================
   NOVA Store — Editorial Luxury E-Commerce
   Full functional: catalog, cart, wishlist
   ============================================ */

:root {
  --bg: #F8F7F4;
  --bg-alt: #EEEDE9;
  --black: #1A1A1A;
  --accent: #E85D3A;
  --accent-dark: #C94E30;
  --muted: #8C8C8C;
  --light-border: rgb(26, 26, 26, 0.08);
  --medium-border: rgb(26, 26, 26, 0.15);
  --success: #2E7D32;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Sora', sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Portfolio Bar */
.portfolio-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--muted);
  padding: 10px 5%;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 200;
}

.portfolio-bar a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  top: 0;
  background: rgb(248, 247, 244, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.9rem 5%;
  border-bottom: 1px solid var(--light-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--black);
}
.nav-logo span { color: var(--accent); }

.nav-center {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-center a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-center a:hover {
  color: var(--black);
}
.nav-center a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--light-border);
  border-radius: 50%;
  color: var(--black);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: none;
  position: relative;
}

.nav-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.nav-badge.bump { animation: badgeBump 0.3s ease; }

@keyframes badgeBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.nav-badge:empty { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(26, 26, 26, 0.3);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ── Hero ── */
.hero {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5% 4rem 10%;
}

.hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--black);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--black);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: transparent;
  color: var(--black);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: transparent;
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--medium-border);
  transition: all 0.4s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.hero-badge {
  position: absolute;
  bottom: 3rem;
  left: -1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 1.4rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* ── Section Shared ── */
.section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 3rem;
  font-size: 0.9rem;
}

/* ── Catalog Section ── */
.catalog-section {
  padding: 6rem 5%;
  background: var(--bg-alt);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 22px;
  border: 1.5px solid var(--medium-border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--black);
  color: var(--black);
}

.filter-tab.active {
  background: var(--black);
  color: var(--bg);
  border-color: var(--black);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--light-border);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.06s; }
.product-card:nth-child(3) { animation-delay: 0.12s; }
.product-card:nth-child(4) { animation-delay: 0.18s; }
.product-card:nth-child(5) { animation-delay: 0.24s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.36s; }
.product-card:nth-child(8) { animation-delay: 0.42s; }

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgb(26,26,26,0.08);
}

.product-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.product-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--accent);
}
.product-tag--sale { background: var(--black); }

/* Wishlist heart */
.product-wish {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgb(255,255,255,0.85);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.product-wish:hover {
  color: var(--accent);
  background: #fff;
}

.product-wish.active {
  color: var(--accent);
  background: #fff;
}
.product-wish.active i { font-weight: 900; }

/* Quick add overlay */
.product-quick {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  display: flex;
  justify-content: center;
}
.product-card:hover .product-quick { transform: translateY(0); }

.btn-add-cart {
  width: 100%;
  padding: 12px;
  background: var(--black);
  color: var(--bg);
  border: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.btn-add-cart:hover { background: var(--accent); }

.btn-add-cart.added {
  background: var(--success);
  pointer-events: none;
}

.product-info {
  padding: 1.1rem 1.2rem;
}

.product-brand {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.product-price {
  font-weight: 700;
  font-size: 0.9rem;
}

.product-price .old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.4rem;
  font-size: 0.8rem;
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgb(26,26,26,0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  border-left: 1px solid var(--light-border);
  box-shadow: -8px 0 40px rgb(0,0,0,0.08);
}
.cart-drawer.open { right: 0; }

.cart-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.cart-header span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--light-border);
  border-radius: 50%;
  background: none;
  color: var(--black);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.8rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.cart-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.3;
}
.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--light-border);
  align-items: center;
  animation: fadeUp 0.3s ease forwards;
}

.cart-item-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  background: var(--bg-alt);
}

.cart-item-details {
  min-width: 0;
}

.cart-item-brand {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.15rem 0 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.85rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  transition: color 0.3s;
  padding: 0;
}
.cart-item-remove:hover { color: var(--accent); }

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-border);
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--bg-alt); }

.qty-num {
  width: 32px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  border-left: 1px solid var(--light-border);
  border-right: 1px solid var(--light-border);
  line-height: 28px;
}

.cart-footer {
  padding: 1.5rem 1.8rem;
  border-top: 1px solid var(--light-border);
  background: #fff;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.cart-subtotal span {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-subtotal strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.cart-shipping {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: var(--bg);
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.btn-checkout:hover { background: var(--accent); }

.btn-checkout-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: #25D366;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.6rem;
  transition: all 0.3s ease;
  border-radius: 0;
}
.btn-checkout-wa:hover { background: #1DA851; }

/* ── Wishlist Drawer ── */
.wish-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  border-left: 1px solid var(--light-border);
  box-shadow: -8px 0 40px rgb(0,0,0,0.08);
}
.wish-drawer.open { right: 0; }

.wish-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.8rem;
}

.wish-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--light-border);
  align-items: center;
}

.wish-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.btn-wish-to-cart {
  padding: 6px 14px;
  background: var(--black);
  color: var(--bg);
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s;
}
.btn-wish-to-cart:hover { background: var(--accent); }

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--bg);
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s ease;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Features ── */
.features-section {
  padding: 4.5rem 5%;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--medium-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.feature-item h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 5%; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--light-border);
  padding: 2.2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgb(26,26,26,0.06);
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 10px;
  left: 18px;
  line-height: 1;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.3rem;
  padding-top: 0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.testimonial-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author span {
  font-size: 0.83rem;
  font-weight: 600;
}

.testimonial-author small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

/* ── Newsletter ── */
.newsletter-section {
  padding: 5rem 5%;
  background: var(--bg-alt);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--medium-border);
  border-right: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--black);
  outline: none;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { border-color: var(--accent); }

.newsletter-form button {
  padding: 14px 24px;
  background: var(--black);
  color: var(--bg);
  border: 1.5px solid var(--black);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  background: var(--black);
  color: #fff;
  padding: 4.5rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.3rem;
  color: var(--muted);
}

.footer-col p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-col a {
  display: block;
  color: rgb(255,255,255,0.6);
  font-size: 0.83rem;
  line-height: 2.2;
}
.footer-col a:hover { color: var(--accent); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgb(255,255,255,0.5);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgb(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  color: var(--accent);
  display: inline;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ── Chatbot ── */
#chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  font-family: var(--font-body);
}

#chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--bg);
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgb(26,26,26,0.2);
  transition: all 0.3s;
}

#chat-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
}
#chat-btn.hidden { display: none; }

#chat-window {
  display: none;
  flex-direction: column;
  width: 340px;
  height: 480px;
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 8px 36px rgb(26,26,26,0.12);
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 1px solid var(--light-border);
}
#chat-window.open { display: flex; }

.chat-header {
  background: var(--black);
  color: var(--bg);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chat-header button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: chatIn 0.3s ease;
  white-space: pre-line;
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  background: #fff;
  color: var(--black);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--light-border);
}

.chat-msg.user {
  background: var(--black);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.system {
  background: #E8F5E9;
  color: #2E7D32;
  align-self: center;
  text-align: center;
  font-size: 0.78rem;
  border-radius: 8px;
}

#chat-options {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid var(--light-border);
}

.chat-opt {
  padding: 6px 12px;
  border: 1px solid var(--medium-border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--black);
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-opt:hover {
  background: var(--black);
  color: var(--bg);
  border-color: var(--black);
}

.chat-input-wrap {
  padding: 8px 10px;
  border-top: 1px solid var(--light-border);
  display: flex;
  gap: 6px;
}

.chat-input-wrap input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--medium-border);
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
  background: transparent;
}
.chat-input-wrap input:focus { border-color: var(--accent); }

.chat-input-wrap button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--bg);
  font-size: 0.9rem;
  transition: background 0.3s;
}
.chat-input-wrap button:hover { background: var(--accent); }

.typing-dots {
  display: inline-flex;
  gap: 3px;
  padding: 3px 0;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  animation: dotB 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotB {
  0%,
  80%,
  100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* ── Responsive 1024 ── */
@media (width <= 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    height: 50vh;
    order: -1;
  }

  .hero-badge {
    bottom: 2rem;
    left: 1rem;
  }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (width <= 768px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }

  .nav-center.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    z-index: 99;
    border-left: 1px solid var(--light-border);
  }

  .nav-center.mobile-open a {
    font-size: 1rem;
    color: var(--black);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-border);
  }
  .hero-text { padding: 3rem 5%; }

  .hero h1 {
    font-size: 2.6rem;
    letter-spacing: -1px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-image { height: 55vh; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-quick { transform: translateY(0); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1.5px solid var(--medium-border); }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social { justify-content: center; }

  .cart-drawer,
  .wish-drawer {
    width: 100%;
    right: -100%;
  }
}

@media (width <= 400px) {
  #chat-window {
    width: calc(100vw - 32px);
    height: 70vh;
    right: -8px;
  }
  .products-grid { grid-template-columns: 1fr; }
}
