/*
Theme Name: Jenny's Crust & Crumb
Theme URI: https://jennyscrust.com
Author: Jenny's Crust & Crumb
Description: Custom sourdough home bakery WordPress + WooCommerce theme with Wednesday and Saturday bake-day ordering and free Canyon Country pickup.
Version: 1.0.3
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: jennys-crust-crumb
*/

:root {
  --jcc-cream: #FAF6F0;
  --jcc-linen: #F2EAE0;
  --jcc-card: #FFFFFF;
  --jcc-crust: #B86B35;
  --jcc-crust-hover: #9B5525;
  --jcc-espresso: #2B1D14;
  --jcc-cocoa: #695649;
  --jcc-border: #E5D9CA;
  --jcc-sage: #4A6B53;
  --jcc-radius: 14px;
  --jcc-shadow: 0 12px 32px rgba(43, 29, 20, 0.07);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--jcc-cream);
  color: var(--jcc-espresso);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }

.jcc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Announcement Bar */
.jcc-topbar {
  background: var(--jcc-espresso);
  color: #F7EFE6;
  font-size: 13px;
  padding: 9px 16px;
  text-align: center;
  letter-spacing: 0.02em;
}
.jcc-topbar strong { color: #F0B27A; font-weight: 600; }
/* Header */
.jcc-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--jcc-border);
}
.jcc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}
.jcc-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.jcc-brand-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--jcc-espresso);
  letter-spacing: -0.01em;
}
.jcc-brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--jcc-crust);
  margin-top: 2px;
}

.jcc-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.jcc-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--jcc-espresso);
}
.jcc-nav a:hover { color: var(--jcc-crust); }

.jcc-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.jcc-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jcc-espresso);
  color: #FFF;
  border: none;
  border-radius: 99px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.jcc-cart-btn:hover { background: var(--jcc-crust); transform: translateY(-1px); }
.jcc-cart-count {
  background: var(--jcc-crust);
  color: #FFF;
  font-size: 12px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Buttons */
.jcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--jcc-crust);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.jcc-btn:hover {
  background: var(--jcc-crust-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.jcc-btn-outline {
  background: transparent;
  color: var(--jcc-espresso);
  border: 1.5px solid var(--jcc-espresso);
}
.jcc-btn-outline:hover {
  background: var(--jcc-espresso);
  color: #FFFFFF;
}

/* Hero Section */
.jcc-hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, var(--jcc-linen) 0%, var(--jcc-cream) 100%);
  border-bottom: 1px solid var(--jcc-border);
}
.jcc-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 44px;
  align-items: center;
}
.jcc-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jcc-crust);
  background: rgba(184, 107, 53, 0.11);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.jcc-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.06;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--jcc-espresso);
}
.jcc-hero p {
  font-size: 17px;
  color: var(--jcc-cocoa);
  margin: 0 0 28px;
  max-width: 500px;
}
.jcc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.jcc-hero-media {
  position: relative;
}
.jcc-hero-media img {
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(43, 29, 20, 0.16);
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  object-fit: cover;
  object-position: center 45%;
}
.jcc-hero-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--jcc-card);
  border: 1px solid var(--jcc-border);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--jcc-shadow);
  font-size: 13px;
}
.jcc-hero-badge strong { display: block; color: var(--jcc-espresso); font-size: 14px; }

/* Feature Trust Bar */
.jcc-trustbar {
  padding: 26px 0;
  border-bottom: 1px solid var(--jcc-border);
  background: var(--jcc-cream);
}
.jcc-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.jcc-trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--jcc-espresso);
}
.jcc-trust-item span {
  font-size: 13px;
  color: var(--jcc-cocoa);
}

/* Menu Section */
.jcc-section { padding: 72px 0; }
.jcc-section-alt { background: var(--jcc-linen); }
.jcc-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.jcc-section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 10px;
  line-height: 1.12;
}
.jcc-section-head p {
  color: var(--jcc-cocoa);
  margin: 0;
}

/* Filter Tabs */
.jcc-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.jcc-tab {
  background: var(--jcc-card);
  border: 1px solid var(--jcc-border);
  color: var(--jcc-cocoa);
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.jcc-tab.active, .jcc-tab:hover {
  background: var(--jcc-espresso);
  color: #FFF;
  border-color: var(--jcc-espresso);
}

/* Product Grid */
.jcc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.jcc-card {
  background: var(--jcc-card);
  border: 1px solid var(--jcc-border);
  border-radius: var(--jcc-radius);
  overflow: hidden;
  box-shadow: var(--jcc-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.jcc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(43, 29, 20, 0.11);
}
.jcc-card-img {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--jcc-linen);
}
.jcc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.jcc-card:hover .jcc-card-img img { transform: scale(1.04); }
.jcc-weight-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(43, 29, 20, 0.84);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}
.jcc-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.jcc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.jcc-card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.jcc-card-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--jcc-crust);
  white-space: nowrap;
}
.jcc-card-sub {
  font-size: 13.5px;
  color: var(--jcc-cocoa);
  margin: 0 0 12px;
}
.jcc-allergens {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jcc-cocoa);
  background: var(--jcc-linen);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
}
.jcc-ingredients-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--jcc-crust);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  margin-bottom: 12px;
}
.jcc-ingredients-box {
  display: none;
  font-size: 12.5px;
  color: var(--jcc-cocoa);
  background: #FAF6F0;
  border: 1px solid var(--jcc-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.jcc-ingredients-box.open { display: block; }
.jcc-card-actions {
  margin-top: auto;
  padding-top: 8px;
}
.jcc-card-actions .button,
.jcc-card-actions .add_to_cart_button,
.jcc-add-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--jcc-crust) !important;
  color: #FFF !important;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 18px !important;
  border-radius: 9px !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
.jcc-card-actions .button:hover,
.jcc-add-btn:hover {
  background: var(--jcc-crust-hover) !important;
}
.jcc-card-actions a.added_to_cart {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jcc-sage);
}

