/* ==========================================================================
   Misho Mart Pro — Shop styles
   Grid/list layouts, filter sidebar + active chips, product cards,
   badges, Quick View modal, cart drawer, wishlist/compare pages,
   countdown, sticky add-to-cart bar, gallery slider, mobile shop.
   Uses the theme variables from style.css (:root --mmp-*).
   ========================================================================== */

/* ---------- Shop layout ---------- */
.mmp-shop-wrap { padding: 28px 0 64px; }
.mmp-shop-container { max-width: var(--mmp-container, 1240px); }
.mmp-shop-title { font-family: var(--mmp-font-head); color: var(--mmp-navy); font-size: 1.7rem; font-weight: 800; margin: 0 0 18px; }
.mmp-shop-layout { display: flex; gap: 28px; align-items: flex-start; }
.mmp-shop-layout--right .mmp-shop-sidebar { order: 0; }
.mmp-shop-layout--right .mmp-shop-content { order: 1; }
.mmp-shop-layout--left .mmp-shop-sidebar { order: 1; }
.mmp-shop-layout--left .mmp-shop-content { order: 0; }
.mmp-shop-content { flex: 1; min-width: 0; }
.mmp-shop-sidebar { width: 264px; flex: 0 0 264px; }
.mmp-shop-sidebar__widgets { margin-top: 24px; }
.mmp-shop-sidebar__widgets .widget { margin-bottom: 24px; }
.mmp-sidebar-close { display: none; }
.mmp-shop-sidebar__overlay { display: none; }

/* ---------- Toolbar: view toggle, result count, sorting ---------- */
.mmp-shop-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; background: var(--mmp-bg-soft); border: 1px solid var(--mmp-border-soft); border-radius: var(--mmp-radius-sm); }
.mmp-view-toggle { display: inline-flex; border: 1px solid var(--mmp-border); border-radius: 8px; overflow: hidden; background: #fff; }
.mmp-view-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 0; background: transparent; color: var(--mmp-text-muted); cursor: pointer; transition: var(--mmp-transition); }
.mmp-view-btn:hover { color: var(--mmp-navy); background: var(--mmp-bg-soft); }
.mmp-view-btn.is-active { background: var(--mmp-navy); color: #fff; }
.mmp-filters-toggle { display: none; align-items: center; gap: 6px; border: 1px solid var(--mmp-border); background: #fff; color: var(--mmp-navy); font-family: var(--mmp-font-head); font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.mmp-shop-toolbar .woocommerce-result-count { margin: 0; margin-inline-start: auto; color: var(--mmp-text-muted); font-size: .9rem; }
.mmp-shop-toolbar .woocommerce-ordering { margin: 0; }
.mmp-shop-toolbar .woocommerce-ordering select { font-family: var(--mmp-font-body); font-size: .9rem; padding: 8px 10px; border: 1px solid var(--mmp-border); border-radius: 8px; background: #fff; color: var(--mmp-text); cursor: pointer; }

/* Active filter chips */
.mmp-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mmp-active-filters:empty { display: none; }
.mmp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--mmp-purple-soft); color: var(--mmp-navy); border: 1px solid #ddd6fe; font-size: .82rem; font-weight: 700; padding: 5px 6px 5px 12px; border-radius: 999px; }
.mmp-chip button { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--mmp-navy); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.mmp-chip--clear { background: #fff; border-color: var(--mmp-border); color: var(--mmp-text-muted); cursor: pointer; }

/* ---------- Filter sidebar ---------- */
.mmp-filters { background: #fff; border: 1px solid var(--mmp-border-soft); border-radius: var(--mmp-radius); padding: 20px; }
.mmp-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mmp-filters__head h3 { font-family: var(--mmp-font-head); font-size: 1.05rem; font-weight: 800; color: var(--mmp-navy); margin: 0; }
.mmp-filters__clear { border: 0; background: none; color: var(--mmp-red); font-family: var(--mmp-font-body); font-size: .82rem; font-weight: 700; cursor: pointer; padding: 4px 0; }
.mmp-filter-group { padding: 16px 0; border-top: 1px solid var(--mmp-border-soft); }
.mmp-filter-group__title { font-family: var(--mmp-font-head); font-size: .92rem; font-weight: 800; color: var(--mmp-navy); margin: 0 0 10px; }
.mmp-filter-list { list-style: none; margin: 0; padding: 0; }
.mmp-filter-list li { margin-bottom: 6px; }
.mmp-filter-list label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--mmp-text); cursor: pointer; }
.mmp-filter-list label:hover { color: var(--mmp-purple); }
.mmp-filter-list input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--mmp-purple); cursor: pointer; flex: 0 0 auto; }
.mmp-filter-list em { font-style: normal; color: var(--mmp-text-light); font-size: .8rem; margin-inline-start: auto; }
.mmp-price-slider__values { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--mmp-navy); margin-bottom: 10px; }
.mmp-price-slider input[type="range"] { width: 100%; accent-color: var(--mmp-orange); cursor: pointer; margin: 4px 0; }

