/* ===== CANECREME — MAIN STYLESHEET ===== */

:root {
  --cream: #faf7f2;
  --green: #2d5016;
  --green-light: #4a7c2f;
  --gold: #c8a96e;
  --dark: #1a1a1a;
  --gray: #6b6b6b;
  --light-gray: #e8e3db;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

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

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light-gray);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a { color: var(--gray); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }

.cart-count {
  background: var(--green);
  color: white;
  border-radius: 50%;
  padding: 1px 6px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: 80vh;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e0 0%, #c8e6b0 50%, #a8d48a 100%);
  position: relative;
  overflow: hidden;
}

.hero-circle::before {
  content: '🌿';
  position: absolute;
  font-size: 8rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-primary:hover { background: var(--green-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-full { width: 100%; text-align: center; }

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.link-more { font-size: 0.9rem; color: var(--green); font-weight: 500; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info { padding: 1.25rem; }

.product-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
}

.product-compare-price {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.add-to-cart {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart:hover { background: var(--green-light); }

/* ===== SKELETON ===== */
.product-skeleton {
  background: var(--white);
  border-radius: 12px;
  height: 340px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== VALUES ===== */
.values-section {
  background: var(--green);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.value-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.value-item:last-child { border-right: none; }

.value-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }

.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.value-item p { font-size: 0.9rem; opacity: 0.8; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-header p { color: var(--gray); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

.cart-sidebar.open { transform: translateX(0); }
.cart-overlay.open { display: block; }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.cart-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--light-gray);
  object-fit: cover;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.25rem; }
.cart-item-price { color: var(--green); font-size: 0.9rem; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--light-gray);
  background: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-item-remove { color: var(--gray); cursor: pointer; font-size: 1.1rem; padding: 0 0.25rem; }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.cart-total { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }

.empty-cart { text-align: center; padding: 3rem 1rem; color: var(--gray); }

/* ===== CHECKOUT ===== */
.checkout-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.checkout-form-wrap h2,
.order-summary h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group small { font-size: 0.78rem; color: var(--gray); margin-top: 0.3rem; display: block; }
.form-group small a { color: var(--green); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.checkbox-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }

.order-summary {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.summary-item-name { flex: 1; }
.summary-item-qty { color: var(--gray); margin: 0 0.5rem; }

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.error-msg { color: #e53e3e; font-size: 0.85rem; padding: 0.5rem 0; }

/* ===== SUCCESS PAGE ===== */
.success-page {
  max-width: 500px;
  margin: 6rem auto;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.success-page p { color: var(--gray); margin-bottom: 0.75rem; }
.success-page .btn-primary { margin-top: 1.5rem; }

/* ===== ABOUT ===== */
.about-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  color: var(--green);
}

.about-content h2:first-child { margin-top: 0; }
.about-content p { color: var(--gray); line-height: 1.9; margin-bottom: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    min-height: auto;
    gap: 2rem;
  }

  .hero-visual { display: none; }
  .values-section { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .value-item:last-child { border-bottom: none; }

  .checkout-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .cart-sidebar { width: 100%; }

  .nav-links { gap: 1rem; font-size: 0.85rem; }
}
