:root {
  --brand: #0d6b3a;
  --brand-dark: #073f26;
  --brand-soft: #e8f4ed;
  --accent: #d66a32;
  --accent-soft: #fff1e9;
  --blue: #245b8d;
  --ink: #101616;
  --muted: #5e6865;
  --line: #dce4e0;
  --paper: #ffffff;
  --wash: #f5f7f5;
  --dark: #111918;
  --shadow: 0 18px 42px rgba(9, 27, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 254px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  clip-path: polygon(50% 0, 93% 18%, 88% 78%, 50% 100%, 12% 78%, 7% 18%);
  font-size: 18px;
  font-weight: 900;
}

.brand-text strong,
.brand-text span,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 24px;
  line-height: 0.92;
  font-weight: 900;
}

.brand-text span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.brand-text small {
  max-width: 230px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a {
  padding: 30px 0 25px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.cart-button {
  min-width: 92px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover {
  background: #0f7e45;
}

.button-secondary {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.button-whatsapp {
  color: #fff;
  background: #1c8f51;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  gap: 42px;
  align-items: center;
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 42px;
  background:
    linear-gradient(135deg, rgba(245, 247, 245, 0.98), rgba(232, 244, 237, 0.9)),
    url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy h1 {
  max-width: 670px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy p:not(.eyebrow) {
  max-width: 575px;
  margin-bottom: 28px;
  color: #2d3733;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.hero-showcase article {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-showcase article:first-child {
  grid-row: span 2;
}

.hero-showcase img {
  height: 100%;
  object-fit: cover;
}

.hero-showcase span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(12, 22, 20, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-strip article {
  min-height: 94px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 16px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 54px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.split-section h2,
.info-section h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 900;
}

.categories-section,
.checkout-section,
.info-section {
  background: var(--wash);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(13, 107, 58, 0.12);
}

.category-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.category-card h3 {
  margin: 0;
  font-size: 14px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}

.filters,
.manager-form,
.admin-panel,
.order-summary,
.shipping-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd7d1;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.shop-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.shop-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-toolbar select {
  max-width: 210px;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 22, 22, 0.07);
}

.product-media {
  position: relative;
  background: var(--brand-soft);
}

.product-media img {
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.product-body {
  padding: 14px;
}

.product-body h3 {
  min-height: 42px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.product-price strong {
  color: var(--brand-dark);
  font-size: 24px;
}

.product-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-actions .button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}

.stock-note {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.split-section,
.info-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.split-section p:not(.eyebrow),
.info-section p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
}

.arrival-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.arrival-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.arrival-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.arrival-card div {
  padding: 12px;
}

.arrival-card h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.arrival-card p {
  margin-bottom: 0;
  color: #d6dedb;
  font-size: 12px;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.order-summary h3,
.manager-form h3,
.admin-panel h3,
.shipping-panel h3 {
  margin-bottom: 14px;
  font-size: 19px;
}

.order-summary dl {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.order-summary dl div,
.cart-total,
.shipping-panel li,
.status-list li,
.inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-summary dd,
.order-summary dt {
  margin: 0;
}

.order-summary .button {
  width: 100%;
  margin-top: 8px;
}

.checkout-line {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.dashboard-section {
  background: #fff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-grid article {
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  background: var(--dark);
}

.metric-grid article:nth-child(2) {
  background: var(--brand-dark);
}

.metric-grid article:nth-child(3) {
  background: var(--blue);
}

.metric-grid article:nth-child(4) {
  background: var(--accent);
}

.metric-grid span,
.metric-grid strong {
  display: block;
}

.metric-grid span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-grid strong {
  font-size: 28px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.manager-form {
  display: grid;
  gap: 12px;
}

.admin-note,
#sheetStatus {
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.status-list,
.shipping-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li,
.shipping-panel li,
.inventory-row {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
}

.status-list li:last-child,
.shipping-panel li:last-child,
.inventory-row:last-child {
  border-bottom: 0;
}

.inventory-row strong {
  color: var(--brand-dark);
}

.track-section {
  background: var(--brand-soft);
}

.track-form {
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 100%);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.16);
  transform: translateX(105%);
  transition: transform 0.2s ease;
}

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

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-head h2 {
  margin: 0;
}

.cart-head button,
.dialog-close {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.cart-items {
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.cart-line h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.cart-line p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 18px;
  font-weight: 900;
}

.product-dialog {
  width: min(860px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.46);
}

.dialog-close {
  float: right;
  margin-bottom: 12px;
}

.dialog-product {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 22px;
  clear: both;
}

.dialog-product img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.option-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  font-size: 12px;
}

.footer {
  color: #fff;
  background: var(--dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1fr;
  gap: 28px;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
}

.footer .brand {
  min-width: 0;
  color: #fff;
}

.footer .brand-text span,
.footer .brand-text small {
  color: #dce9e3;
}

.footer p,
.footer a {
  color: #e7eeeb;
  font-size: 14px;
  text-decoration: none;
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.footer-content div > a:not(.brand) {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: var(--brand-dark);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .cart-button {
    order: 2;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    display: none;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .nav-links a {
    padding: 8px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .trust-strip,
  .category-grid,
  .metric-grid,
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .checkout-form,
  .split-section,
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .cart-button span {
    display: none;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-showcase article:first-child {
    grid-row: auto;
  }

  .hero-showcase article {
    min-height: 180px;
  }

  .trust-strip,
  .category-grid,
  .shop-layout,
  .product-grid,
  .arrival-grid,
  .form-grid,
  .metric-grid,
  .admin-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .section-heading,
  .footer-bottom {
    display: grid;
    align-items: start;
  }

  .track-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 440px) {
  .brand-mark {
    width: 42px;
    height: 46px;
  }

  .brand-text span {
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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

  .cart-line {
    grid-template-columns: 54px 1fr;
  }

  .cart-line .qty-control {
    grid-column: 2;
  }
}
