/*
Theme Name: Xprexx Mix
Theme URI: https://www.xprexxmix.com
Author: Xprexx Mix
Author URI: https://www.xprexxmix.com
Description: Custom WordPress theme for Xprexx Mix - Your Michelada, Made Xprexx. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: xprexx-mix
*/

/* =========================================================
   XPREXX MIX — MAIN STYLESHEET
   Palette:
   --xp-red:      #D2232A  (primary brand red)
   --xp-red-dark: #A31A20
   --xp-black:    #191512
   --xp-cream:    #F4EEE3  (warm off-white section bg)
   --xp-white:    #FFFFFF
   ========================================================= */

:root {
  --xp-red: #D2232A;
  --xp-red-dark: #A31A20;
  --xp-black: #191512;
  --xp-cream: #F4EEE3;
  --xp-cream-dark: #EDE3D0;
  --xp-white: #FFFFFF;
  --xp-gray: #6b6660;
  --xp-max: 1200px;
  --xp-radius: 6px;
  --font-head: 'Cabin Sketch', cursive, sans-serif;
  --font-btn: 'Anton', 'Arial Black', Impact, sans-serif;
  --font-button: 'LXGW WenKai Mono TC', 'Courier New', monospace; /* real buttons only (.xp-btn, WooCommerce buttons) */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--xp-black);
  background: var(--xp-white);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 16px;
}

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

.xp-btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--xp-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.xp-btn:hover { transform: translateY(-1px); }

.xp-btn--primary { background: var(--xp-red); color: var(--xp-white); }
.xp-btn--primary:hover { background: var(--xp-red-dark); color: var(--xp-white); }

.xp-btn--outline { background: transparent; color: var(--xp-black); border-color: var(--xp-black); }
.xp-btn--outline:hover { background: var(--xp-black); color: var(--xp-white); }

.xp-btn--outline-white { background: transparent; color: var(--xp-white); border-color: var(--xp-white); }
.xp-btn--outline-white:hover { background: var(--xp-white); color: var(--xp-black); }

.xp-eyebrow {
  color: var(--xp-red);
  font-family: var(--font-btn);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.xp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--xp-white);
  border-bottom: 1px solid #eee;
}
.xp-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* nav | logo | actions — logo sits dead center */
  align-items: center;
  padding: 14px 24px;
  max-width: var(--xp-max);
  margin: 0 auto;
  gap: 24px;
}
.xp-header__row .xp-nav { grid-column: 1; grid-row: 1; justify-self: start; }
.xp-header__row .xp-logo { grid-column: 2; grid-row: 1; justify-self: center; }
.xp-header__row .xp-header__actions { grid-column: 3; grid-row: 1; justify-self: end; }
.xp-header__row .xp-mobile-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
.xp-logo img { height: 42px; width: auto; }
.xp-logo .custom-logo-link { display: flex; align-items: center; }
.xp-logo { font-family: var(--font-btn); font-size: 24px; }
.xp-logo .xp-logo__accent { color: var(--xp-red); display: block; font-size: 13px; letter-spacing: 3px; }

.xp-nav { display: flex; gap: 32px; }
.xp-nav a {
  font-family: var(--font-btn);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.xp-nav a:hover { color: var(--xp-red); }

.xp-header__actions { display: flex; align-items: center; gap: 18px; }
.xp-header__social { display: flex; align-items: center; gap: 14px; }
.xp-header__social a { display: inline-flex; color: var(--xp-black); transition: color .15s ease; }
.xp-header__social svg { width: 28px; height: 28px; }
.xp-cart { font-size: 22px; line-height: 1; }
.xp-header__social a:hover { color: var(--xp-red); }
.xp-cart { position: relative; }
.xp-cart__count {
  position: absolute; top: -8px; right: -10px;
  background: var(--xp-red); color: #fff;
  font-size: 11px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.xp-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.xp-mobile-toggle span { display: block; width: 26px; height: 3px; background: var(--xp-black); margin: 5px 0; }

/* ---------- Hero ---------- */
.xp-hero { padding: 70px 0 56px; overflow: hidden; }
.xp-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.xp-hero__grid > * { min-width: 0; } /* prevents grid items from overflowing their track and overlapping the text column */
.xp-hero h1 { font-size: 56px; margin-bottom: 20px; }
.xp-hero h1 .xp-hero__accent { display: block; }
.xp-hero__xp, .xp-hero h1 .xp-hero__xp { color: var(--xp-red); }
.xp-hero p { font-size: 18px; color: var(--xp-gray); max-width: 460px; margin-bottom: 28px; }
.xp-hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.xp-hero__media { display: flex; align-items: center; justify-content: center; gap: 24px; min-width: 0; }
.xp-hero__media img { max-height: 480px; max-width: 48%; width: auto; height: auto; flex-shrink: 1; }
.xp-hero__media--single img { max-width: 100%; }
/* Feathered edges: the photo fades softly into the page instead of ending in a hard border */
.xp-hero__media img {
  --xp-feather: 18px;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 var(--xp-feather), #000 calc(100% - var(--xp-feather)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--xp-feather), #000 calc(100% - var(--xp-feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 var(--xp-feather), #000 calc(100% - var(--xp-feather)), transparent),
    linear-gradient(to bottom, transparent, #000 var(--xp-feather), #000 calc(100% - var(--xp-feather)), transparent);
  mask-composite: intersect;
}

/* ---------- Steps ---------- */
.xp-steps { padding: 64px 24px 0; }
.xp-steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.xp-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--xp-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-btn); color: var(--xp-red); font-size: 22px;
  margin: 0 auto 12px;
}
.xp-step__img { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--xp-cream); margin: 0 auto 12px; }
.xp-step h4 { font-size: 16px; margin-bottom: 4px; }
.xp-step p { font-size: 14px; color: var(--xp-gray); margin: 0; }

