/*
Theme Name: Jesus Worldwide
Theme URI: https://jesusworldwide.org
Author: Jesus Worldwide
Description: Storefront theme for Jesus Worldwide. Home page built from the Christmas storefront mockup. Home page text and photos are editable in Appearance > Customize > Jesus Worldwide: Home page.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jesus-worldwide
*/

@font-face { font-family: "Cinzel"; src: url("assets/fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("assets/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--jww-crimson: #7b1d23;
	--jww-wood: #2a1c15;
	--jww-wood-2: #3a281e;
	--jww-cream: #f4ead8;
	--jww-paper: #efe2cb;
	--jww-ink: #2b1f19;
	--jww-muted: #6d5a4c;
	--jww-line: #cdb99b;
	--jww-serif: "Cinzel", "Trajan Pro", Georgia, serif;
	--jww-script: "Great Vibes", "Snell Roundhand", cursive;
	--jww-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--jww-cream); color: var(--jww-ink); font-family: var(--jww-sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #c9a45c; outline-offset: 2px; }
.screen-reader-text, .jww-skip { position: absolute; left: -9999px; }
.jww-skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.jww-icon { width: 1.25em; height: 1.25em; flex: none; }
.jww-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.jww-bar { background: var(--jww-crimson); color: #f7ead6; display: flex; justify-content: center; align-items: center; gap: 0; padding: 9px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.jww-bar__item { display: inline-flex; align-items: center; gap: 9px; padding: 0 28px; white-space: nowrap; }
.jww-bar__item + .jww-bar__item { border-left: 1px solid rgba(247, 234, 214, .45); }
.jww-bar__item:first-child { font-weight: 500; }

/* Header */
.jww-header {
	position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 28px;
	padding: 14px 40px 16px; color: #f3e6cf;
	background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 7px), linear-gradient(180deg, var(--jww-wood-2), var(--jww-wood));
}
.jww-header__menu { display: none; }
.jww-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.jww-nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }
.jww-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.jww-nav .jww-icon { width: .9em; height: .9em; }
.jww-nav--left { justify-self: start; padding-left: 56px; }
.jww-nav--right { justify-self: end; gap: 26px; padding-right: 138px; }
.jww-header__tools { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 18px; font-size: 19px; }
.jww-header__tools a, .jww-header__tools button { display: inline-flex; position: relative; }
.jww-cart-count { position: absolute; top: -9px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #b3262d; color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-family: var(--jww-sans); }

.jww-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; line-height: 1; }
.jww-logo__mark { width: 118px; height: auto; margin-bottom: -4px; }
.jww-logo__name { font-family: var(--jww-serif); font-size: 44px; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; }
.jww-logo__sub { font-family: var(--jww-serif); font-size: 17px; letter-spacing: .5em; margin-right: -.5em; margin-top: 6px; text-transform: uppercase; }
.custom-logo { max-height: 96px; width: auto; }

.jww-search { display: flex; gap: 8px; padding: 12px 20px; background: var(--jww-paper); border-bottom: 1px solid var(--jww-line); }
.jww-search[hidden], .jww-drawer[hidden] { display: none; }
.jww-search input[type=search] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--jww-line); background: #fff; font: inherit; }
.jww-search button { padding: 0 20px; background: var(--jww-wood); color: #f3e6cf; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.jww-drawer { display: flex; flex-direction: column; background: var(--jww-paper); border-bottom: 1px solid var(--jww-line); }
.jww-drawer a { padding: 14px 20px; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; border-top: 1px solid rgba(0,0,0,.06); }

/* Hero */
.jww-hero { position: relative; overflow: hidden; min-height: clamp(320px, 31vw, 540px); display: flex; align-items: center; justify-content: flex-end; color: #f6ead5;
	background: radial-gradient(120% 90% at 78% 30%, #b98a6c 0%, #7c5a4a 32%, #47352d 62%, #2a1f1b 100%); }
.jww-hero__photo { position: absolute; inset: 0 auto 0 0; width: 58%; background-size: cover; background-position: left center;
	-webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%); }
.jww-hero__copy { position: relative; width: 50%; padding: 32px 4% 36px 0; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.jww-hero__kicker { margin: 0 0 6px; font-size: clamp(12px, 1.15vw, 17px); letter-spacing: .36em; text-transform: uppercase; }
.jww-hero__kicker span { display: inline-flex; align-items: center; gap: 16px; }
.jww-hero__kicker span::before, .jww-hero__kicker span::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.jww-hero__title { margin: 0; font-family: var(--jww-serif); font-weight: 400; font-size: clamp(34px, 5.4vw, 84px); line-height: .98; letter-spacing: .02em; text-transform: uppercase; }
.jww-hero__title { max-width: 7.2em; margin-inline: auto; }
.jww-hero__script { margin: -.12em 0 .28em; font-family: var(--jww-script); font-size: clamp(30px, 4.3vw, 66px); line-height: 1.05; }
.jww-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; background: #f3e6cf; color: var(--jww-ink); text-decoration: none; text-shadow: none; font-weight: 500; font-size: clamp(13px, 1.1vw, 16px); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; transition: background .15s; }
.jww-btn:hover { background: #fff; }
.jww-btn__short { display: none; }

/* Tees */
.jww-tees { background: linear-gradient(180deg, #2f2018, #241812); }
.jww-rule { margin: 0; position: absolute; left: -9999px; }
.jww-tees__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.jww-tee a { display: block; position: relative; text-decoration: none; color: #f6ead5; overflow: hidden; }
.jww-tee__img { display: block; aspect-ratio: 3 / 5; overflow: hidden; }
.jww-tee__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.jww-tee a:hover .jww-tee__img img { transform: scale(1.04); }
.jww-tee__name, .jww-tee__price { display: block; text-align: center; }
.jww-tee__name { position: absolute; left: 0; right: 0; bottom: 30px; padding: 26px 8px 0; font-size: 14px; line-height: 1.25; background: linear-gradient(180deg, transparent, rgba(20,12,8,.82) 55%); opacity: 0; transition: opacity .2s; }
.jww-tee__price { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; font-size: 14px; background: rgba(20,12,8,.82); opacity: 0; transition: opacity .2s; }
.jww-tee a:hover .jww-tee__name, .jww-tee a:hover .jww-tee__price, .jww-tee a:focus-visible .jww-tee__name, .jww-tee a:focus-visible .jww-tee__price { opacity: 1; }

/* Real products: cards with the name and price always showing */
.jww-tees--real { background: var(--jww-cream); padding: 34px 20px 10px; }
.jww-tees--real .jww-rule, .jww-rule--show { position: static; display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 22px; font-family: var(--jww-sans); font-weight: 500; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.jww-tees--real .jww-rule::before, .jww-tees--real .jww-rule::after { content: ""; width: 44px; height: 1px; background: var(--jww-ink); }
.jww-tees--real .jww-tees__list { gap: 16px; max-width: 1280px; margin: 0 auto; }
.jww-tees--real .jww-tee a { color: var(--jww-ink); }
.jww-tees--real .jww-tee__img { aspect-ratio: 1; background: var(--jww-paper); }
.jww-tees--real .jww-tee__name, .jww-tees--real .jww-tee__price { position: static; opacity: 1; background: none; height: auto; padding: 8px 4px 0; }
.jww-tees--real .jww-tee__price { padding-top: 2px; font-weight: 500; }

/* Promise strip */
.jww-promise { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--jww-paper); border-top: 1px solid #e2d2b6; border-bottom: 1px solid #e2d2b6; padding: 20px 5%; }
.jww-promise__item { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 12px; font-size: 13px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.jww-promise__item + .jww-promise__item { border-left: 1px solid var(--jww-line); }
.jww-promise .jww-icon { width: 38px; height: 38px; stroke-width: 1.1; }

/* Collection tiles */
.jww-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 4% 40px; background: var(--jww-cream); }
.jww-tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: clamp(150px, 13.5vw, 230px); padding: 20px 26px; color: #f6ead5; text-decoration: none; background-color: var(--jww-wood); background-size: cover; background-position: right center; overflow: hidden; }
.jww-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2c1e17 0%, #2c1e17 44%, rgba(44,30,23,.55) 58%, rgba(44,30,23,0) 74%); }
.jww-tile > span { position: relative; }
.jww-tile__title { font-family: var(--jww-serif); font-size: clamp(18px, 1.9vw, 30px); line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; }
.jww-tile__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.jww-tile__link .jww-icon { width: 1em; height: 1em; }
.jww-tile:hover .jww-tile__link { color: #fff; }

/* Inner pages */
.jww-page { padding: 36px 0 56px; }
.jww-page__title, .woocommerce-products-header__title, .product_title { font-family: var(--jww-serif); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.jww-page a { text-underline-offset: 3px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) { background: var(--jww-wood); color: #f3e6cf; border-radius: 2px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--jww-crimson); color: #fff; }
.woocommerce span.onsale { background: var(--jww-crimson); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--jww-ink); }

/* Footer */
.jww-footer { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 20px 34px; color: #f3e6cf; text-align: center;
	background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, rgba(0,0,0,.05) 2px 7px), linear-gradient(180deg, var(--jww-wood-2), var(--jww-wood)); }
.jww-footer .jww-logo__mark { width: 84px; }
.jww-footer .jww-logo__name { font-size: 30px; }
.jww-footer .jww-logo__sub { font-size: 12px; }
.jww-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.jww-footer__nav a { text-decoration: none; }
.jww-footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.jww-footer__legal { margin: 0; font-size: 12px; opacity: .7; }

.jww-tabs { display: none; }

/* Tablet */
@media (max-width: 1100px) {
	.jww-header { padding: 12px 20px 14px; column-gap: 16px; }
	.jww-nav { gap: 20px; font-size: 13px; }
	.jww-nav--left { padding-left: 0; }
	.jww-nav--right { gap: 16px; padding-right: 112px; }
	.jww-header__tools { right: 20px; gap: 14px; }
	.jww-logo__name { font-size: 34px; }
	.jww-logo__sub { font-size: 13px; }
	.jww-logo__mark { width: 92px; }
	.jww-bar__item { padding: 0 16px; font-size: 12px; }
	.jww-promise__item { flex-direction: column; gap: 8px; font-size: 12px; }
}

/* Phone */
@media (max-width: 800px) {
	body { padding-bottom: 68px; }
	.jww-bar { padding: 8px 12px; }
	.jww-bar__item--wide { display: none; }
	.jww-bar__item { padding: 0; font-size: 12.5px; }

	.jww-header { grid-template-columns: 44px 1fr auto; column-gap: 8px; padding: 10px 14px 12px; background: var(--jww-paper); color: var(--jww-ink); border-bottom: 1px solid #e2d2b6; }
	.jww-header__menu { display: inline-flex; font-size: 26px; justify-self: start; }
	.jww-nav { display: none; }
	.jww-header .jww-logo { justify-self: center; padding-left: 44px; }
	.jww-header__account { display: none !important; }
	.jww-header__tools { position: static; transform: none; gap: 16px; font-size: 22px; padding-right: 8px; }
	.jww-logo__mark { width: 78px; }
	.jww-logo__name { font-size: 28px; }
	.jww-logo__sub { font-size: 11px; margin-top: 4px; }

	.jww-hero { min-height: 250px; }
	.jww-hero__photo { width: 66%; background-position: 64% center; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); }
	.jww-hero__copy { width: 48%; padding: 20px 10px 22px 0; }
	.jww-hero__kicker { font-size: 10.5px; letter-spacing: .26em; }
	.jww-hero__kicker span { flex-direction: column; gap: 0; }
	.jww-hero__kicker span::before, .jww-hero__kicker span::after { display: none; }
	.jww-hero__title { font-size: clamp(25px, 8.2vw, 40px); }
	.jww-hero__script { font-size: clamp(24px, 7.4vw, 36px); }
	.jww-btn { padding: 9px 14px; font-size: 12.5px; }
	.jww-btn__long { display: none; }
	.jww-btn__short { display: inline; }

	.jww-tees, .jww-tees--real { background: var(--jww-cream); padding: 24px 14px 6px; }
	.jww-rule { position: static; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 16px; font-family: var(--jww-sans); font-weight: 500; font-size: 14px; letter-spacing: .28em; text-transform: uppercase; }
	.jww-rule::before, .jww-rule::after { content: ""; flex: 1; max-width: 40px; height: 1px; background: var(--jww-ink); }
	.jww-tees__list, .jww-tees--real .jww-tees__list { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
	.jww-tee a { color: var(--jww-ink); }
	.jww-tee__img { aspect-ratio: 1; }
	.jww-tee__img img { object-position: center 22%; }
	.jww-tee__name, .jww-tee__price { position: static; opacity: 1; background: none; height: auto; padding: 7px 2px 0; font-size: 13.5px; }
	.jww-tee__price { padding-top: 1px; font-weight: 500; }

	.jww-promise { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 20px 10px; margin-top: 18px; }
	.jww-promise__item { font-size: 11px; letter-spacing: .14em; }
	.jww-promise__item:nth-child(3) { border-left: 0; }
	.jww-promise .jww-icon { width: 30px; height: 30px; }

	.jww-tiles { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 28px; }
	.jww-tile { min-height: 132px; }
	.jww-tile__title { font-size: 21px; }

	.jww-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: #fbf5ea; border-top: 1px solid #e2d2b6; padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); }
	.jww-tabs a, .jww-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 11px; color: var(--jww-ink); }
	.jww-tabs .jww-icon { width: 24px; height: 24px; }
	.jww-tabs .is-current { color: var(--jww-crimson); }
	.jww-tabs .jww-cart-count { top: -5px; right: calc(50% - 22px); }
}
