:root {
  --green: #087b2e;
  --green2: #16a13d;
  --red: #d71915;
  --brand-orange: #f47a00;
  --brand-blue: #0968c7;
  --ink: #17221c;
  --muted: #65736b;
  --cream: #fbf8ef;
  --line: #dfe7e2;
  --white: #fff;
  --shadow: 0 14px 35px rgba(20, 50, 35, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
.container {
  width: min(1160px, calc(100% - 36px));
  margin: auto;
}
.topbar {
  background: var(--green);
  color: #fff;
  font-size: 0.88rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.logo {
  display: flex;
  align-items: center;
  width: 190px;
  height: 70px;
  font-size: 0;
}
.logo img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}
.links {
  margin-left: auto;
  display: flex;
  gap: 25px;
  align-items: center;
}
.admin-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.links a:hover,
.links .active {
  color: var(--red);
}
.menu {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 1.5rem;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #edf9f1 0%, #fff9eb 55%, #fff0e8 100%);
  padding: 84px 0;
}
.hero:before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(9, 104, 199, 0.08);
  right: -130px;
  top: -150px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(244, 122, 0, 0.1);
  left: -110px;
  bottom: -160px;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  color: var(--brand-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.hero h1,
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  margin: 12px 0 20px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}
.hero-card {
  background: var(--white);
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-card img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 18px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #05521f, var(--green));
}
.btn-light {
  background: #fff1e7;
  color: #b94800;
}
.btn-danger {
  background: #fff0f0;
  color: #b3151a;
}
.section {
  padding: 68px 0;
}
.promo-section {
  padding: 62px 0;
  color: #fff;
  background: linear-gradient(125deg, #075725 0%, #087b2e 48%, #063b63 100%);
  border-top: 7px solid var(--brand-orange);
  border-bottom: 7px solid #f8c526;
}
.promo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.promo-heading h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}
.promo-heading p {
  max-width: 700px;
  margin: 0;
  color: #e4f6e9;
}
.promo-kicker {
  color: #ffd63d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.promo-button {
  flex: 0 0 auto;
  background: #ffd63d;
  color: #17321e;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-card {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.promo-card strong {
  color: #ffd63d;
  letter-spacing: 0.08em;
}
.promo-card h3 {
  margin: 4px 0 6px;
  font-size: 1.35rem;
}
.promo-card p {
  margin: 0;
  color: #e9f7ed;
}
.promo-icon {
  font-size: 2.1rem;
}
.promo-prizes {
  background: linear-gradient(
    145deg,
    rgba(215, 25, 21, 0.82),
    rgba(244, 122, 0, 0.72)
  );
}
.promo-terms {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: #d9eee0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-title h2 {
  font-size: 2rem;
  margin: 3px 0;
}
.categories,
.products,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(20, 50, 35, 0.05);
}
.category-icon,
.product-icon {
  font-size: 2.8rem;
}
.card h3 {
  margin: 8px 0 4px;
}
.card p {
  color: var(--muted);
}
.page-head {
  background: var(--cream);
  padding: 55px 0;
}
.page-head h1 {
  font-size: 3rem;
}
.toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 25px;
}
.toolbar input,
.toolbar select,
.field input,
.field select {
  width: 100%;
  padding: 13px;
  border: 1px solid #cdd8d1;
  border-radius: 9px;
  background: #fff;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green);
  margin: 8px 0;
}
.product-card .btn {
  margin-top: auto;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  background: #eaf3ff;
  color: var(--brand-blue);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}
