:root {
  --nav-height: 64px;
  --bg: rgba(255, 255, 255, 0.4);
  --bg-scrolled: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --search-bg: rgba(15, 23, 42, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: rgba(17, 24, 39, 0.5);
    --bg-scrolled: #0b1220;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --border: rgba(148, 163, 184, 0.12);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    --search-bg: rgba(148, 163, 184, 0.08);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

/* Navbar container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  background-color: var(--bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--bg-scrolled);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

.nav-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 20px;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}

.menu a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

/* Center: Search */
.nav-search {
  width: 100%;
  display: flex;
  justify-content: center;
}

.search {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: 36px 1fr 44px;
  align-items: center;
  height: 42px;
  padding: 0 6px 0 8px;
  background: var(--search-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}

.search:focus-within {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.search-icon,
.search-clear {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.search input {
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-clear button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.search-clear button:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

/* Right: Icons + Hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: transform .08s ease, background-color .2s ease, border-color .2s ease;
}

.icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.12);
}

.icon-btn:active {
  transform: translateY(1px);
}

.hamburger {
  display: none;
  margin-left: 4px;
}

/* Mobile menu (drawer) */
.drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-scrolled);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 2000;
}

.drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.drawer-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 12px 0 16px;
  display: grid;
  gap: 10px;
}

.drawer-menu {
  display: flex;
  gap: 6px;
  margin: 0;
  flex-wrap: wrap;
}

.drawer-menu a {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease;
}

.drawer-menu a:hover {
  background: rgba(15, 23, 42, 0.08);
}

.drawer-menu a.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .menu {
    display: none;
  }

  .hamburger {
    display: grid;
  }

  .nav-wrap {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-search {
    display: none;
    /* Hide search on very small screens to avoid overlap */
  }
}

@media (max-width: 640px) {
  .logo span {
    display: none;
  }

  .search {
    grid-template-columns: 32px 1fr 36px;
    height: 40px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}

/* Page content spacing */
main {
  padding-top: calc(var(--nav-height) + 0px);
}

/* Modern e-commerce hero */
/* Modern e-commerce hero with img tag */
.hero {
  position: relative;
  /* Height is now determined by the image content */
  height: auto;
  min-height: auto;
  display: block;
  /* changed from grid to block so image flows naturally */
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: none;
  width: 100%;
  position: relative;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Full show as requested */
  display: block;
}

@media (min-width: 768px) {
  .hero-img {
    min-height: 300px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.1) 40%, rgba(2, 6, 23, 0.4));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  /* Flex to center content */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  gap: 16px;
  pointer-events: none;
  /* Let clicks pass through to arrows/indicators if needed, but buttons need pointer-events */
}

.hero-content>* {
  pointer-events: auto;
}



.hero h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 2.4vw, 18px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  transition: transform .08s ease, filter .15s ease, box-shadow .2s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Slider additions */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  /* Matches the user's banner better */
  background: #0b1220;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    aspect-ratio: 16 / 10;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .hero-bg {
  background-size: cover;
  background-position: center;
  transform: none;
}

.hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.hero-indicators button.active {
  background: #fff;
  border-color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-arrow.left {
  left: 14px;
}

.hero-arrow.right {
  right: 14px;
}

/* Featured products */
.products {
  padding: 48px 0 80px;
  background: #fff;
}

.products-wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.products h2 {
  margin: 0 0 18px 0;
  font-size: clamp(22px, 3.6vw, 28px);
  letter-spacing: -0.01em;
  color: var(--text);
}

.products p.section-sub {
  margin: 0 0 22px 0;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.01), rgba(2, 6, 23, 0.00));
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.04);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

.product-img {
  position: relative;
  aspect-ratio: 4/3;
  background: #e2e8f0;
  background-size: cover;
  background-position: center;
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.30);
}

.product-info {
  padding: 16px 16px 10px;
  display: grid;
  gap: 6px;
}

.product-cat {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-name {
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 13px;
}

.rating .reviews {
  color: var(--muted);
  font-size: 12px;
}

.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
}

.currency {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
}

.product-price {
  color: var(--text);
  font-weight: 900;
  font-size: 22px;
}

.old-price {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 700;
}

.product-actions {
  padding: 0 16px 16px;
}

.add-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.28);
  cursor: pointer;
  transition: background .15s ease, box-shadow .2s ease, transform .08s ease;
}

.add-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.34);
}

.add-btn:active {
  transform: translateY(1px);
}

/* About Us */
.about {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid var(--border);
}

.about-wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

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

.about-copy {
  display: grid;
  gap: 14px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.about h2 {
  margin: 0;
  font-size: clamp(22px, 4.8vw, 34px);
  color: var(--text);
  letter-spacing: -0.01em;
}

.about p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.12);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: #e2e8f0;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1551836022-4c4c79ecde51?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: saturate(105%);
}

/* Floating Chat Button */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1100;
}

.chat-pill {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.10);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}

.chat-pill:hover {
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
  border-color: rgba(15, 23, 42, 0.12);
}

.chat-pill:active {
  transform: translateY(1px);
}

.chat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform .08s ease, filter .15s ease, box-shadow .2s ease;
}

.chat-icon:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
}

.chat-icon:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .chat-pill {
    display: none;
  }
}

/* Cart and wishlist badges for icons */
.icon-btn.cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  visibility: visible;
}

.icon-btn.wishlist {
  position: relative;
}

.wish-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  height: 18px;
  min-width: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
  visibility: visible;
}

/* Product detail modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  z-index: 71;
  width: min(1100px, 94%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

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

.pd-media {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px;
}

.pd-media .img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.pd-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.pd-cat {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}

.pd-title {
  margin: 0;
  font-size: clamp(18px, 3.8vw, 26px);
  color: var(--text);
}

.pd-price {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
}

.pd-price .currency {
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
}

.pd-price .current {
  color: #0f172a;
  font-weight: 900;
  font-size: 24px;
}

.pd-price .old {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 700;
}

.pd-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid #c7d2fe;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost:hover {
  filter: brightness(1.02);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

/* Footer Styles */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px;
  margin-top: 60px;
  font-size: 14px;
}

.footer .wrap.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer .wrap.footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer .wrap.footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

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

.brand-col p {
  margin: 16px 0 20px;
  line-height: 1.6;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  color: #fff;
  background: #1e293b;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.socials a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.contact-col li {
  display: flex;
  gap: 12px;
  align-items: start;
}

.contact-col i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
}