/*
 * Deir Store: marketplace skin.
 * Bright search header, light grey canvas, dense white product cards,
 * scrolling category rails and deal strips. Loaded after style.css / rtl.css.
 */

:root {
	--mk-canvas: #f3f4f8;
	--mk-card: #fff;
	--mk-ink: var(--deir-heading);
	--mk-line: #e8e9ee;
	--mk-header-ink: #1c1c1c;
}

body.mk { background: var(--mk-canvas); font-size: 14px; }
.mk .site-content { background: var(--mk-canvas); }
.mk .container { max-width: 1440px; }

/* ==========================================================================
   Header
   ========================================================================== */
.mk .topbar { font-size: .76rem; }
.mk .topbar__inner { min-height: 30px; }

.mk-header { background: var(--deir-header-bg); border-bottom: 0; color: var(--mk-header-ink); }
.mk-header.is-scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.mk-header .header-main { min-height: 56px; gap: 6px; }
.mk-header .site-branding { flex: 0 1 auto; justify-content: flex-start; }
.mk-header .site-branding img, .mk-header .custom-logo { max-height: 38px; }
.mk-header .site-title { color: var(--mk-header-ink); font-size: 1.3rem; }
.mk-header .icon-btn, .mk-action { color: var(--mk-header-ink); }
.mk-header .header-main__actions { margin-inline-start: auto; gap: 0; }

.mk-action {
	position: relative; display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; min-width: 44px; padding: 0 8px; justify-content: center;
	font-weight: 700; font-size: .85rem; text-decoration: none; border-radius: 8px;
}
.mk-action:hover { text-decoration: none; background: rgba(0, 0, 0, .06); }
.mk-action .deir-icon { width: 24px; height: 24px; }
.mk-action__label { display: none; white-space: nowrap; }
.mk-header .header-wishlist { display: none; }
.mk-header .header-account { display: inline-flex; }
.mk .deir-cart-count {
	position: absolute; top: -6px; inset-inline-end: -8px; min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: 9px; background: var(--deir-primary); color: #fff; font-size: .68rem; font-weight: 700;
	line-height: 18px; text-align: center;
}
.mk .deir-cart-count[data-count="0"] { display: none; }
.mk .icon-btn__icon { position: relative; display: inline-flex; }

