/* =============================================================
   Zippy — theme layer. Loaded after the ported reference CSS (base / page / core).
   Only things the reference gets from React/MUI at runtime, or that Limpo adds, live here:
   MUI-free equivalents of the header search shell, the scroll-reveal gating, rails, phone menu,
   popovers, toast, WhatsApp bubble, and the pages the reference does not ship as static HTML
   (cart, checkout, auth, wishlist, blog, order confirmation …).
   ============================================================= */

[hidden] { display: none !important; }
.zp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.zp-skip { position: absolute; left: -9999px; top: 0; z-index: 3000; background: #fff; color: #000; padding: 8px 12px; }
.zp-skip:focus { left: 8px; top: 8px; }
.zp img { max-width: 100%; }
.zp main { display: block; min-height: 40vh; }

/* ── search shell (the reference builds this from MUI Grid / Paper / Input; same computed styles) ── */
.zp-grid-row { box-sizing: border-box; display: flex; flex-wrap: wrap; width: 100%; flex-direction: row; }
.zp-grid-item { box-sizing: border-box; margin: 0; flex-direction: row; flex-basis: 100%; flex-grow: 0; max-width: 100%; }
.zp-paper { background-color: #fff; color: rgba(0, 0, 0, .87); box-shadow: none; margin: 0; }
.zp-input-root { font-family: inherit; font-weight: 400; font-size: 1rem; line-height: 1.4375em; letter-spacing: .00938em; color: rgba(0, 0, 0, .87); box-sizing: border-box; position: relative; cursor: text; display: inline-flex; align-items: center; width: 100%; }
.zp-input { font: inherit; letter-spacing: inherit; color: currentColor; padding: 4px 0 5px; border: 0; box-sizing: content-box; background: none; height: 1.4375em; margin: 0; display: block; min-width: 0; width: 100%; outline: 0; }
.zp-input::placeholder { color: currentColor; opacity: .42; }
.zp-icon-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; box-sizing: border-box; background: transparent; outline: 0; border: 0; margin: 0; border-radius: 50%; padding: 8px; cursor: pointer; flex: 0 0 auto; font-size: 1.5rem; color: rgba(0, 0, 0, .54); }
.zp-icon-btn:hover { background-color: rgba(0, 0, 0, .04); }
.zp .search-box { position: relative; }
.zp .search-btn-hidden { display: inline-flex; }
.zp .st-dynamic-placeholder { z-index: 1; }
.zp .search-dropdown { z-index: 1100; }
.zp .search-dropdown-panel a.search-result { text-decoration: none; }
.zp .search-result:hover { background: #f6f6f6; }
.zp .search-result > span:first-child { min-width: 0; }

/* ── header bits ── */
.zp .desktop-store-logo { display: flex; align-items: center; }
.zp .desktop-login-button, .zp .desktop-cart-button { text-decoration: none; }
.zp .desktop-login-button svg { width: 20px; height: 20px; }
.zp .desktop-cart-button { width: 20px; height: 20px; }
.zp .badge-icon-count[hidden] { display: none; }
.zp .desktop-header-menu .nav-item { position: relative; }
.zp .desktop-header-menu .nav-item[hidden] { display: none; }
.zp .zp-popover { position: absolute; top: 100%; left: 0; display: none; }
.zp .nav-item.has-children:hover > .zp-popover,
.zp .nav-item.has-children:focus-within > .zp-popover,
.zp .overflow-more-button.is-open > .zp-popover { display: block; }
.zp .overflow-menu-popover.align-right { left: auto; right: 0; }
.zp .nav-item { cursor: default; }
.zp .nav-item .nav-link { white-space: nowrap; }

/* ── phone header (rendered by React under 768px in the reference) ── */
@media (min-width: 768px) { .zp .new-header { display: none; } }
.zp .new-header { background: var(--secondary-main, #97134D); }
.zp .new-header .header-top { position: relative; align-items: center; padding-left: 44px; min-height: 40px; }
.zp .new-header .mobile-menu-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 10; border: 0; background: hsla(0, 0%, 100%, .9); border-radius: 8px; padding: 8px; display: flex; color: #111; cursor: pointer; }
.zp .new-header .header-top-left { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.zp .new-header .store-logo { display: flex; align-items: center; }
.zp .new-header .store-logo img { height: 36px; width: auto; max-width: 150px; object-fit: contain; }
.zp .new-header .title-punchline { display: none; }
.zp .new-header .mobile-icons { position: static; display: flex; align-items: center; gap: 14px; margin-left: auto; }
.zp .new-header .icon-button-mobile { color: var(--header-contrast-text, #fff); text-decoration: none; position: relative; }
.zp .new-header .zp-mobile-icon { fill: currentColor; }
.zp .new-header .badge-icon-count { background: #fff; color: var(--secondary-main, #97134D); right: -4px; top: -4px; }
.zp .new-header .header-search .search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 24px; padding: 10px 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.zp .zp-mobile-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: #000; }
.zp .header-categories { padding-bottom: 2px; }
.zp .mobile-menu { visibility: hidden; }
.zp .mobile-menu.open { visibility: visible; }
.zp .mobile-menu .mobile-submenu-header strong { font-size: 18px; }
.zp .mobile-menu .mobile-menu-item svg { width: 16px; height: 16px; transition: transform .2s; }
.zp .zp-drawer-group.is-open > .mobile-menu-item svg { transform: rotate(180deg); }
.zp .zp-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1550; }
.zp .mobile-menu { z-index: 1600; }

/* ── bottom nav icons: the reference sizes these through MUI classes ── */
.zp .bottom-nav-icon { fill: none; }
.zp .bottom-nav-item.active .bottom-nav-icon { stroke: var(--secondary-main, #ec4899); }
.zp .bottom-nav-indicator { width: 32px; height: 3px; }
body.zp { padding-bottom: 0; }
@media (max-width: 767px) { body.zp { padding-bottom: 64px; } }

/* ── rails: native scroll-snap standing in for Swiper ── */
.zp .swiper[data-rail] { overflow: hidden; position: relative; }
.zp .swiper[data-rail] .swiper-wrapper { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; transform: none; }
.zp .swiper[data-rail] .swiper-wrapper::-webkit-scrollbar { display: none; }
.zp .swiper[data-rail] .swiper-slide { scroll-snap-align: start; }
.zp .swiper-button-prev, .zp .swiper-button-next { cursor: pointer; }
.zp .swiper-button-prev[hidden], .zp .swiper-button-next[hidden] { display: none; }
.zp .product-swiper .swiper-button-prev, .zp .product-swiper .swiper-button-next,
.zp .genric-coll-swiper .swiper-button-prev, .zp .genric-coll-swiper .swiper-button-next,
.zp .zp-banner-swiper .swiper-button-prev, .zp .zp-banner-swiper .swiper-button-next { z-index: 5; }
@media (max-width: 767px) {
  .zp .swiper-button-prev, .zp .swiper-button-next { display: none; }
}
.zp .zp-banner-slide { width: calc((100% - 20px) / 2); flex: 0 0 auto; margin-right: 20px; }
@media (max-width: 767px) { .zp .zp-banner-slide { width: 100%; margin-right: 8px; } }
.zp .zp-banner-swiper { overflow: hidden; }

/* ── scroll reveal is only armed once main.js has run ── */
html:not(.zp-js) .scroll-animate-item, html:not(.zp-js) .scroll-animate-fade-up,
html:not(.zp-js) .image-reveal { opacity: 1 !important; transform: none !important; }

/* ── banners: merchant text laid over the image, only when a banner has copy ── */
.zp .banner-image-container { position: relative; }
.zp .banner-image-container picture { display: contents; }
.zp .zp-banner-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); border-radius: 0 0 12px 12px; }
.zp .zp-banner-copy__title { font-size: 20px; line-height: 1.2; font-weight: 700; }
.zp .zp-banner-copy__sub, .zp .zp-banner-copy__text { font-size: 13px; opacity: .92; }
.zp .banner-collection a { display: block; text-decoration: none; }

/* ── notice strip (announcements) ── */
.zp .zp-notice { display: flex; flex-direction: column; min-height: 36px; }
.zp .zp-notice p { margin: 0; }
.zp .zp-notice a { text-decoration: underline; margin-left: 6px; }

/* ── product card additions ── */
.zp .product-card { position: relative; }
.zp .product-card-add-button { text-decoration: none; cursor: pointer; }
.zp .product-card-add-button.is-soldout { color: #777; border-color: #bbb; background: #f4f4f4; font-size: 11px; }
.zp .product-card-add-button.is-busy { opacity: .6; }
.zp .product-card-variant-chip { text-decoration: none; }
.zp .product-card-wishlist.is-on svg { fill: var(--secondary-main, #97134D); stroke: var(--secondary-main, #97134D); }
.zp .product-card-name-link { text-decoration: none; color: inherit; }
.zp .zp-rating-star { flex-shrink: 0; }
.zp .zp-rating-star path { fill: var(--secondary-main, #97134D); stroke: var(--secondary-main, #97134D); }
.zp .zp-viewall { text-align: center; margin: 24px 0 8px; }

/* ── buttons / empty states ── */
.zp .zp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 28px; border-radius: 8px; border: 1px solid var(--button-main, #97134D); background: var(--button-main, #97134D); color: var(--button-contrast-text, #fff); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; letter-spacing: .02em; }
.zp .zp-btn:hover { opacity: .92; }
.zp .zp-btn--outline { background: #fff; color: var(--button-main, #97134D); }
.zp .zp-btn--block { display: flex; width: 100%; }
.zp .zp-btn[disabled], .zp .zp-btn.is-disabled { opacity: .5; pointer-events: none; }
.zp .zp-empty { text-align: center; padding: 64px 16px; }
.zp .zp-empty h1, .zp .zp-empty h2 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.zp .zp-empty p { color: #666; margin: 0 0 20px; }

/* ── toast / whatsapp / lightbox ── */
.zp-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 3000; max-width: calc(100% - 32px); }
.zp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .zp-toast { bottom: 32px; } }
.zp-whatsapp { position: fixed; left: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--secondary-main, #97134D); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 1200; }
.zp-whatsapp svg { fill: currentColor; }
@media (max-width: 767px) { .zp-whatsapp { bottom: 76px; width: 48px; height: 48px; } }
.zp-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 4000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.zp-lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; background: #fff; border-radius: 8px; }
.zp-lightbox button { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* ── breadcrumbs + pagination (listing / product) ── */
.zp .zp-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 14px; color: #666; }
.zp .zp-breadcrumbs a { text-decoration: none; color: #666; }
.zp .zp-breadcrumbs .breadcrumb-sep { margin: 0 6px; color: #999; }
.zp .zp-breadcrumbs .breadcrumb-current { color: #1a1a1a; }
.zp .zp-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 32px 0; flex-wrap: wrap; }
.zp .zp-pager__num, .zp .zp-pager__arrow { min-width: 36px; height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: #1a1a1a; font-size: 14px; background: #fff; }
.zp .zp-pager__num.is-current { background: var(--secondary-main, #97134D); border-color: var(--secondary-main, #97134D); color: #fff; }
.zp .zp-pager .is-disabled { opacity: .4; pointer-events: none; }
.zp .zp-pager__gap { color: #999; }

/* ── product page additions ── */
.zp .product-page { min-height: 60vh; }
.zp .breadcrumb { display: flex; flex-wrap: wrap; }
.zp .zp-pdp-wish.is-on svg { fill: var(--secondary-main, #97134D); stroke: var(--secondary-main, #97134D); }
.zp .zp-stock-out { color: #b91c1c; font-size: 13px; font-weight: 600; }
.zp .zp-short-desc { margin: 0; color: #555; font-size: 14px; line-height: 1.6; }
.zp .product-detail-action-button { text-decoration: none; display: flex; align-items: center; justify-content: center; background: none; cursor: pointer; }
.zp .zp-pin { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; }
.zp .zp-pin input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit; }
.zp .zp-pin button { height: 44px; padding: 0 18px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.zp .zp-policy-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; margin: 12px 0 0; }
.zp .zp-policy-links a { color: var(--secondary-main, #97134D); text-decoration: underline; }
.zp .zp-sold-by { font-size: 13px; color: #666; margin: 12px 0 0; }
.zp .zp-link-btn { background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; padding: 0; }
.zp .zp-review-form { border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.zp .zp-review-form h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.zp .zp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: #555; }
.zp .zp-field input, .zp .zp-field select, .zp .zp-field textarea { border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; color: #1a1a1a; background: #fff; }
.zp .zp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .zp .zp-field-row { grid-template-columns: 1fr; } }
.zp .zp-table-scroll { overflow-x: auto; }
.zp .product-detail-add-to-cart-button { flex: 1; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.zp .product-detail-add-outlined { background: #fff; color: var(--button-main, #97134D); border: 1px solid var(--button-main, #97134D); }
.zp .product-detail-buy-now-button { background: var(--button-main, #97134D); color: #fff; border: 1px solid var(--button-main, #97134D); }
.zp .product-detail-buttons-container { display: flex; gap: 12px; }
.zp .product-detail-buy-now-button.is-disabled { opacity: .6; pointer-events: none; }
.zp .main-swiper { position: relative; }
@media (max-width: 767px) { .zp .product-page .swiper-button-prev, .zp .product-page .swiper-button-next { display: none; } }
.zp .expandable-section-title { white-space: nowrap; flex-shrink: 0; }
.zp .expandable-html-section > .flex, .zp .expandable-features-section > .flex { margin-bottom: 12px; }

/* ── listing ── */
.zp .zp-listing { min-height: 50vh; }
.zp .category-header-container.desk-hide-lg { z-index: 40; }
.zp .zp-cat-banner img { width: 100%; border-radius: 12px; display: block; margin-bottom: 16px; }
.zp .zp-cat-desc { color: #555; margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.zp .zp-side-heading { font-size: 14px; font-weight: 600; padding: 4px 12px 10px; color: #1a1a1a; }
.zp .zp-side-initial { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; color: #97134D; background: #f3eef1; }
.zp .category-sidebar__img.zp-side-initial { width: 40px; height: 40px; }
.zp .category-sidebar { text-decoration: none; }
.zp .category-sidebar__item { display: flex; text-decoration: none; padding: 4px 2px; }
.zp .zdcs-item { display: flex; text-decoration: none; }
.zp .zp-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: #1a1a1a; cursor: pointer; position: relative; }
.zp .zp-chip svg { flex-shrink: 0; }
.zp .zp-chip--select select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; padding-right: 18px; cursor: pointer; outline: 0; }
.zp .zp-chip--select svg { position: absolute; right: 8px; pointer-events: none; }
.zp .zp-sort { margin: 0; display: inline-flex; }
.zp .zp-count { margin-left: auto; color: #666; font-size: 14px; }
.zp .desktop-sidebar-wrapper { top: 80px; }

/* filter panel */
.zp-filters-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 2400; }
.zp-filters { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; z-index: 2500; transform: translateX(100%); transition: transform .25s ease; visibility: hidden; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(0, 0, 0, .12); }
.zp-filters[data-open="true"] { transform: none; visibility: visible; }
.zp-filters__form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.zp-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #e6e6e6; }
.zp-filters__head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.zp-filters__head h2 span { color: var(--secondary-main, #97134D); font-size: 14px; }
.zp-filters__close { background: none; border: 0; cursor: pointer; padding: 4px; display: flex; }
.zp-filters__body { flex: 1; overflow-y: auto; }
.zp-filters fieldset { border: 0; border-bottom: 1px solid #e6e6e6; margin: 0; min-width: 0; }
.zp-filters legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.zp-filters legend + * { clear: both; }
.zp-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zp-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.zp-check input { width: 16px; height: 16px; accent-color: var(--secondary-main, #97134D); }
.zp-check__count { color: #929391; }
.zp-price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zp-price-box input { width: 100%; border: 1px solid #e0e0e0; border-radius: 6px; padding: 10px; font: inherit; box-sizing: border-box; }
.zp-filters__foot { display: flex; }
.zp-filters__foot > * { flex: 1; text-align: center; background: #fff; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 14px 16px; text-decoration: none; color: #1a1a1a; }
.zp-filters__foot .filter-apply-btn { color: #fff; background: var(--button-main, #97134D); }
@media (max-width: 767px) {
  .zp-filters { top: auto; left: 0; width: 100%; max-height: 85vh; border-radius: 16px 16px 0 0; transform: translateY(100%); }
}
.zp { --desk-header-height: 126px; --category-header-height: 56px; }
@media (max-width: 1023px) { .zp .zp-toolbar { top: var(--category-header-height); } }
.zp .zp-toolbar { z-index: 35; }

.zp .desktop-delivery-location { min-height: 47.3px; }

/* the reference gives product pages their own chrome on phones: image with back/search/share, sticky Add/Buy bar, no tab bar */
@media (max-width: 767px) {
  body.template-product .new-header, body.template-product .bottom-navigation { display: none; }
  body.template-product { padding-bottom: 0; }
  body.template-product .product-page { padding-bottom: 84px; }
  body.template-product .zp-whatsapp { bottom: 96px; }
  /* listing pages use their own back / title / search bar instead of the big header */
  body.template-collection .new-header, body.template-search .new-header { display: none; }
}

/* tablets (768-1023px): the reference hides the text menu bar there, so a burger opens the same slide-in menu */
.zp .zp-tablet-burger { display: none; color: #111; background: none; border: 0; cursor: pointer; }
/* sits in the header's 40px side padding, so the logo, search and icons stay exactly where the reference puts them */
@media (min-width: 768px) and (max-width: 1023px) { .zp .zp-tablet-burger { display: flex; position: absolute; left: 6px; top: 28px; padding: 4px; margin: 0; } }
.zp .zp-mobile-menu { max-width: 100%; }
.zp .zp-filters .price-filter-container { padding: 16px; border-bottom: 1px solid #e6e6e6; }
.zp .zp-filters .filter-container { padding: 16px; }

@media (max-width: 767px) { .zp .zp-count { display: none; } }
@media (max-width: 767px) { .zp .zp-sort-label { display: none; } }
.zp .zp-sort-label { margin-right: 4px; }
