/*
Theme Name: MyParty247 Halloween
Theme URI: https://myparty247.com/
Author: OpenAI
Description: Seasonal Halloween version of MyParty247 with its own editable homepage settings while sharing WooCommerce products, orders, customers, and events.
Version: 2.6.1
Text Domain: myparty247
Requires at least: 6.4
Requires PHP: 7.4
*/

:root {
  --mp-red: #ef1f2f;
  --mp-red-dark: #d81424;
  --mp-orange: #ff5a1f;
  --mp-orange-dark: #e84b12;
  --mp-ink: #20242b;
  --mp-muted: #6b7280;
  --mp-line: #eceef1;
  --mp-soft: #fff7f3;
  --mp-white: #ffffff;
  --mp-shadow: 0 12px 30px rgba(23, 31, 45, .08);
  --mp-radius: 16px;
  --mp-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mp-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }
.mp-wrap { width: min(var(--mp-max), calc(100% - 40px)); margin: 0 auto; }
.mp-section { padding: 72px 0; }
.mp-section--soft { background: #fffaf7; }
.mp-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.mp-section-title h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.mp-section-title p { margin: 6px 0 0; color: var(--mp-muted); }
.mp-link { color: var(--mp-red); font-weight: 800; white-space: nowrap; }

/* Topbar */
.mp-topbar { background: linear-gradient(90deg, var(--mp-red), #f63b31); color: #fff; font-size: 13px; }
.mp-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.mp-topbar-items { display: flex; gap: 26px; flex-wrap: wrap; }
.mp-topbar strong { font-weight: 800; }

/* Header */
.mp-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mp-line); }
.mp-header-main { min-height: 98px; display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; }
.mp-brand img { max-height: 76px; width: auto; object-fit: contain; }
.mp-brand-text { font-size: 26px; font-weight: 900; color: var(--mp-red); }
.mp-search form { display: flex; border: 1px solid #dfe3e8; border-radius: 12px; overflow: hidden; background: #fff; }
.mp-search input[type="search"] { width: 100%; min-width: 0; border: 0; padding: 14px 16px; outline: 0; }
.mp-search button { border: 0; width: 54px; background: var(--mp-red); color: #fff; font-size: 20px; cursor: pointer; }
.mp-header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.mp-header-actions a { font-weight: 750; }
.mp-cart-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--mp-line); border-radius: 999px; }
.mp-cart-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--mp-red); color: #fff; font-size: 11px; }
.mp-nav { border-top: 1px solid var(--mp-line); }
.mp-nav-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.mp-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.mp-menu a { font-weight: 800; font-size: 14px; }
.mp-menu a:hover { color: var(--mp-red); }
.mp-order-btn { background: var(--mp-red); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 900; }
.mp-order-btn:hover { background: var(--mp-red-dark); color: #fff; }

/* Mobile navigation controls */
.mp-nav-mobile-head { display: none; }
.mp-menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mp-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-weight: 900;
  cursor: pointer;
}
.mp-menu-toggle-icon,
.mp-menu-toggle-icon::before,
.mp-menu-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.mp-menu-toggle-icon { position: relative; }
.mp-menu-toggle-icon::before,
.mp-menu-toggle-icon::after { content: ''; position: absolute; left: 0; }
.mp-menu-toggle-icon::before { top: -7px; }
.mp-menu-toggle-icon::after { top: 7px; }
.mp-menu-toggle[aria-expanded="true"] .mp-menu-toggle-icon { background: transparent; }
.mp-menu-toggle[aria-expanded="true"] .mp-menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.mp-menu-toggle[aria-expanded="true"] .mp-menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.mp-mobile-order-btn { display: none; }