/* How Pre-Orders Work Steps */
.jcc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.jcc-step-card {
  background: var(--jcc-card);
  border: 1px solid var(--jcc-border);
  border-radius: var(--jcc-radius);
  padding: 28px;
}
.jcc-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--jcc-espresso);
  color: #FFF;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.jcc-step-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 8px;
}
.jcc-step-card p {
  margin: 0;
  color: var(--jcc-cocoa);
  font-size: 15px;
}

/* Story Block */
.jcc-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.jcc-story-grid img {
  border-radius: 18px;
  box-shadow: var(--jcc-shadow);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.jcc-story-grid h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 16px;
  line-height: 1.12;
}
.jcc-story-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.jcc-story-list li {
  padding: 6px 0;
  font-weight: 500;
}

/* WooCommerce checkout & cart styling */
.jcc-wc-wrap {
  padding: 48px 0 80px;
}
.woocommerce .button,
.woocommerce #payment #place_order,
.wc-block-components-button {
  background-color: var(--jcc-crust) !important;
  color: #FFF !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
  border: none !important;
}
.woocommerce .button:hover,
.woocommerce #payment #place_order:hover {
  background-color: var(--jcc-crust-hover) !important;
}

/* Hide express / wallet / card-brand checkout UI if a plugin injects it. Do not hide #payment or Pay at pickup. */
#wcpay-express-checkout-wrapper,
#wc-stripe-payment-request-wrapper,
#wc-ppcp-applepay-button,
#wc-ppcp-googlepay-button,
.wc-block-components-express-payment,
.wc-block-components-express-payment-legend,
.wc-square-wallet-buttons,
.apple-pay-button,
.gpay-button,
.stripe-apple-pay-button,
.payment_method_stripe .wc-saved-payment-methods,
img.payment-icon,
.woocommerce-PaymentMethod--express {
  display: none !important;
}
.jcc-bake-schedule-box {
  background: #FFFDF9;
  border: 1.5px solid var(--jcc-crust);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}
.jcc-bake-schedule-box h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0 0 8px;
}

/* Slide-Over Mini Cart Drawer */
.jcc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 29, 20, 0.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.jcc-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.jcc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--jcc-cream);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.15);
}
.jcc-drawer.open { transform: translateX(0); }
.jcc-drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--jcc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF;
}
.jcc-drawer-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
}
.jcc-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--jcc-espresso);
}
.jcc-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}
.jcc-drawer-foot {
  padding: 18px 24px;
  background: #FFF;
  border-top: 1px solid var(--jcc-border);
  font-size: 12.5px;
  color: var(--jcc-cocoa);
  text-align: center;
}

/* Footer */
.jcc-footer {
  background: var(--jcc-espresso);
  color: #E8DDD2;
  padding: 56px 0 36px;
}
.jcc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.jcc-footer h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #FFF;
  margin: 0 0 12px;
}
.jcc-cfo-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  font-size: 12px;
  color: #D7C7B8;
}
.jcc-footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #B6A495;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .jcc-hero-grid, .jcc-story-grid, .jcc-footer-grid { grid-template-columns: 1fr; }
  .jcc-grid, .jcc-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .jcc-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .jcc-nav { display: none; }
}
@media (max-width: 640px) {
  .jcc-grid, .jcc-steps-grid, .jcc-trust-grid { grid-template-columns: 1fr; }
  .jcc-hero { padding: 28px 0 44px; }
}


/* v2 copy layout helpers */
.jcc-card-note {
  font-size: 14px;
  color: var(--jcc-cocoa);
  margin: 0 0 10px;
  line-height: 1.45;
}
.jcc-how-photo {
  margin: 0 0 32px;
}
.jcc-how-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: var(--jcc-shadow);
}
.jcc-howto-permit {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--jcc-cocoa);
}
.jcc-shop-intro {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--jcc-cocoa);
  font-size: 17px;
  line-height: 1.55;
}
.jcc-prose {
  max-width: 720px;
  color: var(--jcc-cocoa);
  line-height: 1.65;
  font-size: 17px;
}
.jcc-prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  color: var(--jcc-espresso);
  margin: 0 0 20px;
}
.jcc-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  color: var(--jcc-espresso);
  margin: 32px 0 10px;
}
.jcc-prose p { margin: 0 0 16px; }
.jcc-prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.jcc-prose img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  margin: 0 0 24px;
  box-shadow: var(--jcc-shadow);
}
.jcc-faq-item { margin: 0 0 8px; }

.jcc-footer-bottom a,
a.jcc-footer-privacy {
  color: #F0B27A;
  text-decoration: underline;
}
