/* Modern handcrafted theme: warm beige base, muted teal + rust accents */

:root {
  --bg: #F6F1E7;          /* cozy beige */
  --surface: #FFF9F2;     /* soft ivory */
  --surface-2: #EFE7DD;   /* muted parchment */
  --line: #E6DAD0;        /* soft divider */
  --text: #2E211B;        /* espresso */
  --muted: #6F5A50;       /* warm brown */
  --accent: #C96C3E;      /* rust */
  --accent-2: #6B9C97;    /* muted teal */
  --shadow: 0 8px 24px rgba(46, 33, 27, 0.08);
  --radius: 12px;
}

/* Base */
body.theme-craft {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.theme-craft h1,
body.theme-craft h2,
body.theme-craft h3,
body.theme-craft h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  letter-spacing: 0.2px;
}

/* Links */
body.theme-craft a { color: var(--accent); text-decoration: none; }
body.theme-craft a:hover { color: #a2512f; text-decoration: underline; }

/* Containers */
body.theme-craft .container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* Header / Navigation */
body.theme-craft header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  padding: 14px 22px;
}

body.theme-craft .main-nav { gap: 12px; }
body.theme-craft .nav-left ul { gap: 18px; }
body.theme-craft .nav-left a,
body.theme-craft .nav-right a {
  color: var(--muted);
  font-weight: 500;
}
body.theme-craft .nav-left a:hover,
body.theme-craft .nav-right a:hover { color: var(--text); }

body.theme-craft .logo { height: 56px; }
body.theme-craft .hamburger { color: var(--muted); }

/* Home minimal header variant */
body.theme-craft.home-minimal header { background: transparent; border-bottom: none; box-shadow: none; }
body.theme-craft.home-minimal .main-nav {
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
body.theme-craft.home-minimal .logo { height: 68px; }
body.theme-craft.home-minimal .nav-center { display: none; }
body.theme-craft.home-minimal .nav-right { justify-self: end; }
body.theme-craft.home-minimal .home-hero-logo-link {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 14px;
}
body.theme-craft.home-minimal .home-hero-logo {
  height: 132px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 1200px) {
  body.theme-craft.home-minimal .home-hero-logo { height: 118px; }
}
@media (max-width: 768px) {
  body.theme-craft.home-minimal .home-hero-logo { height: 96px; }
}
@media (max-width: 480px) {
  body.theme-craft.home-minimal .home-hero-logo { height: 78px; }
}

/* Mobile Menu */
body.theme-craft .mobile-menu-overlay {
  background: var(--surface);
  border-left: 1px solid var(--line);
}
body.theme-craft .mobile-menu-overlay a {
  color: var(--text);
}
body.theme-craft .mobile-menu-overlay a:hover { color: var(--accent); }

/* Announcement bar */
body.theme-craft .announcement {
  background: linear-gradient(0deg, rgba(107,156,151,0.12), rgba(107,156,151,0.12));
  color: var(--text);
}
/* Announcement remains visible by default; visibility is controlled via Site Settings */
/* Tighten home hero to fit full layout on one screen */
body.theme-craft.home-minimal .hero { min-height: 64vh; padding-top: 48px; padding-bottom: 36px; }
body.theme-craft.home-minimal .craft-hero { border-top-width: 16px; }
body.theme-craft.home-minimal .craft-hero .hero-subtitle { margin-bottom: 12px; }

/* Hero */
body.theme-craft .hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 96px 24px;
  text-align: center;
}
body.theme-craft .hero::before {
  /* soft overlay for readability when using a photo bg */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(255,249,242,0.55), rgba(255,249,242,0.2) 60%, rgba(255,249,242,0) 100%);
}
body.theme-craft .hero .hero-content { position: relative; z-index: 1; }
body.theme-craft .hero-title { color: var(--text); font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 14px; }
body.theme-craft .hero-subtitle { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); margin: 0 0 22px; }

/* Trio inside hero */
body.theme-craft .hero-trio { max-width: 980px; margin: 12px auto 6px; padding: 0 16px; }
body.theme-craft .hero-trio .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.theme-craft .hero-trio img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; display: block; }
@media (max-width: 800px) {
  body.theme-craft .hero-trio .grid { grid-template-columns: 1fr; }
  body.theme-craft .hero-trio img { height: 160px; }
}

/* Craft hero variant (closer to reference image) */
body.theme-craft .craft-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 24px solid var(--surface-2);
}
body.theme-craft .craft-hero .hero-title { color: var(--accent-2); }
body.theme-craft .craft-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(107,156,151,0.12), rgba(107,156,151,0.06) 60%, rgba(107,156,151,0) 100%);
  pointer-events: none;
}

