/*
Theme Name: MyParty247 v8 Editable
Theme URI: https://myparty247.com/
Author: OpenAI
Description: Custom WooCommerce-ready theme for MyParty247.com, focused on gifts, party rentals, local delivery, and event services.
Version: 1.7.0
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; }

/* 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: brightness(0) invert(1); max-height: 78px; }
.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, .mp-nav-inner { align-items: flex-start; }
  .mp-topbar-items { gap: 12px; }
  .mp-header-main { grid-template-columns: 1fr auto; min-height: 80px; }
  .mp-search { grid-column: 1 / -1; padding-bottom: 16px; }
  .mp-header-actions .mp-account-label { display: none; }
  .mp-nav { overflow-x: auto; }
  .mp-nav-inner { min-width: 760px; }
  .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-items > span:nth-child(3) { display: none; }
  .mp-brand img { max-height: 60px; }
  .mp-header-actions { gap: 8px; }
  .mp-cart-pill { padding: 8px 10px; }
  .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; }
}

