/*
Theme Name: J's Anytime Juice
Description: Block theme for J's Anytime Juice (WooCommerce storefront). Brand from the 2026 Front/Back brochure.
Version: 0.7.10
Requires at least: 6.5
Text Domain: jsjuice
*/

:root { --jsj-navy: #13295B; --jsj-orange: #F47B20; --jsj-yellow: #FFC72C; }

/* ---------- header ---------- */
.jsj-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 0 var(--jsj-orange), 0 6px 18px rgba(19, 41, 91, .08); }
.jsj-topbar { font-size: .85rem; color: #fff; }
.jsj-topbar p { margin: 0; text-align: center; }
.jsj-topbar a { color: var(--jsj-yellow); text-decoration: none; font-weight: 700; }
.jsj-topbar strong { color: var(--jsj-yellow); }
.jsj-header .wp-block-site-logo img { width: 132px; height: auto; }
.jsj-header .wp-block-navigation { color: var(--jsj-navy); font-family: var(--wp--preset--font-family--rounded); font-weight: 800; }
.jsj-header .wp-block-navigation a:hover { color: var(--jsj-orange); }
.jsj-header .wc-block-mini-cart__button, .jsj-header .wc-block-customer-account__account-icon { color: var(--jsj-navy); }

/* ---------- hero ---------- */
.jsj-hero { background:
  radial-gradient(circle at 82% 40%, rgba(255, 199, 44, .55) 0, transparent 46%),
  radial-gradient(circle at 10% 90%, rgba(244, 123, 32, .18) 0, transparent 40%),
  linear-gradient(180deg, #FFF6E5 0%, #FFFFFF 100%); }
.jsj-eyebrow { display: inline-block; background: var(--jsj-navy); color: var(--jsj-yellow); font-family: var(--wp--preset--font-family--rounded); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; padding: .4rem 1rem; border-radius: 999px; }
.jsj-hero h1 { color: var(--jsj-navy); text-transform: uppercase; letter-spacing: -.01em; }
.jsj-hero-logo img { width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 18px 24px rgba(19, 41, 91, .18)); animation: jsj-bob 6s ease-in-out infinite; }
@keyframes jsj-bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .jsj-hero-logo img { animation: none; } }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--jsj-navy); border: 2px solid var(--jsj-navy); }

