/* Dolceria — shared stylesheet. Self-hosted fonts, no external CDN. */

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/karla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #b95115;
  --accent-hover: #973200;
  --bg: #fbf4ea;
  --text: #38231c;
  --card-bg: #fefbf7;
  --border: #e6dcd0;
  --muted: #6d5851;
  --sage: #4b8358;
  --dark: #22110b;
  --cream: #efeae4;
  --cookie-link: #eaae93;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Karla', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-hover); }
input, textarea, select, button { font-family: var(--font-sans); font-size: 15px; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); }

.site { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 20px; flex-wrap: wrap;
}
.logo { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text); }
.main-nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.main-nav a.active { color: var(--accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-order {
  font-weight: 600; color: var(--card-bg); background: var(--accent);
  padding: 10px 18px; border-radius: 2px; font-size: 14px;
}
.btn-order:hover { color: var(--card-bg); background: var(--accent-hover); }
.cart-btn {
  position: relative; background: transparent; border: 1px solid var(--border);
  border-radius: 2px; padding: 9px 14px; cursor: pointer; font-size: 14px; color: var(--text);
}
.cart-count {
  position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff;
  font-size: 11px; border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[hidden] { display: none; }

main { flex: 1; }

/* Buttons */
.btn { cursor: pointer; border: none; border-radius: 2px; font-weight: 600; padding: 12px 22px; display: inline-block; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-light { background: var(--card-bg); color: var(--text); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(34, 17, 11, 0.48); }
.hero-inner { position: relative; text-align: center; color: var(--card-bg); max-width: 720px; padding: 0 24px; }
.hero h1 { font-size: 52px; font-weight: 700; margin: 0 0 16px; line-height: 1.15; }
.hero p { font-size: 18px; line-height: 1.6; margin: 0 0 28px; opacity: .95; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.photo-credit { font-family: monospace; font-size: 11px; letter-spacing: .5px; opacity: .8; margin-bottom: 14px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 56px 0; }
.feature { text-align: center; padding: 24px; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 50%; color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-serif); font-size: 22px; margin: 0 auto 16px;
}
.feature h3 { margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Product cards */
.products-section { background: var(--card-bg); padding: 56px 0; }
.section-title { font-size: 32px; text-align: center; margin: 0 0 32px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--bg); }
.product-photo { height: 170px; width: 100%; object-fit: cover; background: var(--cream); }
.product-body { padding: 18px; }
.product-body h4 { margin: 0 0 6px; }
.product-body p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.5; min-height: 42px; }
.product-row { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 700; }
.btn-add {
  cursor: pointer; background: var(--accent); color: #fff; border: none; padding: 8px 14px;
  border-radius: 2px; font-size: 13px; font-weight: 600;
}
.btn-add:hover { background: var(--accent-hover); }

/* Story / two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
.two-col img, .two-col .ph { height: 320px; width: 100%; object-fit: cover; }
.two-col h2 { font-size: 30px; margin: 0 0 16px; }
.two-col p { color: var(--muted); line-height: 1.7; margin: 0 0 20px; }

/* Testimonials */
.testimonials { background: var(--dark); color: var(--card-bg); padding: 56px 0; }
.testimonial-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0 24px; }
.testimonial p { font-style: italic; line-height: 1.7; margin: 0 0 12px; opacity: .95; }
.testimonial .name { font-weight: 700; font-size: 14px; }

/* Newsletter */
.newsletter { max-width: 700px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.newsletter h2 { font-size: 28px; margin: 0 0 10px; }
.newsletter p { color: var(--muted); margin: 0 0 24px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-success { color: var(--accent); font-weight: 600; }

/* Forms */
.field {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 2px; width: 100%;
  background: #fff; color: var(--text);
}
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; }
textarea.field { resize: vertical; }

/* Page header (inner pages) */
.page-header { padding: 56px 0 8px; }
.page-header h1 { font-size: 40px; margin: 0 0 8px; }
.page-header p.lead { color: var(--muted); margin: 0 0 32px; }

/* About */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.value-card { background: var(--card-bg); border: 1px solid var(--border); padding: 22px; }
.value-card h4 { margin: 0 0 8px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.team-photo { width: 100%; height: 220px; object-fit: cover; margin-bottom: 14px; }
.team-card { text-align: center; }
.team-card h4 { margin: 0 0 4px; }
.team-role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

.timeline { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 56px; }
.timeline-item { flex: 1; min-width: 200px; border-top: 3px solid var(--accent); padding-top: 14px; }
.timeline-year { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Menu */
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.menu-tab {
  cursor: pointer; border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 10px 18px; border-radius: 20px; font-size: 14px; font-weight: 600;
}
.menu-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu-panel { display: none; flex-direction: column; gap: 18px; padding-bottom: 56px; }
.menu-panel.active { display: flex; }
.menu-item { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.menu-item h4 { margin: 0 0 4px; }
.menu-item p { margin: 0; font-size: 14px; color: var(--muted); }
.menu-item .price { white-space: nowrap; }

/* Shop */
.shop-note { background: var(--card-bg); border: 1px solid var(--border); padding: 20px 24px; font-size: 14px; color: var(--muted); margin-bottom: 56px; }

/* Checkout */
.cart-summary { background: var(--card-bg); border: 1px solid var(--border); padding: 20px; margin-bottom: 24px; }
.cart-summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.cart-empty-note { color: var(--muted); font-size: 14px; }

/* Order done */
.order-done { max-width: 600px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.order-done h1 { font-size: 34px; margin: 0 0 14px; }
.order-done p { color: var(--muted); margin: 0 0 8px; }

/* Blog */
.article { border: 1px solid var(--border); background: var(--card-bg); padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-bottom: 20px; }
.article img { height: 150px; width: 100%; object-fit: cover; }
.article-date { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.article h3 { margin: 0 0 8px; }
.article p.excerpt { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.article-body { display: none; margin: 0 0 10px; line-height: 1.7; }
.article.open .article-body { display: block; }
.article.open .excerpt { display: none; }
.article-toggle { cursor: pointer; background: transparent; border: none; color: var(--accent); font-weight: 600; padding: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.contact-info p { line-height: 1.8; margin: 0 0 6px; }
.hours-table { width: 100%; font-size: 14px; border-collapse: collapse; margin-bottom: 24px; }
.hours-table td { padding: 6px 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table td:first-child { color: var(--muted); }
.map-placeholder {
  height: 200px; background: var(--cream); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; border: 1px solid var(--border); text-align: center;
}
.map-placeholder .pin { font-size: 22px; }
.map-placeholder span { font-family: monospace; font-size: 12px; color: var(--muted); }
.contact-card { background: var(--card-bg); border: 1px solid var(--border); padding: 24px; }
.contact-success { color: var(--accent); font-weight: 600; margin: 0; }

/* Legal pages */
.legal { padding: 56px 0; line-height: 1.75; }
.legal h1 { font-size: 36px; margin: 0 0 24px; }
.legal .intro { color: var(--muted); margin-bottom: 24px; }
.legal h3 { font-family: var(--font-serif); }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(34, 17, 11, 0.4); z-index: 50; border: none; padding: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.overlay[hidden] { display: none; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw; background: var(--card-bg);
  z-index: 51; box-shadow: -8px 0 24px rgba(34, 17, 11, 0.15); display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%); transition: transform .25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-drawer-close { cursor: pointer; background: transparent; border: none; font-size: 20px; }
.cart-lines { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.cart-line .name { font-weight: 600; font-size: 14px; }
.cart-line .lineTotal { font-size: 13px; color: var(--muted); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { cursor: pointer; width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.cart-drawer .btn-primary { width: 100%; padding: 14px; }
.cart-empty { color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: var(--cream); padding: 56px 24px 24px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.7; opacity: .8; margin: 0 0 16px; }
.social-row { display: flex; gap: 10px; }
.social-icon { width: 32px; height: 32px; border: 1px solid rgba(239,234,228,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--cream); }
.footer-col-title { font-weight: 700; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(239,234,228,0.8); font-size: 14px; }
.footer-links a:hover { color: var(--cream); }
.footer-contact p { font-size: 14px; line-height: 1.7; opacity: .8; margin: 0; }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(239,234,228,0.15); padding-top: 20px; font-size: 13px; opacity: .7; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: var(--cream);
  padding: 20px 24px; z-index: 60; display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(34, 17, 11, 0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; max-width: 640px; }
.cookie-banner a { color: var(--cookie-link); }
.cookie-actions { display: flex; gap: 10px; }
.btn-decline { cursor: pointer; background: transparent; border: 1px solid rgba(239,234,228,0.4); color: var(--cream); padding: 10px 18px; border-radius: 2px; }
.btn-accept { cursor: pointer; background: var(--accent); border: none; color: #fff; padding: 10px 18px; border-radius: 2px; font-weight: 600; }

/* Utility */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; padding: 40px 0; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { padding: 12px 16px; }
  .form-row { flex-direction: column; }
}
