:root {
  --green: #10634a;
  --deep: #0c3328;
  --cream: #fbf8f0;
  --gold: #f4ba42;
  --ink: #192923;
  --muted: #6c7973;
  --line: #e6e9e2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
.topbar {
  background: var(--deep);
  padding: 10px 20px;
  color: #fff;
  text-align: center;
  font-size: 0.84rem;
}
.topbar span {
  color: #d9e9e3;
}
.header {
  height: 78px;
  width: min(1180px, calc(100% - 36px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-size: 1.65rem;
  color: var(--deep);
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand span {
  color: var(--green);
}
nav {
  display: flex;
  gap: 20px;
  flex: 1;
}
nav a {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #46534e;
}
nav a:hover {
  color: var(--green);
}
.cart-trigger {
  border: 0;
  background: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 1rem;
}
.cart-trigger b {
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 30px;
  font-size: 0.75rem;
}
.app {
  min-height: calc(100vh - 120px);
}
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.hero {
  min-height: 455px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, #082e24e9, #11634aa8),
    url("https://images.unsplash.com/photo-1580674285054-bed31e145f59?auto=format&fit=crop&w=1800&q=85")
      center/cover;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 10px 0 18px;
  max-width: 690px;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-copy {
  max-width: 590px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0eee8;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0;
}
.hero .eyebrow,
.seller-strip .eyebrow {
  color: var(--gold);
}
.button {
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  display: inline-block;
}
.primary {
  background: var(--gold);
  color: #1c2a22;
}
.secondary {
  background: #ffffff1b;
  border: 1px solid #ffffff66;
  color: #fff;
  margin-left: 8px;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  margin-top: -40px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 15px 35px #1b493b18;
}
.benefit {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.benefit:last-child {
  border: 0;
}
.benefit b,
.benefit span {
  display: block;
}
.benefit span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 7px;
}
.section {
  padding: 74px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.section h2 {
  font-size: 2rem;
  letter-spacing: -0.045em;
  margin: 8px 0 0;
}
.categories {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 25px;
}
.category {
  background: #fff;
  border: 0;
  border-radius: 13px;
  padding: 18px 8px;
  font-weight: 800;
  font-size: 0.76rem;
}
.category:hover {
  background: var(--green);
  color: #fff;
}
.category span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 7px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 25px;
}
.product {
  background: #fff;
  border: 1px solid #eff0ec;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.15s;
}
.product:hover {
  transform: translateY(-3px);
}
.product-image {
  height: 160px;
  background: linear-gradient(135deg, #e4eee6, #f7efdb);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  border: 0;
  width: 100%;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 15px;
}
.meta {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.product h3 {
  font-size: 1rem;
  margin: 7px 0;
}
.seller {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-action {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--green);
  font-size: 1.3rem;
  line-height: 1;
}
.icon-action.is-active {
  border-color: #d87979;
  background: #fff2f2;
  color: #bc3333;
}
.add {
  border: 0;
  background: #e8f3ed;
  color: var(--green);
  font-weight: 800;
  padding: 8px;
  border-radius: 8px;
}
.price {
  font-weight: 900;
}
.old-price {
  font-size: 0.78rem;
  color: #9a9e9a;
  text-decoration: line-through;
  margin-left: 5px;
}
.seller-strip {
  background: var(--green);
  color: white;
  padding: 75px 0;
}
.seller-strip h2 {
  font-size: 2.2rem;
  margin: 9px 0;
}
.seller-strip p:not(.eyebrow) {
  max-width: 600px;
  line-height: 1.6;
  color: #dcebe5;
}
.page-head {
  background: var(--deep);
  color: #fff;
  padding: 52px 0;
}
.page-head h1 {
  margin: 8px 0 0;
  font-size: 2.8rem;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 8px;
}
.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  background: #fff;
}
.toolbar input {
  min-width: min(370px, 100%);
  flex: 1;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #cbd5cd;
  color: var(--muted);
  border-radius: 12px;
}
.detail {
  padding: 55px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}
.detail-visual {
  min-height: 390px;
  border-radius: 20px;
  background: linear-gradient(135deg, #deece2, #f5e8c8);
  display: grid;
  place-items: center;
  font-size: 9rem;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: inherit;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 6px;
}
.detail-gallery img {
  min-height: 180px;
}
.detail-gallery img:only-child {
  grid-column: 1 / -1;
  min-height: inherit;
}
.detail h1 {
  font-size: 2.6rem;
  margin: 10px 0;
}
.detail .price {
  font-size: 1.8rem;
  display: block;
  margin: 20px 0;
}
.detail p {
  line-height: 1.65;
  color: var(--muted);
}
.detail-actions {
  flex-wrap: wrap;
  margin-top: 26px;
}
.safety-note {
  margin-top: 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #fff9e8;
  border-radius: 4px;
  font-size: 0.85rem;
}
.dashboard {
  padding: 45px 0;
}
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.listing-list {
  display: grid;
  gap: 10px;
}
.listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.listing-row:last-child {
  border-bottom: 0;
}
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.listing-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}
.shop-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.shop-avatar {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f3ed;
  color: var(--green);
  font-size: 2rem;
  object-fit: cover;
}
.shop-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.admin-form input,
.admin-form select {
  min-width: 145px;
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0;
}
.stat {
  background: #fff;
  border-radius: 13px;
  padding: 20px;
}
.stat small,
.stat b {
  display: block;
}
.stat b {
  font-size: 1.5rem;
  margin-top: 6px;
}
.panel {
  background: #fff;
  border-radius: 15px;
  padding: 24px;
}
.cart-page {
  padding: 45px 0;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 25px;
}
.cart-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.cart-row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.remove {
  background: none;
  border: 0;
  color: #a03b2d;
  padding: 0;
}
.summary {
  background: #fff;
  border-radius: 15px;
  padding: 22px;
  height: max-content;
}
.summary p {
  display: flex;
  justify-content: space-between;
}
.summary .button {
  width: 100%;
  text-align: center;
}
.order {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.status {
  font-size: 0.75rem;
  background: #e3f3e9;
  color: #147345;
  padding: 5px 8px;
  border-radius: 20px;
  font-weight: 800;
}
.order-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.order-history small {
  color: var(--muted);
}
.admin-list {
  margin-top: 22px;
}
.admin-list .product {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}
.admin-list .product-image {
  width: 80px;
  height: 80px;
  flex: none;
}
.admin-list .product-info {
  flex: 1;
}
.admin-actions button {
  margin-right: 8px;
  border: 0;
  border-radius: 7px;
  padding: 7px;
  font-weight: 700;
}
.admin-actions .danger {
  color: #9e3024;
  background: #fcebe8;
}
dialog {
  width: min(570px, calc(100% - 28px));
  border: 0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 80px #0006;
}
dialog::backdrop {
  background: #092c217a;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.dialog-title h2 {
  margin: 8px 0 0;
}
.close {
  border: 0;
  background: none;
  font-size: 1.6rem;
}
.notice {
  font-size: 0.84rem;
  background: #fff4d8;
  padding: 11px;
  border-radius: 8px;
  line-height: 1.45;
  color: #6c5b27;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin: 13px 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}
textarea {
  min-height: 72px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.footer {
  background: var(--deep);
  color: #d7e8e0;
  padding: 38px 0;
  margin-top: 50px;
}
.footer b {
  color: white;
}
.footer p {
  font-size: 0.84rem;
}
.mobile-nav {
  display: none;
}
@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }
  .header {
    height: auto;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    gap: 16px;
  }
  .topbar span {
    display: none;
  }
  .benefits {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .benefit {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .product-image {
    height: 125px;
  }
  .detail,
  .cart-page {
    grid-template-columns: 1fr;
  }
  .detail {
    gap: 20px;
  }
  .detail-visual {
    min-height: 240px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .listing-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .shop-head {
    gap: 12px;
  }
  .listing-actions {
    justify-content: flex-start;
  }
  .section {
    padding: 50px 0;
  }
  .toolbar input {
    min-width: 100%;
  }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    min-height: 66px;
    padding: 7px 5px calc(7px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 20px #19312616;
  }
  .mobile-nav a,
  .mobile-cart {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 1.1rem;
    text-decoration: none;
  }
  .mobile-nav span {
    font-size: 0.64rem;
    font-weight: 800;
  }
  .card-actions {
    gap: 4px;
  }
  .icon-action {
    width: 32px;
    height: 32px;
  }
  .detail-actions .button {
    width: 100%;
  }
  .mobile-cart b {
    position: absolute;
    top: -2px;
    right: 13px;
    min-width: 16px;
    padding: 1px 4px;
    border-radius: 50px;
    background: var(--gold);
    font-size: 0.65rem;
  }
}
