:root {
  --green: #456746;
  --dark: #111111;
  --dark-70: rgba(17, 17, 17, 0.7);
  --dark-40: rgba(17, 17, 17, 0.4);
  --light: #ffffff;
  --line: rgba(17, 17, 17, 0.18);
  --shadow: 0 20px 50px rgba(17, 17, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
  background: var(--light);
  padding: 0 1.5rem 4rem;
  line-height: 1.5;
}

.grain {
  display: none;
}

.topbar,
main,
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  background: var(--green);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--light);
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--light);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.25);
  padding: 0.25rem;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand__text {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--light);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.topbar .icon-btn {
  border-color: var(--light);
  color: var(--green);
}

.icon-btn--small {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

.badge {
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--light);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}

.hero {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: center;
}

.hero__content,
.hero__panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--light);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.hero__tag {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--green);
}

.hero h1 {
  margin: 0.7rem 0 0.9rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.hero p {
  margin: 0;
  color: var(--dark-70);
}

.hero__cta-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero__panel {
  background: var(--green);
  color: var(--light);
  text-align: center;
}

.hero__panel h2 {
  margin: 1rem 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__panel p {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: var(--light);
}

.hero__panel span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero__logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--light);
  margin: 0 auto;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.2);
}

.hero__logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.coupon-field input,
.coupon-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--light);
  padding: 0.7rem 0.8rem;
  font-family: inherit;
}

.products {
  margin-top: 2.8rem;
}

.products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.products__eyebrow {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--green);
}

.products__header h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.products__subtitle {
  margin: 0;
  color: var(--dark-70);
}

.products__contact {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1.2rem;
  background: var(--light);
  text-align: right;
  font-weight: 800;
}

.products__contact span {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-70);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.products__contact strong {
  font-size: 1.1rem;
}

.results {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--dark-70);
}

.results--hidden {
  display: none;
}

.products-grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.card {
  display: grid;
  grid-template-rows: 190px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--light);
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(17, 17, 17, 0.12);
}

.card__media {
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--light);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.card__media img {
  width: 70%;
  max-height: 140px;
  object-fit: contain;
}

.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--light);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 16px rgba(17, 17, 17, 0.2);
}

.card__body {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.card__category {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 800;
}

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

.card__description {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dark-70);
}

.card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.card__price,
.card__stock {
  margin: 0;
  font-size: 0.85rem;
}

.card__price {
  font-weight: 900;
  color: var(--dark);
}

.cta {
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.cta:active {
  transform: translateY(0);
}

.cta--primary {
  background: var(--green);
  color: var(--light);
}

.cta--ghost {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--line);
}

.card__button {
  margin-top: 0.4rem;
}

.favorite-btn {
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--light);
  color: var(--dark-70);
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.favorite-btn.is-active {
  background: rgba(69, 103, 70, 0.12);
  color: var(--green);
}

.cart {
  position: fixed;
  right: 0;
  top: 0;
  width: min(430px, 95vw);
  height: 100dvh;
  padding: 1rem;
  background: var(--light);
  border-left: 1px solid var(--line);
  box-shadow: -10px 0 40px rgba(17, 17, 17, 0.18);
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(102%);
  transition: transform 240ms ease;
}

.cart.is-open {
  transform: translateX(0);
}

.admin {
  position: fixed;
  left: 0;
  top: 0;
  width: min(430px, 95vw);
  height: 100dvh;
  padding: 1rem;
  background: var(--light);
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 40px rgba(17, 17, 17, 0.18);
  z-index: 121;
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateX(-102%);
  transition: transform 240ms ease;
}

.admin.is-open {
  transform: translateX(0);
}

.admin__header,
.cart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin__header h2,
.cart__header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin__body {
  overflow: auto;
  padding-top: 0.65rem;
}

.admin__hint {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.85rem;
  color: var(--dark-70);
}

.cart__footer {
  padding: 0.25rem;
}

.cart__items {
  overflow: auto;
  padding: 0.5rem 0.2rem;
  display: grid;
  gap: 0.65rem;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: var(--light);
}

.cart-item p {
  margin: 0;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.cart-item__name {
  font-weight: 700;
}

.cart-item__actions {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty button {
  border: none;
  background: rgba(17, 17, 17, 0.06);
  width: 2rem;
  height: 1.9rem;
  font-weight: 800;
  cursor: pointer;
}

.qty span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  font-size: 0.9rem;
}

.remove-btn {
  border: none;
  background: transparent;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.coupon-field {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.totals {
  margin: 0.85rem 0;
}

.totals p {
  margin: 0.3rem 0;
  display: flex;
  justify-content: space-between;
}

.totals__final {
  color: var(--green);
  font-size: 1.08rem;
}

.shipping-note {
  margin: 0.5rem 0;
  font-size: 0.83rem;
  color: var(--dark-70);
}

.free-ship-progress p {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--dark-70);
}

.free-ship-progress__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.free-ship-progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 220ms ease;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 17, 17, 0.4);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
  color: var(--dark-70);
}

.site-footer {
  margin-top: 3rem;
  background: var(--dark);
  color: var(--light);
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__brand strong {
  font-size: 1.2rem;
  text-transform: uppercase;
}

.site-footer__brand p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.site-footer__columns h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer__columns p {
  margin: 0.2rem 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .products__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products__contact {
    width: 100%;
    text-align: left;
  }

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

  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    padding: 0 1rem 3rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
