:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-muted: #f8fbf5;
  --primary: #14532d;
  --accent: #facc15;
  --accent-strong: #eab308;
  --accent-soft: #fef9c3;
  --text: #1f2937;
  --muted: #5f6b63;
  --border: #d9e3d6;
  --shadow-sm: 0 10px 24px rgba(20, 83, 45, 0.07);
  --shadow-md: 0 18px 40px rgba(20, 83, 45, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: min(1280px, calc(100% - 40px));
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open,
body.filter-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

main {
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  padding-top: 88px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-color: rgba(217, 227, 214, 0.95);
  box-shadow: 0 10px 26px rgba(20, 83, 45, 0.08);
}

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  white-space: nowrap;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #1f7a45);
  color: #fff;
  box-shadow: 0 12px 22px rgba(20, 83, 45, 0.18);
  flex: 0 0 auto;
}

.logo-badge svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1;
}

.logo-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.logo-name {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  min-width: 0;
}

.main-nav a,
.drawer-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.drawer-nav a:hover,
.drawer-nav a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.mobile-actions,
.mobile-menu,
.filter-toggle {
  display: none;
}

.icon-btn,
.action-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--primary);
  flex: 0 0 auto;
  position: relative;
}

.icon-btn svg,
.action-icon svg {
  width: 18px;
  height: 18px;
}

.action-icon:hover,
.icon-btn:hover {
  background: var(--accent-soft);
  border-color: #e6df97;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 900;
  border: 1px solid #fef3a6;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--surface);
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 120;
  padding: 1.35rem;
}

.mobile-menu.is-open,
.filters-drawer.is-open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drawer-nav {
  display: grid;
  gap: 1rem;
}

.drawer-search {
  margin: 2rem 0 1.5rem;
}

.drawer-search input,
.newsletter-form input,
.contact-form input,
.contact-form textarea,
.shop-toolbar input,
.shop-toolbar select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: var(--text);
}

.drawer-search input:focus,
.newsletter-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.shop-toolbar input:focus,
.shop-toolbar select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(20, 83, 45, 0.8) 0%, rgba(20, 83, 45, 0.48) 38%, rgba(20, 83, 45, 0.18) 100%),
    url("assets/images/hero-marketplace.jpg") center/cover no-repeat;
  color: #fff;
  padding: 7rem 0 4rem;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.34);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.55rem, 5.6vw, 4.9rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  margin-top: 1.25rem;
  font-size: 1.03rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1f2937;
  box-shadow: 0 16px 32px rgba(234, 179, 8, 0.24);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--surface);
}

.btn-outline:hover {
  border-color: rgba(20, 83, 45, 0.35);
  color: var(--primary);
  background: var(--surface-muted);
}

.hero-trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-trust span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.93rem;
}

section,
.section {
  padding: var(--space-8) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header p,
.section-copy {
  max-width: 60ch;
}

.surface-card,
.product-card,
.review-card,
.info-card,
.filter-panel,
.contact-form,
.contact-panel,
.newsletter-panel,
.category-block,
.collection-card,
.bestseller-card,
.deal-banner,
.shop-toolbar,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.category-card img,
.product-card img,
.collection-card img,
.bestseller-card img,
.deal-banner img,
.feature-media img,
.page-hero-card img,
.contact-media img {
  object-fit: cover;
}

.category-card img {
  aspect-ratio: 1 / 1.03;
}

.category-card-body,
.product-body,
.collection-body,
.review-card,
.bestseller-card,
.contact-panel,
.contact-form,
.filter-panel,
.sidebar-card {
  padding: 1.15rem;
}

.category-card p,
.product-body p,
.collection-body p,
.category-detail-copy p,
.contact-note,
.review-card p {
  margin-top: 0.55rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

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

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.price {
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 600;
}

.product-tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-tag {
  width: fit-content;
}

.deal-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  overflow: hidden;
}

.deal-copy {
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbf5 100%);
}

