:root {
  --bg: #f6f2ee;
  --card: #ffffff;
  --card-soft: #f9f3ef;
  --text: #1d1b1a;
  --muted: #5a524f;
  --accent: #d9653b;
  --accent-dark: #b94d2d;
  --accent-soft: #f9e2d8;
  --line: rgba(29, 27, 26, 0.08);
  --success: #2a8f59;
  --shadow: 0 18px 45px rgba(37, 23, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 242, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.3rem;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 500;
}

.nav-button,
.primary-btn,
.secondary-btn,
.checkout-btn,
.buy-btn,
.text-btn,
.danger-btn,
.filter-btn {
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-button,
.primary-btn,
.checkout-btn,
.buy-btn {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  box-shadow: 0 12px 18px rgba(217, 101, 59, 0.2);
}

.nav-button:hover,
.primary-btn:hover,
.checkout-btn:hover,
.buy-btn:hover,
.filter-btn:hover,
.secondary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn,
.text-btn,
.filter-btn {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.secondary-btn {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.text-btn {
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 800;
}

.eyebrow.alt {
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin-bottom: 20px;
}

.hero-tagline {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 430px);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.96));
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.badge-shelf {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 24px;
}

.hero-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 12px;
}

.hero-card-info p {
  margin-bottom: 4px;
  color: var(--muted);
}

.hero-card-info strong {
  font-size: 1.5rem;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.65rem 0.9rem;
  font-weight: 700;
}

.shop-section {
  padding: 52px 0 32px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.06em;
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading.center {
  justify-content: center;
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.filter-btn.active {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid rgba(29, 27, 26, 0.05);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 16, 14, 0.04);
}

.product-image-wrap {
  position: relative;
  background: var(--card-soft);
}

.product-image-wrap img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(29, 27, 26, 0.06);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info {
  padding: 20px 18px 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info h3 {
  margin: 16px 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.product-info p {
  color: var(--muted);
  line-height: 1.6;
  min-height: 72px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.product-footer strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.buy-btn {
  padding: 0.8rem 1.1rem;
  font-size: 0.94rem;
}

.benefits {
  padding: 38px 0 60px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(34, 24, 20, 0.03);
}

.icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  font-size: 1.7rem;
  background: var(--accent-soft);
  margin-bottom: 16px;
}

.benefit-card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.promo-banner {
  padding: 0 0 64px;
}

.banner-box {
  background: linear-gradient(135deg, #1d1b1a, #2c2724);
  border-radius: 28px;
  padding: 28px 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.banner-box h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.cart-panel {
  position: fixed;
  right: 20px;
  top: 96px;
  width: min(360px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 20;
}

.cart-header,
.total-row,
.cart-item,
.cart-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-header {
  margin-bottom: 18px;
}

.cart-header h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.cart-items {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  background: var(--card-soft);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(29, 27, 26, 0.05);
}

.cart-copy {
  display: grid;
  gap: 4px;
}

.cart-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-price-box {
  display: grid;
  justify-items: end;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.empty-cart {
  padding: 10px 0;
  margin-bottom: 0;
  color: var(--muted);
}

.cart-footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.total-row {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.checkout-btn {
  width: 100%;
}

.site-footer {
  padding: 20px 0 50px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.small-brand {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 600;
}

.admin-page {
  background: #f5f0ea;
}

.admin-topbar {
  position: sticky;
}

.admin-main {
  padding: 52px 0 80px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(30, 25, 20, 0.04);
  padding: 28px;
}

.panel-head {
  margin-bottom: 24px;
}

.panel-head h2 {
  margin-bottom: 0;
  letter-spacing: -0.05em;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.stack-form textarea {
  resize: vertical;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.product-editor-list {
  display: grid;
  gap: 18px;
}

.product-editor {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.editor-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.danger-btn {
  justify-self: start;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 77, 45, 0.2);
  background: rgba(185, 77, 45, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

.small-form {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.small-form h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.whatsapp-btn {
  width: 100%;
  margin-top: 8px;
  background: #25d366;
  color: white;
  box-shadow: 0 12px 18px rgba(37, 211, 102, 0.18);
}

.whatsapp-btn.is-disabled,
.whatsapp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.modal-backdrop.hidden {
  display: none;
}

.checkout-modal {
  width: min(560px, 100%);
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-header h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  letter-spacing: -0.05em;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  resize: vertical;
}

body.modal-open {
  overflow: hidden;
}

.orders-page {
  padding: 52px 0 80px;
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.orders-toolbar h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

.order-list {
  display: grid;
  gap: 18px;
}

.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(25, 19, 13, 0.04);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.order-card-head h3 {
  margin-bottom: 4px;
}

.order-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(29, 27, 26, 0.06);
  padding-bottom: 6px;
}

.order-total {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.order-delete {
  border: none;
  background: rgba(185, 77, 45, 0.08);
  color: var(--accent-dark);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.empty-orders {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .admin-layout,
  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
    width: min(100%, 720px);
    margin: 24px auto 0;
  }

  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .section-heading,
  .banner-box,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-card img {
    height: 320px;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }
}
