/* Slappinolatican — pure CSS port of the React design.
   Theme: Organic & Earthy. Stone-50 base, forest-green primary (#2C4A3B).
   Fonts: Playfair Display (display) + Manrope (body). */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #fafaf9;     /* stone-50 */
  color: #0c0a09;                /* stone-950 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
html { scroll-behavior: smooth; }
::selection { background: #2C4A3B; color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1024px) { .container { padding: 0 96px; } }

.font-display { font-family: "Playfair Display", Georgia, serif; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e7e5e4;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px) { .header-inner { height: 80px; } }
.logo {
  font-family: "Playfair Display", serif;
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
}
@media (min-width: 768px) { .logo { font-size: 24px; } }
.primary-nav { display: none; gap: 40px; }
@media (min-width: 768px) { .primary-nav { display: flex; align-items: center; } }
.primary-nav a {
  font-size: 14px; letter-spacing: 0.01em; color: #78716c; transition: color .3s;
}
.primary-nav a:hover, .primary-nav a.active { color: #0c0a09; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 4px; transition: background .3s; color: #0c0a09;
}
.cart-button:hover { background: #f5f5f4; }
.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: #2C4A3B; color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: transparent; border-radius: 4px;
  color: #0c0a09;
}
.mobile-toggle:hover { background: #f5f5f4; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-nav {
  display: none; flex-direction: column; gap: 12px;
  padding: 16px 24px; border-top: 1px solid #e7e5e4;
  background: #fafaf9; box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #57534e; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-size: 14px; letter-spacing: 0.01em;
  border: none; border-radius: 4px; transition: background .3s, color .3s;
  cursor: pointer;
}
.btn-primary { background: #2C4A3B; color: #fff; }
.btn-primary:hover { background: #1E3329; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid #d6d3d1; color: #0c0a09; }
.btn-outline:hover { background: #f5f5f4; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; overflow: hidden; }
@media (min-width: 768px) { .hero { min-height: 88vh; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(28,25,23,.7), rgba(28,25,23,.35), transparent); }
.hero-content { position: relative; padding: 128px 0 96px; max-width: 800px; }
@media (min-width: 768px) { .hero-content { padding: 176px 0 96px; } }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: #e7e5e4; }
.hero-title {
  font-family: "Playfair Display", serif;
  color: #fff; font-size: 40px; font-weight: 400; line-height: 1.05; letter-spacing: -0.01em;
  margin: 24px 0 0;
}
@media (min-width: 640px) { .hero-title { font-size: 56px; } }
@media (min-width: 1024px) { .hero-title { font-size: 84px; } }
.hero-title em { font-style: italic; font-weight: 300; }
.hero-sub { color: rgba(255,255,255,.9); font-size: 17px; max-width: 520px; margin-top: 24px; }
.hero-ctas { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero-link { color: rgba(255,255,255,.9); font-size: 14px; text-decoration: underline; text-underline-offset: 8px; }
.hero-link:hover { color: #fff; }

/* ---------- Trust bar ---------- */
.trust-bar { border-top: 1px solid #e7e5e4; border-bottom: 1px solid #e7e5e4; background: #fafaf9; }
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0;
  color: #44403c; font-size: 14px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 48px;
}
.section-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em; color: #78716c; }
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; max-width: 720px;
  margin: 12px 0 0;
}
@media (min-width: 768px) { .section-title { font-size: 56px; } }
.link-underline { font-size: 14px; text-decoration: underline; text-underline-offset: 8px; }
.link-underline:hover { color: #2C4A3B; }

/* ---------- Product grid ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px 24px;
}
.products-grid.featured { row-gap: 48px; }
.products-grid.shop    { row-gap: 56px; }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: block; transition: transform .3s; }
.product-card-img {
  aspect-ratio: 4 / 5; overflow: hidden; background: #f5f5f4; margin-bottom: 16px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #78716c; }
.product-card-name { font-family: "Playfair Display", serif; font-size: 18px; line-height: 1.25; margin: 4px 0 0; }
.product-card-price { font-size: 14px; font-weight: 500; }
.product-card-compare { font-size: 12px; color: #a8a29e; text-decoration: line-through; }

/* ---------- Bento categories ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
@media (min-width: 768px) { .bento { gap: 24px; } }
.bento-tile { position: relative; overflow: hidden; background: #e7e5e4; }
.bento-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s;
}
.bento-tile:hover img { transform: scale(1.05); }
.bento-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,.6), transparent);
}
.bento-text { position: absolute; left: 24px; bottom: 24px; color: #fff; z-index: 1; }
.bento-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; opacity: .8; }
.bento-name { font-family: "Playfair Display", serif; font-size: 24px; margin-top: 4px; }
@media (min-width: 768px) { .bento-name { font-size: 30px; } }

.bento-large  { grid-column: span 12; height: 420px; }
.bento-narrow { grid-column: span 12; height: 260px; }
.bento-third  { grid-column: span 6;  height: 260px; }
@media (min-width: 768px) {
  .bento-large  { grid-column: span 8; height: 520px; }
  .bento-narrow { grid-column: span 4; height: 280px; }
  .bento-third  { grid-column: span 4; height: 280px; }
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: #f5f5f4; }
.testimonials-grid { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: #fff; padding: 32px; border: 1px solid #e7e5e4;
}
.stars { display: flex; gap: 2px; margin-bottom: 16px; color: #f59e0b; }
.testimonial blockquote {
  font-family: "Playfair Display", serif; font-size: 18px; line-height: 1.55; margin: 0;
}
.testimonial figcaption { margin-top: 24px; font-size: 14px; color: #78716c; }
.testimonial figcaption strong { color: #0c0a09; font-weight: 500; }
.testimonial figcaption .product { display: block; font-size: 12px; margin-top: 4px; }

/* ---------- Shop / filters ---------- */
.page-head { padding: 48px 0 0; }
@media (min-width: 768px) { .page-head { padding: 80px 0 0; } }
.page-head h1 {
  font-family: "Playfair Display", serif; font-size: 40px; line-height: 1.05; margin: 12px 0 0;
}
@media (min-width: 768px) { .page-head h1 { font-size: 72px; } }
.page-head p { color: #78716c; max-width: 480px; margin-top: 16px; }
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin: 40px 0; padding-bottom: 24px; border-bottom: 1px solid #e7e5e4;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; font-size: 13px; border: 1px solid #d6d3d1; background: #fff;
  color: #44403c; transition: background .3s, color .3s;
}
.chip:hover { background: #f5f5f4; }
.chip.active { background: #2C4A3B; color: #fff; border-color: #2C4A3B; }
.sort-control { display: flex; align-items: center; gap: 12px; }
.sort-control label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #78716c; }
.sort-control select {
  border: 1px solid #d6d3d1; background: #fff; padding: 8px 12px; font-size: 14px;
  font-family: inherit;
}

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1024px) {
  .product-detail { grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 48px; }
}
.gallery-main {
  aspect-ratio: 4 / 5; background: #f5f5f4; overflow: hidden; margin-bottom: 16px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; }
.gallery-thumb {
  width: 80px; height: 96px; overflow: hidden; border: 1px solid #e7e5e4; cursor: pointer; padding: 0;
  background: transparent;
}
.gallery-thumb.active { border-color: #2C4A3B; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-name {
  font-family: "Playfair Display", serif; font-size: 32px; letter-spacing: -0.01em; margin: 12px 0 0;
}
@media (min-width: 768px) { .product-name { font-size: 48px; } }
.rating-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rating-text { font-size: 14px; color: #78716c; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
.price { font-size: 32px; font-weight: 500; }
.compare { color: #a8a29e; text-decoration: line-through; }
.product-short { color: #57534e; line-height: 1.6; margin-top: 24px; }
.product-desc { color: #57534e; line-height: 1.6; margin-top: 12px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #d6d3d1; }
.qty-stepper button {
  width: 48px; height: 48px; background: transparent; border: none; display: inline-flex;
  align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: #f5f5f4; }
.qty-stepper span { padding: 0 20px; font-size: 16px; }
.add-to-cart { flex: 1; height: 48px; }
.benefit-row {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px;
  font-size: 14px; color: #57534e;
}
@media (min-width: 640px) { .benefit-row { grid-template-columns: repeat(3, 1fr); } }
.benefit-row li { display: flex; align-items: center; gap: 8px; list-style: none; }
.benefit-row ul { padding: 0; margin: 0; display: contents; }

.reviews-section { margin-top: 96px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid #e7e5e4; }
.reviews-head h2 { font-family: "Playfair Display", serif; font-size: 28px; margin: 0; }
.reviews-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
.review { display: grid; gap: 12px; }
.review-title { font-family: "Playfair Display", serif; font-size: 18px; margin: 0; }
.review-body { color: #57534e; font-size: 14px; line-height: 1.6; margin: 0; }
.review-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #78716c; margin: 0; }

/* ---------- Cart page ---------- */
.cart-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: 2fr 1fr; } }
.cart-empty { background: #fff; border: 1px solid #e7e5e4; padding: 96px 24px; text-align: center; }
.cart-empty p.title { font-family: "Playfair Display", serif; font-size: 24px; margin-bottom: 12px; }
.cart-empty p.sub   { color: #78716c; margin-bottom: 32px; }

.cart-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid #e7e5e4; border-bottom: 1px solid #e7e5e4;
}
.cart-row { display: flex; gap: 24px; padding: 24px 0; border-top: 1px solid #e7e5e4; }
.cart-row:first-child { border-top: none; }
.cart-row-img { width: 112px; height: 128px; flex-shrink: 0; background: #f5f5f4; overflow: hidden; }
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-row-top  { display: flex; justify-content: space-between; gap: 16px; }
.cart-row-name { font-family: "Playfair Display", serif; font-size: 20px; }
.cart-row-each { font-size: 14px; color: #78716c; margin-top: 4px; }
.cart-row-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.cart-remove { background: transparent; border: none; color: #78716c; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.cart-remove:hover { color: #dc2626; }

.cart-summary {
  position: sticky; top: 96px; background: #fff; border: 1px solid #e7e5e4; padding: 24px;
}
.cart-summary p.title { font-family: "Playfair Display", serif; font-size: 22px; margin: 0 0 24px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row.muted span:first-child { color: #78716c; }
.summary-row.total {
  font-size: 16px; font-weight: 500; padding-top: 16px; margin-top: 16px;
  border-top: 1px solid #e7e5e4;
}
.cart-summary .btn { margin-top: 24px; }
.cart-summary .btn + .btn { margin-top: 12px; }

/* ---------- Checkout / forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; color: #57534e; }
.form-row input, .form-row select, .form-row textarea {
  border: 1px solid #d6d3d1; background: #fff; padding: 12px 16px; font-size: 14px;
  font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: #2C4A3B; box-shadow: 0 0 0 1px #2C4A3B;
}
.notice {
  background: #f5f5f4; border: 1px solid #e7e5e4; padding: 24px;
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 14px; color: #57534e;
}
.notice svg { color: #2C4A3B; flex-shrink: 0; margin-top: 2px; }
.error-text { color: #dc2626; font-size: 14px; }
.success-text { color: #2C4A3B; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }

.checkout-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: 2fr 1fr; } }
.checkout-summary { background: #fff; border: 1px solid #e7e5e4; padding: 24px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 24px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.summary-item { display: flex; gap: 12px; font-size: 14px; }
.summary-item-img { width: 56px; height: 64px; background: #f5f5f4; flex-shrink: 0; overflow: hidden; }
.summary-item-img img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-meta { flex: 1; min-width: 0; }
.summary-item-meta p { margin: 0; }
.summary-item-meta p.qty { color: #78716c; }

/* ---------- About / Contact / Policies ---------- */
.about-grid { display: grid; gap: 48px; padding: 64px 0; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about-img { aspect-ratio: 4 / 5; background: #f5f5f4; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text { padding-top: 48px; display: flex; flex-direction: column; gap: 24px; color: #44403c; line-height: 1.7; }
.about-stats {
  background: #f5f5f4; padding: 80px 0;
}
.about-stats-grid {
  display: grid; gap: 40px;
}
@media (min-width: 768px) { .about-stats-grid { grid-template-columns: repeat(3, 1fr); } }
.about-stats-grid .item p:nth-child(1) { font-size: 11px; letter-spacing: 0.25em; color: #78716c; text-transform: uppercase; margin: 0; }
.about-stats-grid .item p:nth-child(2) { font-family: "Playfair Display", serif; font-size: 22px; margin: 8px 0; }
.about-stats-grid .item p:nth-child(3) { font-size: 14px; color: #57534e; line-height: 1.6; margin: 0; }

.contact-grid { display: grid; gap: 48px; margin-top: 64px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; gap: 56px; } }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-row { display: flex; gap: 12px; color: #44403c; }
.contact-info-row svg { margin-top: 2px; }
.contact-info-row p:first-of-type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #78716c; margin: 0 0 4px; }

.policy-page { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.policy-page h1 { font-family: "Playfair Display", serif; font-size: 40px; line-height: 1.05; margin: 12px 0 0; }
@media (min-width: 768px) { .policy-page h1 { font-size: 60px; } }
.policy-page > p.intro { color: #78716c; margin-top: 16px; }
.policy-section { margin-top: 40px; }
.policy-section h2 { font-family: "Playfair Display", serif; font-size: 22px; margin: 0 0 12px; }
.policy-section p { color: #44403c; line-height: 1.7; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1917; color: #d6d3d1; margin-top: 128px; padding: 96px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-logo { font-family: "Playfair Display", serif; font-size: 24px; color: #fff; margin: 0 0 16px; }
.footer-blurb { font-size: 14px; color: #a8a29e; max-width: 320px; line-height: 1.6; }
.footer-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: #a8a29e; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer a { font-size: 14px; color: #d6d3d1; transition: color .3s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 80px; padding-top: 32px; border-top: 1px solid #292524;
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-copy { font-size: 12px; color: #78716c; margin: 0; }
.payment-icons { display: flex; align-items: center; gap: 12px; opacity: .8; }
.footer-wordmark { padding: 64px 96px 0; user-select: none; pointer-events: none; }
.footer-wordmark span {
  display: block; font-family: "Playfair Display", serif; color: #292524;
  font-size: 14vw; line-height: 1; letter-spacing: -0.02em;
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .7s ease-out both; }
.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .15s; }
.fade-up-3 { animation-delay: .25s; }

/* ---------- Status / success ---------- */
.success-page { max-width: 640px; margin: 0 auto; padding: 128px 24px; text-align: center; }
.success-page h1 { font-family: "Playfair Display", serif; font-size: 36px; margin: 24px 0 16px; }
@media (min-width: 768px) { .success-page h1 { font-size: 48px; } }
.success-page p { color: #57534e; }
.spinner {
  width: 40px; height: 40px; border: 3px solid #e7e5e4; border-top-color: #2C4A3B;
  border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
