:root{
  --container: 1200px;
  --gap: 24px;
  --radius: 16px;
  --border: #e6e6e6;
  --text: #1b1b1b;
  --muted: #666;
  --bg: #fff;
  --brand: #0d4b3a; /* tune to your brand green */
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 2*var(--gap)));
  margin-inline: auto;
}

/* Topbar */
.topbar{
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  display:flex;
  gap: var(--gap);
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
}
.topbar-right{ display:flex; gap: 16px; flex-wrap:wrap; }
.topbar-link{ color: var(--muted); }

/* Header */
.header-main{
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:grid;
  grid-template-columns: 240px 1fr auto;
  align-items:center;
  gap: var(--gap);
  padding: 18px 0;
}
.site-title{ font-weight: 700; font-size: 18px; }
.header-search form{
  display:flex;
  gap: 10px;
}
.header-search input[type="search"]{
  width:100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.header-search button{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7f7f7;
  cursor:pointer;
}
.header-actions{ display:flex; gap: 16px; align-items:center; }
.header-action{ color: var(--muted); }
.cart-count{
  display:inline-flex;
  min-width: 22px;
  height: 22px;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  margin-left: 6px;
}

/* Nav */
.primary-nav .menu{
  list-style:none;
  display:flex;
  gap: 18px;
  margin: 0;
  padding: 12px 0;
  overflow-x:auto;
}
.primary-nav .menu > li > a{ color: var(--text); font-weight: 600; }
.primary-nav .menu li{ white-space: nowrap; }

/* Hero */
.home-hero{
  padding: 40px 0;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:center;
}
.hero-image img{
  width:500px;
  height:500px;
  display:block;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.hero-content h1{ margin:0 0 10px; font-size: 42px; line-height: 1.1; }
.hero-content p{ margin:0 0 18px; color: black; font-weight:500; font-size: 18px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: bllack;
  font-weight: 700;
}
.btn:hover{ text-decoration:none; opacity:.92; }

/* Carousel */
.product-carousel{
  padding: 12px 0 36px;
}
.carousel-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 12px;
}
.carousel-title{ margin:0; font-size: 24px; }
.carousel-nav{ display:flex; gap: 8px; }
.carousel-nav button{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
}
.carousel-track{
  display:grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 16px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar{ display:none; }

.product-card{
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background:#fff;
}
.product-card-image img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 12px;
}
.product-card-title{
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 650;
}
.product-card-price{
  color: var(--text);
  font-weight: 700;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}
.footer-links{
  list-style:none;
  margin: 0;
  padding: 0;
}
.footer-links li{ margin: 8px 0; }
.footer-links a{ color: var(--muted); }
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

/* Page basics */
.page-title{ margin: 28px 0 14px; }

/* Responsive */
@media (max-width: 900px){
  .header-inner{ grid-template-columns: 1fr; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-content h1{ font-size: 34px; }
  .footer-grid{ grid-template-columns: 1fr; }
}
