/* =========================================================
   Hamara Bazaar — E-commerce UI Plugin
   Inspired by modern marketplace layouts (product grids,
   category sliders, off-canvas cart, product detail)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap');

:root {
  --hb-green-950: #081c15;
  --hb-green-900: #1b4332;
  --hb-green-800: #2d6a4f;
  --hb-green-700: #40916c;
  --hb-green-600: #52b788;
  --hb-green-100: #d8f3dc;
  --hb-green-50: #f0faf4;
  --hb-ink: #14201a;
  --hb-muted: #5c6b63;
  --hb-line: #e4ebe6;
  --hb-soft: #f4f7f5;
  --hb-white: #ffffff;
  --hb-danger: #c1121f;
  --hb-star: #e9b949;
  --hb-radius: 12px;
  --hb-radius-sm: 8px;
  --hb-radius-lg: 20px;
  --hb-shadow: 0 8px 30px rgba(27, 67, 50, 0.08);
  --hb-shadow-lg: 0 20px 50px rgba(27, 67, 50, 0.14);
  --hb-container: 1240px;
  --hb-font: "Outfit", sans-serif;
  --hb-display: "Fraunces", Georgia, serif;
  --hb-header-h: 78px;
  --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--hb-font);
  color: var(--hb-ink);
  background: var(--hb-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

.hb-container {
  width: min(100% - 2.5rem, var(--hb-container));
  margin-inline: auto;
}

.hb-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Top bar ---------- */
.hb-topbar {
  background: var(--hb-green-900);
  color: rgba(255,255,255,.85);
  font-size: 0.8125rem;
  padding: 0.55rem 0;
}
.hb-topbar .hb-container {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.hb-topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.hb-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hb-line);
}
.hb-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--hb-header-h);
}
.hb-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--hb-display);
  font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em;
  color: var(--hb-green-900);
}
.hb-logo__mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--hb-green-700), var(--hb-green-900));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.35);
}
.hb-nav { display: flex; align-items: center; gap: 0.35rem; justify-content: center; }
.hb-nav a {
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; color: var(--hb-muted);
  transition: color .2s, background .2s;
}
.hb-nav a:hover, .hb-nav a.is-active {
  color: var(--hb-green-900); background: var(--hb-green-50);
}
.hb-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.hb-search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--hb-soft); border: 1px solid transparent;
  border-radius: 999px; padding: 0.55rem 1rem; min-width: 220px;
  transition: border-color .2s, background .2s;
}
.hb-search:focus-within {
  background: #fff; border-color: var(--hb-green-600);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}
.hb-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  color: var(--hb-ink);
}
.hb-search input::placeholder { color: #8a9a91; }
.hb-icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--hb-green-900); background: var(--hb-soft);
  transition: transform .2s var(--hb-ease), background .2s;
}
.hb-icon-btn:hover { background: var(--hb-green-100); transform: translateY(-1px); }
.hb-icon-btn__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--hb-green-700); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  display: grid; place-items: center;
}