/* ---------- feature strip (brochure's four boxes) ---------- */
.jsj-features { background: var(--jsj-navy); }
.jsj-feature { background: #EEF4FF; border: 2px solid #C9D8F2; border-radius: 14px; text-align: center; padding: 1.1rem .75rem; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.jsj-feature p { margin: 0; color: var(--jsj-navy); font-family: var(--wp--preset--font-family--rounded); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }
.jsj-feature .jsj-feature-icon { font-size: 1.8rem; line-height: 1; margin-bottom: .35rem; }

/* ---------- offer banner ---------- */
.jsj-offer { border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(19, 41, 91, .15); }
.jsj-offer > .wp-block-column { padding: 1.6rem 2rem; margin: 0 !important; display: flex; flex-direction: column; justify-content: center; }
.jsj-offer-left { background: var(--jsj-navy); color: #fff; }
.jsj-offer-left h2, .jsj-offer-left p { color: #fff; margin: 0; }
.jsj-offer-left h2 { text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); }
.jsj-offer-right { background: var(--jsj-yellow); text-align: center; }
.jsj-offer-right p { margin: 0; color: var(--jsj-navy); }
.jsj-offer-right .jsj-offer-big { font-family: var(--wp--preset--font-family--rounded); font-weight: 900; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.jsj-code { display: inline-block; margin-top: .4rem; background: #fff; border: 2px dashed var(--jsj-navy); border-radius: 8px; padding: .15rem .6rem; font-family: ui-monospace, Menlo, monospace; font-weight: 700; }

/* ---------- cards ---------- */
.jsj-card { background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(19, 41, 91, .08); height: 100%; border: 2px solid #FCE3C7; border-top: 6px solid var(--jsj-accent, var(--jsj-orange)); }
.jsj-card h3 { margin-top: .25rem; font-size: 1.2rem; }
.jsj-card p { margin-bottom: 0; color: var(--wp--preset--color--muted); }
.jsj-c1 { --jsj-accent: #F47B20; } .jsj-c2 { --jsj-accent: #13295B; } .jsj-c3 { --jsj-accent: #FFC72C; }
.jsj-c4 { --jsj-accent: #E53935; } .jsj-c5 { --jsj-accent: #43A047; } .jsj-c6 { --jsj-accent: #1E88E5; }
.jsj-step-num { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--jsj-yellow); color: var(--jsj-navy); font-family: var(--wp--preset--font-family--rounded); font-weight: 900; font-size: 1.4rem; margin: 0 auto .5rem; }

/* ---------- product grid ---------- */
.woocommerce ul.products li.product, .wc-block-product { text-align: center; }
.woocommerce ul.products li.product a img, .wc-block-components-product-image img { border-radius: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product a:hover img { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(19, 41, 91, .15); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--rounded); font-weight: 800; font-size: 1.05rem; color: var(--jsj-navy); }
.woocommerce ul.products li.product .price { color: var(--jsj-orange); font-weight: 800; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button { background: var(--jsj-orange); color: #fff; border-radius: 999px; font-weight: 700; }
.woocommerce ul.products li.product .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--jsj-navy); color: #fff; }
.jsj-mix-note { background: #EEF4FF; border-left: 4px solid var(--jsj-navy); padding: .75rem 1rem; border-radius: 6px; }

/* ---------- price callout ---------- */
.jsj-price { background: var(--jsj-navy); color: #fff; border-radius: 28px; }
.jsj-price h2, .jsj-price p { color: #fff; }
.jsj-price .jsj-big { font-family: var(--wp--preset--font-family--rounded); font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.2rem); color: var(--jsj-yellow); line-height: 1; margin: 0; }

/* ---------- nutrition facts ---------- */
.jsj-facts { border: 3px solid var(--wp--preset--color--ink); padding: .75rem 1rem; max-width: 380px; background: #fff; font-family: "Helvetica Neue", Arial, sans-serif; }
.jsj-facts h3 { font-family: inherit; font-size: 2rem; font-weight: 900; margin: 0; border-bottom: 1px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }
.jsj-facts table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.jsj-facts td { padding: .3rem 0; border-bottom: 1px solid #bbb; }
.jsj-facts td:last-child { text-align: right; font-weight: 700; }
.jsj-facts tr.thick td { border-bottom: 8px solid var(--wp--preset--color--ink); }
.jsj-facts tr.indent td:first-child { padding-left: 1rem; }
.jsj-facts .note { font-size: .78rem; margin: .5rem 0 0; }

/* ---------- footer ---------- */
.jsj-footer { background: var(--jsj-navy); color: #DDE5F5; border-top: 8px solid var(--jsj-orange); }
.jsj-footer a { color: var(--jsj-yellow); }
.jsj-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.jsj-footer .wp-block-site-logo img { width: 200px; height: auto; }

/* ---------- build-your-own case (catalog bits; the wheel itself is in assets/case-builder.css) ---------- */
.jsj-per { color: var(--wp--preset--color--muted); font-weight: 600; font-size: .8em; }
.jsj-flavor-cta { background: #FFF6E5; border: 2px solid #FCE3C7; border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.jsj-flavor-cta p { margin: 0 0 .7rem; }
.woocommerce a.button.jsj-build-btn, .jsj-build-btn { background: var(--jsj-navy); color: #fff; }
.woocommerce a.button.jsj-build-btn:hover { background: var(--jsj-orange); }
.jsj-dyefree { font-size: .85rem; color: var(--wp--preset--color--muted); background: #F6F8FC; border-radius: 8px; padding: .5rem .75rem; margin: .6rem 0; }
.jsj-dyefree strong { color: var(--jsj-navy); }
.jsj-funfact { display: inline-block; background: var(--jsj-yellow); color: var(--jsj-navy); font-family: var(--wp--preset--font-family--rounded); font-weight: 900; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; margin-right: .35rem; }

/* ---------- home "Pick your flavors" mosaic (v0.5.3) ----------
   Build Your Own Case = 2×2 tile; flavors = small tiles; every row full (5 cols desktop, 4 tablet, 2 phone). */
.jsj-home-grid ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; margin: 0; }
.jsj-home-grid ul.products::before, .jsj-home-grid ul.products::after { display: none !important; }
.jsj-home-grid ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0; display: flex; flex-direction: column; align-items: center; }
.jsj-home-grid ul.products li.product a img { margin-bottom: .5rem; }
.jsj-home-grid ul.products li.product .woocommerce-loop-product__title { font-size: .88rem; line-height: 1.2; padding: 0; }
.jsj-home-grid ul.products li.product:first-child { grid-column: span 2; grid-row: span 2; background: #fff; border: 3px solid var(--jsj-yellow); border-radius: 22px; padding: .9rem; box-shadow: 0 12px 30px rgba(19, 41, 91, .12); justify-content: center; }
.jsj-home-grid ul.products li.product:first-child .woocommerce-loop-product__title { font-size: 1.35rem; }
.jsj-home-grid ul.products li.product:first-child .price { font-size: 1.15rem; }
.jsj-home-grid ul.products li.product:first-child a img { max-width: 92%; margin-left: auto; margin-right: auto; }
.jsj-home-grid ul.products li.product:first-child .button { font-size: 1.05rem; padding: .75rem 1.6rem; }
.jsj-info-tile .jsj-info-link { text-decoration: none; display: flex; flex-direction: column; align-items: center; color: inherit; }
.jsj-info-tile img { width: 100%; height: auto; border-radius: 18px; }
.jsj-info-note { font-size: .8rem; color: var(--wp--preset--color--muted); }
@media (max-width: 1000px) { .jsj-home-grid ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.jsj-home-grid ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
	.jsj-home-grid ul.products li.product:first-child { grid-row: span 1; }
}

/* ---------- checkout: Email Order (v0.6.0) ---------- */
.jsj-email-order { margin-top: 1rem; text-align: center; }
.jsj-email-or { display: flex; align-items: center; gap: .75rem; color: var(--wp--preset--color--muted); font-size: .85rem; margin-bottom: .6rem; }
.jsj-email-or::before, .jsj-email-or::after { content: ""; flex: 1; height: 1px; background: #DDE3EE; }
.jsj-email-lead { font-size: .92rem; margin: 0 0 .7rem; }
.jsj-email-btn { width: 100%; border: 2px solid var(--jsj-navy); background: #fff; color: var(--jsj-navy); border-radius: 999px; padding: .85rem 1.2rem; font: 800 1rem/1 var(--wp--preset--font-family--rounded); cursor: pointer; }
.jsj-email-btn:hover { background: var(--jsj-navy); color: #fff; }
.jsj-email-btn[disabled] { opacity: .6; cursor: progress; }
.jsj-email-msg { margin: .6rem 0 0; font-size: .9rem; }
.jsj-email-msg.is-ok { color: #1B5E20; }
.jsj-email-msg.is-error { color: #B71C1C; }
.jsj-call-order { margin: .9rem 0 0; padding: .7rem 1rem; background: #FFF6E5; border-radius: 12px; font-size: .98rem; }
.jsj-call-order a { font-weight: 800; white-space: nowrap; }
/* top bar: items spaced with gaps instead of "·" separators (no stray dot before the phone number when it wraps) */
.jsj-topbar p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1.6rem; row-gap: .15rem; }
.jsj-topbar a { white-space: nowrap; }

/* ---------- offline ordering (v0.7.0): no online payment; email / print / call ---------- */
body.jsj-offline-orders .wp-block-woocommerce-checkout-payment-block,
body.jsj-offline-orders .wc-block-checkout__actions,
body.jsj-offline-orders .wp-block-woocommerce-checkout-terms-block { display: none !important; }
.jsj-email-order.is-offline { margin-top: 1.5rem; background: #fff; border: 3px solid var(--jsj-yellow); border-radius: 16px; padding: 1.2rem; box-shadow: 0 10px 26px rgba(19, 41, 91, .1); }
.jsj-send-title { margin: 0 0 .3rem; font-size: 1.35rem; }
.jsj-send-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 640px) { .jsj-send-opts { grid-template-columns: 1fr; } }
.jsj-send-opts .jsj-email-btn, .jsj-print-btn, .jsj-call-btn { width: 100%; border-radius: 999px; padding: .85rem .8rem; font: 800 .98rem/1.1 var(--wp--preset--font-family--rounded); cursor: pointer; text-align: center; text-decoration: none; }
.jsj-send-opts .jsj-email-btn { background: var(--jsj-orange); border: 2px solid var(--jsj-orange); color: #fff; }
.jsj-send-opts .jsj-email-btn:hover { background: var(--jsj-navy); border-color: var(--jsj-navy); }
.jsj-print-btn { background: #fff; border: 2px solid var(--jsj-navy); color: var(--jsj-navy); }
.jsj-print-btn:hover { background: var(--jsj-navy); color: #fff; }
.jsj-call-btn { display: block; background: #2E7D32; border: 2px solid #2E7D32; color: #fff !important; }
.jsj-call-btn:hover { background: #1B5E20; }
.jsj-nowrap { white-space: nowrap; }
/* contact page: keep the email address on one line */
.jsj-email-nowrap { white-space: nowrap; }
.jsj-card h3 { white-space: nowrap; font-size: 1.1rem; }
/* Flavors page (v0.7.3): flavors only (block-template versions of count/sorting/buttons hidden too) */
.jsj-flavors-page .woocommerce-result-count, .jsj-flavors-page .woocommerce-ordering,
.jsj-flavors-page .wc-block-product-results-count, .jsj-flavors-page .wc-block-catalog-sorting,
.jsj-flavors-page ul.products li.product .button, .jsj-flavors-page ul.products li.product .price,
.jsj-flavors-page .wc-block-components-product-button, .jsj-flavors-page .wc-block-components-product-price,
.jsj-flavors-page .woocommerce-pagination, .jsj-flavors-page .wp-block-query-pagination { display: none !important; }

/* ---------- phones (v0.7.5): compact sticky header ---------- */
@media (max-width: 600px) {
	.jsj-topbar { padding-top: .3rem !important; padding-bottom: .3rem !important; }
	.jsj-topbar p { font-size: .74rem; column-gap: 1rem; flex-wrap: nowrap; }
	.jsj-topbar p > span:nth-child(2), .jsj-topbar p > span:nth-child(3) { display: none; }
	.jsj-header > .wp-block-group.alignwide { padding-top: .35rem !important; padding-bottom: .35rem !important; }
	.jsj-header .wp-block-site-logo img { width: 86px; }
}

/* ---------- checkout send options (v0.7.5): three equal, tidy buttons inside the yellow box ---------- */
.jsj-send-opts { gap: .7rem; align-items: stretch; }
.jsj-send-opts > .jsj-email-btn, .jsj-send-opts > .jsj-print-btn, .jsj-send-opts > .jsj-call-btn {
	box-sizing: border-box; width: 100%; min-width: 0; min-height: 68px; margin: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
	border-radius: 14px; padding: .7rem .6rem; text-align: center; line-height: 1.15;
	box-shadow: 0 3px 0 rgba(19, 41, 91, .15); transition: transform .12s ease, box-shadow .12s ease;
}
.jsj-send-opts > *:hover { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(19, 41, 91, .18); }
.jsj-opt-title { font: 800 1rem/1.15 var(--wp--preset--font-family--rounded); }
.jsj-opt-sub { font: 600 .8rem/1.1 var(--wp--preset--font-family--body); opacity: .92; white-space: nowrap; }
.jsj-call-btn .jsj-opt-sub { font-size: .9rem; font-weight: 800; }

/* ---------- roomier "Build your case" / "Add to my case" buttons (v0.7.6) ---------- */
.woocommerce a.button.jsj-build-btn, a.button.jsj-build-btn,
.woocommerce ul.products li.product a.button, .wc-block-components-product-button__button,
.jsj-flavor-cta a.button, .jsj-msg-actions a.button {
	display: inline-block; padding: .8rem 1.6rem !important; line-height: 1.2 !important; border-radius: 999px; min-height: 44px; box-sizing: border-box;
}
.jsj-home-grid ul.products li.product:first-child a.button.jsj-build-btn { padding: .9rem 2rem !important; }
/* no reviews (v0.7.6): hide any rating/review blocks the block templates might still output */
.woocommerce-product-rating, .wc-block-components-product-rating, .wp-block-woocommerce-product-rating,
.wp-block-woocommerce-product-reviews, .woocommerce-review-link, #reviews, .reviews_tab { display: none !important; }
/* checkout contact section (v0.7.7): "Customer name" sits above the email box */
.wc-block-checkout__contact-fields .wc-block-components-address-form { display: flex; flex-direction: column; gap: 12px; }
.wc-block-checkout__contact-fields .wc-block-components-address-form > * { width: 100%; margin-left: 0; margin-right: 0; }
.wc-block-checkout__contact-fields .wc-block-components-address-form__jsj-customer-name { order: -1; margin-top: 0; }
