/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brown-dark: #4a2c1a;
  --brown: #6f4423;
  --brown-mid: #8a5a34;
  --tan: #c99a5b;
  --tan-light: #e8d3b0;
  --cream: #faf5ee;
  --text-dark: #2e2013;
  --text-muted: #6b5a4a;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 1.6rem;
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 6px;
}

.section-title.light {
  color: var(--white);
  text-align: left;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--brown-dark);
  color: var(--tan-light);
  font-size: 0.75rem;
}

.topbar-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 20px;
}

.topbar a {
  color: var(--white);
  font-weight: 600;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--tan);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  background: var(--brown);
  color: var(--white);
  font-weight: bold;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  color: var(--brown-dark);
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.search-wrap {
  display: flex;
  flex: 1 1 100%;
  order: 3;
  border: 2px solid var(--tan);
  border-radius: 6px;
  overflow: hidden;
}

.search-wrap input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.search-wrap button {
  background: var(--tan);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 1rem;
}

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--brown-dark);
  border-radius: 2px;
}

.catnav {
  display: none;
  flex-direction: column;
  background: var(--brown-dark);
}

.catnav.open {
  display: flex;
}

.catnav a {
  padding: 12px 20px;
  color: var(--tan-light);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.catnav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--tan);
  color: var(--brown-dark);
}

.btn-primary:hover {
  background: var(--tan-light);
}

.btn-outline {
  border: 2px solid var(--brown);
  color: var(--brown);
  background: none;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

/* ===== Hero carousel ===== */
.hero {
  background: var(--brown-dark);
}

.carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  filter: brightness(0.55);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  color: var(--white);
}

.slide-overlay h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  max-width: 320px;
}

.slide-overlay p {
  margin-bottom: 16px;
  color: var(--tan-light);
  font-size: 0.9rem;
  max-width: 300px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: rgba(255,255,255,0.4); }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}

.dot.active { background: var(--tan); }

/* ===== Featured Categories ===== */
.categories {
  padding: 40px 0 20px;
}

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

.cat-card {
  background: var(--white);
  border: 1px solid var(--tan-light);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(74,44,26,0.15);
}

.cat-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.cat-card span {
  display: block;
  padding: 8px 4px;
  font-weight: 600;
  color: var(--brown-dark);
  font-size: 0.85rem;
}

/* ===== Products ===== */
.products {
  padding: 30px 0 40px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--tan-light);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 6px 16px rgba(74,44,26,0.15);
}

.product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-info h4 {
  color: var(--brown-dark);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.product-info .pack {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.product-info .price {
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.product-info .price span {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
}

/* ===== Features strip ===== */
.features-strip {
  background: var(--brown);
  padding: 24px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.feature-item {
  color: var(--white);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.8rem;
}

/* ===== About ===== */
.about {
  padding: 40px 0;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text h3 {
  color: var(--brown-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.about-text p {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-list li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brown);
  font-weight: bold;
}

.about-image img {
  border-radius: 8px;
  border: 4px solid var(--tan-light);
}

/* ===== Contact ===== */
.contact {
  background: var(--brown-dark);
  color: var(--white);
  padding: 40px 0;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info p {
  margin-bottom: 8px;
  color: var(--tan-light);
  font-size: 0.9rem;
}

.contact-info a {
  color: var(--white);
  font-weight: 600;
}

.contact-map iframe {
  border-radius: 8px;
}

/* ===== Footer ===== */
.footer {
  background: #2e1c11;
  color: var(--tan-light);
  padding: 30px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-col p, .footer-col a {
  font-size: 0.82rem;
  color: var(--tan-light);
}

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

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: var(--tan-light);
}

/* ===== Responsive: Tablet & Desktop ===== */
@media (min-width: 768px) {
  .topbar-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .search-wrap {
    flex: 1 1 auto;
    order: 0;
    max-width: 380px;
  }

  .menu-toggle {
    display: none;
  }

  .catnav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .catnav a {
    border-bottom: none;
  }

  .slide img {
    height: 380px;
  }

  .slide-overlay h2 {
    font-size: 2.2rem;
    max-width: 480px;
  }

  .slide-overlay p {
    font-size: 1.05rem;
    max-width: 420px;
  }

  .slide-overlay {
    padding: 40px 60px;
  }

  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .about-inner {
    flex-direction: row;
    align-items: center;
  }

  .about-text, .about-image {
    flex: 1;
  }

  .contact-inner {
    flex-direction: row;
  }

  .contact-info, .contact-map {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .slide img {
    height: 440px;
  }
}