.hb-menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform .2s var(--hb-ease), box-shadow .2s, background .2s, color .2s;
}
.hb-btn:hover { transform: translateY(-2px); }
.hb-btn--primary {
  background: var(--hb-green-800); color: #fff;
  box-shadow: 0 10px 24px rgba(45, 106, 79, 0.28);
}
.hb-btn--primary:hover { background: var(--hb-green-900); }
.hb-btn--outline {
  background: transparent; color: var(--hb-green-900);
  border: 1.5px solid var(--hb-green-800);
}
.hb-btn--outline:hover { background: var(--hb-green-50); }
.hb-btn--dark {
  background: var(--hb-ink); color: #fff;
  box-shadow: 0 10px 24px rgba(20, 32, 26, 0.22);
}
.hb-btn--ghost { color: var(--hb-green-800); padding-inline: 0.4rem; }
.hb-btn--ghost:hover { color: var(--hb-green-900); }
.hb-btn--block { width: 100%; }
.hb-btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.hb-btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hb-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(82, 183, 136, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(216, 243, 220, 0.7), transparent 55%),
    linear-gradient(160deg, #f7fbf8 0%, #eef6f1 45%, #f5f8f6 100%);
  min-height: min(88vh, 720px);
  display: flex; align-items: center;
}
.hb-hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 2rem;
  padding: 3.5rem 0 4rem;
}
.hb-hero__copy { max-width: 34rem; position: relative; z-index: 2; }
.hb-hero__brand {
  font-family: var(--hb-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--hb-green-900);
  line-height: 1.05;
  margin-bottom: 1rem;
  animation: hb-rise 0.8s var(--hb-ease) both;
}
.hb-hero__title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500; color: var(--hb-ink);
  margin-bottom: 0.75rem;
  animation: hb-rise 0.8s 0.08s var(--hb-ease) both;
}
.hb-hero__text {
  color: var(--hb-muted); font-size: 1.05rem; margin-bottom: 1.75rem;
  animation: hb-rise 0.8s 0.14s var(--hb-ease) both;
}
.hb-hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  animation: hb-rise 0.8s 0.2s var(--hb-ease) both;
}
.hb-hero__visual {
  position: relative;
  display: grid; place-items: center;
  animation: hb-fade-scale 1s 0.15s var(--hb-ease) both;
}
.hb-hero__orb {
  position: absolute;
  width: min(92%, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(82,183,136,.45), rgba(45,106,79,.18) 55%, transparent 70%);
  filter: blur(2px);
}
.hb-hero__image {
  position: relative; z-index: 1;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--hb-shadow-lg);
}
.hb-hero__badge {
  position: absolute; top: 8%; right: 8%; z-index: 2;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--hb-green-800); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-weight: 700; font-size: 0.78rem; line-height: 1.2;
  box-shadow: 0 12px 28px rgba(45,106,79,.35);
  animation: hb-float 4s ease-in-out infinite;
}

@keyframes hb-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hb-fade-scale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Section chrome ---------- */
.hb-section { padding: 4rem 0; }
.hb-section--soft { background: var(--hb-soft); }
.hb-section__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.hb-section__title {
  font-family: var(--hb-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--hb-green-950);
}
.hb-section__sub { color: var(--hb-muted); margin-top: 0.35rem; max-width: 36rem; }

/* ---------- Category slider ---------- */
.hb-cat-slider {
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hb-cat-slider::-webkit-scrollbar { display: none; }
.hb-cat {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 118px; text-align: center;
  transition: transform .25s var(--hb-ease);
}
.hb-cat:hover { transform: translateY(-4px); }
.hb-cat__icon {
  width: 88px; height: 88px; margin: 0 auto 0.7rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--hb-green-800);
  border: 1px solid rgba(45,106,79,.08);
  transition: box-shadow .25s, border-color .25s;
}
.hb-cat:hover .hb-cat__icon {
  box-shadow: var(--hb-shadow); border-color: var(--hb-green-600);
}
.hb-cat__name { font-weight: 600; font-size: 0.9rem; }
.hb-cat__count { font-size: 0.75rem; color: var(--hb-muted); }

/* ---------- Product card / grid ---------- */
.hb-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.hb-product-card {
  display: flex; flex-direction: column;
}
.hb-product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--hb-soft);
  border-radius: var(--hb-radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.hb-product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--hb-ease);
}
.hb-product-card:hover .hb-product-card__media img { transform: scale(1.06); }
.hb-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--hb-green-800); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.28rem 0.55rem; border-radius: 6px;
}
.hb-badge--hot { background: var(--hb-danger); }
.hb-badge--new { background: var(--hb-ink); }
.hb-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--hb-muted);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: color .2s, transform .2s;
}
.hb-wish:hover, .hb-wish.is-active { color: var(--hb-danger); transform: scale(1.08); }
.hb-product-card__cat {
  font-size: 0.75rem; color: var(--hb-muted); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.2rem;
}
.hb-product-card__name {
  font-weight: 600; font-size: 0.98rem; margin-bottom: 0.35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hb-product-card__name:hover { color: var(--hb-green-800); }
.hb-price { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.hb-price__now { font-weight: 700; font-size: 1.05rem; }
.hb-price__was { color: var(--hb-muted); text-decoration: line-through; font-size: 0.88rem; }
.hb-price__off { color: var(--hb-danger); font-weight: 600; font-size: 0.82rem; }
.hb-rating {
  display: flex; align-items: center; gap: 0.3rem;
  margin-top: 0.4rem; font-size: 0.8rem; color: var(--hb-muted);
}
.hb-stars { color: var(--hb-star); letter-spacing: 1px; }

/* Product slider */
.hb-slider-wrap { position: relative; }
.hb-product-slider {
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0.25rem 0 0.75rem;
}
.hb-product-slider::-webkit-scrollbar { display: none; }
.hb-product-slider .hb-product-card {
  flex: 0 0 calc((100% - 5rem) / 5);
  min-width: 200px; scroll-snap-align: start;
}
.hb-slider-nav {
  display: flex; gap: 0.5rem;
}
.hb-slider-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hb-line); background: #fff;
  display: grid; place-items: center; color: var(--hb-green-900);
  transition: background .2s, border-color .2s;
}
.hb-slider-nav button:hover {
  background: var(--hb-green-50); border-color: var(--hb-green-600);
}

