/* Elvvinton — Kitchen Essentials */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8580;
  --line: #e5e0d8;
  --accent: #c2410c;
  --gold: #b8895a;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  --radius: 4px;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.top-banner {
  background: var(--ink); color: var(--bg);
  text-align: center; font-size: 0.78rem;
  padding: 9px 16px; letter-spacing: 0.06em; text-transform: uppercase;
}

header.site-header {
  background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem; font-weight: 600; letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 32px; list-style: none; }
nav a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.03em; position: relative;
}
nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--ink); position: relative; display: flex; align-items: center;
}
.cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--accent); color: white; border-radius: 50%;
  font-size: 0.65rem; width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}

/* Hero */
.hero { background: var(--bg-alt); padding: 100px 0 110px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 18px;
}
.hero-text p {
  font-size: 1.05rem; color: var(--ink-soft); margin: 24px 0 36px; max-width: 460px;
}
.hero-image {
  aspect-ratio: 4/5; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 32px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  cursor: pointer; transition: all 0.25s; border-radius: var(--radius);
  font-family: inherit; text-align: center;
}
.btn:hover { background: var(--accent); border-color: var(--accent); opacity: 1; color: white; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-full { width: 100%; }

/* Section heads */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head p { color: var(--ink-soft); max-width: 520px; margin: 16px auto 0; }

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; border: 1px solid var(--line); display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); opacity: 1; }
.product-card-img {
  aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: white; font-size: 0.68rem;
  padding: 5px 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; border-radius: 2px;
}
.badge.sale { background: var(--accent); }
.product-card-info { padding: 20px 22px 24px; }
.product-card-info .cat {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.product-card-info h3 {
  margin-bottom: 10px; font-size: 1.02rem; font-weight: 600;
}
.price {
  display: flex; align-items: baseline; gap: 10px; font-size: 1rem; font-weight: 600;
}
.price .old {
  text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 0.9rem;
}
.stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 8px; letter-spacing: 1px; }
.stars span { color: var(--muted); margin-left: 4px; font-size: 0.78rem; }

/* Features strip */
.features { background: var(--ink); color: var(--bg); padding: 50px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.feature h4 { font-family: 'Inter', sans-serif; font-size: 0.95rem; margin-bottom: 6px; font-weight: 600; }
.feature p { font-size: 0.82rem; opacity: 0.7; }
.feature .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }

