/* =========================================================
   BASE — typography, containers, header, footer
   ========================================================= */

html { overflow-x: hidden; }
body {
	font-family: var(--wwp-font-body);
	font-size: var(--wwp-font-size-base);
	color: var(--wwp-color-text);
	background: var(--wwp-color-bg);
	line-height: 1.6;
	overflow-x: hidden;
	max-width: 100vw;
}
img, table { max-width: 100%; height: auto; }

/* Reset native button/input appearance and (critically) set an explicit
   text color — without this, Safari/iOS applies its own default
   "-apple-system-blue" text color to any <button> that doesn't have color
   explicitly set by a more specific rule, which is what caused blue text
   to show up on buttons/toggles across the site on iPhone/iPad. Every
   button-like element must inherit the surrounding text color by default;
   specific components (.wwp-btn-primary, etc.) then set their own color
   explicitly as needed. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
	font-family: inherit;
	color: inherit;
	background: none;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wwp-font-heading);
	font-weight: var(--wwp-font-heading-weight);
	color: var(--wwp-color-black);
	line-height: 1.25;
	margin: 0 0 16px;
}
h1 { font-size: var(--wwp-font-size-h1); }
h2 { font-size: var(--wwp-font-size-h2); }
h3 { font-size: var(--wwp-font-size-h3); }

/* Dual-color editorial headings — the tail of every section heading (see
   wwp_dual_heading() in inc/helpers.php) renders in the terracotta
   "highlight" color and in Playfair Display's italic cut. This is one of
   the few places terracotta is used now — everywhere else uses the main
   (sage) accent color, per client's explicit direction. */
.wwp-heading-accent {
	color: var(--wwp-color-highlight);
	font-style: italic;
	font-weight: inherit;
}

a { color: var(--wwp-color-black); transition: color var(--wwp-transition); }
a:hover { color: var(--wwp-color-accent); }

.wwp-container {
	max-width: var(--wwp-container-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
}

.wwp-section { padding: var(--wwp-section-spacing) 0; }

/* When two sections in a row share the same background (no color change
   between them), the combined top+bottom padding looks like an
   oversized/redundant gap — reduce the second section's top padding so
   consecutive same-background sections read as one continuous area
   instead of two separately-padded blocks. Applies site-wide. */
.wwp-bg-white + .wwp-bg-white,
.wwp-bg-alt + .wwp-bg-alt,
.wwp-bg-light + .wwp-bg-light {
	padding-top: calc(var(--wwp-section-spacing) * 0.35);
}
.wwp-spacing-compact { padding: calc(var(--wwp-section-spacing) * 0.5) 0; }
.wwp-spacing-large { padding: calc(var(--wwp-section-spacing) * 1.4) 0; }
.wwp-bg-white { background: var(--wwp-color-bg); }
.wwp-bg-alt { background: var(--wwp-color-bg-alt); }
.wwp-bg-black { background: var(--wwp-color-black); color: #fff; }
.wwp-bg-black h1, .wwp-bg-black h2, .wwp-bg-black h3,
.wwp-bg-black h4, .wwp-bg-black h5, .wwp-bg-black h6,
.wwp-bg-black a { color: #fff; }
.wwp-bg-black a:hover { color: var(--wwp-color-accent); }
.wwp-align-center { text-align: center; }
.wwp-align-center .wwp-section-head { margin-left: auto; margin-right: auto; }
.wwp-section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.wwp-eyebrow {
	display: inline-block;
	color: var(--wwp-color-accent);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.wwp-section-head { max-width: 640px; margin-bottom: 44px; }
.wwp-section-head p { color: var(--wwp-color-text-muted); }

/* ---------- Header ---------- */
.wwp-announcement-bar {
	background: var(--wwp-color-accent);
	color: var(--wwp-color-accent-text);
	text-align: center;
	font-size: 13px;
	padding: 8px 16px;
}

.wwp-header {
	background: var(--wwp-color-bg);
	border-bottom: 1px solid var(--wwp-color-border);
	position: relative;
	z-index: 100;
}
.wwp-header.is-sticky {
	position: sticky;
	top: 0;
}
.wwp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--wwp-header-height);
	gap: 24px;
}
.wwp-logo img { max-height: 80px; width: auto; }

.wwp-primary-nav ul { display: flex; gap: 28px; align-items: center; }
.wwp-primary-nav a {
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--wwp-color-text);
	padding: 8px 0;
}
.wwp-primary-nav .current-menu-item > a,
.wwp-primary-nav a:hover { color: var(--wwp-color-accent); }
.wwp-primary-nav li.menu-item-has-children { position: relative; }
.wwp-primary-nav li.menu-item-has-children > a::after {
	content: ''; display: inline-block; width: 6px; height: 6px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); margin-left: 6px; margin-bottom: 2px;
}
.wwp-primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--wwp-color-border);
	border-radius: var(--wwp-radius-card);
	box-shadow: var(--wwp-shadow-soft);
	padding: 10px; display: none; flex-direction: column; gap: 4px;
}
.wwp-primary-nav li.menu-item-has-children:hover .sub-menu { display: flex; }
.wwp-primary-nav .sub-menu .menu-item { width: 100%; }
.wwp-primary-nav .sub-menu a { padding: 8px 12px; border-radius: 6px; display:block; text-transform: none; font-size: 14px; letter-spacing: normal; font-weight: 500; }
.wwp-primary-nav .sub-menu a:hover { background: var(--wwp-color-bg-alt); }