/* ---------- Promo banners ---------- */
.hb-promos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.hb-promo {
  position: relative; overflow: hidden;
  border-radius: var(--hb-radius-lg);
  min-height: 240px;
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.hb-promo--summer {
  background:
    linear-gradient(115deg, rgba(27,67,50,.92) 0%, rgba(45,106,79,.75) 55%, rgba(45,106,79,.35) 100%),
    url('https://images.unsplash.com/photo-1523381210434-271e8be1f52b?w=1000&q=80') center/cover;
}
.hb-promo--deal {
  background:
    linear-gradient(115deg, rgba(20,32,26,.88) 0%, rgba(20,32,26,.55) 100%),
    url('https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=1000&q=80') center/cover;
  color: #fff;
}
.hb-promo__label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: .85; margin-bottom: 0.4rem;
}
.hb-promo__title {
  font-family: var(--hb-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; margin-bottom: 1rem; max-width: 14ch;
}
.hb-countdown {
  display: flex; gap: 0.55rem; margin-bottom: 1.1rem;
}
.hb-countdown span {
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border-radius: 10px; min-width: 54px; padding: 0.45rem 0.4rem;
  text-align: center; font-weight: 700;
}
.hb-countdown small {
  display: block; font-weight: 400; font-size: 0.65rem; opacity: .8;
}

/* ---------- Trust bar ---------- */
.hb-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.hb-trust__item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1rem; border-radius: var(--hb-radius);
  background: #fff; border: 1px solid var(--hb-line);
}
.hb-trust__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--hb-green-50); color: var(--hb-green-800);
  display: grid; place-items: center; flex-shrink: 0;
}
.hb-trust__item strong { display: block; font-size: 0.95rem; }
.hb-trust__item p { font-size: 0.8rem; color: var(--hb-muted); }

/* ---------- Brands ---------- */
.hb-brands {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem 2.5rem; align-items: center;
  opacity: 0.55; filter: grayscale(1);
}
.hb-brands span {
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
  color: var(--hb-ink);
}

/* ---------- Testimonials ---------- */
.hb-testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.hb-testimonial {
  background: #fff; border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius); padding: 1.4rem;
}
.hb-testimonial__top {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem;
}
.hb-testimonial__top img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
}
.hb-testimonial__top strong { display: block; font-size: 0.95rem; }
.hb-verified {
  font-size: 0.72rem; color: var(--hb-green-700); font-weight: 600;
}
.hb-testimonial p { color: var(--hb-muted); font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.hb-newsletter {
  background:
    linear-gradient(120deg, var(--hb-green-900), var(--hb-green-800) 55%, var(--hb-green-700));
  border-radius: var(--hb-radius-lg);
  padding: 2.25rem 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem;
  align-items: center; color: #fff;
}
.hb-newsletter h3 {
  font-family: var(--hb-display); font-size: 1.55rem; margin-bottom: 0.35rem;
}
.hb-newsletter p { opacity: .85; font-size: 0.95rem; }
.hb-newsletter__form {
  display: flex; gap: 0.5rem; background: rgba(255,255,255,.12);
  padding: 0.4rem; border-radius: 999px; min-width: min(100%, 380px);
}
.hb-newsletter__form input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: #fff; padding: 0.65rem 1rem;
}
.hb-newsletter__form input::placeholder { color: rgba(255,255,255,.65); }
.hb-newsletter__form .hb-btn {
  background: var(--hb-ink); color: #fff; box-shadow: none;
}