.deal-banner img {
  height: 100%;
  min-height: 340px;
}

.bestsellers-row,
.collections-grid,
.reviews-grid,
.why-grid,
.footer-grid,
.contact-grid,
.category-detail-list {
  display: grid;
  gap: 1rem;
}

.bestsellers-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bestseller-card img {
  aspect-ratio: 4 / 3.3;
  border-radius: 16px;
  margin-bottom: 0.95rem;
}

.collections-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  overflow: hidden;
}

.collection-card img {
  aspect-ratio: 1 / 1.05;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 1.5rem;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-height: 100%;
}

.review-card strong {
  display: block;
  margin-top: 1.15rem;
  color: var(--primary);
}

.newsletter-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
}

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3.8rem 0 2rem;
}

.footer-grid {
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.footer h4 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 2rem 0 0;
}

.page-hero-card {
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 48%, #f8fbf5 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.page-hero-copy {
  padding: clamp(1.8rem, 4vw, 3.6rem);
}

.page-hero-copy p {
  margin-top: 1rem;
  max-width: 52ch;
}

.page-hero-card img {
  height: 100%;
  min-height: 280px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
}

.shop-sidebar {
  align-self: start;
  position: sticky;
  top: 108px;
}

.sidebar-card + .sidebar-card {
  margin-top: 1rem;
}

.filter-group {
  display: grid;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.shop-main {
  min-width: 0;
}

.shop-toolbar {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.shop-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.products-empty {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.filters-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--surface);
  z-index: 121;
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.12);
}

.category-detail-list {
  grid-template-columns: 1.05fr 0.95fr;
}

.category-block {
  padding: 1rem;
}

.category-detail-media {
  overflow: hidden;
  border-radius: 22px;
}

.category-detail-media img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.category-detail-copy {
  padding: 0.25rem 0 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.preview-item {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.section-header .meta-chip,
.page-hero-copy .meta-chip,
.deal-copy .meta-chip {
  margin-bottom: 0.9rem;
}

.category-card,
.product-card,
.collection-card,
.bestseller-card,
.info-card,
.review-card,
.contact-form,
.contact-panel,
.sidebar-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover,
.product-card:hover,
.collection-card:hover,
.bestseller-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #2f855a, var(--accent));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.product-card:hover::after {
  opacity: 1;
}

.preview-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.95rem;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-status.is-success {
  color: #166534;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-row span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .category-grid,
  .product-grid,
  .deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-panel,
  .page-hero-card,
  .deal-banner,
  .category-detail-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .page-shell {
    padding-top: 82px;
  }

  .header-inner {
    min-height: 82px;
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-actions,
  .mobile-menu {
    display: block;
  }

  .mobile-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
  }

  .hero {
    min-height: 68vh;
    padding-top: 7.5rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid,
  .deals-grid,
  .bestsellers-row,
  .why-grid,
  .reviews-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 28px, 1280px);
    --space-8: 4.25rem;
  }

  .hero {
    min-height: 560px;
    align-items: end;
    padding-bottom: 2.6rem;
  }

  .hero-trust {
    gap: 0.65rem;
  }

  .hero-trust span {
    font-size: 0.88rem;
  }

  .section-header,
  .shop-results,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-grid,
  .product-grid,
  .deals-grid,
  .bestsellers-row,
  .collections-grid,
  .why-grid,
  .reviews-grid,
  .footer-grid,
  .preview-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .shop-toolbar,
  .newsletter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .logo {
    gap: 0.62rem;
  }

  .logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .logo-name {
    font-size: 0.96rem;
  }

  .logo-kicker {
    font-size: 0.62rem;
  }

  .header-inner {
    gap: 0.6rem;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 6.75rem;
  }

  h1 {
    max-width: 13ch;
  }

  .button-row {
    width: 100%;
  }

  .button-row .btn {
    flex: 1 1 100%;
  }
}
