/* VitaCore Wellness — demo storefront styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --forest: #2C4A3E;
  --sage: #5C8368;
  --cream: #F6F3EA;
  --clay: #D9CBA3;
  --gold: #B98B3E;
  --ink: #1E2A22;
  --line: #DCD5C0;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  color: var(--forest);
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.2px;
}

.logo span { color: var(--gold); }

nav.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

nav.main-nav a {
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

nav.main-nav a:hover { border-bottom-color: var(--gold); }

.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.cart-count {
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Hero */
.hero {
  background: var(--forest);
  color: var(--cream);
  padding: 64px 0;
}

.hero .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero h1 {
  color: var(--white);
  font-size: 40px;
  max-width: 480px;
  line-height: 1.15;
}

.hero p {
  color: var(--clay);
  max-width: 420px;
  font-size: 16px;
  margin-top: 14px;
}

.hero .badge {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* Product grid */
.section-title {
  margin: 56px 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title h2 { font-size: 26px; }
.section-title .filter { font-size: 14px; color: var(--sage); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--sage); }

.card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--clay);
}

.card-body { padding: 18px; }

.card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card-tag {
  font-size: 12px;
  color: var(--sage);
  margin-bottom: 8px;
}

.card-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  margin: 10px 0 14px;
}

.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}

.btn:hover { background: var(--sage); }

.btn.full { width: 100%; text-align: center; }

.btn.outline {
  background: transparent;
  border: 1px solid var(--forest);
  color: var(--forest);
}

.btn.outline:hover { background: var(--forest); color: var(--white); }

.btn.gold {
  background: var(--gold);
}
.btn.gold:hover { background: #9c7635; }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.product-visual {
  background: var(--clay);
  border-radius: 4px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
}

.product-info .card-tag { font-size: 13px; }
.product-info h1 { font-size: 30px; margin: 10px 0; }
.product-info .price { font-size: 24px; color: var(--forest); font-weight: 600; margin: 14px 0; }
.product-info .desc { color: #4A5A4E; margin-bottom: 24px; font-size: 15px; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.qty-box button {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
}

.qty-box span {
  padding: 0 10px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

/* Cart & checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
}

.cart-table th {
  text-align: left;
  font-size: 13px;
  color: var(--sage);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-weight: 500;
}

.cart-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.cart-item-name { font-weight: 500; }
.cart-item-tag { font-size: 12px; color: #7A8A7D; }

.summary-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  max-width: 340px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: #4A5A4E;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 600;
  color: var(--forest);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.empty-cart {
  text-align: center;
  padding: 80px 0;
  color: #7A8A7D;
}

/* Checkout form */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 40px 0 64px;
}

.form-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 20px;
}

.form-block h3 { font-size: 16px; margin-bottom: 16px; }

.field-row { display: flex; gap: 14px; margin-bottom: 14px; }

label {
  display: block;
  font-size: 13px;
  color: #4A5A4E;
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Work Sans', sans-serif;
}

input:focus, select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.pay-options { display: flex; gap: 10px; margin-bottom: 4px; }

.pay-option {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
}

.pay-option.selected {
  border-color: var(--forest);
  background: #EEF2EC;
  font-weight: 500;
}

/* Confirmation */
.confirm-box {
  text-align: center;
  padding: 80px 0;
  max-width: 480px;
  margin: 0 auto;
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirm-box h1 { font-size: 26px; margin-bottom: 10px; }
.confirm-box p { color: #4A5A4E; margin-bottom: 22px; }

.order-id {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  font-size: 14px;
  margin-bottom: 28px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: #7A8A7D;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .checkout-grid { grid-template-columns: 1fr; }
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav { display: none; }
}