/* ---------- Footer ---------- */
.hb-footer {
  background: var(--hb-green-950); color: rgba(255,255,255,.78);
  padding: 3.5rem 0 1.5rem; margin-top: 2rem;
}
.hb-footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
  margin-bottom: 2.5rem;
}
.hb-footer .hb-logo { color: #fff; margin-bottom: 0.85rem; }
.hb-footer p { font-size: 0.92rem; max-width: 28ch; line-height: 1.65; }
.hb-footer h4 {
  color: #fff; font-size: 0.95rem; margin-bottom: 1rem; font-weight: 600;
}
.hb-footer ul li { margin-bottom: 0.55rem; }
.hb-footer a:hover { color: var(--hb-green-600); }
.hb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ---------- Off-canvas cart ---------- */
.hb-overlay {
  position: fixed; inset: 0; background: rgba(8, 28, 21, 0.45);
  opacity: 0; visibility: hidden; z-index: 200;
  transition: opacity .3s, visibility .3s;
}
.hb-overlay.is-open { opacity: 1; visibility: visible; }

.hb-cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(100%, 420px); z-index: 210;
  background: #fff;
  transform: translateX(100%);
  transition: transform .4s var(--hb-ease);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.hb-cart-drawer.is-open { transform: translateX(0); }
.hb-cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.35rem; border-bottom: 1px solid var(--hb-line);
}
.hb-cart-drawer__head h3 { font-size: 1.15rem; font-weight: 700; }
.hb-cart-drawer__body {
  flex: 1; overflow-y: auto; padding: 1.25rem 1.35rem;
}
.hb-cart-empty {
  text-align: center; padding: 3rem 1rem; color: var(--hb-muted);
}
.hb-cart-line {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 0.85rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--hb-line);
}
.hb-cart-line img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 10px;
  background: var(--hb-soft);
}
.hb-cart-line__name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; }
.hb-cart-line__meta { font-size: 0.78rem; color: var(--hb-muted); margin-bottom: 0.45rem; }
.hb-qty {
  display: inline-flex; align-items: center; border: 1px solid var(--hb-line);
  border-radius: 8px; overflow: hidden;
}
.hb-qty button {
  width: 30px; height: 30px; color: var(--hb-ink);
  transition: background .15s;
}
.hb-qty button:hover { background: var(--hb-soft); }
.hb-qty span {
  min-width: 28px; text-align: center; font-weight: 600; font-size: 0.88rem;
}
.hb-cart-line__price { font-weight: 700; font-size: 0.95rem; }
.hb-cart-line__remove {
  color: var(--hb-muted); font-size: 0.78rem; margin-top: 0.35rem;
}
.hb-cart-line__remove:hover { color: var(--hb-danger); }
.hb-cart-drawer__foot {
  padding: 1.25rem 1.35rem; border-top: 1px solid var(--hb-line);
  background: var(--hb-soft);
}
.hb-cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; font-weight: 700; font-size: 1.1rem;
}

