* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

:root {
  --ink: #1b1f16;
  --ink-soft: #666b5c;
  --muted: #9a9d8e;
  --line: #e4e6da;
  --paper: #ffffff;
  --bg: #f5f4ec;
  --dark: #202519;
  --dark-soft: #2c3322;
  --accent: #7c9a5a;
  --accent-dark: #5c7a3e;
  --accent-soft: #e6ecdb;
}

body { font-family: 'Poppins', sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 14px; -webkit-font-smoothing: antialiased; }
.script { font-family: 'Caveat', cursive; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.page-shell { max-width: 1240px; margin: 0 auto; padding: 0 3.2rem 2.4rem; }

/* ---------- Hero card (dark moody) ---------- */
.hero-wrap { padding: 1.6rem 3.2rem 0; }
.hero-card { background: linear-gradient(135deg, #3a4530 0%, #232a1c 55%, #171b12 100%); border-radius: 20px; padding: 1.4rem 1.6rem 2rem; color: #fff; position: relative; overflow: hidden; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; background: #fff; border-radius: 999px; padding: 0.6rem 0.6rem 0.6rem 1.4rem; margin-bottom: 1.8rem; }
.logo { font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.main-nav { display: flex; align-items: center; gap: 0.3rem; }
.main-nav a { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); padding: 0.55rem 0.9rem; border-radius: 999px; }
.main-nav a.active { background: var(--dark); color: #fff; }
.main-nav a:hover:not(.active) { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.header-actions button { background: var(--bg); border: none; color: var(--ink); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; position: relative; }
.cart-badge { position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; font-size: 9px; line-height: 15px; text-align: center; border-radius: 50%; background: var(--accent-dark); color: #fff; }

.hero-inner { display: grid; grid-template-columns: 1fr 0.95fr; gap: 2rem; align-items: stretch; }
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero-text h1 { font-size: 3.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.3rem; letter-spacing: -0.01em; }
.hero-text h1 .script { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.5em; color: var(--accent); display: inline-block; line-height: 0.9; }
.hero-text .lead { color: rgba(255,255,255,0.68); font-size: 1rem; max-width: 36ch; margin-bottom: 1.8rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.btn-dark { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.85rem 1.6rem; font-weight: 600; font-size: 0.82rem; background: var(--accent-dark); color: #fff; border: none; transition: background 0.2s ease; }
.btn-dark:hover { background: #4a6231; }
.watch-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: none; color: #fff; font-size: 0.78rem; font-weight: 600; }
.watch-btn .play-circle { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.watch-btn small { display: block; font-weight: 400; color: rgba(255,255,255,0.55); font-size: 0.68rem; }
.hero-trust-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.hero-image-frame { aspect-ratio: 4 / 3.6; border-radius: 14px; overflow: hidden; background: #000; }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section head ---------- */
.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head-row h2 { font-size: 1.3rem; font-weight: 700; }
.section-head-row .head-link { font-size: 0.76rem; font-weight: 700; color: var(--accent-dark); }
.section-head-row .head-link:hover { color: var(--accent); }

/* ---------- Category grid ---------- */
.category-section { padding: 2rem 0 0.5rem; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.category-card { border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 1 / 1.05; }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%); }
.category-card span { position: absolute; left: 0.7rem; bottom: 0.6rem; z-index: 1; color: #fff; font-size: 0.76rem; font-weight: 700; }

/* ---------- Product grid / cards ---------- */
.bestsellers-section { padding: 1.4rem 0 1.8rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card { display: flex; flex-direction: column; cursor: pointer; background: var(--bg); border-radius: 12px; padding: 0.8rem 0.8rem 1rem; transition: box-shadow 0.2s ease; }
.product-card:hover { box-shadow: 0 16px 30px -20px rgba(27,31,22,0.4); }
.card-img { border-radius: 8px; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 0.7rem; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card h3 { font-size: 0.84rem; font-weight: 700; margin-bottom: 0.35rem; }
.card-rating { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.6rem; }
.card-rating .stars { color: var(--accent-dark); font-size: 0.7rem; letter-spacing: 1px; }
.card-rating .rating-count { font-size: 0.66rem; color: var(--ink-soft); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-price { font-weight: 700; font-size: 0.88rem; }
.add-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--dark); color: #fff; border: none; font-size: 1.05rem; line-height: 1; transition: background 0.2s ease; }
.add-btn:hover { background: #000; }
.add-btn.added { background: #2f8f4e; }

/* ---------- Trust badge strip ---------- */
.badge-strip { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; margin-bottom: 0.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.badge-strip li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 600; }
.badge-strip small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.7rem; }
.badge-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Newsletter ---------- */
.newsletter-section { background: var(--dark); color: #fff; border-radius: 16px; padding: 1.8rem 2rem; text-align: center; margin: 1.8rem 0; }
.newsletter-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.newsletter-section p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-bottom: 1.1rem; }
.newsletter-form { display: flex; gap: 0.6rem; justify-content: center; max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; border: none; background: rgba(255,255,255,0.95); border-radius: 999px; padding: 0.75rem 1.1rem; font-family: inherit; font-size: 0.8rem; outline: none; min-width: 0; }
.newsletter-form button { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 0.75rem 1.3rem; font-weight: 700; font-size: 0.78rem; white-space: nowrap; transition: background 0.2s ease; }
.newsletter-form button:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 1.6rem; padding: 1.8rem 3.2rem 1.2rem; }
.footer-brand .logo { color: var(--ink); margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.75rem; line-height: 1.6; max-width: 30ch; margin-bottom: 0.8rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); transition: background 0.2s ease; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { color: var(--ink); font-size: 0.78rem; font-weight: 700; margin-bottom: 0.8rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.76rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-contact li { font-size: 0.76rem; margin-bottom: 0.5rem; line-height: 1.4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 0.9rem 3.2rem; font-size: 0.72rem; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.78rem; color: var(--ink-soft); padding: 0.9rem 0 1.4rem; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Shared header on inner pages (not in hero card) ---------- */
.inner-header-wrap { padding: 1.2rem 3.2rem 0; }
.inner-header-wrap .site-header { background: var(--bg); }
.inner-header-wrap .main-nav a { color: var(--ink-soft); }
.inner-header-wrap .main-nav a.active { background: var(--dark); color: #fff; }

/* ---------- Shop page ---------- */
.shop-hero { padding: 1.8rem 0 1.6rem; text-align: center; }
.shop-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.4rem; }
.shop-hero p { color: var(--ink-soft); font-size: 0.84rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.shop-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.shop-tab { background: var(--bg); border: none; border-radius: 999px; padding: 0.5rem 1.1rem; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); transition: background 0.2s ease, color 0.2s ease; }
.shop-tab:hover { color: var(--ink); background: var(--accent-soft); }
.shop-tab.active { background: var(--dark); color: #fff; }
.shop-count { font-size: 0.78rem; color: var(--ink-soft); }
.shop-grid-section { padding-bottom: 2.2rem; }
.no-results { padding: 2rem 0; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; padding-bottom: 2.6rem; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bg); margin-bottom: 0.7rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: flex; gap: 0.6rem; }
.thumb-btn { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg); flex-shrink: 0; }
.thumb-btn.active { border-color: var(--accent-dark); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-category-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 0.3em 0.8em; border-radius: 999px; margin-bottom: 0.7rem; }
.product-info h1 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-rating { margin-bottom: 1rem; }
.product-rating .stars { color: var(--accent-dark); font-size: 0.85rem; }
.product-rating .rating-count { font-size: 0.78rem; color: var(--ink-soft); margin-left: 0.4rem; }
.product-lead { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.2rem; max-width: 50ch; }
.spec-list { margin-bottom: 1.2rem; }
.spec-row { border-bottom: 1px solid var(--line); padding: 0.7rem 0; display: flex; gap: 1rem; }
.spec-row dt { font-weight: 700; font-size: 0.78rem; width: 9rem; flex-shrink: 0; }
.spec-row dd { color: var(--ink-soft); font-size: 0.8rem; }
.product-price-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.product-price { font-size: 1.6rem; font-weight: 700; }
.buy-row { display: flex; align-items: center; gap: 0.8rem; }
.qty-stepper { display: flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 600; }
.qty-btn { background: none; border: none; font-size: 1rem; line-height: 1; color: var(--ink); }
.btn-cart { flex: 1; background: var(--dark); color: #fff; border: none; border-radius: 999px; padding: 0.85rem 1.3rem; font-weight: 700; font-size: 0.82rem; transition: background 0.2s ease; }
.btn-cart:hover { background: #000; }
.btn-cart.added { background: #2f8f4e; }
.related-section { padding-top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-shell, .hero-wrap, .inner-header-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  .site-header { flex-wrap: wrap; border-radius: 16px; padding: 0.8rem; gap: 0.6rem; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-strip { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; padding: 1.6rem 1.1rem 1.2rem; }
  .footer-bottom { padding: 0.9rem 1.1rem; flex-direction: column; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}