/* Hero */
.mp-hero { background: linear-gradient(120deg, #fff 0%, #fff 48%, #fff7f2 100%); overflow: hidden; }
.mp-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 560px; align-items: stretch; }
.mp-hero-copy { padding: 72px 54px 72px 0; display: flex; flex-direction: column; justify-content: center; }
.mp-eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 16px; color: var(--mp-orange); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.mp-hero h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; max-width: 760px; }
.mp-hero h1 span { color: var(--mp-red); }
.mp-hero-copy > p { color: #505862; font-size: 18px; max-width: 650px; margin: 24px 0 0; }
.mp-hero-features { display: flex; gap: 24px; margin: 30px 0; flex-wrap: wrap; }
.mp-hero-feature { display: flex; gap: 10px; align-items: center; font-weight: 750; font-size: 14px; }
.mp-icon-dot { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff0eb; color: var(--mp-orange); font-size: 18px; }
.mp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 900; border: 2px solid transparent; transition: .2s ease; }
.mp-btn--red { background: var(--mp-red); color: #fff; }
.mp-btn--red:hover { background: var(--mp-red-dark); color: #fff; transform: translateY(-1px); }
.mp-btn--orange-outline { color: var(--mp-orange); border-color: var(--mp-orange); background: #fff; }
.mp-btn--orange-outline:hover { background: var(--mp-orange); color: #fff; }
.mp-hero-media { min-height: 560px; position: relative; }
.mp-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.mp-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.16), transparent 35%); pointer-events: none; }

/* Live best-sellers hero panel */
.mp-live-panel {
  position: relative;
  align-self: center;
  margin: 46px 0 46px 24px;
  padding: 34px 28px 26px;
  border: 1px solid #f2d8cf;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #fff8f4 100%);
  box-shadow: 0 24px 60px rgba(55, 31, 24, .10);
  overflow: hidden;
}
.mp-live-panel-head { position: relative; z-index: 2; max-width: 560px; padding-right: 128px; }
.mp-live-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--mp-orange); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.mp-live-panel h2 { margin: 8px 0 8px; font-size: clamp(1.65rem, 2.4vw, 2.35rem); line-height: 1.05; letter-spacing: -.035em; }
.mp-live-panel-head p { margin: 0; color: var(--mp-muted); font-size: 14px; }
.mp-live-products { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.mp-live-card { min-width: 0; background: #fff; border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(31, 41, 55, .06); }
.mp-live-card-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff3ee; }
.mp-live-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-live-card-emoji { display: grid; place-items: center; font-size: 54px; background: radial-gradient(circle at 30% 20%, #fff 0%, #fff4ef 42%, #ffe3d8 100%); }
.mp-live-badge { position: absolute; top: 9px; left: 9px; padding: 5px 8px; border-radius: 999px; background: var(--mp-red); color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.mp-live-card-body { padding: 12px; }
.mp-live-card h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.3; }
.mp-live-card p { margin: 0 0 8px; color: var(--mp-muted); font-size: 11px; line-height: 1.4; }
.mp-live-price { color: var(--mp-red); font-weight: 900; font-size: 13px; }
.mp-live-shop, .mp-live-soon { display: inline-block; margin-top: 7px; color: var(--mp-orange); font-weight: 850; font-size: 11px; }
.mp-live-soon { color: var(--mp-muted); }
.mp-live-all { position: relative; z-index: 2; display: inline-block; margin-top: 18px; color: var(--mp-red); font-weight: 900; font-size: 13px; }
.mp-balloon-cluster { position: absolute; top: -18px; right: -6px; width: 150px; height: 180px; z-index: 1; pointer-events: none; opacity: .96; }
.mp-balloon { position: absolute; width: 54px; height: 68px; border-radius: 52% 52% 48% 48%; box-shadow: inset -10px -12px 18px rgba(0,0,0,.08), inset 7px 8px 12px rgba(255,255,255,.3); }
.mp-balloon::after { content: ''; position: absolute; left: 50%; bottom: -54px; width: 1px; height: 58px; background: rgba(95, 70, 58, .25); transform: translateX(-50%); }
.mp-balloon--red { background: #ef1f2f; top: 0; right: 22px; transform: rotate(7deg); }
.mp-balloon--orange { background: #ff6a28; top: 43px; right: 65px; transform: rotate(-8deg); }
.mp-balloon--gold { background: linear-gradient(135deg, #fff3b5, #e8b348 60%, #c99121); top: 62px; right: 4px; width: 47px; height: 59px; }
.mp-balloon--pink { background: #ffb7ac; top: 15px; right: 85px; width: 47px; height: 59px; }
.mp-balloon--white { background: #fff; border: 1px solid #f1ded5; top: 92px; right: 40px; width: 44px; height: 56px; }

/* Categories */
.mp-category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mp-cat-card { display: block; border: 1px solid var(--mp-line); border-radius: 14px; padding: 24px 20px; background: #fff; box-shadow: 0 8px 18px rgba(24, 28, 35, .04); transition: .2s ease; }
.mp-cat-card:hover { transform: translateY(-4px); box-shadow: var(--mp-shadow); border-color: #f6c9bf; }
.mp-cat-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #fff2ee; margin-bottom: 18px; }
.mp-cat-icon svg { width: 30px; height: 30px; stroke: var(--mp-red); }
.mp-cat-card h3 { margin: 0 0 6px; font-size: 17px; }
.mp-cat-card p { margin: 0; color: var(--mp-muted); font-size: 14px; }
.mp-cat-cta { display: inline-block; margin-top: 12px; color: var(--mp-red); font-weight: 850; font-size: 13px; }

/* Products */
.mp-product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mp-product-card { border: 1px solid var(--mp-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-width: 0; }
.mp-product-card .mp-product-img { aspect-ratio: 1 / 1; background: #f7f7f7; overflow: hidden; }
.mp-product-card .mp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-product-card-body { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.mp-product-card h3 { font-size: 14px; margin: 0 0 7px; line-height: 1.35; }
.mp-price { font-weight: 900; color: var(--mp-red); margin-bottom: 12px; }
.mp-product-card .button, .mp-product-card .added_to_cart { margin-top: auto; background: var(--mp-red) !important; color: #fff !important; border-radius: 8px !important; padding: 9px 12px !important; font-size: 12px !important; font-weight: 850 !important; text-align: center; }
.mp-empty-card { grid-column: 1 / -1; border: 1px dashed #f1b9aa; background: #fff8f5; padding: 28px; border-radius: 14px; color: #5e636c; }

/* Rental packages */
.mp-rental-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mp-rental-card { border: 1px solid var(--mp-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(31, 41, 55, .05); }
.mp-rental-card .mp-rental-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #fff1eb, #ffe0d5); display: grid; place-items: center; font-size: 56px; }
.mp-rental-body { padding: 20px; }
.mp-rental-body h3 { margin: 0 0 8px; }
.mp-rental-body p { margin: 0 0 16px; color: var(--mp-muted); font-size: 14px; }
.mp-rental-body .mp-link { font-size: 13px; }

/* How it works */
.mp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mp-step { text-align: center; padding: 24px 18px; }
.mp-step-num { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff0eb; color: var(--mp-red); font-size: 24px; font-weight: 950; }
.mp-step h3 { margin: 0 0 8px; font-size: 16px; }
.mp-step p { margin: 0; color: var(--mp-muted); font-size: 14px; }

/* Reviews and trust */
.mp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mp-review { border: 1px solid var(--mp-line); border-radius: 14px; padding: 24px; background: #fff; }
.mp-stars { color: #f5a623; letter-spacing: 3px; }
.mp-review p { color: #4d5560; }
.mp-review strong { font-size: 14px; }
.mp-trustbar { border: 1px solid var(--mp-line); border-radius: 16px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.mp-trustitem { padding: 24px; text-align: center; border-right: 1px solid var(--mp-line); }
.mp-trustitem:last-child { border-right: 0; }
.mp-trustitem strong { display: block; margin-bottom: 4px; }
.mp-trustitem span { color: var(--mp-muted); font-size: 13px; }

/* Footer */
.mp-footer { background: #181b20; color: #fff; margin-top: 72px; }
.mp-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 46px; padding: 54px 0; }
.mp-footer .mp-brand img {
  filter: none !important;
  max-width: 230px;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mp-footer .mp-footer-brand .custom-logo-link { display: inline-block; max-width: 100%; }
.mp-footer .mp-footer-brand .mp-footer-brand-fallback {
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-decoration: none;
}
.mp-footer p, .mp-footer li, .mp-footer a { color: #c9ced6; font-size: 14px; }
.mp-footer h4 { margin: 0 0 14px; color: #fff; }
.mp-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mp-footer-bottom { border-top: 1px solid #30353d; padding: 18px 0; font-size: 13px; color: #adb3bd; display: flex; justify-content: space-between; gap: 20px; }

/* General content/WooCommerce */
.site-main, .woocommerce-page main { width: min(var(--mp-max), calc(100% - 40px)); margin: 48px auto; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--mp-line); border-radius: 12px; padding: 14px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--mp-red); color: #fff; border-radius: 8px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--mp-red-dark); color: #fff; }

@media (max-width: 1100px) {
  .mp-header-main { grid-template-columns: 180px 1fr auto; }
  .mp-category-grid { grid-template-columns: repeat(3, 1fr); }
  .mp-product-grid { grid-template-columns: repeat(3, 1fr); }
  .mp-rental-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .mp-wrap { width: min(100% - 28px, var(--mp-max)); }
  .mp-topbar-inner { align-items: flex-start; }
  .mp-topbar-items { gap: 8px; }
  .mp-header-main { grid-template-columns: 1fr auto; min-height: 0; row-gap: 10px; column-gap: 12px; padding: 10px 0 12px; }
  .mp-search { grid-column: 1 / -1; padding-bottom: 0; }
  .mp-header-actions .mp-account-label { display: none; }
  .mp-nav { overflow: visible; }
  .mp-nav-mobile-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mp-mobile-order-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--mp-red); color: #fff; padding: 9px 13px; border-radius: 9px; font-size: 13px; font-weight: 900; }
  .mp-nav-inner { display: none; min-width: 0; width: min(var(--mp-max), calc(100% - 28px)); padding: 0 0 14px; align-items: stretch; flex-direction: column; gap: 0; }
  .mp-nav-inner.is-open { display: flex; }
  .mp-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
  .mp-menu li { width: 100%; }
  .mp-menu a { display: block; width: 100%; padding: 13px 2px; border-top: 1px solid var(--mp-line); font-size: 15px; }
  .mp-nav-inner > .mp-order-btn { display: none; }
  .mp-hero-grid { grid-template-columns: 1fr; }
  .mp-hero-copy { padding: 56px 0 36px; }
  .mp-hero-media { min-height: 380px; margin: 0 -14px; }
  .mp-live-panel { margin: 0 0 36px; }
  .mp-category-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-steps { grid-template-columns: repeat(2, 1fr); }
  .mp-reviews { grid-template-columns: 1fr; }
  .mp-trustbar { grid-template-columns: repeat(2, 1fr); }
  .mp-trustitem:nth-child(2) { border-right: 0; }
  .mp-trustitem:nth-child(-n+2) { border-bottom: 1px solid var(--mp-line); }
  .mp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mp-topbar-inner { min-height: 0; padding: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .mp-topbar-items { flex-direction: column; gap: 3px; line-height: 1.3; }
  .mp-topbar-items > span:nth-child(3) { display: none; }
  .mp-topbar-inner > div:last-child { font-size: 12px; white-space: nowrap; }
  .mp-brand img, .mp-brand .custom-logo { max-height: 58px; width: auto; }
  .mp-header-actions { gap: 8px; align-self: center; }
  .mp-cart-pill { padding: 8px 10px; }
  .mp-search form { border-radius: 10px; }
  .mp-search input[type="search"] { padding: 12px 13px; font-size: 15px; }
  .mp-search button { width: 48px; }
  .mp-hero h1 { font-size: 2.65rem; }
  .mp-hero-copy > p { font-size: 16px; }
  .mp-live-panel { padding: 26px 18px 22px; }
  .mp-live-panel-head { padding-right: 80px; }
  .mp-live-products { grid-template-columns: 1fr; }
  .mp-live-card { display: grid; grid-template-columns: 110px 1fr; }
  .mp-live-card-img { aspect-ratio: 1 / 1; }
  .mp-category-grid, .mp-product-grid, .mp-rental-grid, .mp-steps, .mp-trustbar, .mp-footer-grid { grid-template-columns: 1fr; }
  .mp-trustitem { border-right: 0; border-bottom: 1px solid var(--mp-line); }
  .mp-trustitem:last-child { border-bottom: 0; }
  .mp-section { padding: 54px 0; }
  .mp-section-title { align-items: flex-start; flex-direction: column; }
  .mp-footer-bottom { flex-direction: column; }
}


/* Events happening now */
.mp-events-now {
  position: relative;
  overflow: hidden;
  padding: 60px 0 64px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, rgba(255,90,31,.24), transparent 25%),
    radial-gradient(circle at 4% 100%, rgba(239,31,47,.16), transparent 30%),
    #171a1f;
}
.mp-events-now::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
}
.mp-events-now .mp-wrap { position: relative; z-index: 1; }
.mp-events-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.mp-events-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 8px; color: #ffb196; font-size: 12px; font-weight: 950; letter-spacing: .11em; }
.mp-events-kicker i, .mp-live-now i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3145; box-shadow: 0 0 0 5px rgba(255,49,69,.14); animation: mp-live-pulse 1.7s infinite; }
@keyframes mp-live-pulse { 0%,100% { transform: scale(.9); opacity: .85; } 50% { transform: scale(1.18); opacity: 1; } }
.mp-events-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.45rem); line-height: 1; letter-spacing: -.045em; }
.mp-events-head p { margin: 8px 0 0; color: #bfc5cf; max-width: 720px; }
.mp-events-link { flex: 0 0 auto; color: #fff; font-weight: 900; padding: 10px 14px; border: 1px solid #3c424c; border-radius: 10px; background: rgba(255,255,255,.04); }
.mp-events-link:hover { border-color: var(--mp-orange); color: #ffd2c1; }
.mp-event-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 18px) / 2);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #59606b #22262c;
}
.mp-event-grid::-webkit-scrollbar { height: 10px; }
.mp-event-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: 999px; }
.mp-event-grid::-webkit-scrollbar-thumb { background: #5a606a; border-radius: 999px; }
.mp-event-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #30353d;
  border-radius: 16px;
  background: #22262c;
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
.mp-event-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #2b3037; }
.mp-event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mp-event-card:hover .mp-event-media img { transform: scale(1.035); }
.mp-event-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 58px; background: linear-gradient(135deg, #3a2024, #4a2d21); }
.mp-live-now { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(16,18,22,.90); color: #fff; font-size: 10px; font-weight: 950; letter-spacing: .08em; backdrop-filter: blur(8px); }
.mp-live-now i { width: 7px; height: 7px; box-shadow: none; }
.mp-event-sponsored { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 7px; background: rgba(239,31,47,.92); color: #fff; font-size: 9px; font-weight: 900; }
.mp-event-body { padding: 14px 15px 16px; }
.mp-event-body h3 { margin: 0 0 8px; color: #fff; font-size: 16px; line-height: 1.25; }
.mp-event-body h3 a:hover { color: #ffb196; }
.mp-event-meta { display: grid; gap: 4px; color: #cbd0d8; font-size: 12px; }
.mp-event-body p { margin: 10px 0 0; color: #adb4bf; font-size: 12px; line-height: 1.45; }
.mp-event-btn { display: inline-block; margin-top: 13px; color: #ff9a73; font-size: 12px; font-weight: 900; }
.mp-events-empty { display: flex; align-items: center; gap: 18px; min-height: 120px; padding: 22px; border: 1px dashed #444b55; border-radius: 16px; background: rgba(255,255,255,.035); }
.mp-events-empty-icon { font-size: 42px; }
.mp-events-empty strong { display: block; font-size: 18px; }
.mp-events-empty p { margin: 5px 0 0; color: #adb4bf; }

@media (max-width: 1100px) {
  .mp-event-grid { grid-auto-columns: minmax(340px, 78vw); }
}
@media (max-width: 700px) {
  .mp-events-head { align-items: flex-start; flex-direction: column; }
  .mp-event-grid { grid-auto-columns: minmax(280px, 88vw); }
  .mp-events-now { padding: 48px 0 52px; }
}



/* =========================================================
   MYPARTY247 HALLOWEEN SEASONAL OVERRIDES
   Separate theme appearance; store data remains in WordPress.
   ========================================================= */
:root {
  --mp-red: #ff5a00;
  --mp-red-dark: #d94800;
  --mp-orange: #ff7a00;
  --mp-orange-dark: #d95d00;
  --mp-ink: #f7f1ff;
  --mp-muted: #cfc3d9;
  --mp-line: #4a2a57;
  --mp-soft: #170d1d;
  --mp-white: #ffffff;
  --mp-shadow: 0 18px 42px rgba(0,0,0,.34);
}
body { background:#120b16; color:#f8f3fb; }
.mp-topbar { background:linear-gradient(90deg,#0d0b10 0%,#1b0d22 45%,#351232 100%); border-bottom:1px solid #ff6a00; }
.mp-header { background:rgba(14,10,18,.97); border-bottom:1px solid #3f2449; box-shadow:0 8px 26px rgba(0,0,0,.26); }
.mp-header-main { background:transparent; }
.mp-brand img { filter:drop-shadow(0 0 8px rgba(255,87,0,.18)); }
.mp-brand-text,.mp-header-actions a,.mp-menu a,.mp-menu-toggle { color:#fff; }
.mp-search form { border-color:#4a2a57; background:#201326; }
.mp-search input[type="search"] { background:#201326; color:#fff; }
.mp-search input[type="search"]::placeholder { color:#b7aabc; }
.mp-search button,.mp-order-btn { background:linear-gradient(135deg,#ff5a00,#ff8a00); color:#160811; }
.mp-nav { border-top:1px solid #3b2144; background:#0c0910; }
.mp-menu a:hover { color:#ff8a00; }
.mp-cart-pill { border-color:#4a2a57; background:#211526; }
.mp-cart-count { background:#ff5a00; color:#fff; }

.mp-hero {
  position:relative;
  background:
    radial-gradient(circle at 10% 25%, rgba(255,87,0,.20), transparent 27%),
    radial-gradient(circle at 83% 20%, rgba(117,42,151,.34), transparent 31%),
    linear-gradient(120deg,#100912 0%,#1d0e23 48%,#2a102e 100%);
}
.mp-hero::before { content:'🕸️'; position:absolute; left:10px; top:12px; font-size:78px; opacity:.10; transform:rotate(-18deg); }
.mp-hero::after { content:'🎃'; position:absolute; left:4%; bottom:20px; font-size:72px; opacity:.18; filter:drop-shadow(0 0 18px rgba(255,96,0,.35)); }
.mp-hero-copy { position:relative; z-index:2; }
.mp-eyebrow { color:#ff8a00; }
.mp-hero h1 { color:#fff; text-shadow:0 4px 20px rgba(0,0,0,.28); }
.mp-hero h1 span { color:#ff6a00; }
.mp-hero-copy > p { color:#d8cedd; }
.mp-icon-dot { background:#2a1631; color:#ff8a00; border:1px solid #63336f; }
.mp-btn--red { background:linear-gradient(135deg,#ff5a00,#ff8300); color:#160811; }
.mp-btn--orange-outline { background:transparent; border-color:#ff7a00; color:#ffb15e; }
.mp-btn--orange-outline:hover { background:#ff6a00; color:#14070d; }

.mp-live-panel { background:linear-gradient(145deg,#211126,#160d1c); border-color:#62306e; box-shadow:0 24px 62px rgba(0,0,0,.42); }
.mp-live-panel::before { content:'🦇'; position:absolute; right:124px; top:20px; font-size:38px; opacity:.55; transform:rotate(12deg); z-index:1; }
.mp-live-kicker,.mp-live-shop,.mp-live-all { color:#ff8a00; }
.mp-live-panel h2,.mp-live-card h3 { color:#fff; }
.mp-live-panel-head p,.mp-live-card p,.mp-live-soon { color:#cdbed3; }
.mp-live-card { background:#1b111f; border-color:#46264f; }
.mp-live-card-img { background:#251229; }
.mp-live-badge { background:#ff5a00; }
.mp-live-price { color:#ff8a00; }
.mp-balloon--red { background:#111; }
.mp-balloon--orange { background:#ff6500; }
.mp-balloon--gold { background:linear-gradient(135deg,#d5a1ff,#7b2f9b 58%,#3e1452); }
.mp-balloon--pink { background:#30113a; }
.mp-balloon--white { background:#f2ecf5; border-color:#5d4066; }

.mp-section { background:#120b16; }
.mp-section--soft { background:#1a0f20; }
.mp-section-title h2,.mp-cat-card h3,.mp-rental-card h3,.mp-step h3,.mp-trustitem strong { color:#fff; }
.mp-section-title p,.mp-cat-card p,.mp-rental-card p,.mp-step p,.mp-trustitem span { color:#c9bdcf; }
.mp-link,.mp-cat-cta { color:#ff8a00; }
.mp-category-grid .mp-cat-card,.mp-product-card,.mp-rental-card,.mp-trustbar,.mp-step { background:#1c1221; border-color:#44264d; box-shadow:0 10px 24px rgba(0,0,0,.16); }
.mp-cat-card:hover,.mp-product-card:hover,.mp-rental-card:hover { border-color:#ff6a00; box-shadow:0 18px 38px rgba(0,0,0,.26); }
.mp-cat-icon { background:#2b1731; }
.mp-cat-icon svg { stroke:#ff7a00; }
.mp-product-card .mp-product-img,.mp-rental-img { background:#29142e; }
.mp-product-card-body,.mp-rental-body { color:#fff; }
.mp-product-card h3 a { color:#fff; }
.mp-price { color:#ff8a00; }
.button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { background:#ff5a00 !important; color:#160811 !important; }

.mp-steps { position:relative; }
.mp-step-num { background:#ff5a00; color:#160811; }
.mp-trustbar { overflow:hidden; }
.mp-trustbar::before { content:'🦇  🎃  👻'; display:block; padding:12px 18px 0; letter-spacing:18px; opacity:.42; }

.mp-events-now { background:
  radial-gradient(circle at 92% 5%,rgba(255,90,0,.25),transparent 25%),
  radial-gradient(circle at 5% 95%,rgba(118,41,147,.22),transparent 30%),
  #0d0911; }
.mp-events-kicker { color:#ff9a43; }
.mp-event-card { background:#1a111f; border-color:#42254b; }
.mp-event-body h3 { color:#fff; }
.mp-event-meta,.mp-event-body p { color:#c7bacd; }
.mp-event-btn { color:#ff9a43; }
.mp-live-now { background:rgba(16,7,18,.94); }

footer,.mp-footer { background:#09070b !important; border-top:1px solid #3d2047; color:#d8cedd; }
.mp-footer h4 { color:#fff; }

/* Halloween decorative separators */
[data-home-section="categories"]::before,
[data-home-section="gifts"]::before,
[data-home-section="rentals"]::before {
  content:'🎃  ✦  🦇  ✦  👻  ✦  🎃';
  display:block;
  text-align:center;
  padding-top:14px;
  letter-spacing:12px;
  opacity:.34;
  font-size:20px;
}

@media (max-width: 800px) {
  .mp-header { background:#0e0912; }
  .mp-nav-inner { background:#0c0910; }
  .mp-menu { background:#130c17; border-color:#4a2a57; }
  .mp-menu a { color:#fff; }
  .mp-hero::before { font-size:54px; }
  .mp-hero::after { font-size:48px; bottom:8px; }
}

/* Actual WooCommerce rental products replace static rental icons. */
.mp-rental-grid--products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mp-rental-grid .mp-rental-img--photo { display:block; background:#fff; overflow:hidden; }
.mp-rental-img--photo img { width:100%; height:100%; object-fit:cover; display:block; }
.mp-rental-product-card .mp-rental-body h3 a { color:inherit; }
.mp-rental-product-card .mp-rental-price { margin:0 0 14px; font-weight:850; color:var(--mp-red); }
@media (max-width: 700px) { .mp-rental-grid--products { grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; } }
@media (max-width: 430px) { .mp-rental-grid--products { grid-template-columns: 1fr; } }


/* MyParty247 rental card sizing correction (v2.2.0).
   Fixed tracks rather than auto-fit: 2 rental products must not fill
   the width of four cards. CSS controls image display, not product dimensions.
*/
.mp-rental-grid.mp-rental-grid--products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.mp-rental-grid--products .mp-rental-product-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mp-rental-grid--products .mp-rental-img--photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  overflow: hidden;
}
.mp-rental-grid--products .mp-rental-img--photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.mp-rental-grid--products .mp-rental-body { padding: 14px; }
.mp-rental-grid--products .mp-rental-body h3 {
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  .mp-rental-grid.mp-rental-grid--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .mp-rental-grid.mp-rental-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .mp-rental-grid--products .mp-rental-img--photo { padding: 8px; }
  .mp-rental-grid--products .mp-rental-body { padding: 12px; }
  .mp-rental-grid--products .mp-rental-body h3 { font-size: 14px; }
}


/* ==========================================================
   MyParty247 v2.3.0 - consistent homepage product-card sizing
   Gift and rental products: compact on phones, four rental
   positions on desktop. Scoped to the homepage sections only.
   ========================================================== */

/* Desktop: limit rental cards even if only two products exist. */
[data-home-section="rentals"] .mp-rental-grid.mp-rental-grid--products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
[data-home-section="rentals"] .mp-rental-product-card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
[data-home-section="rentals"] .mp-rental-product-card .mp-rental-img--photo {
  width: 100%;
  height: 165px;
  aspect-ratio: auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}
[data-home-section="rentals"] .mp-rental-product-card .mp-rental-img--photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
[data-home-section="rentals"] .mp-rental-product-card .mp-rental-body {
  padding: 12px;
}
[data-home-section="rentals"] .mp-rental-product-card .mp-rental-body h3 {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (min-width: 701px) and (max-width: 950px) {
  [data-home-section="rentals"] .mp-rental-grid.mp-rental-grid--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* On phones and narrow tablets: replicate Popular Picks' compact,
   horizontal product tiles (small square image and text beside it). */
@media (max-width: 700px) {
  [data-home-section="gifts"] .mp-product-grid,
  [data-home-section="rentals"] .mp-rental-grid.mp-rental-grid--products {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  [data-home-section="gifts"] .mp-product-grid > .mp-product-card,
  [data-home-section="rentals"] .mp-rental-grid--products > .mp-rental-product-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 110px;
    overflow: hidden;
  }

  [data-home-section="gifts"] .mp-product-card > .mp-product-img,
  [data-home-section="rentals"] .mp-rental-product-card > .mp-rental-img--photo {
    width: 106px;
    height: 110px;
    min-width: 0;
    aspect-ratio: auto;
    box-sizing: border-box;
    background: #fff;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  [data-home-section="gifts"] .mp-product-card > .mp-product-img img,
  [data-home-section="rentals"] .mp-rental-product-card > .mp-rental-img--photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  [data-home-section="gifts"] .mp-product-card > .mp-product-card-body,
  [data-home-section="rentals"] .mp-rental-product-card > .mp-rental-body {
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
  [data-home-section="gifts"] .mp-product-card .mp-product-card-body h3,
  [data-home-section="rentals"] .mp-rental-product-card .mp-rental-body h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    overflow-wrap: anywhere;
  }
  [data-home-section="gifts"] .mp-product-card .mp-price,
  [data-home-section="rentals"] .mp-rental-product-card .mp-rental-price {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
  }
  [data-home-section="gifts"] .mp-product-card .mp-product-card-body .button {
    align-self: flex-start;
    width: auto;
    margin: 0;
    padding: 6px 9px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }
  [data-home-section="rentals"] .mp-rental-product-card .mp-rental-body .mp-link {
    font-size: 12px;
    margin: 0;
    line-height: 1.25;
  }
}

/* ==========================================================
   MyParty247 v2.4.0 - FORCE compact mobile Gifts + Rentals
   Matches the Popular Halloween Picks horizontal card style.
   Added last so it wins over earlier responsive rules.
   ========================================================== */
@media screen and (max-width: 700px) {
  /* one compact card per row */
  .mp-product-grid,
  .mp-rental-grid.mp-rental-grid--products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* horizontal card: small image left, content right */
  .mp-product-grid > .mp-product-card,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card {
    display: grid !important;
    grid-template-columns: 110px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 110px !important;
    align-items: stretch !important;
    overflow: hidden !important;
  }

  /* fixed compact image box */
  .mp-product-grid > .mp-product-card > .mp-product-img,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card > .mp-rental-img,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card > .mp-rental-img--photo {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  /* contain entire product photo instead of blowing it up */
  .mp-product-grid > .mp-product-card > .mp-product-img img,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card > .mp-rental-img img,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card > .mp-rental-img--photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
  }

  /* compact text area */
  .mp-product-grid > .mp-product-card > .mp-product-card-body,
  .mp-rental-grid.mp-rental-grid--products > .mp-rental-product-card > .mp-rental-body {
    min-width: 0 !important;
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .mp-product-grid .mp-product-card h3,
  .mp-rental-grid--products .mp-rental-product-card h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
  }

  .mp-product-grid .mp-price,
  .mp-rental-grid--products .mp-rental-price {
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
  }

  .mp-product-grid .mp-product-card .button,
  .mp-rental-grid--products .mp-rental-product-card .mp-link {
    width: auto !important;
    align-self: flex-start !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    padding: 6px 9px !important;
  }
}

/* v2.6 Trust Bar desktop alignment: keep the 4 actual feature blocks in the grid.
   Halloween's decorative ::before used to occupy a fifth grid cell, pushing item 4
   to a new row. Avoid applying mobile card changes to desktop. */
.mp-trustbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mp-trustbar::before { content: none !important; display: none !important; }
.mp-trustbar > .mp-trustitem { min-width: 0; }
@media (max-width: 820px) {
  .mp-trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mp-trustbar { grid-template-columns: minmax(0, 1fr); }
}