/* ---------- Page hero (inner) ---------- */
.hb-page-hero {
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(82,183,136,.18), transparent),
    var(--hb-soft);
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--hb-line);
}
.hb-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  font-size: 0.88rem; color: var(--hb-muted); margin-bottom: 0.65rem;
}
.hb-breadcrumb a:hover { color: var(--hb-green-800); }
.hb-page-hero h1 {
  font-family: var(--hb-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

/* ---------- Shop layout ---------- */
.hb-shop {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem;
  padding: 2.5rem 0 4rem;
}
.hb-filters {
  position: sticky; top: calc(var(--hb-header-h) + 1rem);
  align-self: start;
  background: #fff; border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius); padding: 1.25rem;
}
.hb-filters h3 {
  font-size: 0.95rem; margin-bottom: 0.85rem; font-weight: 700;
}
.hb-filters__group { margin-bottom: 1.35rem; }
.hb-filters label {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0; font-size: 0.9rem; color: var(--hb-muted);
  cursor: pointer;
}
.hb-filters label:hover { color: var(--hb-ink); }
.hb-filters input[type="checkbox"],
.hb-filters input[type="radio"] {
  accent-color: var(--hb-green-700); width: 16px; height: 16px;
}
.hb-shop__toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.hb-shop__toolbar select {
  border: 1px solid var(--hb-line); border-radius: 999px;
  padding: 0.55rem 1rem; background: #fff; outline: none;
}
.hb-shop__toolbar select:focus { border-color: var(--hb-green-600); }
.hb-shop .hb-product-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Product detail ---------- */
.hb-pdp {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  padding: 2.75rem 0 3.5rem;
}
.hb-gallery__main {
  position: relative;
  aspect-ratio: 1; border-radius: var(--hb-radius-lg);
  background: var(--hb-soft); overflow: hidden;
  margin-bottom: 0.85rem;
}
.hb-gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hb-gallery__stock {
  position: absolute; top: 16px; right: 16px;
  background: var(--hb-green-800); color: #fff;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 0.85rem 0.45rem; border-radius: 8px;
}
.hb-gallery__thumbs {
  display: flex; gap: 0.65rem;
}
.hb-gallery__thumbs button {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; opacity: .7;
  transition: border-color .2s, opacity .2s;
}
.hb-gallery__thumbs button.is-active,
.hb-gallery__thumbs button:hover {
  border-color: var(--hb-green-700); opacity: 1;
}
.hb-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.hb-pdp__info h1 {
  font-family: var(--hb-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.02em; margin-bottom: 0.65rem;
}
.hb-pdp__price {
  font-size: 1.55rem; font-weight: 700; color: var(--hb-green-800);
  margin: 0.85rem 0 1.25rem;
}
.hb-pdp__price .hb-price__was { font-size: 1rem; margin-left: 0.5rem; }
.hb-option { margin-bottom: 1.35rem; }
.hb-option__label {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.9rem; margin-bottom: 0.65rem;
}
.hb-option__label a { color: var(--hb-green-700); font-weight: 500; font-size: 0.82rem; }
.hb-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hb-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; outline: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--hb-line);
  transition: outline-color .2s, transform .2s;
}
.hb-swatch.is-active, .hb-swatch:hover {
  outline-color: var(--hb-green-700); transform: scale(1.08);
}
.hb-sizes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hb-size {
  min-width: 48px; height: 42px; padding: 0 0.75rem;
  border: 1.5px solid var(--hb-line); border-radius: 10px;
  font-weight: 600; font-size: 0.88rem;
  transition: border-color .2s, background .2s, color .2s;
}
.hb-size.is-active, .hb-size:hover {
  border-color: var(--hb-green-700);
  background: var(--hb-green-50); color: var(--hb-green-900);
}
.hb-pdp__actions {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}
.hb-pdp__actions .hb-btn--primary { flex: 1; min-width: 180px; }
.hb-pdp__links {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: 0.88rem; color: var(--hb-muted);
}
.hb-pdp__links a:hover { color: var(--hb-green-800); }

.hb-tabs {
  border-top: 1px solid var(--hb-line);
  padding: 2.5rem 0 3rem;
}
.hb-tabs__nav {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--hb-line); margin-bottom: 1.5rem;
}
.hb-tabs__nav button {
  padding: 0.85rem 1.15rem; font-weight: 600; font-size: 0.92rem;
  color: var(--hb-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.hb-tabs__nav button.is-active {
  color: var(--hb-green-900); border-bottom-color: var(--hb-green-700);
}
.hb-tabs__panel { display: none; color: var(--hb-muted); max-width: 70ch; }
.hb-tabs__panel.is-active { display: block; animation: hb-rise .35s var(--hb-ease); }
.hb-tabs__panel ul { margin-top: 0.75rem; }
.hb-tabs__panel li {
  padding: 0.35rem 0 0.35rem 1.1rem; position: relative;
}
.hb-tabs__panel li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--hb-green-600);
}
.hb-specs {
  display: grid; grid-template-columns: 140px 1fr; gap: 0.55rem 1rem;
  margin-top: 0.5rem;
}
.hb-specs dt { font-weight: 600; color: var(--hb-ink); }

/* ---------- Cart & Checkout pages ---------- */
.hb-cart-page, .hb-checkout {
  padding: 2.5rem 0 4rem;
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem;
  align-items: start;
}
.hb-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius); overflow: hidden;
}
.hb-table th {
  text-align: left; padding: 1rem 1.15rem; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--hb-muted); background: var(--hb-soft);
  border-bottom: 1px solid var(--hb-line);
}
.hb-table td {
  padding: 1.15rem; border-bottom: 1px solid var(--hb-line);
  vertical-align: middle;
}
.hb-table tr:last-child td { border-bottom: 0; }
.hb-table__product {
  display: flex; align-items: center; gap: 0.85rem;
}
.hb-table__product img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover;
  background: var(--hb-soft);
}

