/* Muzzy — WooCommerce cart / checkout / account branding.
   Matches the muzzybrand.com look (purple #c247ff→#9b1fd4, Baloo 2 headings,
   rounded pills, lavender accents). Enqueued only on WooCommerce pages. */

:root {
  --muzzy-purple: #c247ff;
  --muzzy-purple-dark: #9b1fd4;
  --muzzy-ink: #11151c;
  --muzzy-lav: #f3e9ff;
  --muzzy-lav-line: rgba(194, 71, 255, 0.16);
  --muzzy-grad: linear-gradient(135deg, #c247ff, #9b1fd4);
  --muzzy-radius: 16px;
  --muzzy-font-head: 'Baloo 2', system-ui, sans-serif;
  --muzzy-font-body: 'Quicksand', system-ui, sans-serif;
}

.woocommerce, .woocommerce-page {
  font-family: var(--muzzy-font-body);
  color: var(--muzzy-ink);
}
.woocommerce h1, .woocommerce h2, .woocommerce h3,
.woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3,
.wc-block-components-title {
  font-family: var(--muzzy-font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--muzzy-ink);
}

/* ---- Buttons (cart, checkout, place order, add to cart) ---- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.woocommerce-page button.button.alt,
.wc-block-components-button {
  font-family: var(--muzzy-font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff !important;
  background: var(--muzzy-grad) !important;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  box-shadow: 0 6px 18px rgba(194, 71, 255, 0.35);
  transition: filter 0.15s, transform 0.05s;
  cursor: pointer;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.wc-block-components-button:hover {
  filter: brightness(1.07);
}
.woocommerce a.button:active,
.woocommerce button.button:active { transform: translateY(1px); }

/* secondary / ghost buttons (e.g. "update cart", "continue shopping") */
.woocommerce button[name="update_cart"],
.woocommerce a.button.wc-backward {
  background: #fff !important;
  color: var(--muzzy-purple) !important;
  border: 2px solid var(--muzzy-lav-line);
  box-shadow: none;
}

/* ---- Cart table ---- */
.woocommerce table.shop_table {
  border: 1px solid var(--muzzy-lav-line);
  border-radius: var(--muzzy-radius);
  overflow: hidden;
  border-collapse: separate;
}
.woocommerce table.shop_table thead th {
  font-family: var(--muzzy-font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--muzzy-purple);
  background: var(--muzzy-lav);
  border: none;
  padding: 16px;
}
.woocommerce table.shop_table td { padding: 18px 16px; border-top: 1px solid var(--muzzy-lav-line); }
.woocommerce .cart .product-thumbnail img,
.woocommerce-cart .cart_item img { border-radius: 12px; border: 2px solid var(--muzzy-purple); width: 72px; }
.woocommerce a.remove {
  color: var(--muzzy-purple) !important;
  border: 1px solid var(--muzzy-lav-line);
  border-radius: 50%;
}
.woocommerce a.remove:hover { background: var(--muzzy-purple) !important; color: #fff !important; }

/* quantity */
.woocommerce .quantity .qty {
  border: 1.5px solid var(--muzzy-lav-line);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--muzzy-font-head);
  text-align: center;
}

/* ---- Cart totals / order review ---- */
.woocommerce .cart_totals,
.woocommerce .cart-collaterals .cart_totals {
  background: var(--muzzy-lav);
  border: 1px solid var(--muzzy-lav-line);
  border-radius: var(--muzzy-radius);
  padding: 24px;
}
.woocommerce .cart_totals h2 {
  font-family: var(--muzzy-font-head);
  color: var(--muzzy-ink);
}
.woocommerce .order-total .amount,
.woocommerce .cart_totals .order-total td { color: var(--muzzy-purple-dark); font-weight: 800; }

/* coupon */
.woocommerce .coupon .input-text {
  border: 2px solid var(--muzzy-lav-line);
  border-radius: 999px;
  padding: 12px 18px;
}

/* ---- Form fields (account, cart) ---- */
.woocommerce form .form-row label { font-family: var(--muzzy-font-head); font-weight: 700; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select,
.select2-container .select2-selection {
  border: 2px solid var(--muzzy-lav-line) !important;
  border-radius: 12px !important;
  padding: 12px 14px;
  min-height: 48px;
  font-family: var(--muzzy-font-body);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce select:focus {
  border-color: var(--muzzy-purple) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 71, 255, 0.15);
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: none;
  border-left: 4px solid var(--muzzy-purple);
  border-radius: 12px;
  background: var(--muzzy-lav);
  font-family: var(--muzzy-font-body);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--muzzy-purple); }

/* ---- Shop / product grid (catalog) ---- */
.woocommerce ul.products li.product .price { color: var(--muzzy-purple-dark); font-weight: 800; font-family: var(--muzzy-font-head); }
.woocommerce ul.products li.product img { border-radius: var(--muzzy-radius); }
.woocommerce span.onsale {
  background: var(--muzzy-grad);
  border-radius: 999px;
  font-family: var(--muzzy-font-head);
}

/* page width to match the mirror (checkout geometry is owned by MUZZY CHECKOUT v3 below) */
.woocommerce-cart .site-main,
.woocommerce-account .site-main { max-width: 1200px; margin: 0 auto; padding: 40px 20px 64px; }

/* =====================================================================
   Unified product page — same current `muzzy-pdp` design on all products
   ===================================================================== */
.muzzy-single-product { margin: 0; padding: 0 0 72px; }
.muzzy-pdp { background: #fff; padding: 40px 0 60px; font-family: var(--muzzy-font-body); }
.muzzy-page-width { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muzzy-pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.muzzy-pdp__gallery, .muzzy-pdp__info { min-width: 0; }

/* Main product gallery. */
.muzzy-trust-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.muzzy-trust-bar__item { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.muzzy-trust-bar__item svg { flex: 0 0 auto; color: #c247ff; }
.muzzy-gallery__wrap { position: relative; width: 100%; overflow: hidden; }
.muzzy-gallery__main { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; width: 100%; max-width: 100%; aspect-ratio: 1; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; border-radius: 4px; }
.muzzy-gallery__main::-webkit-scrollbar { display: none; }
.muzzy-gallery__slide { width: 100%; min-width: 0; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.muzzy-gallery__slide img { display: block; width: 100%; min-width: 100%; max-width: 100%; height: 100%; margin: 0; object-fit: contain; object-position: center; background: #fff; }
.muzzy-gallery__arrow { position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; transform: translateY(-50%); color: #11151c; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: pointer; }
.muzzy-gallery__arrow:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.muzzy-gallery__arrow--prev { left: 10px; }
.muzzy-gallery__arrow--next { right: 10px; }
.muzzy-gallery__dots { position: absolute; top: 12px; left: 50%; z-index: 2; display: flex; gap: 6px; transform: translateX(-50%); pointer-events: none; }
.muzzy-gallery__dot { width: 7px; height: 7px; background: rgba(255,255,255,.55); border: 1.5px solid rgba(0,0,0,.1); border-radius: 50%; transition: background .2s, transform .2s; }
.muzzy-gallery__dot.active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transform: scale(1.4); }

/* Product details. */
.muzzy-pdp__info { position: sticky; top: 24px; }
.muzzy-vendor { margin-bottom: 8px; color: #7226aa; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muzzy-title { margin: 0 0 12px; color: #11151c; font-size: clamp(22px,3vw,30px); font-weight: 700; line-height: 1.2; }
.muzzy-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.muzzy-price { color: #11151c; font-size: 28px; font-weight: 800; }
.muzzy-price-compare { color: #6b7280; font-size: 18px; font-weight: 500; text-decoration: line-through; }
.muzzy-price-save { padding: 3px 8px; color: #fff; background: #c247ff; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.muzzy-price-row [hidden] { display: none; }
.muzzy-social-proof { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 18px; background: linear-gradient(135deg,#f8edff,#f0e0ff); border-radius: 4px; }
.muzzy-social-proof__avatars { display: flex; }
.muzzy-social-proof__avatar { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: -8px; color: #fff; background: #7226aa; border: 2px solid #fff; border-radius: 50%; font-size: 11px; font-weight: 700; }
.muzzy-social-proof__avatar:first-child { margin-left: 0; }
.muzzy-social-proof__avatar:nth-child(2) { background: #9c44d6; }
.muzzy-social-proof__avatar:nth-child(3) { background: #6b1fa0; }
.muzzy-social-proof__text { color: #7d17b0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.muzzy-social-proof__text strong { color: #7226aa; }

/* Real WooCommerce variation, stock and add-to-cart controls. */
.muzzy-purchase { margin: 0 0 20px; }
.muzzy-purchase form.cart { display: grid; gap: 12px; margin: 0; }
.muzzy-purchase table.variations { display: block; width: 100%; margin: 0; border: 0; }
.muzzy-purchase table.variations tbody, .muzzy-purchase table.variations tr, .muzzy-purchase table.variations td.value { display: block; width: 100%; }
.muzzy-purchase table.variations th.label { display: none; }
.muzzy-purchase table.variations td, .muzzy-purchase table.variations th { padding: 0; background: transparent; border: 0; }
.muzzy-purchase table.variations select[hidden] { display: none !important; }
.muzzy-purchase .reset_variations { display: none !important; }
.muzzy-purchase .woocommerce-variation-description { color: #6b7280; font-size: 13px; line-height: 1.55; }
.muzzy-purchase .woocommerce-variation-price { display: none; }
.muzzy-purchase .woocommerce-variation-availability, .muzzy-purchase .stock { display: none; }
.muzzy-purchase .out-of-stock { padding: 16px; color: #7d17b0; background: #f8edff; border: 1.5px solid #c247ff; border-radius: 4px; }
.muzzy-purchase .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.muzzy-variants { margin: 18px 0; }
.muzzy-variants__label { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #11151c; font-size: 13px; font-weight: 700; }
.muzzy-variants__label .selected-name { color: #7226aa; font-weight: 600; }
.muzzy-variants__options { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.muzzy-variants__options::-webkit-scrollbar { display: none; }
.woocommerce .muzzy-variant-btn { position: relative; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; min-width: 78px; padding: 8px; color: #11151c; background: #fff; border: 2px solid #e5e7eb; border-radius: 4px; box-shadow: none; cursor: pointer; transition: border-color .2s, background .2s; }
.woocommerce .muzzy-variant-btn:hover, .woocommerce .muzzy-variant-btn.active { background: #f8edff; border-color: #c247ff; }
.woocommerce .muzzy-variant-btn.sold-out { opacity: .45; cursor: not-allowed; }
.muzzy-variant-btn__img { width: 60px; height: 60px; object-fit: cover; background: #f3f4f6; border-radius: 2px; }
.muzzy-variant-btn__name { margin-top: 6px; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.muzzy-variant-btn__price-diff { display: block; margin-top: 2px; color: #7226aa; font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.muzzy-variant-btn__sold-out-badge { display: none; color: #6b7280; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.muzzy-variant-btn.sold-out .muzzy-variant-btn__sold-out-badge { display: block; }
/* Quantity: "Qty:" label + separated rounded stepper boxes (Shopify match). */
.woocommerce .muzzy-purchase .muzzy-qty-row { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.muzzy-qty-label { color: #11151c; font-size: 15px; font-weight: 700; font-family: var(--muzzy-font-head); }
.woocommerce .muzzy-purchase .quantity.muzzy-qty { display: flex; align-items: stretch; gap: 0; width: auto; margin: 0; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: none; }
.woocommerce .muzzy-purchase .quantity.muzzy-qty::before, .woocommerce .muzzy-purchase .quantity.muzzy-qty::after { content: none !important; box-shadow: none !important; }
.woocommerce .muzzy-purchase .quantity.muzzy-qty .qty { width: 32px; min-height: 44px; padding: 0 !important; margin: 0; text-align: center; line-height: 44px; color: #11151c; background: transparent; border: 0 !important; border-radius: 0; font-family: var(--muzzy-font-head); font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.woocommerce .muzzy-purchase .quantity.muzzy-qty .qty::-webkit-outer-spin-button,
.woocommerce .muzzy-purchase .quantity.muzzy-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .muzzy-qty-button { display: flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; min-height: 44px; padding: 0; color: #11151c !important; background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none; font-size: 18px; line-height: 1; transition: background 0.15s; }
.woocommerce .muzzy-qty-button:hover { color: #7226aa !important; background: #f8edff !important; }
.woocommerce .muzzy-purchase .single_add_to_cart_button, .woocommerce .muzzy-purchase .muzzy-buy-now { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; padding: 14px 22px; border-radius: 8px; box-shadow: none; font-family: var(--muzzy-font-head); font-size: 16px; font-weight: 700; letter-spacing: 0 !important; text-transform: none !important; }
.woocommerce .muzzy-purchase .single_add_to_cart_button { color: #fff !important; background: #692ba4 !important; }
.woocommerce .muzzy-purchase .single_add_to_cart_button:hover { background: #7e34c2 !important; }
.woocommerce .muzzy-purchase .muzzy-buy-now { color: #fff !important; background: #11151c !important; }
.woocommerce .muzzy-purchase .muzzy-buy-now:hover { background: #2a2f3a !important; }
.muzzy-btn-icon { display: inline-flex; flex: 0 0 auto; }
.muzzy-btn-icon svg { display: block; }
/* All products: stack qty row, add-to-cart, and buy-now — each on its own full-width line (Shopify layout). */
.woocommerce .muzzy-purchase .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
.woocommerce .muzzy-purchase .woocommerce-variation-add-to-cart .muzzy-qty-row,
.woocommerce .muzzy-purchase .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.woocommerce .muzzy-purchase .woocommerce-variation-add-to-cart .muzzy-buy-now { grid-column: 1 / -1; }
.woocommerce .muzzy-purchase form.cart > .muzzy-qty-row,
.woocommerce .muzzy-purchase form.cart > .single_add_to_cart_button,
.woocommerce .muzzy-purchase form.cart > .muzzy-buy-now { grid-column: 1 / -1; }

/* Pre-order product keeps the special information from its Shopify template. */
.muzzy-preorder-card { margin: 0 0 20px; padding: 20px; background: #fbf8f1; border: 1px solid #d4ad56; border-radius: 8px; }
.muzzy-preorder-card__status { display: inline-flex; margin-bottom: 8px; padding: 5px 10px; color: #566b34; background: #edf2e5; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.muzzy-preorder-card h2 { margin: 0 0 6px; font-size: 20px; }
.muzzy-preorder-card p { margin: 0 0 12px; color: #5d574c; font-size: 13px; line-height: 1.5; }
.muzzy-preorder-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: #37342f; font-size: 12px; font-weight: 700; }
.muzzy-preorder-card li::before { content: "✓"; margin-right: 7px; color: #566b34; }

/* Trust bar and real product description. */
.muzzy-trust-icons { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; padding: 16px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.muzzy-trust-icons__item { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 130px; }
.muzzy-trust-icons__icon { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 36px; height: 36px; color: #7226aa; background: #f8edff; border-radius: 50%; }
.muzzy-trust-icons__text strong, .muzzy-trust-icons__text small { display: block; }
.muzzy-trust-icons__text strong { color: #11151c; font-size: 12px; font-weight: 700; }
.muzzy-trust-icons__text small { color: #6b7280; font-size: 11px; }
.muzzy-description { margin-top: 20px; color: #374151; font-size: 15px; line-height: 1.7; }
.muzzy-description > :first-child { margin-top: 0; }
.muzzy-description p { color: #374151; }
.muzzy-description img { max-width: 100%; height: auto; }
.muzzy-desc--collapsed { position: relative; max-height: 120px; overflow: hidden; }
.muzzy-desc--collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 44px; background: linear-gradient(transparent,#fff); }
.muzzy-desc-toggle { display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 0; color: #7226aa; background: none; border: 0; font-family: var(--muzzy-font-body); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.muzzy-desc-toggle:hover { color: #c247ff; }

/* Reviews and recommendations share the spacing and typography of Shopify. */
.muzzy-pdp-section { max-width: 1100px; margin: 0 auto; padding: 52px 20px 0; }
.muzzy-pdp-section > h2 { margin: 0 0 28px; color: #11151c; font-size: clamp(22px,3vw,30px); text-align: center; }
.muzzy-empty-reviews { text-align: center; }
/* Keep the shop/category cards' add-to-cart on-brand (solid purple, not the
   default WooCommerce gradient pill). */
.woocommerce ul.products a.button.product-card__add {
  background: #7226aa !important;
  background-image: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--muzzy-font-body);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 18px;
}
.woocommerce ul.products a.button.product-card__add:hover { background: #c247ff !important; }

/* --- Server-rendered Judge.me reviews --- */
.muzzy-stars { display: inline-flex; gap: 1px; line-height: 1; white-space: nowrap; }
.muzzy-star { color: #d8d3df; font-size: 15px; }
.muzzy-star.is-on { color: #c247ff; }
.muzzy-reviews { margin-top: 8px; }
.muzzy-reviews__summary { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 34px; padding: 22px 28px; max-width: 420px; background: #f8edff; border: 1px solid var(--muzzy-lav-line); border-radius: 16px; }
.muzzy-reviews__score { font-family: var(--muzzy-font-head); font-size: 40px; font-weight: 800; line-height: 1; color: #11151c; }
.muzzy-reviews__score-meta { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.muzzy-reviews__summary .muzzy-star { font-size: 18px; }
.muzzy-reviews__count { color: #6b7280; font-size: 13px; font-weight: 600; }
/* Card wrapping the title + score/histogram/write-a-review board (Judge.me parity) */
.muzzy-reviews__card { max-width: 860px; margin: 0 auto 18px; padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(17,21,28,0.08); }
.muzzy-reviews__title { margin: 0 0 22px; color: #11151c; font-family: var(--muzzy-font-head); font-size: 22px; font-weight: 800; text-align: center; }
.muzzy-reviews__board { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }
.muzzy-reviews__score-col { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.muzzy-reviews__score-col .muzzy-star { font-size: 22px; }
.muzzy-reviews__score-link { color: #7226aa; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 2px; }
.muzzy-reviews__hist { display: flex; flex-direction: column; gap: 5px; min-width: 240px; }
.muzzy-reviews__hist-row { display: flex; align-items: center; gap: 10px; }
.muzzy-reviews__hist-row .muzzy-star { font-size: 12px; }
.muzzy-reviews__hist-row .muzzy-star.is-on { color: #7226aa; }
.muzzy-reviews__hist-bar { position: relative; flex: 1; height: 9px; min-width: 120px; background: #ece8f1; border-radius: 6px; overflow: hidden; }
.muzzy-reviews__hist-bar > span { position: absolute; top: 0; bottom: 0; left: 0; background: #7226aa; border-radius: 6px; }
.muzzy-reviews__hist-n { width: 30px; color: #6b7280; font-size: 12px; font-weight: 600; text-align: right; }
.muzzy-reviews__cta-col { display: flex; }
.muzzy-reviews__write { display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; color: #fff; background: #7226aa; border-radius: 14px; font-family: var(--muzzy-font-body); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.muzzy-reviews__write:hover { background: #c247ff; color: #fff; }
@media (min-width: 761px) {
    .muzzy-reviews__hist, .muzzy-reviews__cta-col { padding-left: 28px; border-left: 1px solid #ece8f1; }
}
.muzzy-reviews__toolbar { display: flex; max-width: 860px; margin: 0 auto 18px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(17,21,28,0.08); }
.muzzy-reviews__sort { position: relative; display: flex; align-items: center; width: 100%; gap: 6px; padding: 16px 22px; color: #7226aa; background: transparent; border: 0; border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer; }
.muzzy-reviews__sort select { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; -webkit-appearance: none; margin: 0; padding: 0 40px 0 22px !important; color: inherit; background: transparent; border: 0 !important; border-radius: 16px !important; min-height: 0 !important; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; outline: none; }
.muzzy-reviews__sort svg { position: relative; flex: 0 0 auto; margin-left: auto; pointer-events: none; color: #7226aa; }
@media (max-width: 760px) { .muzzy-reviews__card { padding: 20px; } .muzzy-reviews__board { gap: 20px; } .muzzy-reviews__hist { width: 100%; } .muzzy-reviews__write { width: 100%; } .muzzy-reviews__cta-col { width: 100%; } }
.muzzy-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.muzzy-review { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--muzzy-lav-line); border-radius: 14px; box-shadow: 0 6px 20px rgba(44,25,74,0.06); text-align: left; }
.muzzy-review--hidden { display: none; }
.muzzy-reviews__load-more-row { display: flex; justify-content: center; margin-top: 28px; }
.muzzy-reviews__load-more { display: inline-flex; align-items: center; justify-content: center; padding: 15px 40px; color: #fff; background: #7226aa; border: 0; border-radius: 999px; font-family: var(--muzzy-font-head); font-size: 16px; font-weight: 800; cursor: pointer; transition: background 0.15s; }
.muzzy-reviews__load-more:hover { background: #c247ff; }
.muzzy-reviews__load-more:disabled { display: none; }
.muzzy-review__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muzzy-review__no-rating { color: #9b8fae; font-size: 12px; font-weight: 600; font-style: italic; }
.muzzy-review__user { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; }
.muzzy-review__avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; color: #b7aec0; background: #ece8f1; border-radius: 10px; }
.muzzy-review__name { color: #11151c; font-weight: 700; font-size: 17px; }
.muzzy-review__review-title { margin: 0; color: #11151c; font-family: var(--muzzy-font-head); font-size: 15px; font-weight: 700; line-height: 1.3; }
.muzzy-review__body { margin: 0; color: #374151; font-size: 14px; line-height: 1.6; }
.muzzy-review__pics { display: flex; flex-direction: column; gap: 8px; }
.muzzy-review__pic--hero { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; }
.muzzy-review__pic--hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.muzzy-review__pic--small { display: inline-block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.muzzy-review__pic--small img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .muzzy-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .muzzy-reviews__grid { grid-template-columns: 1fr; } }

/* --- Native WooCommerce "Write a review" form, appended below the Judge.me
   grid so the CTA above has somewhere real to land. WooCommerce core CSS
   already styles #respond/.stars/form-submit; this restyles it to match the
   .muzzy-reviews__card look instead of WC's bare default layout. Every field
   here is optional (see inc/judgeme.php + inc/review-photos.php), so there
   are no `.required` asterisk styles to keep. */
.muzzy-write-review { max-width: 860px; margin: 28px auto 0; padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(17,21,28,0.08); text-align: left; }
.muzzy-write-review__title { margin-bottom: 20px; }
.muzzy-write-review #respond { max-width: 480px; margin: 0 auto; }
.muzzy-write-review .comment-form-rating,
.muzzy-write-review .comment-form-author,
.muzzy-write-review .comment-form-email,
.muzzy-write-review .comment-form-comment { margin-bottom: 16px; }
.muzzy-write-review label { display: block; margin-bottom: 6px; color: #11151c; font-weight: 700; font-size: 14px; }
.muzzy-write-review input[type="text"],
.muzzy-write-review input[type="email"],
.muzzy-write-review textarea,
.muzzy-write-review select#rating {
  box-sizing: border-box; width: 100%; padding: 12px 14px; color: var(--muzzy-ink);
  background: #fff; border: 1.5px solid var(--muzzy-lav-line); border-radius: 10px;
  font-family: var(--muzzy-font-body); font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.muzzy-write-review textarea { resize: vertical; }
.muzzy-write-review select#rating {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237226aa' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.muzzy-write-review input[type="text"]:focus,
.muzzy-write-review input[type="email"]:focus,
.muzzy-write-review textarea:focus,
.muzzy-write-review select#rating:focus { outline: none; border-color: #7226aa; box-shadow: 0 0 0 3px rgba(194,71,255,0.18); }

/* WooCommerce's own frontend JS (wc-single-product) swaps the plain #rating
   select for a clickable p.stars widget (WooCommerce icon-font stars) — the
   select above stays as a no-JS fallback. Recolor the star links to match
   the brand instead of the default blue link color. The "Your rating" label
   is now visually hidden (screen-reader-text, see inc/judgeme.php), so this
   whole block is centered and the stars themselves are sized up well past
   WC core's 24px default — the star row alone should read as obviously the
   point of this field, no label text needed. */
.muzzy-write-review .comment-form-rating { text-align: center; }
.muzzy-write-review .comment-form-rating p.stars { display: flex; justify-content: center; gap: 10px; margin: 6px 0 0; }
.muzzy-write-review .comment-form-rating p.stars a { color: #7226aa; opacity: 0.4; font-size: 44px; transition: opacity 0.15s ease, transform 0.15s ease; }
.muzzy-write-review .comment-form-rating p.stars a:hover { transform: scale(1.12); }
.muzzy-write-review .comment-form-rating p.stars:hover a,
.muzzy-write-review .comment-form-rating p.stars.selected a.active,
.muzzy-write-review .comment-form-rating p.stars.selected a.active ~ a { opacity: 1; }
@media (max-width: 420px) {
  .muzzy-write-review .comment-form-rating p.stars { gap: 6px; }
  .muzzy-write-review .comment-form-rating p.stars a { font-size: 36px; }
}

/* Photo upload: styled "+ Add Photos" chip + JS-rendered thumbnail previews,
   in front of the real (hidden) <input type="file">. See assets/js/single-product.js. */
.muzzy-review-photos { margin-bottom: 16px; }
.muzzy-review-photos__label { display: block; margin-bottom: 8px; color: #11151c; font-weight: 700; font-size: 14px; }
.muzzy-review-photos__hint { margin-left: 2px; color: #9b8fae; font-weight: 600; font-size: 12px; }
.muzzy-review-photos__control { display: flex; }
.muzzy-review-photos__add {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  color: #7226aa; background: #f8edff; border: 1.5px dashed #c247ff; border-radius: 999px;
  font-family: var(--muzzy-font-head); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.muzzy-review-photos__add span { font-size: 16px; line-height: 1; }
.muzzy-review-photos__add:hover { background: #efd9ff; border-color: #7226aa; }
.muzzy-review-photos__add:active { transform: scale(0.97); }
.muzzy-review-photos__previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.muzzy-review-photos__thumb {
  position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(17,21,28,0.14); animation: muzzy-photo-pop 0.2s ease;
}
.muzzy-review-photos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #ece8f1; }
.muzzy-review-photos__remove {
  position: absolute; top: 3px; right: 3px; display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; color: #fff; background: rgba(17,21,28,0.65); border: 0; border-radius: 50%;
  font-size: 13px; line-height: 1; cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.muzzy-review-photos__remove:hover { background: #d33; transform: scale(1.1); }
@keyframes muzzy-photo-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* The sitewide button rule (line ~34, `.woocommerce #respond input#submit`)
   already paints this with the brand gradient/pill treatment via `!important`
   — just fit it to the card width and soften the radius to match
   .muzzy-write-review, then add the hover/active polish that rule's own
   :hover list doesn't cover for #respond input#submit. */
.muzzy-write-review #respond input#submit,
.muzzy-write-review .form-submit input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 6px; border-radius: 14px; font-size: 15px;
}
.muzzy-write-review #respond input#submit:hover,
.muzzy-write-review .form-submit input[type="submit"]:hover { filter: brightness(1.07); }
.muzzy-write-review #respond input#submit:active,
.muzzy-write-review .form-submit input[type="submit"]:active { transform: scale(0.98); }

@media (max-width: 760px) { .muzzy-write-review { padding: 20px; } }
@media (max-width: 420px) {
  .muzzy-write-review { padding: 16px; border-radius: 12px; }
  .muzzy-review-photos__thumb { width: 60px; height: 60px; }
  .muzzy-review-photos__add { width: 100%; justify-content: center; padding: 12px 18px; }
}

/* --- "Recommended by moms and teachers" auto-scrolling marquee + lightbox --- */
.muzzy-recommended { padding: 60px 0 48px; text-align: center; overflow: hidden; }
.muzzy-recommended__inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muzzy-recommended__heading { font-family: var(--muzzy-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9b59b6; margin: 0 0 10px; }
.muzzy-recommended__title { font-family: var(--muzzy-font-head); font-size: 28px; font-weight: 800; color: #11151c; margin: 0 0 36px; line-height: 1.25; }
.muzzy-rec-marquee { overflow: hidden; width: 100%; touch-action: pan-y; }
.muzzy-rec-marquee__track { display: flex; gap: 16px; width: max-content; animation: muzzy-rec-rtl 30s linear infinite; pointer-events: none; user-select: none; -webkit-user-select: none; }
@keyframes muzzy-rec-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.muzzy-rec-marquee:hover .muzzy-rec-marquee__track,
.muzzy-rec-marquee.paused .muzzy-rec-marquee__track { animation-play-state: paused; }
.muzzy-rec-marquee__item { width: 260px; flex-shrink: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); background: #fff; line-height: 0; pointer-events: auto; cursor: pointer; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.muzzy-rec-marquee__item:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,0.16); }
.muzzy-rec-marquee__img { width: 100%; height: auto; display: block; object-fit: cover; }
@media (max-width: 640px) {
  .muzzy-rec-marquee__item { width: 190px; }
  .muzzy-recommended__title { font-size: 22px; }
}
.muzzy-rec-lightbox,
.muzzy-fb-lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; align-items: center; justify-content: center; padding: 20px 80px; }
.muzzy-rec-lightbox.open,
.muzzy-fb-lightbox.open { display: flex; }
.muzzy-rec-lightbox__img,
.muzzy-fb-lightbox__img { max-width: 90vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain; transition: opacity 0.2s ease; }
.muzzy-rec-lightbox__close,
.muzzy-fb-lightbox__close { position: fixed; top: 20px; right: 24px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 28px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.muzzy-rec-lightbox__close:hover,
.muzzy-fb-lightbox__close:hover { background: rgba(255,255,255,0.3); }
.muzzy-rec-lightbox__prev, .muzzy-rec-lightbox__next,
.muzzy-fb-lightbox__prev, .muzzy-fb-lightbox__next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 36px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; line-height: 1; }
.muzzy-rec-lightbox__prev, .muzzy-fb-lightbox__prev { left: 16px; }
.muzzy-rec-lightbox__next, .muzzy-fb-lightbox__next { right: 16px; }
.muzzy-rec-lightbox__prev:hover, .muzzy-rec-lightbox__next:hover,
.muzzy-fb-lightbox__prev:hover, .muzzy-fb-lightbox__next:hover { background: rgba(255,255,255,0.3); }
.muzzy-rec-lightbox__counter,
.muzzy-fb-lightbox__counter { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 13px; font-family: var(--muzzy-font-body); font-weight: 600; }
@media (max-width: 640px) {
  .muzzy-rec-lightbox, .muzzy-fb-lightbox { padding: 20px 52px; }
  .muzzy-rec-lightbox__prev, .muzzy-fb-lightbox__prev { left: 8px; }
  .muzzy-rec-lightbox__next, .muzzy-fb-lightbox__next { right: 8px; }
}

/* --- "Real People, Real Comments" Facebook marquee + lightbox + reviews bridge --- */
.muzzy-fb { font-family: var(--muzzy-font-body); padding: 56px 0 48px; background: #fafafa; border-top: 2px solid #e5e7eb; overflow: hidden; }
.muzzy-fb__inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muzzy-fb__header { text-align: center; margin-bottom: 36px; }
.muzzy-fb__badge { display: inline-flex; align-items: center; gap: 8px; background: #e7f0ff; border: 1.5px solid #bdd4ff; border-radius: 40px; padding: 6px 16px; margin-bottom: 14px; font-size: 12px; font-weight: 700; color: #1877f2; letter-spacing: 0.06em; text-transform: uppercase; }
.muzzy-fb__badge svg { flex-shrink: 0; }
.muzzy-fb__title { font-size: 26px; font-weight: 800; color: #11151c; margin: 0 0 8px; line-height: 1.2; }
.muzzy-fb__subtitle { font-size: 14px; color: #6b7280; }
.muzzy-fb-marquee { overflow: hidden; width: 100%; touch-action: pan-y; }
.muzzy-fb-marquee__track { display: flex; gap: 16px; width: max-content; animation: muzzy-fb-rtl 38s linear infinite; pointer-events: none; user-select: none; -webkit-user-select: none; }
@keyframes muzzy-fb-rtl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.muzzy-fb-marquee:hover .muzzy-fb-marquee__track,
.muzzy-fb-marquee.paused .muzzy-fb-marquee__track { animation-play-state: paused; }
.muzzy-fb__card { width: 280px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.10); background: #fff; transition: transform 0.22s ease, box-shadow 0.22s ease; cursor: pointer; line-height: 0; pointer-events: auto; }
.muzzy-fb__card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 28px rgba(0,0,0,0.16); }
.muzzy-fb__card img { width: 100%; height: auto; object-fit: cover; display: block; }
@media (max-width: 640px) { .muzzy-fb__card { width: 220px; } }
.muzzy-reviews-header-bridge { max-width: 1100px; margin: 0 auto; padding: 56px 20px 0; text-align: center; }
.muzzy-reviews-bridge__title { font-family: var(--muzzy-font-head); font-size: 26px; font-weight: 800; color: #11151c; margin: 0 0 8px; }
.muzzy-reviews-bridge__sub { font-family: var(--muzzy-font-body); font-size: 14px; color: #6b7280; margin: 0; }

/* --- "You May Also Like" related strip --- */
.muzzy-also-like { font-family: var(--muzzy-font-body); padding: 48px 0 60px; background: #fff; border-top: 2px solid #e5e7eb; }
.muzzy-also-like__inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muzzy-also-like__heading { text-align: center; font-size: 22px; font-weight: 800; color: #11151c; margin: 0 0 32px; letter-spacing: -0.01em; }
.muzzy-also-like__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.muzzy-also-like__dots { display: none; }
.muzzy-also-like__card { display: block; text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; border: 1.5px solid #e5e7eb; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; background: #fafafa; }
.muzzy-also-like__card:hover { border-color: #c247ff; box-shadow: 0 4px 20px rgba(194, 71, 255, 0.12); transform: translateY(-2px); }
.muzzy-also-like__img-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: #f3f4f6; }
.muzzy-also-like__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.muzzy-also-like__card:hover .muzzy-also-like__img-wrap img { transform: scale(1.04); }
.muzzy-also-like__info { padding: 14px 16px 16px; }
.muzzy-also-like__title { font-size: 15px; font-weight: 700; color: #11151c; margin-bottom: 5px; line-height: 1.3; }
.muzzy-also-like__price { font-size: 14px; font-weight: 600; color: #7226aa; }
@media (max-width: 640px) {
  .muzzy-also-like { padding: 28px 0 36px; }
  .muzzy-also-like__heading { font-size: 17px; margin-bottom: 16px; }
  .muzzy-also-like__scroll-wrap { position: relative; margin: 0 -20px; }
  .muzzy-also-like__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scrollbar-width: none;
    padding: 0 16px 14px;
  }
  .muzzy-also-like__grid::-webkit-scrollbar { display: none; }
  .muzzy-also-like__card { width: 38vw; min-width: 38vw; flex-shrink: 0; scroll-snap-align: start; }
  .muzzy-also-like__img-wrap { aspect-ratio: 3 / 4; }
  .muzzy-also-like__info { padding: 8px 10px 11px; }
  .muzzy-also-like__title { font-size: 12px; margin-bottom: 3px; line-height: 1.3; }
  .muzzy-also-like__price { font-size: 11px; }
  .muzzy-also-like__fade-right { position: absolute; right: 0; top: 0; bottom: 14px; width: 52px; background: linear-gradient(to left, #fff 30%, transparent); pointer-events: none; z-index: 1; }
  .muzzy-also-like__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .muzzy-also-like__dot { width: 6px; height: 6px; border-radius: 50%; background: #d1d5db; transition: background 0.2s ease, transform 0.2s ease; }
  .muzzy-also-like__dot.active { background: #7226aa; transform: scale(1.3); }
}

/* --- Product cards (shop + related); theme.css isn't loaded on WC pages --- */
.woocommerce ul.products { gap: 24px; }
.product-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--muzzy-lav-line); border-radius: var(--muzzy-radius, 18px); box-shadow: 0 10px 28px rgba(44,25,74,0.08); overflow: hidden; }
.product-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--muzzy-lav); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__media span, .product-card__badge { position: absolute; top: 10px; left: 10px; padding: 6px 9px; color: #fff; background: var(--muzzy-purple); border-radius: 10px; font-size: 0.74rem; font-weight: 800; }
.product-card__body { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; }
.product-card__rating { display: flex; justify-content: center; line-height: 1; }
.product-card__stars, .product-card .star-rating { color: #ffb400; font-size: 0.95rem; letter-spacing: 1px; }
.product-card__title { margin: 0; font-size: 1.02rem; line-height: 1.2; }
.product-card__title a { text-decoration: none; color: var(--muzzy-ink); }
.product-card__price { font-family: var(--muzzy-font-head); font-weight: 800; color: var(--muzzy-purple-dark); font-size: 1.02rem; }
.product-card__price del { color: #9a8aa6; font-weight: 700; margin-right: 5px; }
.product-card__price ins { text-decoration: none; color: var(--muzzy-purple-dark); }
.woocommerce a.button.product-card__add { margin-top: auto; width: 100%; }

/* =====================================================================
   Search results (search.php) — branded product grid in mirror chrome
   ===================================================================== */
.muzzy-search { background: #fff; }
.muzzy-search__inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 72px; }
.muzzy-search__head { text-align: center; margin-bottom: 36px; }
.muzzy-search__eyebrow { margin: 0 0 6px; font-family: var(--muzzy-font-head); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muzzy-purple-dark); }
.muzzy-search__title { margin: 0; font-family: var(--muzzy-font-head); font-weight: 800; font-size: clamp(26px, 4vw, 40px); color: var(--muzzy-ink); }
.muzzy-search__count { margin: 10px 0 0; color: #6b7280; font-weight: 600; }
/* Explicit grid so it doesn't depend on WooCommerce's plugin CSS being loaded. */
.muzzy-search__results ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.muzzy-search__results ul.products::before,
.muzzy-search__results ul.products::after { content: none; display: none; }
.muzzy-search__results ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.muzzy-search__pagination { margin-top: 44px; }
.muzzy-search__pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.muzzy-search__pagination a, .muzzy-search__pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--muzzy-lav-line); font-family: var(--muzzy-font-head); font-weight: 800; color: var(--muzzy-ink); text-decoration: none; }
.muzzy-search__pagination a:hover { border-color: var(--muzzy-purple); color: var(--muzzy-purple-dark); }
.muzzy-search__pagination .current { background: var(--muzzy-grad); border-color: transparent; color: #fff; }
.muzzy-search__empty { max-width: 520px; margin: 0 auto; padding: 28px; text-align: center; background: var(--muzzy-lav); border: 1px solid var(--muzzy-lav-line); border-radius: var(--muzzy-radius); }
.muzzy-search__empty h2 { margin: 0 0 8px; font-family: var(--muzzy-font-head); font-weight: 800; }
.muzzy-search__empty p { margin: 0 0 20px; color: #5d574c; }
.muzzy-search__empty-cta { display: inline-block; }

@media (max-width: 900px) {
  .muzzy-search__results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .muzzy-search__inner { padding: 32px 16px 56px; }
  .muzzy-search__results ul.products { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  .muzzy-pdp { padding: 20px 0 40px; }
  .muzzy-pdp__grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .muzzy-pdp__info { position: static; }
  .muzzy-gallery__arrow { width: 38px; height: 38px; }
  .muzzy-variants__options { flex-wrap: nowrap; }
  .woocommerce .muzzy-variant-btn { min-width: 64px; padding: 6px; }
  .muzzy-variant-btn__img { width: 48px; height: 48px; }
  .muzzy-variant-btn__name { font-size: clamp(9px,2.8vw,11px); }
  .muzzy-trust-icons { gap: 12px; }
  .muzzy-trust-icons__item { min-width: calc(50% - 8px); }
  .muzzy-pdp-section { padding-top: 38px; }
}

@media (max-width: 420px) {
  .muzzy-page-width { padding: 0 16px; }
  .muzzy-trust-bar { gap: 8px 13px; }
  .muzzy-trust-bar__item { font-size: 10px; }
  .muzzy-social-proof { padding: 12px; }
  .muzzy-price { font-size: 25px; }
  .muzzy-purchase .woocommerce-variation-add-to-cart { grid-template-columns: 1fr; }
  .woocommerce .muzzy-purchase .single_add_to_cart_button { grid-column: 1; }
}

/* =====================================================================
   Video section — shown only when the product has a video URL set
   ===================================================================== */
.muzzy-pdp-video { text-align: center; --muzzy-video-ratio: 9 / 16; }
.muzzy-videos__head { text-align: center; margin-bottom: 28px; }
.muzzy-videos__eyebrow { margin: 0 0 8px; color: #7226aa; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.muzzy-videos__title { margin: 0; color: #11151c; font-size: clamp(22px,3vw,30px); font-weight: 700; line-height: 1.2; }
.muzzy-videos__wrap { position: relative; }
.muzzy-videos__track { display: flex; gap: 18px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px; }
.muzzy-videos__track::-webkit-scrollbar { display: none; }
.muzzy-videos--single .muzzy-videos__track { justify-content: center; }
.muzzy-videos__card { position: relative; flex: 0 0 auto; width: min(78%, 300px); aspect-ratio: var(--muzzy-video-ratio, 9 / 16); scroll-snap-align: center; border-radius: 16px; overflow: hidden; background: #0d0d0f; box-shadow: 0 10px 30px rgba(17,21,28,.14); }
.muzzy-videos--single .muzzy-videos__card { width: min(100%, 380px); }
.muzzy-videos__player { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; cursor: pointer; }
.muzzy-videos__overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.woocommerce .muzzy-videos__playpause { pointer-events: auto; width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; border: none; background: rgba(17,21,28,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.9); box-shadow: none; transition: opacity .2s, transform .2s, background .2s; }
.muzzy-videos__card:hover .muzzy-videos__playpause, .muzzy-videos__card.is-paused .muzzy-videos__playpause { opacity: 1; transform: scale(1); }
.woocommerce .muzzy-videos__playpause:hover { background: #7226aa; }
.woocommerce .muzzy-videos__sound { position: absolute; bottom: 12px; right: 12px; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; border: none; background: rgba(17,21,28,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: none; z-index: 2; transition: background .2s, transform .2s; }
.woocommerce .muzzy-videos__sound:hover { background: #c247ff; transform: scale(1.06); }
@media (min-width: 769px) { .muzzy-videos__track { justify-content: center; } }

/* =====================================================================
   Klaviyo Back-In-Stock "Notify Me" card
   ===================================================================== */
.muzzy-bis-container[hidden] { display: none; }
/* Set server-side on first paint (content-single-product.php) when nothing on
   the product is purchasable, and kept in sync by single-product.js's
   showBIS() afterward — hide WooCommerce's own add/buy/qty controls and its
   default out-of-stock notice so the Notify Me card is the only sold-out
   messaging shown, not a duplicate. */
.muzzy-purchase[data-muzzy-bis-active] .single_add_to_cart_button,
.muzzy-purchase[data-muzzy-bis-active] .muzzy-buy-now,
.muzzy-purchase[data-muzzy-bis-active] .muzzy-qty-row,
.muzzy-purchase[data-muzzy-bis-active] .quantity,
.muzzy-purchase[data-muzzy-bis-active] .out-of-stock {
  display: none !important;
}
.muzzy-bis-card {
  margin: 0 0 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8edff 0%, #f0e0ff 100%);
  border: 1.5px solid rgba(194, 71, 255, 0.25);
  border-radius: 12px;
  text-align: center;
}
.muzzy-bis-card__title {
  margin: 0 0 6px;
  color: #7226aa;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muzzy-bis-card__desc {
  margin: 0 0 14px;
  color: #5d4670;
  font-size: 13px;
  line-height: 1.5;
}
.muzzy-bis-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.muzzy-bis-form__email {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  color: #11151c;
  font-family: var(--muzzy-font-body);
  font-size: 14px;
  background: #fff;
  border: 1.5px solid rgba(194, 71, 255, 0.3);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.muzzy-bis-form__email:focus {
  border-color: #c247ff;
  box-shadow: 0 0 0 3px rgba(194, 71, 255, 0.12);
}
.muzzy-bis-form__email::placeholder { color: #9ca3af; }
.muzzy-bis-form__submit {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 20px;
  color: #fff;
  font-family: var(--muzzy-font-body);
  font-size: 14px;
  font-weight: 700;
  background: #7226aa;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.muzzy-bis-form__submit:hover { background: #c247ff; }
.muzzy-bis-card__success {
  margin: 12px 0 0;
  padding: 10px 14px;
  color: #2d6a4f;
  font-size: 13px;
  font-weight: 700;
  background: #d8f3dc;
  border-radius: 8px;
}
.muzzy-bis-card__success[hidden] { display: none; }

/* =====================================================================
   Enhanced pre-order card
   ===================================================================== */
.muzzy-preorder-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 5px 12px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.muzzy-preorder-card__badge svg { color: #92400e; }
.muzzy-preorder-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.muzzy-preorder-card__head .muzzy-preorder-card__badge,
.muzzy-preorder-card__head .muzzy-preorder-card__status { margin-bottom: 0; }
.muzzy-preorder-card__contact { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(212, 173, 86, 0.3); color: #5d574c; font-size: 12px; font-weight: 600; }
.muzzy-preorder-card__contact a { color: #7226aa; font-weight: 700; text-decoration: none; }
.muzzy-preorder-card__contact a:hover { text-decoration: underline; }
.muzzy-preorder-card__urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  color: #92400e;
  background: rgba(212, 173, 86, 0.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.muzzy-preorder-card__urgency svg {
  flex: 0 0 auto;
  color: #d4ad56;
}

/* ---- Sold-out variant visual treatment ---- */
.woocommerce .muzzy-variant-btn.sold-out {
  opacity: 0.5;
  cursor: pointer; /* allow click to show BIS */
  position: relative;
}
.woocommerce .muzzy-variant-btn.sold-out::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 1.5px;
  background: #9ca3af;
  transform: rotate(-12deg);
}

@media (max-width: 768px) {
  .muzzy-video-wrapper { border-radius: 8px; }
  .muzzy-bis-form { flex-direction: column; }
  .muzzy-bis-form__submit { width: 100%; }
}

@media (max-width: 420px) {
  .muzzy-video-wrapper { border-radius: 6px; }
  .muzzy-preorder-card__urgency { font-size: 11px; }
}

/* Match the Shopify PDP exactly: solid purple Add to Cart, solid black Buy Now,
   modest radius. WooCommerce 10.9+ and a brand gradient style otherwise paint a
   purple gradient pill on every .button via the background-image layer, which
   sits over our background-color. Force the gradient off with high specificity. */
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .single_add_to_cart_button,
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .muzzy-buy-now {
  background-image: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .single_add_to_cart_button {
  background: #7226aa !important;
  background-color: #7226aa !important;
}
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .single_add_to_cart_button:hover {
  background: #c247ff !important;
  background-color: #c247ff !important;
}
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .muzzy-buy-now {
  background: #11151c !important;
  background-color: #11151c !important;
}
.woocommerce .muzzy-single-product .muzzy-pdp .muzzy-purchase .muzzy-buy-now:hover {
  background: #2a2f3a !important;
  background-color: #2a2f3a !important;
}

