:root {
  --accent: #7d4c9e;
  --dark: #1a1a1a;
  --muted: #666;
  --border: #ddd;
  --bg: #ffffff;
  --soft: #f5f5f5;
  --orange: #f5821f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.5;
  font-size: 14px;
}

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.nav a {
  padding: 4px 0;
  color: var(--dark);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  background: #fff;
}

.search input {
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 140px;
  background: transparent;
}

.search input::placeholder {
  color: #999;
}

.search button {
  color: var(--muted);
  font-size: 13px;
}

.icons {
  display: flex;
  gap: 6px;
}

.icons button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.icons button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  background: #f8f8f8;
  padding: 12px 0;
}

.hero .swiper {
  border-radius: 0;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  min-height: 280px;
}

.hero-slide img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 8px;
}

.hero-overlay h1 {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-overlay p {
  max-width: 380px;
  font-size: 13px;
  color: #ddd;
  line-height: 1.4;
}

.btn-primary {
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #e8761b;
}

.hero-pagination .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 8px;
  height: 8px;
}

.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--orange);
}

/* Sections */
.section {
  padding: 24px 0 12px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head > div {
  flex: 1;
}

.section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.section-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.link {
  font-weight: 600;
  color: var(--orange);
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.2s;
}

.link:hover {
  color: var(--accent);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.category-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1 / 1;
}

.category-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.category-card:nth-child(5) {
  grid-column: span 2;
}

.category-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.4));
  color: #fff;
  padding: 12px;
  gap: 6px;
  transition: background 0.3s;
}

.category-card:hover .category-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.6));
}

.category-overlay h3 {
  font-size: 14px;
  font-weight: 600;
}

.category-overlay button {
  align-self: flex-start;
  padding: 6px 12px;
  background: #fff;
  color: var(--accent);
  border-radius: 0;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-overlay button:hover {
  background: var(--accent);
  color: #fff;
}

/* Product sliders */
.products {
  background: #fff;
}

.product-swiper {
  padding-bottom: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card img {
  border-radius: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.product-card h4 {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 8px 0;
  line-height: 1.3;
}

.price {
  font-weight: 700;
  color: var(--orange);
  padding: 0 8px 8px;
  font-size: 14px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 8px 8px;
}

.btn-cart,
.btn-whatsapp {
  padding: 8px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cart {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-cart:hover {
  background: #e8761b;
  border-color: #e8761b;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #20ba58;
  border-color: #20ba58;
}
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: #fff;
  padding: 4px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
}

.slider-nav {
  display: flex;
  gap: 6px;
}

.slider-nav button {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: #fff;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.slider-nav button:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Footer */
.footer {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  padding: 24px 0 16px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.footer h3 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 15px;
}

.footer h4 {
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.footer p,
.footer ul {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.footer a {
  color: var(--orange);
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Swiper pagination theme */
.product-swiper .swiper-pagination-bullet {
  background: var(--border);
  width: 8px;
  height: 8px;
}

.product-swiper .swiper-pagination-bullet-active {
  background: var(--orange);
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .nav {
    gap: 8px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
  }

  .search {
    padding: 4px 6px;
  }

  .search input {
    min-width: 100px;
    font-size: 12px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .category-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .category-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: 240px;
  }

  .section-head {
    flex-direction: column;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .category-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .category-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 14px;
  }

  .nav {
    display: none;
  }

  .header-actions {
    width: 100%;
  }

  .search {
    flex: 1;
    min-width: 0;
  }

  .search input {
    min-width: 80px;
    font-size: 12px;
  }

  .icons button {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .hero-slide {
    min-height: 200px;
  }

  .hero-overlay {
    padding: 16px;
  }

  .hero-overlay h1 {
    font-size: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .category-card:nth-child(1) {
    grid-column: span 1;
  }

  .category-card:nth-child(5) {
    grid-column: span 1;
  }

  .section-head h2 {
    font-size: 16px;
  }

  .product-card h4 {
    font-size: 12px;
  }

  .product-card img {
    aspect-ratio: 3 / 4;
  }

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