/* ---------- Product grid / list ---------- */
.mmp-products-wrap { position: relative; }
.mmp-products-wrap.is-loading { opacity: .45; pointer-events: none; }
.mmp-products-wrap.is-loading::after { content: ""; position: absolute; inset: 40% auto auto 50%; width: 36px; height: 36px; margin-inline-start: -18px; border: 3px solid var(--mmp-purple-soft); border-top-color: var(--mmp-purple); border-radius: 50%; animation: mmp-spin .8s linear infinite; }
@keyframes mmp-spin { to { transform: rotate(360deg); } }
ul.products.mmp-products,
.woocommerce ul.products { display: grid; gap: 20px; }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.woocommerce ul.products.columns-4 { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, 1fr); }
.woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, 1fr); }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; clear: none !important; }

/* List view */
body.mmp-view-list ul.products { grid-template-columns: 1fr; }
body.mmp-view-list .mmp-card { display: flex; }
body.mmp-view-list .mmp-card__media { flex: 0 0 280px; }
body.mmp-view-list .mmp-card__body { flex: 1; padding: 22px; justify-content: center; }
body.mmp-view-list .mmp-card__title { font-size: 1.15rem; }
body.mmp-view-list .mmp-card__foot .button { width: auto; padding-inline: 28px; }