/* Buttons */
body.theme-craft .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .05s ease, background .2s ease;
}
body.theme-craft .btn:hover { background: #a2512f; transform: translateY(-1px); }
body.theme-craft .btn:active { transform: translateY(0); }
body.theme-craft .btn.secondary { background: transparent; color: var(--accent-2); border: 2px solid var(--accent-2); box-shadow: none; }
body.theme-craft .btn.secondary:hover { background: var(--accent-2); color: #fff; }

/* Adjust hero button spacing */
/* Prominent, high-contrast hero button */
body.theme-craft .hero .btn {
  margin-top: 12px;
  background: var(--surface-2);
  color: var(--accent) !important;  /* match nav link accent */
  border: 2px solid var(--accent);
  box-shadow: 0 10px 28px rgba(46,33,27,0.12);
}
body.theme-craft .hero .btn:hover { background: var(--surface); }

/* Button variants */
body.theme-craft .btn.pill { border-radius: 22px; }
body.theme-craft .btn.big { padding: 14px 28px; font-size: 1.05rem; letter-spacing: 0.5px; }

/* Trio showcase inspired by reference */
body.theme-craft .showcase-trio { max-width: 1100px; margin: 32px auto 24px; padding: 0 24px; }
body.theme-craft .showcase-trio .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.theme-craft .showcase-trio .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
body.theme-craft .showcase-trio .card img { width: 100%; height: 240px; object-fit: cover; display: block; }
body.theme-craft .showcase-trio .card .meta { padding: 12px 14px; text-align: center; }
body.theme-craft .showcase-trio .card .title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; color: var(--text); margin: 6px 0 2px; }
body.theme-craft .showcase-trio .card .price { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) {
  body.theme-craft .showcase-trio .grid { grid-template-columns: 1fr; }
  body.theme-craft .showcase-trio .card img { height: 200px; }
}

/* Hero bottom links (optional) */
body.theme-craft .hero-bottom-nav { text-align: center; margin: 10px 0 32px; }
body.theme-craft .hero-bottom-nav a { color: var(--accent); font-weight: 600; margin: 0 22px; letter-spacing: 0.6px; font-size: 1.15rem; }
body.theme-craft .hero-bottom-nav a:hover { color: #a2512f; }

/* Home reviews strip */
body.theme-craft .home-reviews { max-width: 980px; margin: 16px auto 8px; padding: 0 16px; text-align: center; }
body.theme-craft .home-reviews .item { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
body.theme-craft .home-reviews .item.active { display: block; }
body.theme-craft .home-reviews .author { font-weight: 700; }
body.theme-craft .home-reviews .stars { color: var(--accent); letter-spacing: 1px; margin-left: 6px; }

/* Shop: filters + grid */
body.theme-craft .shop-layout { gap: 36px; }
body.theme-craft .filter-sidebar { width: 240px; }
body.theme-craft .filter-sidebar .filter-btn {
  background: var(--surface);
  color: var(--muted);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
body.theme-craft .filter-sidebar .filter-btn:hover,
body.theme-craft .filter-sidebar .filter-btn.active {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

body.theme-craft .product-grid { gap: 28px; }
body.theme-craft .product-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden; /* keep inner elements clipped to card radius */
}
body.theme-craft .product-card h3 { margin-top: 12px; }
body.theme-craft .product-card p { color: var(--muted); }
body.theme-craft .product-card .card-body { padding-top: 8px; flex: 1; }
body.theme-craft .product-card .card-footer { margin-top: auto; padding-top: 8px; }
body.theme-craft .product-card .card-footer .btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* prevent overflow due to padding/border */
  margin: 0; /* align with card edges */
  border-radius: 10px; /* slightly softer inside card */
}

/* Product page */
body.theme-craft .price-tag { color: var(--text); }
body.theme-craft .summary-text { color: var(--muted); }
body.theme-craft .accordion-toggle { color: var(--text); border-bottom: 1px solid var(--line); }
body.theme-craft .accordion-content { color: var(--muted); }
body.theme-craft .oos-note {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
}

/* Footer */
body.theme-craft .global-footer {
  background: var(--surface-2);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
body.theme-craft .global-footer a { color: var(--accent); }
body.theme-craft .global-footer a:hover { color: #a2512f; }

/* Forms */
body.theme-craft input,
body.theme-craft select,
body.theme-craft textarea {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Admin theming */
body.theme-craft .admin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.theme-craft table { background: var(--surface); }
body.theme-craft th { background: var(--surface-2) !important; color: var(--text) !important; }
body.theme-craft td { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
body.theme-craft .pill { background: var(--surface-2) !important; color: var(--muted); }
body.theme-craft .wizard { background: var(--surface) !important; border: 1px solid var(--line); }
body.theme-craft .wizard-steps .step-pill { background: var(--surface-2) !important; color: var(--text) !important; }
body.theme-craft .wizard-steps .active { background: var(--accent) !important; color: #fff !important; }
body.theme-craft .preview-card,
body.theme-craft .full-preview { background: var(--surface) !important; border-color: var(--line) !important; }

/* Cart overlay + drawer */
body.theme-craft .overlay { background: rgba(46,33,27,0.28); }
body.theme-craft .cart-drawer {
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 36px rgba(46,33,27,0.12);
}
body.theme-craft .cart-header { border-bottom: 1px solid var(--line); }
body.theme-craft .cart-header h2 { font-family: 'Playfair Display', Georgia, serif; color: var(--text); }
body.theme-craft .close-btn { color: var(--muted); }
body.theme-craft .close-btn:hover { color: var(--accent); }
body.theme-craft #cart-table th,
body.theme-craft #cart-table td { color: var(--text); border-bottom: 1px solid var(--line); }
body.theme-craft #cart-table th { background: var(--surface-2); }
body.theme-craft #cart-table td { background: var(--surface); }
body.theme-craft #total-price { color: var(--text); }
body.theme-craft .order-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }

/* Page hero (non-home) */
body.theme-craft .page-hero {
  min-height: 46vh;
  background: radial-gradient(800px 400px at 50% 10%, rgba(107,156,151,0.12), rgba(107,156,151,0.04) 60%, rgba(107,156,151,0) 100%),
              linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

/* Fine tuning small screens */
@media (max-width: 768px) {
  body.theme-craft .filter-sidebar { width: 100%; }
  body.theme-craft .shop-layout { flex-direction: column; }
}