/* Search */
.mk-header .deir-search {
	background: #fff; border: 0; border-radius: 10px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
	position: relative; overflow: visible;
}
.mk-header .deir-search:focus-within { box-shadow: 0 0 0 2px var(--mk-header-ink); background: #fff; }
.mk .deir-search__input, .mk .deir-search__input:focus { min-height: 42px; font-size: .92rem; padding-inline: 14px 6px; }
.mk .deir-search__btn { color: var(--mk-header-ink); }
.mk .deir-search__cat { border-inline-end: 1px solid var(--mk-line); font-weight: 600; color: var(--mk-ink); }
.mk .header-search-mobile { padding-bottom: 10px; }
.mk .site-header.is-scrolled .header-search-mobile { display: block; }
.mk .deir-search.is-loading .deir-search__btn { animation: mk-pulse 1s infinite; }
@keyframes mk-pulse { 50% { opacity: .35; } }

/* Live search dropdown */
.mk-suggest {
	position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 120;
	max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	padding: 8px 0; color: var(--mk-ink); text-align: start;
}
.mk-suggest[hidden] { display: none; }
.mk-suggest__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 4px; font-size: .74rem; font-weight: 700; color: var(--deir-muted); text-transform: uppercase; letter-spacing: .04em; }
.mk-suggest__clear { border: 0; background: none; color: var(--deir-primary); font-weight: 700; cursor: pointer; font-size: .78rem; padding: 4px; }
.mk-suggest__recent, .mk-suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 8px; }
.mk-suggest__list { list-style: none; margin: 0; padding: 0; }
.mk-suggest__product {
	display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px;
	align-items: center; padding: 8px 14px; color: var(--mk-ink); text-decoration: none;
}
.mk-suggest__product img { grid-row: span 2; width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--mk-canvas); }
.mk-suggest__name { font-size: .88rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mk-suggest__name mark, .mk-suggest mark { background: none; color: inherit; font-weight: 800; }
.mk-suggest__price { font-size: .82rem; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.mk-suggest__price del { font-weight: 400; color: var(--deir-muted); }
.mk-suggest__price ins { text-decoration: none; }
.mk-suggest__item:hover, .mk-suggest__item.is-active { background: var(--mk-canvas); text-decoration: none; }
.mk-suggest__all { display: block; margin: 6px 14px 4px; padding: 10px; border-radius: 8px; text-align: center; font-weight: 700; color: var(--deir-primary); border: 1px solid var(--mk-line); }
.mk-suggest__empty { margin: 0; padding: 16px 14px; color: var(--deir-muted); }
.mk-suggest .mk-off { font-style: normal; }

/* Category bar */
.mk-catbar { display: block; background: #fff; border-bottom: 1px solid var(--mk-line); position: relative; z-index: 80; }
.mk-catbar .header-nav__inner { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.mk-catbar .departments { display: none; }
.mk-catbar__all {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 34px; padding: 0 12px;
	border: 0; border-radius: 999px; background: var(--mk-canvas); color: var(--mk-ink); font-weight: 700; font-size: .82rem; cursor: pointer;
}
.mk-catbar__all .deir-icon { width: 16px; height: 16px; }
.mk-catbar__scroll { display: flex; align-items: center; min-width: 0; flex: 1; }
.mk-catbar .primary-menu { display: none; }
.mk-catlinks {
	list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; min-width: 0; flex: 1;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mk-catlinks::-webkit-scrollbar { display: none; }
.mk-catlinks a {
	display: block; padding: 7px 10px; white-space: nowrap; font-size: .84rem; font-weight: 600; color: var(--mk-ink);
	border-bottom: 2px solid transparent;
}
.mk-catlinks a:hover, .mk-catlinks a.is-active { text-decoration: none; color: var(--deir-primary); border-bottom-color: var(--deir-primary); }

@media (min-width: 600px) {
	.mk-action__label { display: inline; }
	.mk-header .header-wishlist { display: inline-flex; }
}

@media (min-width: 1024px) {
	.mk-header .header-main { min-height: 68px; gap: 18px; }
	.mk-header .header-main__menu { display: none; }
	.mk-header .header-main__search { display: block; flex: 1; max-width: none; }
	.mk-header .site-branding img, .mk-header .custom-logo { max-height: 46px; }
	.mk .header-search-mobile { display: none !important; }
	.mk-action { padding: 0 10px; }
	.mk-action__label { display: inline; }
	.mk-header .header-account .mk-action__label::after { content: ""; display: inline-block; width: 1px; height: 18px; background: rgba(0, 0, 0, .25); margin-inline-start: 14px; vertical-align: middle; }
	.mk-catbar .departments { display: flex; align-self: stretch; }
	.mk-catbar .departments__toggle { background: transparent; color: var(--mk-ink); border-radius: 0; padding-inline: 0 14px; min-width: 0; font-size: .86rem; }
	.mk-catbar__all { display: none; }
	.mk-catbar .primary-menu { display: flex; flex-shrink: 0; }
	.mk-catbar .primary-menu > li > a { font-size: .86rem; padding: 0 10px; }
	.mk-catbar .header-nav__inner { min-height: 44px; gap: 10px; }
	.mk-catlinks { border-inline-start: 1px solid var(--mk-line); padding-inline-start: 8px; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.mk .home-main { padding-bottom: 28px; }
.mk .home-section { margin-top: 14px; background: var(--mk-card); border-radius: var(--deir-radius); padding: 14px 12px; }
@media (max-width: 767px) {
	.mk .home-section.container { border-radius: 0; margin-inline: 0; }
}
.mk .deir-section__head { margin-bottom: 10px; }
.mk .deir-section__title { font-size: 1.1rem; font-weight: 800; }
.mk .deir-section__more {
	padding: 6px 12px; border: 1px solid var(--mk-ink); border-radius: 6px; color: var(--mk-ink); font-size: .78rem; font-weight: 700;
}
.mk .deir-section__more:hover { background: var(--mk-ink); color: #fff; text-decoration: none; }

/* Hero */
.mk .home-hero { margin-top: 0; padding: 0; max-width: none; }
.mk .slider { border-radius: 0; }
.mk .slide { min-height: 190px; align-items: center; }
.mk .slide__content { padding: 24px 20px 40px; }
.mk .slide__title { font-size: 1.6rem; font-weight: 800; }
.mk .slide__eyebrow { background: var(--mk-ink); color: #fff; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; }
.mk .slide--has-image .slide__eyebrow { background: var(--deir-header-bg); color: var(--mk-header-ink); }
.mk .slide .btn { background: var(--mk-ink); border-color: var(--mk-ink); }
.mk .slider__dots { inset-inline-start: 50%; transform: translateX(-50%); }
.mk .slider__dot.is-active { background: var(--mk-ink); }
@media (min-width: 768px) {
	.mk .home-hero { padding-top: 14px; max-width: 1440px; }
	.mk .slider { border-radius: var(--deir-radius); }
	.mk .slide { min-height: 320px; }
	.mk .slide__content { padding: 40px 48px; }
	.mk .slide__title { font-size: 2.3rem; }
}

/* Category circles: one auto-scrolling row */
.mk .home-cats .deir-section__head { display: none; }
.mk .home-cats { padding: 14px 0 10px; overflow: hidden; }
.mk .cat-tiles {
	margin: 0; padding: 0 12px 2px; display: flex; gap: 14px; grid-template-rows: none;
	overflow-x: auto; scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.mk .cat-tiles::-webkit-scrollbar { display: none; }
.mk .cat-tile { flex: 0 0 76px; }
.mk .cat-tile__img { width: 68px; height: 68px; margin: 0 auto; background: #f1f6ff; border: 2px solid var(--deir-header-bg); }
.mk .cat-tile__name { font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk .cat-tile__letter { color: var(--mk-ink); }
@media (min-width: 768px) {
	.mk .cat-tiles { gap: 22px; }
	.mk .cat-tile { flex-basis: 100px; }
	.mk .cat-tile__img { width: 90px; height: 90px; }
	.mk .cat-tile__name { font-size: .8rem; }
}

/* Deal strip */
.mk .home-deals { padding: 0; background: transparent; }
.mk .deals-box {
	background: linear-gradient(180deg, var(--deir-header-bg) 0, var(--deir-header-bg) 120px, var(--mk-card) 120px);
	border-radius: var(--deir-radius); padding: 14px 12px;
}
@media (max-width: 767px) { .mk .deals-box { border-radius: 0; } }
.mk .home-deals .deir-section__title { color: var(--mk-header-ink); font-size: 1.25rem; }
.mk .home-deals .deir-section__sub { color: var(--mk-header-ink); opacity: .8; margin-top: -4px; }
.mk .home-deals .deir-section__more { background: var(--mk-header-ink); color: #fff; border-color: var(--mk-header-ink); }
.mk .countdown__label { color: var(--mk-header-ink); font-weight: 600; }
.mk .countdown__time span { background: var(--mk-header-ink); }

/* Banners */
.mk .home-banners { background: transparent; padding-inline: 0; }
.mk .home-banners .deir-section__head { padding-inline: 12px; }
.mk .banners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-inline: 12px; }
.mk .banner { min-height: 0; aspect-ratio: 1 / 1; padding: 10px; }
.mk .banner__content { max-width: 100%; }
.mk .banner__title { font-size: .86rem; }
.mk .banner__label { font-size: .64rem; }
.mk .banner__cta { display: none; }
@media (min-width: 768px) {
	.mk .banner { aspect-ratio: 16 / 9; padding: 20px; }
	.mk .banner__title { font-size: 1.2rem; }
	.mk .banner__cta { display: inline-flex; }
	.mk .banners { gap: 14px; }
}

/* Trust strip */
.mk .home-features { margin-top: 14px; }
.mk .features { grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--mk-line); border-radius: var(--deir-radius); overflow: hidden; }
.mk .feature { border: 0; border-radius: 0; }
@media (min-width: 768px) { .mk .features { grid-template-columns: repeat(4, 1fr); } }

.mk .home-content { background: var(--mk-card); border-radius: var(--deir-radius); padding: 16px; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.mk ul.products { gap: 8px; }
.mk.woocommerce ul.products li.product, .mk ul.products li.product {
	background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: calc(var(--deir-radius) * .8);
	container-type: inline-size;
}
.mk ul.products li.product:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: var(--mk-line); }
.mk .card-media { background: #f7f7fa; margin: 6px; border-radius: calc(var(--deir-radius) * .6); }
.mk .woocommerce ul.products li.product a img, .mk .card-media img { object-fit: contain; mix-blend-mode: multiply; }
.mk .card-body { padding: 4px 10px 10px; gap: 3px; }
.mk .card-cat { display: none; }
.mk .woocommerce ul.products li.product .woocommerce-loop-product__title,
.mk ul.products li.product h2, .mk ul.products li.product h3 { font-size: .84rem; font-weight: 500; color: #404553; min-height: 2.6em; }
.mk ul.products li.product .price { font-size: 1rem; font-weight: 800; color: var(--mk-ink); gap: 0 6px; }
.mk ul.products li.product .price ins { color: var(--mk-ink); }
.mk ul.products li.product .price del { font-size: .76rem; }
.mk ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 600; }
.mk ul.products li.product .onsale { display: none; }
.mk .badge--hot { background: var(--mk-ink); inset-inline-end: auto; inset-inline-start: 8px; border-radius: 4px; font-size: .66rem; }
.mk .badge--out { inset-inline-start: 8px; }

.mk-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; }
.mk-off { color: var(--deir-success); font-weight: 800; font-size: .76rem; }
.mk-fast {
	display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 4px; border-radius: 4px;
	background: var(--deir-header-bg); color: var(--mk-header-ink); font-size: .66rem; font-weight: 800; font-style: italic;
}
.mk-fast .deir-icon { width: 12px; height: 12px; fill: currentColor; stroke-width: 0; }

/* Quick view button */
.mk-qv {
	position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3;
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	border-radius: 50%; background: #fff; color: var(--mk-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); cursor: pointer;
}
.mk-qv .deir-icon { width: 17px; height: 17px; }
.mk-qv:hover { background: var(--mk-ink); color: #fff; }
.mk ul.products li.product .tinv-wraper ~ * .mk-qv, .mk ul.products li.product:has(.tinv-wraper) .mk-qv { top: 46px; }

/* Wishlist heart (TI WooCommerce Wishlist) */
.mk ul.products li.product .tinv-wraper {
	position: absolute !important; top: 14px; inset-inline-end: 14px; z-index: 4; margin: 0 !important; padding: 0 !important;
}
.mk ul.products li.product .tinv-wraper ~ .tinv-wraper { display: none !important; }
.mk ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button {
	display: inline-flex !important; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 !important; padding: 0 !important;
	border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); color: var(--mk-ink) !important; font-size: 0 !important;
}
.mk ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button::before { margin: 0 !important; font-size: 17px !important; }
.mk ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist-text,
.mk ul.products li.product .tinv-wraper .tinvwl-tooltip { display: none !important; }
.mk ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { color: var(--deir-accent) !important; }
.mk ul.products li.product .card-media .mk-qv { top: 8px; }

/* Add-to-cart: round button on the image corner */
.mk.woocommerce ul.products li.product .button,
.mk ul.products li.product .button {
	position: absolute; z-index: 3; top: calc(100cqw - 48px); inset-inline-end: 12px;
	width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border-radius: 8px;
	font-size: 0; color: transparent; overflow: hidden;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E") center / 20px no-repeat;
	border: 1px solid var(--mk-line); box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.mk ul.products li.product .button:hover { background-color: var(--deir-header-bg); }
.mk ul.products li.product .button.loading { opacity: 1; background-image: none; }
.mk ul.products li.product .button.loading::after {
	content: ""; position: absolute; inset: 9px; border: 2px solid var(--mk-line); border-top-color: var(--mk-ink); border-radius: 50%; animation: mk-spin .7s linear infinite;
}
.mk ul.products li.product .button.added {
	display: block; background-color: var(--deir-success); border-color: var(--deir-success);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.mk ul.products li.product .added_to_cart { display: none !important; }
@supports not (top: 1cqw) {
	.mk ul.products li.product .button { position: static; width: auto; height: 38px; margin: 0 10px 10px; font-size: .8rem; color: var(--mk-ink); background-image: none; }
}
@keyframes mk-spin { to { transform: rotate(360deg); } }

/* Product rows */
.mk .woocommerce.deir-carousel { position: relative; }
.mk .woocommerce.deir-carousel ul.products.products { grid-auto-columns: 44%; gap: 8px; scroll-padding-inline: 0; }
@media (min-width: 600px) { .mk .woocommerce.deir-carousel ul.products.products { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .mk .woocommerce.deir-carousel ul.products.products { grid-auto-columns: calc((100% - 40px) / 6); } }
.mk-arrow {
	display: none; position: absolute; top: 38%; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: #fff; color: var(--mk-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer;
	align-items: center; justify-content: center;
}
.mk-arrow--prev { inset-inline-start: -14px; }
.mk-arrow--next { inset-inline-end: -14px; }
.mk-arrow--prev .deir-icon { transform: rotate(180deg); }
[dir="rtl"] .mk-arrow--prev .deir-icon, .rtl .mk-arrow--prev .deir-icon { transform: none; }
[dir="rtl"] .mk-arrow--next .deir-icon, .rtl .mk-arrow--next .deir-icon { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 900px) {
	.mk .woocommerce.deir-carousel:hover .mk-arrow { display: inline-flex; }
}

/* ==========================================================================
   Shop archive
   ========================================================================== */
.mk .shop-wrap { padding-top: 10px; }
.mk .woocommerce-products-header { background: var(--mk-card); border-radius: var(--deir-radius); padding: 12px 14px; margin-bottom: 10px; }
.mk .woocommerce-products-header .page-title { font-size: 1.2rem; margin: 0; }
.mk .term-description { margin-top: 6px; }

.mk-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin-bottom: 4px; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chip {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 34px; padding: 4px 12px;
	border: 1px solid var(--mk-line); border-radius: 999px; background: #fff; color: var(--mk-ink);
	font-size: .8rem; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.mk-chip:hover { border-color: var(--mk-ink); text-decoration: none; }
.mk-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; margin-inline-start: -6px; }
.mk-chip small { color: var(--deir-muted); font-weight: 500; }
.mk-chip .deir-icon { width: 14px; height: 14px; }
.mk-chip--active { background: var(--mk-ink); border-color: var(--mk-ink); color: #fff; }
.mk-chip--active:hover { color: #fff; opacity: .85; }
.mk-chip--clear { border: 0; background: none; color: var(--deir-primary); text-decoration: underline; }
.mk-active-filters { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; order: 4; }

.mk .shop-toolbar {
	position: sticky; top: var(--mk-sticky-top, 0px); z-index: 40;
	background: var(--mk-card); border-radius: var(--deir-radius); padding: 8px 10px; margin-bottom: 10px;
}
.mk .shop-toolbar .woocommerce-ordering { max-width: 260px; }
.mk .shop-toolbar .woocommerce-ordering select { border-radius: 999px; font-weight: 600; }
.mk .shop-toolbar__filter { border-radius: 999px; }
@media (max-width: 1023px) {
	.mk .shop-toolbar { border-radius: 0; margin-inline: -16px; padding-inline: 16px; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
	.mk .shop-toolbar .woocommerce-result-count { display: none; }
}

.mk .shop-sidebar { background: var(--mk-card); }
@media (min-width: 1024px) {
	.mk .shop-sidebar { border-radius: var(--deir-radius); padding: 6px 16px 16px; align-self: start; position: sticky; top: calc(var(--mk-sticky-top, 0px) + 12px); max-height: calc(100vh - var(--mk-sticky-top, 0px) - 24px); overflow-y: auto; }
	.mk .shop-toolbar__filter { display: none; }
	.mk-filters__actions { display: none !important; }
}

.mk-filter { padding: 12px 0; border-bottom: 1px solid var(--mk-line); }
.mk-filter:last-of-type { border-bottom: 0; }
.mk-filter__title { font-size: .92rem; font-weight: 800; margin: 0 0 8px; }
.mk-filter__cats { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.mk-filter__cats li { padding: 0; }
.mk-filter__cats a, .mk-filter__cats span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--mk-ink); font-size: .86rem; }
.mk-filter__cats .count { color: var(--deir-muted); font-size: .74rem; }
.mk-filter__cats .is-current span { font-weight: 800; }
.mk-filter__back a { justify-content: flex-start; color: var(--deir-primary); font-weight: 700; }
.mk-filter__back .deir-icon { width: 16px; height: 16px; transform: rotate(180deg); }
.rtl .mk-filter__back .deir-icon { transform: none; }
.mk-filter__price { display: flex; align-items: flex-end; gap: 8px; }
.mk-filter__price label { flex: 1; display: grid; gap: 2px; font-size: .72rem; color: var(--deir-muted); }
.mk-filter__price input { min-height: 38px; padding: 6px 10px; border-radius: 8px; }
.mk-filter__dash { padding-bottom: 8px; color: var(--deir-muted); }
.mk-switch, .mk-radio { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .86rem; color: var(--mk-ink); cursor: pointer; }
.mk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-switch__ui { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #d5d7de; transition: background .2s; flex-shrink: 0; }
.mk-switch__ui::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.mk-switch input:checked + .mk-switch__ui { background: var(--deir-primary); }
.mk-switch input:checked + .mk-switch__ui::after { inset-inline-start: 18px; }
.mk-switch input:focus-visible + .mk-switch__ui { outline: 2px solid var(--deir-primary); outline-offset: 2px; }
.mk-radio input { width: 18px; height: 18px; accent-color: var(--deir-primary); margin: 0; }
.mk-stars { color: var(--deir-star); letter-spacing: 1px; }
.mk-filters__actions {
	position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
	padding: 12px 0 4px; background: #fff;
}
.mk-filters__actions .btn { min-height: 44px; }

.mk-shop-loading .shop-main { opacity: .45; pointer-events: none; transition: opacity .2s; }
.mk-hidden-nav { display: none !important; }
.mk-loadmore { display: flex; justify-content: center; padding: 10px 0 24px; }
.mk-loadmore .btn { min-width: 220px; background: #fff; }
.mk-loadmore.is-loading .btn { opacity: .6; pointer-events: none; }
.mk-loadmore__done { color: var(--deir-muted); font-size: .85rem; margin: 0; }

/* ==========================================================================
   Single product
   ========================================================================== */
.mk.single-product .shop-wrap { padding-top: 10px; }
.mk.single-product div.product { background: var(--mk-card); border-radius: var(--deir-radius); padding: 12px; }
.mk.single-product div.product .product_title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.mk.single-product div.product p.price, .mk.single-product div.product span.price { font-size: 1.5rem; font-weight: 800; color: var(--mk-ink); }
.mk.single-product div.product p.price ins { color: var(--mk-ink); }
.mk.single-product div.product div.images .woocommerce-product-gallery__wrapper { background: #f7f7fa; }
.mk.single-product div.product div.images img { mix-blend-mode: multiply; }
.mk.single-product div.product form.cart .single_add_to_cart_button,
.mk.single-product div.product form.cart .button {
	background: var(--deir-primary); border-color: var(--deir-primary); min-height: 48px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; flex: 1;
}
.mk.single-product div.product form.cart .single_add_to_cart_button.loading { opacity: .6; }
.mk .single-trust { background: var(--mk-canvas); border-radius: var(--deir-radius); }
.mk .woocommerce-tabs, .mk .related.products, .mk .upsells.products { background: var(--mk-card); border-radius: var(--deir-radius); padding: 12px; }
@media (min-width: 1024px) {
	.mk.single-product div.product { padding: 24px; }
	.mk.single-product div.product .product_title { font-size: 1.5rem; }
}

/* ==========================================================================
   Quick view modal
   ========================================================================== */
.mk-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.mk-modal[hidden] { display: none; }
.mk-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; }
.mk-modal__dialog {
	position: relative; width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 16px 16px 0 0; transform: translateY(30px); opacity: 0; transition: transform .25s, opacity .25s;
	padding-bottom: env(safe-area-inset-bottom);
}
.mk-modal__dialog:focus { outline: none; }
.mk-modal.is-open .mk-modal__backdrop { opacity: 1; }
.mk-modal.is-open .mk-modal__dialog { transform: none; opacity: 1; }
.mk-modal__close { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.mk-modal-open { overflow: hidden; }
@media (min-width: 768px) {
	.mk-modal { align-items: center; padding: 24px; }
	.mk-modal__dialog { max-width: 920px; border-radius: 16px; }
}
.mk-spinner { width: 36px; height: 36px; margin: 80px auto; border: 3px solid var(--mk-line); border-top-color: var(--mk-ink); border-radius: 50%; animation: mk-spin .7s linear infinite; }

.qv { display: grid; gap: 0; }
.qv__media { position: relative; background: #f7f7fa; }
.qv__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.qv__track::-webkit-scrollbar { display: none; }
.qv__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.qv__slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.qv__dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; }
.qv__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .25); transition: width .2s; }
.qv__dots span.is-active { width: 16px; background: var(--mk-ink); }
.qv__info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.qv__info .card-cat { display: inline; font-size: .74rem; color: var(--deir-primary); font-weight: 700; text-transform: none; }
.qv__title { font-size: 1.15rem; margin: 0; line-height: 1.35; }
.qv__title a { color: var(--mk-ink); }
.qv__price { font-size: 1.4rem; font-weight: 800; color: var(--mk-ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.qv__price del { font-size: .9rem; font-weight: 400; color: var(--deir-muted); }
.qv__price ins { text-decoration: none; }
.qv__desc { font-size: .88rem; color: var(--deir-text); max-height: 7.5em; overflow: hidden; }
.qv__desc p { margin: 0 0 .5em; }
.qv__cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 6px 0 0; }
.qv__cart form.variations_form { display: block; }
.qv__cart table.variations { margin-bottom: 8px; }
.qv__cart table.variations th, .qv__cart table.variations td { display: block; padding: 4px 0; border: 0; }
.qv__cart .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; gap: 10px; margin-top: 8px; }
.qv__cart .single_add_to_cart_button { flex: 1; min-height: 48px; background: var(--deir-primary); border-color: var(--deir-primary); font-weight: 800; }
.qv__cart .stock { margin: 0; font-size: .82rem; font-weight: 700; }
.qv__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .86rem; margin-top: 4px; }
.qv__more .deir-icon { width: 16px; height: 16px; }
@media (min-width: 768px) {
	.qv { grid-template-columns: 1fr 1fr; }
	.qv__media { border-radius: 16px 0 0 16px; overflow: hidden; }
	.rtl .qv__media { border-radius: 0 16px 16px 0; }
	.qv__info { padding: 28px 28px 24px; }
}

/* ==========================================================================
   Toast, drawers, footer
   ========================================================================== */
.mk-toast {
	position: fixed; z-index: 1001; inset-inline: 12px; bottom: calc(var(--deir-bottom-nav-h) + 14px + env(safe-area-inset-bottom));
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px; border-radius: 10px; background: var(--mk-ink); color: #fff; font-size: .88rem; font-weight: 600;
	transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
}
.mk-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.mk-toast--error { background: #b42318; }
.mk-toast a { color: var(--deir-header-bg); font-weight: 800; }
@media (min-width: 768px) { .mk-toast { inset-inline: auto 24px; bottom: 24px; max-width: 380px; } }

.mk .drawer__head { background: var(--deir-header-bg); color: var(--mk-header-ink); border-bottom: 0; }
.mk .drawer__head .drawer__title, .mk .drawer__head .icon-btn, .mk .drawer__head .site-title { color: var(--mk-header-ink); }
.mk #cart-drawer .drawer__title .deir-cart-count { position: static; display: inline-block; margin-inline-start: 4px; vertical-align: middle; }
.mk .woocommerce-mini-cart__buttons .button.checkout { background: var(--deir-primary); border-color: var(--deir-primary); font-weight: 800; }

.mk .bottom-nav .is-active { color: var(--mk-ink); }
.mk .bottom-nav .is-active .deir-icon { stroke-width: 2.4; }
.mk .bottom-nav .deir-cart-count { top: -4px; inset-inline-end: -10px; }

.mk .site-footer { margin-top: 24px; }

@media (min-width: 1024px) {
	.mk.has-shop-sidebar .shop-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 1360px) {
	.mk.has-shop-sidebar ul.products.columns-4, .mk.has-shop-sidebar ul.products.columns-3 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Rotating search suggestions */
.mk .deir-search__input::placeholder { transition: opacity .18s, transform .18s; opacity: 1; }
.mk .deir-search__input.is-hint-out::placeholder { opacity: 0; transform: translateY(-4px); }