/* ---------- Product card ---------- */
.mmp-card { background: #fff; border: 1px solid var(--mmp-border-soft); border-radius: var(--mmp-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: var(--mmp-transition); }
.mmp-card:hover { box-shadow: var(--mmp-shadow); transform: translateY(-3px); border-color: #ddd6fe; }
.mmp-card__media { position: relative; overflow: hidden; }
.mmp-card__link { display: block; }
.mmp-art-panel { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.mmp-art--g1 { background: linear-gradient(135deg, #2D1B69, #5B2EE5); }
.mmp-art--g2 { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.mmp-art--g3 { background: linear-gradient(135deg, #FF6B1A, #F59E0B); }
.mmp-art--g4 { background: linear-gradient(135deg, #0E7490, #22C55E); }
.mmp-art--g5 { background: linear-gradient(135deg, #BE123C, #F97316); }
.mmp-art--g6 { background: linear-gradient(135deg, #1E3A8A, #06B6D4); }
.mmp-art-panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mmp-art-panel__img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.mmp-art-panel__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: var(--mmp-transition); }
.mmp-card:hover .mmp-art-panel__img img { transform: scale(1.05); }
.mmp-art-panel__placeholder { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; color: #fff; }
.mmp-art-panel__cat { font-family: var(--mmp-font-head); font-weight: 800; font-size: 1.05rem; }
.mmp-badges { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mmp-badge { display: inline-block; font-family: var(--mmp-font-head); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: #fff; line-height: 1.5; }
.mmp-badge--sale { background: var(--mmp-red); }
.mmp-badge--new { background: var(--mmp-green); }
.mmp-badge--best { background: var(--mmp-gold); color: #451a03; }
.mmp-card__actions { position: absolute; bottom: 12px; inset-inline-start: 12px; inset-inline-end: 12px; z-index: 3; display: flex; gap: 8px; justify-content: center; opacity: 0; transform: translateY(8px); transition: var(--mmp-transition); }
.mmp-card:hover .mmp-card__actions,
.mmp-card:focus-within .mmp-card__actions { opacity: 1; transform: translateY(0); }
.mmp-card__action { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--mmp-navy); font-family: var(--mmp-font-body); font-size: .78rem; font-weight: 700; padding: 7px 12px; cursor: pointer; box-shadow: var(--mmp-shadow-sm); transition: var(--mmp-transition); }
.mmp-card__action:hover { background: var(--mmp-navy); color: #fff; }
.mmp-card__action.is-active { background: var(--mmp-orange); color: #fff; }
.mmp-card__action.is-active svg { fill: currentColor; }
.mmp-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mmp-card__cat a { font-size: .8rem; font-weight: 700; color: var(--mmp-purple); }
.mmp-card__title { font-family: var(--mmp-font-head); font-size: .98rem; font-weight: 800; line-height: 1.5; margin: 0; }
.mmp-card__title a { color: var(--mmp-text); }
.mmp-card__title a:hover { color: var(--mmp-purple); }
.mmp-rating { display: flex; align-items: center; gap: 6px; }
.mmp-stars { position: relative; display: inline-block; line-height: 0; }
.mmp-stars__base { color: #D1D5DB; display: inline-flex; gap: 1px; }
.mmp-stars__fill { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; color: var(--mmp-gold); display: inline-flex; gap: 1px; white-space: nowrap; }
.mmp-rating-count { font-size: .8rem; color: var(--mmp-text-light); }
.mmp-card__price { font-family: var(--mmp-font-head); font-weight: 800; color: var(--mmp-navy); font-size: 1.05rem; }
.mmp-card__price del { color: var(--mmp-text-light); font-weight: 500; font-size: .85rem; margin-inline-end: 6px; }
.mmp-card__price ins { text-decoration: none; color: var(--mmp-red); }
.mmp-card__foot { margin-top: auto; padding-top: 8px; }
.mmp-card__foot .button,
.mmp-card__foot .added_to_cart { width: 100%; text-align: center; background: var(--mmp-navy); color: #fff; font-family: var(--mmp-font-head); font-weight: 700; border-radius: 10px; padding: 11px 14px; border: 0; cursor: pointer; transition: var(--mmp-transition); display: inline-block; }
.mmp-card__foot .button:hover { background: var(--mmp-purple); }
.mmp-card__foot .button.loading { opacity: .6; pointer-events: none; }
.mmp-card__foot .added_to_cart { background: var(--mmp-green); margin-top: 8px; }

/* Countdown */
.mmp-countdown { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2; background: rgba(29, 18, 71, .92); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: .75rem; }
.mmp-card__actions + .mmp-countdown,
.mmp-card__media .mmp-countdown { bottom: auto; top: 12px; inset-inline-end: 12px; inset-inline-start: auto; }
.mmp-countdown__label { display: block; font-weight: 700; margin-bottom: 4px; color: #FDE68A; }
.mmp-countdown__time { display: flex; gap: 8px; }
.mmp-countdown__time b { display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.mmp-countdown__time b i { font-style: normal; font-size: .95rem; }
.mmp-countdown__time b em { font-style: normal; font-size: .62rem; color: #C7C2E8; font-weight: 500; }
.mmp-countdown.is-expired { background: var(--mmp-red); }
.woocommerce div.product .mmp-countdown { position: static; display: inline-block; margin: 10px 0; }
.woocommerce div.product .mmp-badges { position: static; flex-direction: row; margin-bottom: 6px; }

/* No results */
.mmp-no-results { grid-column: 1 / -1; list-style: none; }
.mmp-no-results__inner { text-align: center; padding: 48px 20px; background: var(--mmp-bg-soft); border: 1px dashed var(--mmp-border); border-radius: var(--mmp-radius); }
.mmp-no-results__inner p { font-size: 1.05rem; font-weight: 700; color: var(--mmp-navy); margin: 0 0 16px; }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 28px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--mmp-border); border-radius: 8px; background: #fff; color: var(--mmp-text); font-weight: 700; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mmp-navy); border-color: var(--mmp-navy); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--mmp-purple); color: var(--mmp-purple); }

/* ---------- COD + shipping notes ---------- */
.mmp-shop-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.mmp-note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--mmp-text); }
.mmp-note svg { color: var(--mmp-green); flex: 0 0 auto; }
.mmp-note--shipping svg { color: var(--mmp-orange); }
.woocommerce-notice--cod { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.mmp-cart-totals-note { font-size: .85rem; font-weight: 700; color: var(--mmp-navy); margin-top: 10px; }

/* ---------- Single product: gallery slider ---------- */
.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images .flex-viewport { border-radius: var(--mmp-radius); overflow: hidden; border: 1px solid var(--mmp-border-soft); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px; flex: 0 0 72px; }
.woocommerce div.product div.images .flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; cursor: pointer; opacity: .7; transition: var(--mmp-transition); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover { border-color: var(--mmp-orange); opacity: 1; }
.woocommerce div.product div.images .flex-direction-nav a { width: 40px; height: 40px; background: rgba(255,255,255,.95); border-radius: 50%; box-shadow: var(--mmp-shadow-sm); color: var(--mmp-navy); display: flex; align-items: center; justify-content: center; opacity: 1; }
.woocommerce div.product div.images .flex-direction-nav a::before { font-size: 18px; line-height: 40px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: #fff; border-radius: 50%; box-shadow: var(--mmp-shadow-sm); }
.woocommerce div.product .summary .price { font-family: var(--mmp-font-head); font-size: 1.5rem; font-weight: 800; color: var(--mmp-navy); }
.woocommerce div.product .summary .price del { color: var(--mmp-text-light); font-size: 1rem; }
.woocommerce div.product .summary .price ins { color: var(--mmp-red); text-decoration: none; }
.woocommerce div.product form.cart .button.single_add_to_cart_button { background: var(--mmp-orange); font-family: var(--mmp-font-head); font-weight: 800; border-radius: 10px; padding: 13px 28px; }
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { background: var(--mmp-orange-dark); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #fff; border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--mmp-navy); }

/* ---------- Quick View modal ---------- */
.mmp-quickview { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.mmp-quickview.is-open { display: flex; }
.mmp-quickview__overlay { position: absolute; inset: 0; background: rgba(29, 18, 71, .65); backdrop-filter: blur(2px); }
.mmp-quickview__panel { position: relative; background: #fff; border-radius: var(--mmp-radius-lg); max-width: 920px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--mmp-shadow-lg); animation: mmp-pop .25s ease; }
@keyframes mmp-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.mmp-quickview__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mmp-bg-soft); color: var(--mmp-navy); font-size: 22px; line-height: 1; cursor: pointer; }
.mmp-quickview__close:hover { background: var(--mmp-navy); color: #fff; }
.mmp-quickview__loading { display: flex; align-items: center; justify-content: center; min-height: 320px; gap: 10px; color: var(--mmp-text-muted); font-weight: 700; }
.mmp-quickview__loading::before { content: ""; width: 28px; height: 28px; border: 3px solid var(--mmp-purple-soft); border-top-color: var(--mmp-purple); border-radius: 50%; animation: mmp-spin .8s linear infinite; }
.mmp-quickview__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }
.mmp-quickview__main-image img { width: 100%; border-radius: var(--mmp-radius); border: 1px solid var(--mmp-border-soft); display: block; }
.mmp-quickview__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.mmp-quickview__thumb { border: 2px solid transparent; border-radius: 10px; padding: 0; background: none; cursor: pointer; width: 64px; height: 64px; overflow: hidden; }
.mmp-quickview__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmp-quickview__thumb.is-active { border-color: var(--mmp-orange); }
.mmp-quickview__cat { font-size: .82rem; font-weight: 700; color: var(--mmp-purple); margin-bottom: 4px; }
.mmp-quickview__title { font-family: var(--mmp-font-head); font-size: 1.35rem; font-weight: 800; color: var(--mmp-navy); margin: 0 0 8px; line-height: 1.4; }
.mmp-quickview__title a { color: inherit; }
.mmp-quickview__price { font-family: var(--mmp-font-head); font-size: 1.4rem; font-weight: 800; color: var(--mmp-navy); margin: 10px 0; }
.mmp-quickview__price del { color: var(--mmp-text-light); font-size: 1rem; }
.mmp-quickview__price ins { color: var(--mmp-red); text-decoration: none; }
.mmp-quickview__desc { color: var(--mmp-text-muted); font-size: .92rem; line-height: 1.8; margin: 10px 0; }
.mmp-quickview__desc p { margin: 0 0 8px; }
.mmp-quickview__cart { margin: 16px 0; }
.mmp-quickview__cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mmp-quickview__cart .single_add_to_cart_button { background: var(--mmp-orange); font-family: var(--mmp-font-head); font-weight: 800; border-radius: 10px; padding: 12px 26px; border: 0; color: #fff; cursor: pointer; }
.mmp-quickview__cart .single_add_to_cart_button:hover { background: var(--mmp-orange-dark); }
.mmp-quickview__meta { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--mmp-text-muted); border-top: 1px solid var(--mmp-border-soft); padding-top: 12px; margin-top: 4px; }
.mmp-quickview__meta a { color: var(--mmp-purple); font-weight: 700; }
.mmp-quickview__full { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--mmp-navy); }
.mmp-quickview .mmp-countdown { position: static; display: inline-block; }

/* ---------- Cart drawer ---------- */
.mmp-cart-drawer__overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(29, 18, 71, .55); opacity: 0; visibility: hidden; transition: var(--mmp-transition); }
.mmp-cart-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.mmp-cart-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 9999; width: min(400px, 92vw); background: #fff; box-shadow: var(--mmp-shadow-lg); display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .35s ease; }
[dir="rtl"] .mmp-cart-drawer { transform: translateX(105%); }
.mmp-cart-drawer.is-open { transform: translateX(0) !important; }
.mmp-cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--mmp-border-soft); }
.mmp-cart-drawer__head h3 { font-family: var(--mmp-font-head); font-size: 1.1rem; font-weight: 800; color: var(--mmp-navy); margin: 0; display: flex; align-items: center; gap: 8px; }
.mmp-cart-drawer__head .mmp-count { background: var(--mmp-orange); color: #fff; font-size: .75rem; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mmp-cart-drawer__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mmp-bg-soft); color: var(--mmp-navy); font-size: 20px; line-height: 1; cursor: pointer; }
.mmp-cart-drawer__close:hover { background: var(--mmp-navy); color: #fff; }
.mmp-cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.mmp-mini-cart-items { list-style: none; margin: 0; padding: 0; }
.mmp-mini-cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mmp-border-soft); position: relative; }
.mmp-mini-cart-item__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--mmp-border-soft); }
.mmp-mini-cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmp-mini-cart-item__info { flex: 1; min-width: 0; }
.mmp-mini-cart-item__name { display: block; font-weight: 700; font-size: .9rem; color: var(--mmp-text); line-height: 1.5; margin-bottom: 4px; }
.mmp-mini-cart-item__name:hover { color: var(--mmp-purple); }
.mmp-mini-cart-item__variation { font-size: .8rem; color: var(--mmp-text-muted); margin-bottom: 6px; }
.mmp-mini-cart-item__variation p { margin: 0; }
.mmp-mini-cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mmp-mini-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--mmp-border); border-radius: 8px; overflow: hidden; }
.mmp-qty-btn { width: 28px; height: 28px; border: 0; background: var(--mmp-bg-soft); color: var(--mmp-navy); font-size: 15px; font-weight: 800; cursor: pointer; }
.mmp-qty-btn:hover { background: var(--mmp-purple-soft); }
.mmp-mini-cart-qty__value { min-width: 28px; text-align: center; font-weight: 800; font-size: .9rem; }
.mmp-mini-cart-item__price { font-family: var(--mmp-font-head); font-weight: 800; color: var(--mmp-navy); font-size: .92rem; }
.mmp-mini-cart-remove { position: absolute; top: 12px; inset-inline-end: 0; border: 0; background: none; color: var(--mmp-text-light); font-size: 18px; cursor: pointer; line-height: 1; }
.mmp-mini-cart-remove:hover { color: var(--mmp-red); }
.mmp-mini-cart-empty { text-align: center; padding: 48px 12px; color: var(--mmp-text-muted); }
.mmp-mini-cart-empty svg { color: var(--mmp-text-light); margin-bottom: 10px; }
.mmp-mini-cart-empty p { font-family: var(--mmp-font-head); font-weight: 800; color: var(--mmp-navy); font-size: 1.05rem; margin: 0 0 16px; }
.mmp-cart-drawer-footer { border-top: 1px solid var(--mmp-border-soft); padding: 16px 20px 20px; background: var(--mmp-bg-soft); }
.mmp-cart-drawer-footer:empty { display: none; }
.mmp-mini-cart-total { display: flex; justify-content: space-between; align-items: center; font-family: var(--mmp-font-head); font-weight: 800; color: var(--mmp-navy); font-size: 1.05rem; margin-bottom: 6px; }
.mmp-mini-cart-note { font-size: .8rem; color: var(--mmp-text-muted); margin: 0 0 12px; }
.mmp-mini-cart-actions { display: flex; gap: 10px; }
.mmp-mini-cart-actions .button { flex: 1; text-align: center; padding: 12px 10px; border-radius: 10px; font-family: var(--mmp-font-head); font-weight: 800; }
.mmp-btn-primary { background: var(--mmp-orange); color: #fff; border: 0; cursor: pointer; }
.mmp-btn-primary:hover { background: var(--mmp-orange-dark); color: #fff; }
.mmp-btn-secondary { background: #fff; color: var(--mmp-navy); border: 1px solid var(--mmp-border); cursor: pointer; }
.mmp-btn-secondary:hover { border-color: var(--mmp-navy); }

/* ---------- Wishlist / Compare pages ---------- */
.mmp-wishlist-page ul.products,
.mmp-compare-page { margin: 0; }
.mmp-empty-list { text-align: center; padding: 56px 20px; background: var(--mmp-bg-soft); border: 1px dashed var(--mmp-border); border-radius: var(--mmp-radius); }
.mmp-empty-list p { font-size: 1.05rem; font-weight: 700; color: var(--mmp-navy); margin: 0 0 18px; }
.mmp-page-loading { text-align: center; padding: 48px 0; color: var(--mmp-text-muted); font-weight: 700; }
.mmp-compare-wrap { overflow-x: auto; }
.mmp-compare-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--mmp-border-soft); border-radius: var(--mmp-radius); overflow: hidden; }
.mmp-compare-table th,
.mmp-compare-table td { padding: 14px; border-bottom: 1px solid var(--mmp-border-soft); text-align: start; vertical-align: top; min-width: 180px; }
.mmp-compare-table thead th { background: var(--mmp-bg-soft); text-align: center; }
.mmp-compare-table thead th:first-child { text-align: start; }
.mmp-compare-table tbody th { font-family: var(--mmp-font-head); color: var(--mmp-navy); font-size: .9rem; white-space: nowrap; }
.mmp-compare-table__name { display: block; font-weight: 800; color: var(--mmp-text); margin: 8px 0; line-height: 1.5; }
.mmp-compare-table thead img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.mmp-compare-remove { border: 0; background: none; color: var(--mmp-red); font-size: .82rem; font-weight: 700; cursor: pointer; }
.mmp-stock--in { color: var(--mmp-green); font-weight: 800; }
.mmp-stock--out { color: var(--mmp-red); font-weight: 800; }

/* ---------- Recently viewed ---------- */
.mmp-recently-viewed { margin-top: 56px; }
.mmp-section-title { font-family: var(--mmp-font-head); font-size: 1.4rem; font-weight: 800; color: var(--mmp-navy); margin: 0 0 20px; }
.mmp-widget-recent { list-style: none; margin: 0; padding: 0; }
.mmp-widget-recent li { margin-bottom: 12px; }
.mmp-widget-recent a { display: flex; gap: 10px; align-items: center; }
.mmp-widget-recent img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: 0 0 56px; }
.mmp-widget-recent__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mmp-widget-recent__name { font-size: .88rem; font-weight: 700; color: var(--mmp-text); line-height: 1.4; }
.mmp-widget-recent__price { font-size: .85rem; font-weight: 800; color: var(--mmp-navy); }

/* ---------- Sticky add-to-cart bar ---------- */
.mmp-sticky-atc { position: fixed; bottom: 0; inset-inline: 0; z-index: 900; background: #fff; border-top: 1px solid var(--mmp-border); box-shadow: 0 -8px 24px rgba(45, 27, 105, .10); transform: translateY(110%); transition: transform .3s ease; }
.mmp-sticky-atc.is-visible { transform: translateY(0); }
.mmp-sticky-atc__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; max-width: var(--mmp-container, 1240px); }
.mmp-sticky-atc__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mmp-sticky-atc__thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--mmp-border-soft); }
.mmp-sticky-atc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmp-sticky-atc__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mmp-sticky-atc__title { font-family: var(--mmp-font-head); font-weight: 800; color: var(--mmp-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.mmp-sticky-atc__price { font-weight: 800; color: var(--mmp-text); font-size: .92rem; }
.mmp-sticky-atc__btn { flex: 0 0 auto; padding: 12px 26px; border-radius: 10px; font-family: var(--mmp-font-head); font-weight: 800; }

/* ---------- Live search dropdown ---------- */
.mmp-search__results.is-open { display: block; }
.mmp-live-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--mmp-border-soft); }
.mmp-live-item:last-of-type { border-bottom: 0; }
.mmp-live-item:hover { background: var(--mmp-bg-soft); }
.mmp-live-item__thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; overflow: hidden; }
.mmp-live-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmp-live-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mmp-live-item__title { font-size: .9rem; font-weight: 700; color: var(--mmp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmp-live-item__price { font-size: .85rem; font-weight: 800; color: var(--mmp-navy); }
.mmp-live-all { display: block; text-align: center; padding: 11px; font-weight: 800; color: var(--mmp-purple); background: var(--mmp-purple-soft); }
.mmp-live-empty { padding: 16px; text-align: center; color: var(--mmp-text-muted); font-weight: 700; }

/* ---------- Empty cart ---------- */
.woocommerce-cart .cart-empty.woocommerce-info { display: none; }
.mmp-empty-cart { text-align: center; padding: 56px 20px; }
.mmp-empty-cart__art { color: var(--mmp-purple); margin-bottom: 8px; }
.mmp-empty-cart h2 { font-family: var(--mmp-font-head); font-size: 1.5rem; font-weight: 800; color: var(--mmp-navy); margin: 0 0 8px; }
.mmp-empty-cart p { color: var(--mmp-text-muted); margin: 0 0 22px; }
.mmp-empty-cart .button { padding: 13px 32px; border-radius: 10px; font-family: var(--mmp-font-head); font-weight: 800; }

/* ---------- Toast ---------- */
.mmp-toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%) translateY(20px); z-index: 10000; background: var(--mmp-navy); color: #fff; font-family: var(--mmp-font-head); font-weight: 700; font-size: .92rem; padding: 12px 22px; border-radius: 999px; box-shadow: var(--mmp-shadow-lg); opacity: 0; visibility: hidden; transition: var(--mmp-transition); pointer-events: none; max-width: 90vw; text-align: center; }
[dir="rtl"] .mmp-toast { transform: translateX(-50%) translateY(20px); }
.mmp-toast.is-visible { opacity: 1; visibility: visible; transform: translateX(50%) translateY(0); }
[dir="rtl"] .mmp-toast.is-visible { transform: translateX(-50%) translateY(0); }
.mmp-toast--error { background: var(--mmp-red); }
.mmp-toast--success { background: var(--mmp-green); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
	.mmp-shop-layout { flex-direction: column; }
	.mmp-shop-sidebar { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 9999; width: min(320px, 86vw); background: #fff; padding: 20px; overflow-y: auto; box-shadow: var(--mmp-shadow-lg); transform: translateX(105%); transition: transform .3s ease; flex: none; }
	[dir="rtl"] .mmp-shop-sidebar { transform: translateX(-105%); }
	body.mmp-filters-open .mmp-shop-sidebar { transform: translateX(0) !important; }
	.mmp-sidebar-close { display: inline-flex; position: sticky; top: 0; margin-inline-start: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--mmp-bg-soft); color: var(--mmp-navy); font-size: 20px; cursor: pointer; float: inline-end; }
	.mmp-shop-sidebar__overlay { display: block; position: fixed; inset: 0; z-index: 9998; background: rgba(29, 18, 71, .55); opacity: 0; visibility: hidden; transition: var(--mmp-transition); }
	body.mmp-filters-open .mmp-shop-sidebar__overlay { opacity: 1; visibility: visible; }
	.mmp-filters-toggle { display: inline-flex; }
	.mmp-filters { border: 0; padding: 0; }
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { grid-template-columns: repeat(3, 1fr); }
	.mmp-quickview__inner { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
	body.mmp-view-list .mmp-card { flex-direction: column; }
	body.mmp-view-list .mmp-card__media { flex: none; }
}
@media (max-width: 600px) {
	.woocommerce ul.products.columns-2,
	.woocommerce ul.products.columns-3,
	.woocommerce ul.products.columns-4,
	.woocommerce ul.products.columns-5,
	.woocommerce ul.products.columns-6 { grid-template-columns: repeat(2, 1fr); }
	.mmp-shop-toolbar .woocommerce-result-count { display: none; }
	.mmp-card__action span { display: none; }
	.mmp-card__action { padding: 8px; }
	.mmp-card__body { padding: 12px; }
	.mmp-sticky-atc__title { max-width: 160px; font-size: .85rem; }
	.mmp-sticky-atc__btn { padding: 10px 16px; font-size: .85rem; }
	.mmp-compare-table th,
	.mmp-compare-table td { min-width: 150px; padding: 10px; }
}