.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}
.contact-card span {
  font-size: 2rem;
}
.auth-wrap {
  min-height: calc(100vh - 115px);
  display: grid;
  place-items: center;
  padding: 50px 18px;
  background: var(--cream);
}
.auth-card {
  width: min(520px, 100%);
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.tabs {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.tab {
  flex: 1;
  border: 0;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.tab.active {
  background: linear-gradient(135deg, var(--red), var(--brand-orange));
  color: #fff;
}
.field {
  margin: 14px 0;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}
.notice {
  display: none;
  padding: 11px;
  border-radius: 8px;
  background: #eaf8ef;
  color: #076234;
  margin: 12px 0;
}
.notice.error {
  background: #fff0f0;
  color: #a31318;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin: 20px 0;
}
.product-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 0.6fr auto;
  gap: 10px;
  align-items: end;
}
.admin-list {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
td input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.footer {
  background: linear-gradient(120deg, #05521f, #063b63);
  color: #edf7f0;
  margin-top: 60px;
  padding: 38px 0;
  border-top: 5px solid var(--brand-orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}
.footer a {
  display: block;
  margin: 5px 0;
}
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.back-home {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-weight: 800;
}
.toolbar {
  scroll-margin-top: 110px;
}
.order-bar {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}
.order-bar[hidden] {
  display: none;
}
.order-bar small {
  color: var(--green);
}
.order-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 90vh;
  border: 0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.order-dialog::backdrop {
  background: rgba(8, 35, 20, 0.65);
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}
.selected-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.selected-row small {
  display: block;
  color: var(--muted);
}
.selected-row input {
  width: 64px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.order-value {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #eef9f1;
  border: 1px solid #bfe2c8;
}
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.05rem;
}
.order-value > small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.delivery-progress {
  height: 9px;
  overflow: hidden;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: #d6e2da;
}
.delivery-progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--brand-orange));
  transition: width 0.25s ease;
}
.delivery-reward {
  color: var(--green);
  font-size: 0.9rem;
}
.remove-item {
  border: 0;
  background: #fff0f0;
  color: #a31318;
  padding: 7px;
  border-radius: 7px;
  cursor: pointer;
}
.order-fields {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.order-fields label {
  font-weight: 700;
}
.order-fields input {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #cdd8d1;
  border-radius: 8px;
  margin-top: 4px;
}
.form-message {
  font-weight: 700;
  color: var(--green);
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.dashboard-stats article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}
.dashboard-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--green);
}
.dashboard-stats span {
  color: var(--muted);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-product-heading {
  align-items: end;
}
.admin-product-heading h2,
.admin-product-heading p {
  margin: 0;
}
.admin-product-heading p,
.search-result-count {
  color: var(--muted);
}
.admin-search {
  width: min(420px, 100%);
  font-weight: 800;
}
.admin-search span,
.table-price-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}
.admin-search input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--green);
  border-radius: 10px;
}
.table-scroll {
  overflow: auto;
}
.admin-orders table {
  min-width: 900px;
}
.admin-orders td {
  vertical-align: top;
}
.order-items {
  margin: 0;
  padding-left: 18px;
}
.order-status {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.notice {
  position: fixed;
  z-index: 100;
  right: 20px;
  top: 20px;
  max-width: min(420px, calc(100% - 40px));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  border: 1px solid #bce1c8;
}
.updated-row {
  animation: updatedFlash 1.5s ease;
}
@keyframes updatedFlash {
  0%,
  70% {
    background: #ddf7e5;
  }
  100% {
    background: transparent;
  }
}
@media (max-width: 850px) {
  .menu {
    display: block;
  }
  .links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }
  .links.open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .categories,
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-form {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .topbar .container {
    display: grid;
    gap: 3px;
  }
  .topbar span {
    display: block;
  }
  .categories,
  .products,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
  }
  .product-form {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 55px 0;
  }
  .order-bar {
    bottom: 10px;
  }
  .order-bar .btn {
    padding: 10px;
  }
  .selected-row {
    grid-template-columns: 1fr 80px;
  }
  .selected-row .remove-item {
    grid-column: 1/-1;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-head {
    align-items: flex-start;
    gap: 12px;
  }
  .order-dialog {
    padding: 22px 18px;
  }
  .nav {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 8px 0 12px;
  }
  .admin-nav-links {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-nav-links #logout {
    grid-column: 1/-1;
  }
  .promo-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-product-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