.wwp-header-icons { display: flex; align-items: center; gap: 14px; }
.wwp-icon-btn {
	width: 42px; height: 42px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--wwp-color-border);
	background: transparent;
	color: var(--wwp-color-black);
	position: relative;
	transition: border-color var(--wwp-transition), background var(--wwp-transition);
}
.wwp-icon-btn:hover { border-color: var(--wwp-color-accent); background: var(--wwp-color-bg-alt); }
.wwp-icon-btn--no-border { border: none; }
.wwp-cart-count {
	position: absolute; top: -6px; right: -6px;
	background: var(--wwp-color-accent);
	color: var(--wwp-color-accent-text);
	font-size: 11px; font-weight: 700;
	width: 18px; height: 18px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.wwp-mobile-toggle { display: none; }

/* ---------- Footer ---------- */
.wwp-footer { padding: 60px 0 0; font-size: 14px; }
.wwp-footer.wwp-bg-white { border-top: 1px solid var(--wwp-color-border); }
.wwp-footer.wwp-bg-light { background: var(--wwp-color-bg-alt); }
.wwp-footer-grid-5 {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
}
.wwp-footer-logo, .wwp-footer-col--brand img { max-height: 140px; width: auto; margin-bottom: 18px; }
.wwp-footer-desc { opacity: .75; max-width: 320px; margin: 0 0 22px; line-height: 1.6; }

.wwp-footer-social-icons { display: flex; gap: 10px; }
.wwp-footer-social-icon {
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--wwp-color-bg); border: 1px solid var(--wwp-color-border);
	color: var(--wwp-color-accent); transition: background var(--wwp-transition), color var(--wwp-transition);
}
.wwp-footer-social-icon:hover { background: var(--wwp-color-accent); color: var(--wwp-color-accent-text); }

.wwp-footer-widget-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.wwp-footer-grid-5 ul { list-style: none; margin: 0; padding: 0; }
.wwp-footer-grid-5 ul li { margin-bottom: 13px; }
.wwp-footer-grid-5 a { opacity: .8; color: var(--wwp-color-text); }
.wwp-footer-grid-5 a:hover { opacity: 1; color: var(--wwp-color-accent); }

