:root {
  --primary: #111827;
  --accent: #f59e0b;
  --secondary: #2563eb;
  --background: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  margin: 0 0 1rem;
  color: var(--primary);
}

p {
  margin: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--secondary));
  color: var(--white);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.35);
}

.btn.secondary {
  background: var(--primary);
  color: var(--white);
}

.btn.ghost {
  border-color: rgba(17, 24, 39, 0.2);
  color: var(--primary);
  background: transparent;
}

.hero .btn.ghost,
.deal-card .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease;
}

.site-header.hide {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.hero {
  position: relative;
  display: grid;
  min-height: 90vh;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.7), transparent);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.hero .subtext {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-grid,
.product-grid,
.team-grid {
  display: grid;
  gap: 1.5rem;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card {
  position: relative;
  height: 260px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--white);
  padding: 2rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,0.6));
}

.category-card div {
  position: relative;
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 0.75rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .product-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 280px;
  scroll-snap-align: start;
}

.product-card {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-card:hover {
  transform: translateY(-4px);
}

.product-info {
  padding: 1.5rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(17, 24, 39, 0.8);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-control.prev { left: -22px; }
.carousel-control.next { right: -22px; }

.deal-card {
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.deal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
}

.deal-card > div {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.countdown div {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-align: center;
}

.countdown span {
  font-size: 1.8rem;
  display: block;
}

.review-carousel {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem;
}

.review-carousel.slider {
  display: flex;
  overflow: hidden;
}

.review-carousel.slider {
  gap: 0;
}

.review-carousel.slider .review-card {
  flex: 0 0 100%;
  min-width: unset;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.review-carousel.slider .review-card.active {
  opacity: 1;
}

.review-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  position: relative;
  text-align: center;
}

.review-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.review-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5f5;
  cursor: pointer;
}

.review-dots button.active {
  background: var(--secondary);
}

.newsletter-card {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 1.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: none;
}

.form-feedback {
  width: 100%;
  font-size: 0.9rem;
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-grid h4 {
  color: var(--white);
}

.footer-grid a {
  display: block;
  margin-bottom: 0.4rem;
  color: inherit;
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer .logo {
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.site-footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Shop page */
.banner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 2rem 0 0;
}

.banner-card {
  border-radius: 1.2rem;
  padding: 1.8rem;
  color: var(--white);
  min-height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), transparent);
}

.banner-card p,
.banner-card h2 {
  position: relative;
  z-index: 1;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
}

.filter-panel {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 0.4rem;
  color: var(--muted);
}

.filter-panel input,
.filter-panel select {
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid #e5e7eb;
}

.range-value {
  font-weight: 600;
  color: var(--text);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination .pages {
  display: flex;
  gap: 0.5rem;
}

.pagination button {
  border-radius: 999px;
}

.pagination .pages .btn.active {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* Product page */
.product-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-gallery {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.gallery-thumbs .thumb {
  border: 2px solid transparent;
  border-radius: 0.8rem;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gallery-thumbs .thumb.active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  border-radius: 0.6rem;
  object-fit: cover;
}

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

.badge {
  background: rgba(37, 99, 235, 0.15);
  color: var(--secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.product-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid #e5e7eb;
  background: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-panel {
  display: none;
  animation: fade 0.3s ease;
}

.tab-panel.active {
  display: block;
}

.recommended {
  padding-top: 0;
}

/* About page */
.about-hero {
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0;
  color: var(--white);
}

.about-hero h1,
.about-hero p {
  color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.promise-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.promise-list li {
  padding: 1rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  position: relative;
  padding-left: 3rem;
}

.promise-list li::before {
  content: '\2713';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

/* Contact */
.contact-hero {
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
  color: var(--white);
}

.contact-hero h1,
.contact-hero p {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-form,
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.map iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

/* Cart */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
}

.cart-table thead {
  background: #eef2ff;
}

.cart-product {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-product img {
  width: 64px;
  height: 64px;
  border-radius: 0.6rem;
  object-fit: cover;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: none;
  cursor: pointer;
}

.cart-table input[type='number'] {
  width: 56px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  margin: 0 0.5rem;
}

.remove {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-summary {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.totals {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.totals p {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.totals .grand {
  font-weight: 700;
  font-size: 1.2rem;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.btn.bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.95); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1100px) {
  .carousel-track .product-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 0.8rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow);
    min-width: 200px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .carousel-control.prev { left: 0; }
  .carousel-control.next { right: 0; }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 85vh;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-track {
    padding: 0.5rem 1rem 0.75rem;
  }

  .carousel-track .product-card {
    flex-basis: 100%;
  }

  .review-carousel {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .contact-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .category-card {
    height: 220px;
  }

  .deal-card {
    padding: 2rem;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }
}
