:root {
  --color-bg: #fdfaf8;
  --color-surface: #ffffff;
  --color-primary: #6b4c44;
  --color-primary-hover: #563c36;
  --color-text: #3c2f2f;
  --color-text-muted: #8f7a75;
  --color-border: #f0e4df;
  --color-accent: #d4a373;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(107, 76, 68, 0.08);
  --radius: 16px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3, .site-brand {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  transition: transform 0.4s ease;
}

.container {
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(253, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.site-brand a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.6rem;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Page Layout */
.page-shell {
  padding: 3rem 0 6rem;
}

/* Components */
.card, .intro-card, .product-card, .about-martina, .cart-row, .cart-summary-card, .product-summary, .product-gallery {
  background: var(--color-surface);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* Grids */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card__image, .image-placeholder {
  aspect-ratio: 1 / 1;
  background: #fdf8f6;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

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

.image-placeholder {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
}

/* Detail & Checkout */
.product-detail, .checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Typography Helpers */
.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0.5rem 0;
}

.stock-status {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Buttons */
button, .btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s active;
  text-align: center;
}

button:hover, .btn:hover {
  background: var(--color-primary-hover);
}

button:active, .btn:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background: var(--color-bg);
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--color-surface);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .product-detail, .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-shell {
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  .site-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .container {
    width: min(100% - 2rem, 1200px);
  }
}