.wwp-footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; opacity: .85; }
.wwp-footer-contact-icon {
	width: 26px; height: 26px; border-radius: 50%; background: var(--wwp-color-accent); color: var(--wwp-color-accent-text);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

.wwp-footer-bottom { border-top: 1px solid var(--wwp-color-border); padding: 20px 0; font-size: 13px; }
.wwp-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wwp-footer-copyright { color: var(--wwp-color-text-muted); }
.wwp-footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }
.wwp-footer-bottom-links a { opacity: .75; color: var(--wwp-color-text); }
.wwp-footer-bottom-links a:hover { opacity: 1; color: var(--wwp-color-accent); }
.wwp-footer-rou-notice { color: var(--wwp-color-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Newsletter CTA banner (above footer) ---------- */
.wwp-footer-newsletter-banner { background: var(--wwp-color-accent); color: var(--wwp-color-accent-text); padding: 36px 0; }
.wwp-footer-newsletter-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.wwp-footer-newsletter-copy { display: flex; align-items: center; gap: 16px; }
.wwp-footer-newsletter-icon {
	width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
	background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
}
.wwp-footer-newsletter-copy h3 { color: var(--wwp-color-accent-text); margin: 0 0 4px; font-size: 22px; }
.wwp-footer-newsletter-copy p { margin: 0; opacity: .9; font-size: 14px; }
.wwp-footer-newsletter-form { flex: 0 0 auto; min-width: 320px; }
.wwp-footer-newsletter-form .fluentform,
.wwp-footer-newsletter-form form { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.wwp-footer-newsletter-form .ff-el-group { margin: 0; flex: 1; }
.wwp-footer-newsletter-form .ff-el-form-control {
	background: #fff; border: none; border-radius: var(--wwp-radius-input);
	padding: 13px 16px; font-size: 14px; width: 100%; color: var(--wwp-color-text);
}
.wwp-footer-newsletter-form label,
.wwp-footer-newsletter-form .ff-el-input--label { display: none; }
.wwp-footer-newsletter-form button[type="submit"],
.wwp-footer-newsletter-form input[type="submit"] {
	background: var(--wwp-color-black); color: #fff; border: none; border-radius: var(--wwp-radius-input);
	padding: 13px 24px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
	transition: filter var(--wwp-transition);
}
.wwp-footer-newsletter-form button[type="submit"]:hover { filter: brightness(1.15); }
.wwp-footer-newsletter-form .ff-message-success { color: var(--wwp-color-accent-text); font-size: 13px; }
.wwp-footer-bottom-links a:hover { opacity: 1; }
.wwp-footer.wwp-bg-white .wwp-footer-bottom,
.wwp-footer.wwp-bg-light .wwp-footer-bottom { border-top-color: var(--wwp-color-border); color: var(--wwp-color-text-muted); background: var(--wwp-color-bg); }
.wwp-footer.wwp-bg-black .wwp-footer-bottom { background: var(--wwp-color-black); color: rgba(255,255,255,.7); }

.wwp-flag-badge { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Age Verification Gate ---------- */
html.wwp-age-gate-active { overflow: hidden; }
.wwp-age-gate {
	position: fixed; inset: 0; z-index: 99999;
	background: rgba(42,33,29,.92);
	align-items: center; justify-content: center; padding: 24px;
}
.wwp-age-gate-box {
	background: #fff; border-radius: var(--wwp-radius-card);
	max-width: 460px; width: 100%; padding: 40px; text-align: center;
}
.wwp-age-gate-logo img { max-height: 130px; width: auto; height: auto; object-fit: contain; margin: 0 auto 20px; display: block; }
.wwp-age-gate-box p { color: var(--wwp-color-text-muted); font-size: 14px; }
.wwp-age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 10px; }
.wwp-age-gate-rou { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Welcome Deal Popup ---------- */
.wwp-welcome-popup {
	position: fixed; inset: 0; z-index: 99998; /* one below the age gate */
	align-items: center; justify-content: center; padding: 24px;
}
.wwp-welcome-popup-backdrop {
	position: absolute; inset: 0;
	background: rgba(42,33,29,.55);
	cursor: pointer;
}
.wwp-welcome-popup-box {
	position: relative;
	background: var(--wwp-color-bg);
	border-radius: var(--wwp-radius-card);
	max-width: 440px; width: 100%; padding: 44px 36px 36px;
	text-align: center;
	box-shadow: var(--wwp-shadow-soft), 0 20px 60px rgba(42,33,29,.18);
}
.wwp-welcome-popup-close {
	position: absolute; top: 14px; right: 14px;
	width: 32px; height: 32px; border-radius: 50%; border: none;
	background: var(--wwp-color-bg-alt); color: var(--wwp-color-text);
	font-size: 20px; line-height: 1; cursor: pointer;
}
.wwp-welcome-popup-mark img { max-height: 40px; margin: 0 auto 16px; }
.wwp-welcome-popup-eyebrow {
	font-family: var(--wwp-font-body); font-size: 11px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--wwp-color-accent); margin: 0 0 10px;
}
.wwp-welcome-popup-box h2 {
	font-family: var(--wwp-font-heading); font-weight: 600; font-size: 28px;
	margin: 0 0 12px; color: var(--wwp-color-text);
}
.wwp-welcome-popup-text {
	color: var(--wwp-color-text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 22px;
}
.wwp-welcome-popup-code {
	display: inline-flex; align-items: center; gap: 10px;
	border: 1px dashed var(--wwp-color-accent);
	border-radius: var(--wwp-radius-input);
	padding: 10px 18px; margin: 0 0 22px; cursor: pointer;
	transition: background var(--wwp-transition);
}
.wwp-welcome-popup-code:hover { background: var(--wwp-color-bg-alt); }
.wwp-welcome-popup-code-text {
	font-family: var(--wwp-font-heading); font-weight: 700; letter-spacing: .06em;
	color: var(--wwp-color-accent); font-size: 16px;
}
.wwp-welcome-popup-code-hint { font-size: 11px; color: var(--wwp-color-text-muted); }
.wwp-welcome-popup-code.wwp-copied .wwp-welcome-popup-code-hint::after { content: ' — copied!'; }

/* ---------- Header live search results ---------- */
.wwp-search-results { padding: 0 24px 20px; }
.wwp-search-results:not(.has-content) { padding: 0 24px; }
.wwp-search-results-list { list-style: none; margin: 0; padding: 0; }
.wwp-search-results-list li { border-top: 1px solid var(--wwp-color-border); }
.wwp-search-results-list a {
	display: flex; align-items: center; gap: 12px; padding: 10px 4px;
	transition: background var(--wwp-transition);
}
.wwp-search-results-list a:hover { background: rgba(0,0,0,.03); }
.wwp-search-results-list img,
.wwp-search-result-noimg {
	width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0;
	background: var(--wwp-color-bg-alt);
}
.wwp-search-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wwp-search-result-title {
	font-size: 14px; font-weight: 600; color: var(--wwp-color-text);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wwp-search-result-price { font-size: 13px; color: var(--wwp-color-accent); font-weight: 700; }
.wwp-search-viewall {
	display: block; text-align: center; margin-top: 10px; padding-top: 12px;
	border-top: 1px solid var(--wwp-color-border); font-size: 13px; font-weight: 700; color: var(--wwp-color-black);
}
.wwp-search-empty { font-size: 13px; color: var(--wwp-color-text-muted); padding: 10px 4px 0; margin: 0; }

/* ---------- Search results page ---------- */
.wwp-search-page-form { display: flex; gap: 10px; max-width: 420px; margin-top: 18px; }
.wwp-search-page-form input { flex: 1; }
.wwp-search-section-title { font-size: 20px; margin: 0 0 24px; }
.wwp-search-products.products { margin-bottom: 50px !important; }
.wwp-search-no-results { text-align: center; padding: 40px 0; }
.wwp-search-no-results p { color: var(--wwp-color-text-muted); margin-bottom: 20px; }
.wwp-search-no-results-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