/* Story */
.story { background: var(--bg-alt); padding: 100px 0; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-img { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text p { color: var(--ink-soft); margin: 20px 0; }

/* Newsletter */
.newsletter { padding: 90px 0; text-align: center; }
.newsletter h2 { margin-bottom: 16px; }
.newsletter p { color: var(--ink-soft); margin-bottom: 32px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; gap: 8px; }
.newsletter-form input {
  flex: 1; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
}
.newsletter-form input:focus { outline: none; border-color: var(--ink); }

/* Footer */
footer { background: var(--ink); color: var(--bg); padding: 70px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px;
}
.footer-col h5 {
  font-family: 'Inter', sans-serif; font-size: 0.82rem;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px;
  font-weight: 600; opacity: 0.95;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--bg); font-size: 0.9rem; opacity: 0.7; }
.footer-col a:hover { opacity: 1; }
.footer-brand .logo { color: var(--bg); margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.88rem; opacity: 0.65; max-width: 320px; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.6;
}

/* Product detail */
.product-detail { padding: 60px 0 90px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a:hover { color: var(--accent); }
.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; }
.product-gallery .main-img {
  aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumb {
  aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border 0.2s;
}
.thumb.active, .thumb:hover { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .cat {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.product-info h1 { font-size: 2.4rem; margin-bottom: 16px; }
.product-info .price-large {
  font-size: 1.6rem; font-weight: 600; margin: 18px 0 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.product-info .price-large .old {
  text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 1.2rem;
}
.product-info .desc { color: var(--ink-soft); margin: 24px 0 30px; font-size: 0.98rem; }
.feature-list { list-style: none; margin: 24px 0; }
.feature-list li {
  padding: 10px 0 10px 28px; position: relative;
  color: var(--ink-soft); font-size: 0.94rem; border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: 10px;
  color: var(--accent); font-weight: 700;
}
.qty-row { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty-control button {
  width: 42px; height: 46px; background: none; border: none;
  font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.qty-control input {
  width: 50px; height: 46px; text-align: center; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-family: inherit; font-size: 1rem; background: var(--white);
}
.cta-row { display: flex; gap: 12px; margin: 28px 0; }
.cta-row .btn { flex: 1; padding: 16px; }
.shipping-info {
  display: flex; gap: 30px; padding: 24px 0; margin-top: 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.shipping-info div { font-size: 0.85rem; }
.shipping-info strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }

/* Cart page */
.cart-page { padding: 60px 0 90px; min-height: 60vh; }
.cart-page h1 { margin-bottom: 40px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.cart-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto auto; gap: 20px;
  align-items: center; padding: 24px; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 100px; height: 100px; background: var(--bg-alt);
  border-radius: var(--radius); overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-weight: 600; margin-bottom: 4px; }
.cart-item-cat { font-size: 0.8rem; color: var(--muted); }
.cart-item-remove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.82rem; text-decoration: underline; margin-top: 8px;
}
.cart-summary {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; height: fit-content; position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-row {
  display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem;
}
.summary-row.total {
  font-weight: 700; font-size: 1.15rem; padding-top: 18px; margin-top: 10px;
  border-top: 1px solid var(--line);
}
.empty-cart { text-align: center; padding: 80px 20px; }
.empty-cart p { color: var(--ink-soft); margin: 16px 0 30px; }

/* Checkout */
.checkout { padding: 60px 0 90px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.checkout h2 { margin-bottom: 24px; font-size: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 6px; letter-spacing: 0.04em;
}
.form-group input, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
  background: var(--white);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--ink);
}
.checkout-section { margin-bottom: 40px; }
.order-summary {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 30px; height: fit-content; position: sticky; top: 100px;
}
.order-summary h3 { margin-bottom: 20px; }
.order-item {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.order-item-img {
  width: 60px; height: 60px; background: var(--white);
  border-radius: var(--radius); overflow: hidden;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-title { font-size: 0.88rem; font-weight: 600; }
.order-item-qty { font-size: 0.78rem; color: var(--muted); }
.order-item-price { font-weight: 600; font-size: 0.92rem; }
.payment-methods { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.payment-card {
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.72rem; font-weight: 600;
  background: var(--white);
}

/* Page header */
.page-header {
  background: var(--bg-alt); padding: 70px 0; text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; }

/* Content pages */
.content-page { padding: 70px 0; }
.content-page .container { max-width: 800px; }
.content-page h2 { margin: 40px 0 16px; font-size: 1.7rem; }
.content-page h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.content-page p, .content-page li { color: var(--ink-soft); margin-bottom: 14px; font-size: 0.98rem; }
.content-page ul { margin-left: 22px; margin-bottom: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info p { margin-bottom: 20px; color: var(--ink-soft); }
.contact-info .info-block { margin-bottom: 28px; }
.contact-info strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit; font-size: 0.95rem;
  background: var(--white); min-height: 140px; resize: vertical;
}
.contact-form textarea:focus { outline: none; border-color: var(--ink); }

/* Notification */
.toast {
  position: fixed; top: 100px; right: 20px;
  background: var(--ink); color: var(--bg);
  padding: 14px 22px; border-radius: var(--radius);
  font-size: 0.9rem; z-index: 200;
  transform: translateX(120%); transition: transform 0.4s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(0); }

/* Mobile */
@media (max-width: 880px) {
  nav ul { display: none; }
  .hero-inner, .story-inner, .product-detail-grid,
  .cart-layout, .checkout-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section, .hero { padding: 60px 0; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 14px; }
  .cart-item-img { width: 80px; height: 80px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
}