/* ---------- Get It / Find It split section ---------- */
.xp-split { background: var(--xp-cream); padding: 70px 0; }
.xp-split__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; }
.xp-split h2 { font-size: 34px; color: var(--xp-red); }
.xp-split__panel { display: flex; gap: 16px; }
.xp-split__icon {
  width: 56px; height: 56px; min-width: 56px; border-radius: 50%;
  background: var(--xp-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.xp-split__panel h3 { font-size: 18px; margin-bottom: 6px; }
.xp-split__panel p { font-size: 14px; color: var(--xp-gray); margin: 0 0 10px; }
.xp-split__panel a { color: var(--xp-red); font-family: var(--font-btn); font-size: 13px; letter-spacing: .5px; }
.xp-split__media img { border-radius: var(--xp-radius); width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; display: block; } /* uploaded photos of any shape get cropped to match */

/* ---------- Recipes ---------- */
.xp-recipes { padding: 90px 0; text-align: center; }
.xp-recipes h2 { font-size: 34px; color: var(--xp-red); }
.xp-recipes > .xp-container > p { color: var(--xp-gray); max-width: 560px; margin: 0 auto 40px; }
/* Recipe grids: flex so 1 or 2 cards sit centered and more cards fill the row */
.xp-recipes__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; text-align: left; margin-bottom: 36px; }
.xp-recipes__grid > .xp-recipe-card, .xp-recipe-archive__grid > .xp-recipe-card { flex: 0 0 calc((100% - 48px) / 3); }
.xp-recipes__grid > :not(.xp-recipe-card), .xp-recipe-archive__grid > :not(.xp-recipe-card) { flex: 1 0 100%; text-align: center; }
.xp-recipe-card { position: relative; border-radius: var(--xp-radius); overflow: hidden; aspect-ratio: 4/5; color: #fff; }
.xp-recipe-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.xp-recipe-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 60%);
}
.xp-recipe-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px; }
.xp-recipe-card__body h3 { font-size: 20px; margin-bottom: 4px; }
.xp-recipe-card__body p { font-size: 13px; opacity: .85; margin: 0 0 10px; }
.xp-recipe-card__body a { font-family: var(--font-btn); font-size: 12px; letter-spacing: .5px; color: #fff; border-bottom: 2px solid var(--xp-red); }

/* ---------- UGC / social strip ---------- */
.xp-ugc { background: var(--xp-cream-dark); padding: 70px 0; scroll-margin-top: 90px; }
.xp-ugc__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.xp-ugc h2 { font-size: 30px; }
.xp-ugc p { color: var(--xp-gray); margin-bottom: 18px; }
.xp-ugc__grid > * { min-width: 0; }
/* Horizontal swipe/scroll carousel. Works for the placeholder photos AND the free Smash Balloon grid (its grid is re-flowed into one row). */
.xp-ugc__carousel { position: relative; }
.xp-ugc__strip {
  --xp-slides: 5; --xp-slide-gap: 12px;
  display: flex; gap: var(--xp-slide-gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  container-type: inline-size;
}
.xp-ugc__strip::-webkit-scrollbar { display: none; }
/* Fewer photos than slots: auto margins center the group, and still scroll normally when it overflows */
.xp-ugc__strip > :first-child { margin-left: auto; }
.xp-ugc__strip > :last-child { margin-right: auto; }
.xp-ugc__strip > a, .xp-ugc__strip > img {
  flex: 0 0 calc((100cqw - (var(--xp-slides) - 1) * var(--xp-slide-gap)) / var(--xp-slides));
  scroll-snap-align: start; min-width: 0; display: block;
}
.xp-ugc__strip > a img { width: 100%; display: block; }
/* free Smash Balloon markup: one wrapper -> #sbi_images -> .sbi_item */
.xp-ugc__strip > #sb_instagram { flex: 0 0 auto; width: max-content !important; max-width: none !important; padding: 0 !important; }
.xp-ugc__strip #sbi_images { display: flex !important; flex-wrap: nowrap !important; gap: var(--xp-slide-gap); padding: 0 !important; width: max-content !important; }
.xp-ugc__strip .sbi_item { flex: 0 0 calc((100cqw - (var(--xp-slides) - 1) * var(--xp-slide-gap)) / var(--xp-slides)) !important; width: auto !important; padding: 0 !important; scroll-snap-align: start; }
.xp-ugc__strip .sbi_photo, .xp-ugc__strip .sbi_photo img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--xp-radius); }
.xp-ugc__strip #sbi_load, .xp-ugc__strip .sbi_follow_btn { display: none !important; }
.xp-ugc__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--xp-white); color: var(--xp-black); font-size: 26px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
}
.xp-ugc__arrow:hover { background: var(--xp-red); color: #fff; }
.xp-ugc__arrow--prev { left: -12px; }
.xp-ugc__arrow--next { right: -12px; }
.xp-ugc__arrow[hidden] { display: none; }
.xp-ugc__strip img { border-radius: var(--xp-radius); aspect-ratio: 3/4; object-fit: cover; }
.xp-social-links a { display: inline-flex; margin-right: 12px; font-size: 20px; transition: color .15s ease; }
.xp-social-links a:hover { color: var(--xp-red); }
.xp-ugc .xp-social-links a { color: var(--xp-black); }

/* ---------- Footer ---------- */
.xp-footer { background: var(--xp-red); color: #fce9ea; padding: 60px 0 24px; font-family: var(--font-button); }
.xp-footer input, .xp-footer button { font-family: inherit; }
.xp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.xp-footer h5 { font-family: var(--font-button); font-weight: 700; color: #fff; font-size: 14px; letter-spacing: 1px; margin-bottom: 14px; }
.xp-footer ul { list-style: none; margin: 0; padding: 0; }
.xp-footer li { margin-bottom: 8px; font-size: 14px; }
.xp-footer a:hover { color: var(--xp-black); }
.xp-footer__newsletter { display: flex; }
.xp-footer__newsletter input {
  flex: 1; padding: 10px 12px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; border-radius: 4px 0 0 4px;
}
.xp-footer__newsletter input::placeholder { color: #fce9ea; opacity: .8; }
.xp-footer__newsletter button {
  background: var(--xp-black); border: none; color: #fff; padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer;
}
.xp-footer__bottom { border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #fce9ea; }
.xp-footer__bottom a { margin-left: 16px; }

/* ---------- Generic content pages (About, Find Us) ---------- */
.xp-page-hero { padding: 60px 0 20px; text-align: center; }
.xp-page-hero h1 { font-size: 44px; }
.xp-content { padding: 20px 0 80px; }
.xp-content .xp-container { max-width: 860px; }
.xp-content--no-hero { padding-top: 60px; }
.xp-content h2 { color: var(--xp-red); font-size: 28px; margin-top: 40px; }
.xp-content p { font-size: 17px; color: #3a352f; }

/* ---------- Find Us / retailer locator ---------- */
.xp-locator { padding: 40px 0 90px; }
.xp-locator__filters { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.xp-locator__filters select, .xp-locator__filters input {
  padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-body);
}
.xp-locator__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.xp-locator__map iframe { width: 100%; height: 460px; border: 0; border-radius: var(--xp-radius); }
.xp-retailer-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.xp-retailer-list li { padding: 14px 0; border-bottom: 1px solid #eee; }
.xp-retailer-list h4 { margin: 0 0 4px; font-size: 16px; font-family: var(--font-body); font-weight: 600; text-transform: none; }
.xp-retailer-list p { margin: 0; font-size: 14px; color: var(--xp-gray); }
.xp-become-retailer { background: var(--xp-cream); padding: 50px; border-radius: var(--xp-radius); text-align: center; margin-top: 60px; }
.xp-become-retailer .xp-retailer-form { text-align: left; max-width: 640px; margin: 30px auto 0; }

.xp-retailer-form .xp-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px;
}
.xp-retailer-form .xp-form-field { margin-bottom: 18px; }
.xp-retailer-form .xp-form-row .xp-form-field { margin-bottom: 0; }
.xp-retailer-form label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--xp-black);
}
.xp-retailer-form label span { color: var(--xp-red); }
.xp-retailer-form input[type="text"],
.xp-retailer-form input[type="email"],
.xp-retailer-form input[type="tel"],
.xp-retailer-form select,
.xp-retailer-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d8d2c5; border-radius: var(--xp-radius);
  font-family: var(--font-body); font-size: 15px; background: var(--xp-white); color: var(--xp-black);
}
.xp-retailer-form input:focus, .xp-retailer-form select:focus, .xp-retailer-form textarea:focus {
  outline: none; border-color: var(--xp-red);
}
.xp-retailer-form textarea { resize: vertical; }
.xp-retailer-form button[type="submit"] { width: 100%; border: none; }
.xp-retailer-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.xp-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xp-form-status { margin-top: 16px; font-size: 15px; font-weight: 600; min-height: 1.2em; }
.xp-form-status--success { color: #1a7a3a; }
.xp-form-status--error { color: var(--xp-red); }

@media (max-width: 600px) {
  .xp-retailer-form .xp-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Recipe archive/single ---------- */
.xp-recipe-archive { padding: 60px 0 90px; }
.xp-recipe-archive__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.xp-recipe-single__hero figure, .xp-recipe-single__hero .wp-block-image { margin: 0; }
.xp-recipe-single__hero img, .xp-recipe-single__finish img, .xp-recipe-paper__photo img { display: block; max-width: 100%; width: auto; height: auto; margin: 0 auto; border-radius: var(--xp-radius); }
/* Tall (portrait) photos: cap the WIDTH only, so the height follows the photo's own proportions and it never stretches. */
.xp-recipe-single__hero.is-portrait img { max-width: min(100%, 340px); }
.xp-recipe-paper__photo.is-portrait img { max-width: min(100%, 460px); }
.xp-recipe-single__hero > * + * { margin-top: 14px; }
.xp-recipe-single__finish { margin: 0 0 30px; }
.xp-recipe-single .xp-eyebrow { display: block; margin-bottom: 14px; }
.xp-recipe-paper__photo { margin-top: 28px; }
.xp-recipe-paper__photo img { margin-bottom: 0; }
.xp-recipe-single__meta { display: flex; gap: 24px; color: var(--xp-gray); font-size: 14px; margin-bottom: 30px; }
/* Recipe card: ingredients + instructions as one note "written on paper" and posted on the site */
.xp-recipe-paper { position: relative; background: var(--xp-cream); padding: 40px 34px 30px; margin: 34px 0 36px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.10); transform: rotate(-.35deg); }
.xp-recipe-paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: rgba(210,35,42,.22); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.xp-recipe-paper__part h2 { margin: 0 0 14px; }
.xp-recipe-paper__part + .xp-recipe-paper__part { margin-top: 26px; padding-top: 26px; border-top: 2px dashed rgba(0,0,0,.18); }
.xp-recipe-paper ul, .xp-recipe-paper ol { margin: 0 0 14px; padding-left: 1.4em; }
.xp-recipe-paper li { margin-bottom: 8px; padding-left: 4px; }
.xp-recipe-paper li::marker { color: var(--xp-red); font-weight: 700; }
.xp-recipe-paper__method p { margin: 0 0 14px; }
.xp-recipe-paper__part > :last-child { margin-bottom: 0; }
.xp-recipe-paper__method img { display: block; max-width: 100%; height: auto; border-radius: var(--xp-radius); margin: 18px 0; }
.xp-recipe-paper__method figure { margin: 18px 0; }
/* Numbered instruction steps: every paragraph / list item in Instructions becomes a step with a site-style number badge */
.xp-recipe-paper__method { counter-reset: xpstep; }
.xp-recipe-paper__method ol, .xp-recipe-paper__method ul { list-style: none; padding-left: 0; margin: 0; }
.xp-recipe-paper__method > p:not(:has(img)), .xp-recipe-paper__method li { counter-increment: xpstep; position: relative; min-height: 36px; margin: 0 0 16px; padding: 5px 0 0 52px; }
.xp-recipe-paper__method > p:not(:has(img))::before, .xp-recipe-paper__method li::before { content: counter(xpstep); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; font-family: var(--font-btn); font-size: 17px; line-height: 1; color: var(--xp-red); }
@media (max-width: 600px) { .xp-recipe-paper { padding: 34px 20px 24px; transform: none; } }

/* ---------- WooCommerce brand overrides ---------- */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product {
  width: 100% !important; margin: 0 !important; float: none !important;
  text-align: left; padding-bottom: 10px;
}
.woocommerce ul.products li.product img {
  border-radius: var(--xp-radius); margin-bottom: 12px !important;
}
.woocommerce ul.products li.product h2, .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body); text-transform: none; font-size: 16px; font-weight: 600; letter-spacing: 0;
}
.woocommerce ul.products li.product .price { color: var(--xp-red); font-weight: 700; }
.woocommerce div.product .product_title { font-family: var(--font-head); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--xp-red); font-size: 24px; }
.woocommerce nav.woocommerce-pagination ul { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: var(--xp-radius) !important; border: 1px solid #eee;
}
@media (max-width: 960px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr !important; } }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit,
.single_add_to_cart_button {
  background: var(--xp-red) !important; color: #fff !important; border-radius: var(--xp-radius) !important;
  font-family: var(--font-button) !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .5px;
  border: none !important; padding: 14px 28px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .single_add_to_cart_button:hover {
  background: var(--xp-red-dark) !important;
}
.woocommerce-page .xp-container { padding-top: 40px; padding-bottom: 80px; }
.woocommerce span.onsale { background: var(--xp-black) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .xp-hero__grid, .xp-split__grid, .xp-ugc__grid, .xp-locator__grid { grid-template-columns: 1fr; }
  .xp-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .xp-recipes__grid > .xp-recipe-card, .xp-recipe-archive__grid > .xp-recipe-card { flex-basis: calc((100% - 24px) / 2); }
  .xp-ugc__strip { --xp-slides: 3; }
  .xp-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .xp-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; border-bottom: 1px solid #eee; }
  .xp-nav.is-open { display: flex; }
  .xp-mobile-toggle { display: block; }
  /* auto | 1fr | auto: logo centers in the space BETWEEN hamburger and icons, so it can never get squeezed against them */
  .xp-header__row { grid-template-columns: auto 1fr auto; gap: 16px; padding: 12px 16px; }
  .xp-header__actions { gap: 12px; }
  .xp-header__social { gap: 10px; }
  .xp-header__social svg { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
  .xp-header__row { gap: 20px; padding: 10px 14px; }
  .xp-logo img { height: 34px; }
  .xp-header__actions { gap: 10px; }
  .xp-header__social { gap: 8px; }
  .xp-header__social svg { width: 22px; height: 22px; }
  .xp-cart { font-size: 20px; }
}
@media (max-width: 600px) {
  .xp-hero h1 { font-size: 38px; }
  .xp-recipes__grid > .xp-recipe-card, .xp-recipe-archive__grid > .xp-recipe-card { flex-basis: 100%; }
  .xp-ugc__strip { --xp-slides: 2; --xp-slide-gap: 10px; }
  .xp-ugc__arrow--prev { left: -6px; }
  .xp-ugc__arrow--next { right: -6px; }
  .xp-footer__grid { grid-template-columns: 1fr; }
  .xp-become-retailer { padding: 30px 20px; }
}


/* Instagram video pop-up (opened from the Show Us How You Xprexx carousel) */
.xp-modal-open { overflow: hidden; }
.xp-video-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.8); }
.xp-video-modal[hidden] { display: none; }
.xp-video-modal__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(92vw, 420px); }
.xp-video-modal__frame { width: 100%; height: min(78vh, 720px); background: #fff; border-radius: var(--xp-radius); overflow: hidden; }
.xp-video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.xp-video-modal__link { color: #fff; font-family: var(--font-button); font-size: 14px; text-decoration: underline; }
.xp-video-modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: #fff; color: var(--xp-black); font-size: 28px; line-height: 1; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.xp-video-modal__close:hover { background: var(--xp-red); color: #fff; }

/* ---------- Instagram stories bubble + viewer ---------- */
.xp-story-bubble {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; margin: 4px 0 18px; cursor: pointer; color: var(--xp-black);
}
.xp-story-bubble[hidden] { display: none; }
.xp-story-bubble__ring {
  width: 84px; height: 84px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  animation: xp-story-pulse 2.4s ease-in-out infinite;
}
.xp-story-bubble.is-seen .xp-story-bubble__ring { background: #c9c1b4; animation: none; }
.xp-story-bubble__img {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid var(--xp-cream-dark); background: #fff center / cover no-repeat;
}
.xp-story-bubble__img--empty { background: var(--xp-red); }
.xp-story-bubble__label { font-family: var(--font-btn); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.xp-story-bubble:hover .xp-story-bubble__label, .xp-story-bubble:focus-visible .xp-story-bubble__label { color: var(--xp-red); }
.xp-story-bubble:focus-visible { outline: none; }
.xp-story-bubble:focus-visible .xp-story-bubble__ring { outline: 3px solid var(--xp-red); outline-offset: 3px; }
@keyframes xp-story-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .xp-story-bubble__ring { animation: none; } }

.xp-stories { position: fixed; inset: 0; z-index: 10000; background: rgba(10, 8, 6, .94); display: flex; align-items: center; justify-content: center; }
.xp-stories[hidden] { display: none; }
.xp-stories__frame {
  position: relative; height: min(92vh, 860px); height: min(92dvh, 860px); aspect-ratio: 9 / 16; max-width: 100vw;
  background: #000; border-radius: 12px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.xp-stories__media, .xp-stories__media img, .xp-stories__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xp-stories__media img, .xp-stories__media video { -webkit-user-drag: none; pointer-events: none; }
.xp-stories__bars { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; display: flex; gap: 4px; }
.xp-stories__bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.xp-stories__bars i { display: block; height: 100%; width: 0; background: #fff; }
.xp-stories__top {
  position: absolute; z-index: 4; top: calc(20px + env(safe-area-inset-top, 0px)); left: 10px; right: 6px; display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.xp-stories__avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff center / cover no-repeat; flex: 0 0 auto; }
.xp-stories__time { opacity: .75; font-weight: 400; margin-right: auto; }
.xp-stories__btn { background: none; border: 0; color: #fff; cursor: pointer; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; }
.xp-stories__btn[hidden] { display: none; }
.xp-stories__tap { position: absolute; z-index: 2; top: 0; bottom: 0; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xp-stories__tap--prev { left: 0; width: 35%; }
.xp-stories__tap--next { right: 0; width: 65%; }
.xp-stories__tap:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: -4px; }
.xp-stories__link {
  position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: var(--xp-black); padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-btn); font-size: 13px; letter-spacing: .5px; white-space: nowrap;
}
.xp-stories__link[hidden] { display: none; }
@media (max-width: 600px) {
  .xp-stories { background: #000; }
  .xp-stories__frame { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
}

.xp-stories__card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--xp-red) center / cover no-repeat; }
.xp-stories__card p { background: rgba(0,0,0,.55); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; margin: 0; }

/* ---------- Footer: compact tablet / phone layout ----------
   Instead of stacking all five blocks, keep it close to desktop:
   brand + newsletter side by side (tablet) or full width (phone), and the
   three link lists always side by side in one row. */
@media (max-width: 960px) {
  .xp-footer { padding: 40px 0 20px; }
  .xp-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "brand brand news" "shop find about";
    gap: 24px 20px; margin-bottom: 28px;
  }
  .xp-footer__brand { grid-area: brand; }
  .xp-footer__news  { grid-area: news; }
  .xp-footer__col:nth-of-type(2) { grid-area: shop; }
  .xp-footer__col:nth-of-type(3) { grid-area: find; }
  .xp-footer__col:nth-of-type(4) { grid-area: about; }
}
@media (max-width: 600px) {
  .xp-footer { padding: 32px 0 18px; }
  .xp-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "brand brand brand" "shop find about" "news news news";
    gap: 22px 14px; margin-bottom: 22px;
  }
  /* Brand: name + tagline on the left, social icons on the right, in one band */
  .xp-footer__brand { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .xp-footer__brand h5 { margin-bottom: 2px; }
  .xp-footer__brand p { margin: 0; grid-column: 1; }
  .xp-footer__brand .xp-social-links { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }
  .xp-footer__brand .xp-social-links a:last-child { margin-right: 0; }
  .xp-footer h5 { font-size: 13px; margin-bottom: 8px; }
  .xp-footer li { font-size: 13px; margin-bottom: 6px; line-height: 1.35; }
  .xp-footer__news p { margin-bottom: 8px; }
  .xp-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 14px; }
  .xp-footer__bottom a { margin: 0 8px; }
}