.hb-summary {
  background: var(--hb-soft); border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius); padding: 1.5rem;
  position: sticky; top: calc(var(--hb-header-h) + 1rem);
}
.hb-summary h3 {
  font-size: 1.15rem; margin-bottom: 1.15rem; font-weight: 700;
}
.hb-summary__row {
  display: flex; justify-content: space-between;
  padding: 0.55rem 0; font-size: 0.95rem; color: var(--hb-muted);
}
.hb-summary__row--total {
  border-top: 1px solid var(--hb-line); margin-top: 0.65rem;
  padding-top: 1rem; color: var(--hb-ink); font-weight: 700; font-size: 1.15rem;
}
.hb-summary .hb-btn { margin-top: 1.15rem; }

.hb-form {
  background: #fff; border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius); padding: 1.5rem;
}
.hb-form h3 {
  font-size: 1.1rem; margin-bottom: 1.15rem; font-weight: 700;
}
.hb-form__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hb-field { margin-bottom: 1rem; }
.hb-field--full { grid-column: 1 / -1; }
.hb-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.4rem;
}
.hb-field input, .hb-field select, .hb-field textarea {
  width: 100%; border: 1px solid var(--hb-line); border-radius: 10px;
  padding: 0.75rem 0.9rem; outline: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hb-field input:focus, .hb-field select:focus, .hb-field textarea:focus {
  border-color: var(--hb-green-600);
  box-shadow: 0 0 0 3px rgba(82,183,136,.2);
}
.hb-payment {
  display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem;
}
.hb-payment label {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1rem; border: 1px solid var(--hb-line);
  border-radius: 10px; cursor: pointer; font-weight: 500;
}
.hb-payment label:has(input:checked) {
  border-color: var(--hb-green-700); background: var(--hb-green-50);
}

/* ---------- Mobile nav ---------- */
.hb-mobile-nav {
  position: fixed; inset: 0 auto 0 0; width: min(100%, 300px);
  background: #fff; z-index: 220;
  transform: translateX(-105%);
  transition: transform .35s var(--hb-ease);
  padding: 1.5rem; box-shadow: 8px 0 30px rgba(0,0,0,.1);
}
.hb-mobile-nav.is-open { transform: translateX(0); }
.hb-mobile-nav a {
  display: block; padding: 0.75rem 0; font-weight: 600;
  border-bottom: 1px solid var(--hb-line);
}

/* ---------- Toast ---------- */
.hb-toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--hb-green-900); color: #fff;
  padding: 0.85rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; z-index: 300;
  box-shadow: var(--hb-shadow-lg);
  transition: transform .4s var(--hb-ease);
  pointer-events: none;
}
.hb-toast.is-show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hb-product-grid { grid-template-columns: repeat(3, 1fr); }
  .hb-product-slider .hb-product-card { flex-basis: calc((100% - 2.5rem) / 3); }
  .hb-shop { grid-template-columns: 220px 1fr; }
  .hb-shop .hb-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hb-nav, .hb-search { display: none; }
  .hb-menu-toggle { display: grid; }
  .hb-header__inner { grid-template-columns: auto 1fr auto; }
  .hb-hero__grid, .hb-pdp, .hb-promos, .hb-cart-page, .hb-checkout,
  .hb-newsletter, .hb-footer__grid, .hb-testimonials, .hb-trust {
    grid-template-columns: 1fr;
  }
  .hb-hero { min-height: auto; }
  .hb-hero__grid { padding: 2.5rem 0; }
  .hb-shop { grid-template-columns: 1fr; }
  .hb-filters { position: static; }
  .hb-product-grid { grid-template-columns: repeat(2, 1fr); }
  .hb-product-slider .hb-product-card { flex-basis: calc((100% - 1.25rem) / 2); }
  .hb-form__grid { grid-template-columns: 1fr; }
  .hb-table thead { display: none; }
  .hb-table, .hb-table tbody, .hb-table tr, .hb-table td { display: block; width: 100%; }
  .hb-table tr { padding: 1rem; border-bottom: 1px solid var(--hb-line); }
  .hb-table td { padding: 0.35rem 0; border: 0; }
}

@media (max-width: 560px) {
  .hb-container { width: min(100% - 1.5rem, var(--hb-container)); }
  .hb-product-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .hb-trust { grid-template-columns: 1fr 1fr; }
}
