:root {
  --ink: #10231f;
  --ink-soft: #3a4f49;
  --paper: #f3f6f4;
  --paper-2: #e7eee9;
  --teal: #0f6b5c;
  --teal-deep: #0a4a3f;
  --lime: #b7e26c;
  --sand: #d9e4dc;
  --line: rgba(16, 35, 31, 0.12);
  --danger: #9b2c2c;
  --ok: #1f7a4c;
  --shadow: 0 18px 50px rgba(16, 35, 31, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d7efe4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #cfe0d8 0%, transparent 50%),
    linear-gradient(180deg, #eef4f0 0%, var(--paper) 40%, #e8f0eb 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

h1,
h2,
h3,
.brand__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, var(--lime), transparent 55%),
    linear-gradient(210deg, var(--teal), var(--teal-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 12px 10px 10px 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  border-top-color: transparent;
  transform: rotate(-18deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand__text strong {
  font-size: 1.05rem;
}

.brand__text em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
  border-bottom-color: var(--lime);
}

.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border-bottom: none !important;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-badge[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn--secondary {
  background: var(--lime);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn.is-added {
  background: var(--ok);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 30, 26, 0.25) 0%,
    rgba(10, 30, 26, 0.72) 55%,
    rgba(10, 30, 26, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__bg picture,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--paper-2);
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    animation: none;
    transform: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 40rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0 0 0.75rem;
  animation: rise 0.8s ease both;
}

.hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  animation: rise 0.9s ease 0.08s both;
}

.hero p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  max-width: 34rem;
  animation: rise 1s ease 0.14s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.05s ease 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 4rem 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section__head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.product-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}

.product-card__media img,
.product-card__media picture {
  width: 100%;
  height: 100%;
}

.product-card__media picture {
  display: block;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.gallery__main picture,
.gallery__main img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery__main img {
  object-fit: cover;
}

.cart-item picture,
.cart-item .media-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.cart-item .media-img {
  border-radius: 10px;
  object-fit: cover;
}

.product-card__body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__cat {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  font-weight: 700;
}

.product-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__price {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.product-card__stock {
  margin: 0 0 0.5rem;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-card .btn {
  margin-top: auto;
  width: 100%;
}

.notice {
  border: 1px solid rgba(15, 107, 92, 0.25);
  background: linear-gradient(135deg, rgba(183, 226, 108, 0.25), rgba(15, 107, 92, 0.08));
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.notice--critical {
  margin: 1.5rem 0;
  border-left: 4px solid var(--teal);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.gallery {
  display: grid;
  gap: 0.75rem;
}

.gallery__main {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
}

.gallery__thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
  background: #fff;
}

.gallery__thumbs button.is-active,
.gallery__thumbs button:hover {
  border-color: var(--teal);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  margin: 1rem 0;
}

.price-row .price {
  font-size: 1.8rem;
  font-weight: 800;
}

.badge-stock {
  color: var(--ok);
  font-weight: 700;
  background: rgba(31, 122, 76, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 38%;
  color: var(--ink-soft);
  font-weight: 600;
}

.info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
}

.info-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.info-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.prose {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem 1.75rem;
}

.prose h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.cart-table th,
.cart-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: rgba(231, 238, 233, 0.8);
}

.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.qty-input {
  width: 4.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
}

.cart-summary {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.cart-summary .total {
  font-size: 1.4rem;
  font-weight: 800;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.4rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.site-footer {
  margin-top: 3rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.footer__trust {
  background: rgba(183, 226, 108, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.footer__trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.trust-chip {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
  padding: 2.5rem 0 2rem;
}

.footer__col h2,
.footer__col h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.05rem;
}

.footer__col p,
.footer__col a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin: 0.35rem 0;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--lime);
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid var(--lime);
  color: var(--lime) !important;
  font-weight: 800;
  margin-top: 0.85rem !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.25rem;
  font-size: 0.9rem;
}

.footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer__bottom a {
  color: var(--lime);
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(16, 35, 31, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  animation: rise 0.45s ease both;
}

.cookie-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-bar p {
  margin: 0;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-bar a {
  color: var(--lime);
}

.cookie-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-bar .btn--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  animation: rise 0.7s ease both;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  z-index: 60;
  animation: rise 0.3s ease both;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__main,
  .footer__trust-grid,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(243, 246, 244, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__cart {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .split,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 560px) {
  .product-grid,
  .footer__main,
  .footer__trust-grid,
  .steps,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: grid;
    gap: 0.4rem;
    padding: 0.75rem 0;
  }

  .cart-table td {
    border: none;
    padding: 0.2rem 1rem;
  }
}
