/* Makhlouf Enhancements */

/* ---------- Product summary ---------- */
.single-product .mk-shop { padding-top: 34px; }
html, body { overflow-x: clip; }
.woocommerce div.product div.images.woocommerce-product-gallery { position: relative !important; top: auto !important; align-self: start; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce div.product div.images .flex-control-thumbs { grid-template-columns: repeat(4, 1fr) !important; }

.mke-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.mke-eyebrow a { color: var(--mk-gold); }
.mke-eyebrow a:hover { color: #f3cf96; }
.mke-eyebrow span { color: var(--mk-dim); }
.woocommerce div.product .product_title { margin-bottom: 12px; }
.woocommerce div.product .summary > .price { display: flex; align-items: baseline; gap: 8px; font-size: 30px !important; margin-bottom: 18px; }
.mke-from { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mk-muted); }
.woocommerce ul.products li.product .price .mke-from { font-size: 11px; margin-right: 2px; }
.woocommerce-product-details__short-description { font-size: 15px; line-height: 1.7; padding-bottom: 20px !important; margin-bottom: 20px !important; }

.mke-highlights { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.mke-highlights li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.45; color: var(--mk-text); }
.mke-highlights li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(226,176,108,.16); }
.mke-highlights li::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 9px; border-right: 2px solid var(--mk-gold); border-bottom: 2px solid var(--mk-gold); transform: rotate(45deg); }

/* ---------- Swatches ---------- */
.woocommerce div.product form.cart .variations { margin-bottom: 4px !important; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 20px; }
.woocommerce div.product form.cart .variations th.label { padding: 0 0 10px !important; }
.woocommerce div.product form.cart .variations label { display: flex; gap: 10px; align-items: baseline; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mk-muted); }
.mke-sw__val { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mk-text); }
.mke-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.mke-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.mke-sw__btn {
	min-height: 46px; padding: 0 18px; border-radius: 10px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.14); background: #120e0b; color: var(--mk-text);
	font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
	transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.mke-sw__btn:hover { border-color: rgba(226,176,108,.6); }
.mke-sw__btn.is-on { border-color: var(--mk-gold); background: rgba(226,176,108,.12); color: var(--mk-gold); box-shadow: inset 0 0 0 1px var(--mk-gold); }
.mke-sw__btn:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.mke-sw--color .mke-sw__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 99px; }
.mke-sw__dot { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.06); }
.mke-sw--color .mke-sw__btn.is-on .mke-sw__dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px var(--mk-gold); }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--mk-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.woocommerce div.product form.cart .reset_variations:hover { color: var(--mk-gold); }
.woocommerce div.product .woocommerce-variation-price { display: none; }
.woocommerce div.product .woocommerce-variation-availability p { margin: 0 0 12px; font-size: 14px; }

/* ---------- Details ---------- */
.mke-details { grid-column: 1 / -1; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--mk-line-soft); }
.mke-details__nav { position: sticky; top: 112px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.mke-details__nav .t { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--mk-dim); }
.mke-details__nav a { display: block; padding: 10px 16px; border-left: 2px solid var(--mk-line-soft); color: var(--mk-muted); font-size: 15px; transition: all .2s; }
.mke-details__nav a:hover, .mke-details__nav a.is-active { color: var(--mk-gold); border-color: var(--mk-gold); background: linear-gradient(90deg, rgba(226,176,108,.09), transparent); }
.mke-details__body, .mke-desc { display: grid; gap: 22px; min-width: 0; color: var(--mk-muted); }

.mke-intro, .mke-block, .mke-specs, .mke-reviews {
	scroll-margin-top: 130px; padding: clamp(22px, 3vw, 38px);
	background: var(--mk-card); border: 1px solid var(--mk-line-soft); border-radius: 16px;
}
.mke-intro { font-size: 18px; line-height: 1.7; color: #e9e1d6; background: radial-gradient(ellipse at 100% 0, rgba(226,176,108,.14), transparent 55%), var(--mk-card); border-color: var(--mk-line); }
.mke-intro strong { color: var(--mk-gold); font-weight: 600; }
.mke-intro p:last-child, .mke-block p:last-child { margin-bottom: 0; }
.mke-block h2, .mke-specs h2, .mke-reviews h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 20px !important; font-size: 22px !important; color: var(--mk-text); }
.mke-block h2::before, .mke-specs h2::before { content: ""; width: 24px; height: 2px; background: var(--mk-gold); flex: 0 0 auto; }

.mke-block--features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mke-block--features li { position: relative; margin: 0; padding: 15px 16px 15px 48px; background: #120e0b; border: 1px solid var(--mk-line-soft); border-radius: 12px; color: var(--mk-text); font-size: 15px; line-height: 1.45; }
.mke-block--features li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: rgba(226,176,108,.16); }
.mke-block--features li::after { content: ""; position: absolute; left: 24px; top: 18px; width: 4px; height: 9px; border-right: 2px solid var(--mk-gold); border-bottom: 2px solid var(--mk-gold); transform: rotate(45deg); }

.mke-desc table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
.mke-desc th, .mke-desc td { padding: 14px 16px; border-bottom: 1px solid var(--mk-line-soft); text-align: left; }
.mke-desc thead th { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mk-dim); }
.mke-desc tbody tr:last-child td { border-bottom: 0; }
.mke-desc tbody tr:hover td { background: rgba(255,255,255,.02); }
.mke-desc td:first-child { color: var(--mk-text); }
.mke-block--sizes th:last-child, .mke-block--sizes td:last-child { text-align: right; }
.mke-block--sizes td:last-child { color: var(--mk-gold); font-weight: 600; font-size: 16px; }
.mke-block em { color: var(--mk-dim); font-size: 14px; }
.mke-block--made { background: linear-gradient(135deg, #1e1813, #15100c); border-color: var(--mk-line); }

.mke-faq { margin-bottom: 10px; background: #120e0b; border: 1px solid var(--mk-line-soft); border-radius: 12px; transition: border-color .2s; }
.mke-faq[open] { border-color: var(--mk-line); }
.mke-faq summary { position: relative; padding: 17px 54px 17px 20px; list-style: none; cursor: pointer; color: var(--mk-text); font-weight: 600; }
.mke-faq summary::-webkit-details-marker { display: none; }
.mke-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--mk-gold); }
.mke-faq[open] summary::after { content: "\2013"; }
.mke-faq__a { padding: 0 20px 18px; }

.mke-specs dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; }
.mke-specs dt, .mke-specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--mk-line-soft); }
.mke-specs dt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mk-dim); }
.mke-specs dd { color: var(--mk-text); }
.mke-specs dt:last-of-type, .mke-specs dd:last-of-type { border-bottom: 0; }
.mke-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mke-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: #120e0b; border: 1px solid var(--mk-line-soft); font-size: 13px; }
.mke-chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

/* ---------- Product rows ---------- */
.mke-row { grid-column: 1 / -1; margin-top: 80px; }
.mke-row ul.products { margin-bottom: 0 !important; }

/* ---------- Sticky buy bar ---------- */
.mke-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; background: rgba(18,14,11,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--mk-line); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.mke-bar.is-on { transform: none; }
.mke-bar__inner { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.mke-bar__img img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.mke-bar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mke-bar__info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mke-bar__price, .mke-bar__price .amount { color: var(--mk-gold); font-weight: 600; font-size: 15px; }
.mke-bar__price .mke-from { font-size: 10px; }
.mke-bar__btn { min-height: 48px; white-space: nowrap; }
body.mke-bar-on .mk-wa { bottom: 98px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.mke-details { grid-template-columns: 1fr; margin-top: 56px; padding-top: 0; border-top: 0; gap: 18px; }
	.mke-details__nav { top: 74px; z-index: 20; flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 calc(var(--mk-gutter) * -1); padding: 12px var(--mk-gutter); background: rgba(13,10,8,.96); border-bottom: 1px solid var(--mk-line-soft); scrollbar-width: none; }
	.mke-details__nav::-webkit-scrollbar { display: none; }
	.mke-details__nav .t { display: none; }
	.mke-details__nav a { padding: 8px 14px; border: 1px solid var(--mk-line-soft); border-radius: 99px; white-space: nowrap; font-size: 14px; }
	.mke-row { margin-top: 56px; }
}
@media (max-width: 760px) {
	.woocommerce div.product .summary > .price { font-size: 26px !important; }
	.mke-highlights, .mke-block--features ul { grid-template-columns: 1fr; }
	.mke-specs dl { grid-template-columns: 1fr; }
	.mke-specs dt { padding-bottom: 4px; border-bottom: 0; }
	.mke-specs dd { padding-top: 0; }
	.mke-intro { font-size: 16px; }
	.mke-bar__img { display: none; }
	.mke-bar__inner { min-height: 70px; gap: 12px; }
	.mke-bar__btn { padding: 0 18px; font-size: 14px; }
	.mke-sw__btn { min-height: 44px; padding: 0 14px; }
}
@media (max-width: 1100px) {
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr) !important; }
}
.woocommerce div.product > * { min-width: 0; }

/* Home collection boxes: 4 per row */
.mk-cats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px; }
@media (max-width: 760px) { .mk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; } }

/* Flat main menu: keep labels on one line */
.mk-menu > li > a { white-space: nowrap; }
@media (min-width: 1101px) {
	.mk-menu { gap: clamp(14px, 1.7vw, 34px); }
}
@media (min-width: 1101px) and (max-width: 1380px) {
	.mk-menu > li > a { font-size: 15px; }
	.mk-header .mk-btn { padding-left: 18px; padding-right: 18px; }
}

/* Header logo: 2x size, shrinks smoothly on scroll (.mke-shrink set by mke inline JS) */
:root { --mk-header-h: 124px; }
.mk-header .mk-header__inner { height: 124px; transition: height .5s cubic-bezier(.22,.61,.36,1); }
.mk-header .mk-logo img, .mk-header .mk-logo .custom-logo { max-height: 96px; transition: max-height .5s cubic-bezier(.22,.61,.36,1); }
.mk-header.is-scrolled:not(.mke-shrink) .mk-header__inner { height: 124px; }
.mk-header.is-scrolled:not(.mke-shrink) .mk-logo img { max-height: 96px; }
.mk-header.mke-shrink .mk-header__inner { height: 76px; }
.mk-header.mke-shrink .mk-logo img, .mk-header.mke-shrink .mk-logo .custom-logo { max-height: 52px; }
@media (max-width: 1100px) {
	:root { --mk-header-h: 92px; }
	.mk-header .mk-header__inner, .mk-header.is-scrolled:not(.mke-shrink) .mk-header__inner { height: 92px; }
	.mk-header .mk-logo img, .mk-header .mk-logo .custom-logo, .mk-header.is-scrolled:not(.mke-shrink) .mk-logo img { max-height: 72px; }
	.mk-header.mke-shrink .mk-header__inner { height: 68px; }
	.mk-header.mke-shrink .mk-logo img, .mk-header.mke-shrink .mk-logo .custom-logo { max-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.mk-header .mk-header__inner, .mk-header .mk-logo img { transition: none; }
}
.mk-header .mk-quote-btn, .mk-header .mk-btn { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1500px) { .mk-header__inner { gap: 22px; } .mk-menu { gap: clamp(12px, 1.4vw, 28px); } }
@media (min-width: 1101px) {
	.mk-hero { min-height: clamp(720px, 92vh, 880px); }
	.mk-hero__content { padding-top: calc(var(--mk-header-h) + 24px); }
}

/* Floating WhatsApp button */
.mke-wa { position: fixed; right: 24px; bottom: 24px; z-index: 9990; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.55); transition: transform .25s ease, bottom .35s ease; animation: mke-wa-pulse 2.6s infinite; }
.mke-wa:hover { transform: scale(1.08); color: #fff; }
.mke-wa__tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #1b1511; color: #f3ece4; font-size: 13px; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(226,176,108,.3); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mke-wa:hover .mke-wa__tip { opacity: 1; }
@keyframes mke-wa-pulse { 0% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,0); } }
body.single-product .mke-wa { bottom: 112px; }
@media (max-width: 760px) { .mke-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; } body.single-product .mke-wa { bottom: 96px; } .mke-wa__tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .mke-wa { animation: none; } }

/* InstaPay */
.mke-ipay-label { display: inline-flex; align-items: center; gap: 10px; }
.mke-ipay-label__badge, .mke-ipay__badge { display: inline-block; background: linear-gradient(135deg,#5b2c83,#8a3ab9); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; }
.mke-ipay-desc p { margin: 0 0 6px; }
.mke-ipay { margin: 28px 0 36px; padding: 28px; border: 1px solid rgba(226,176,108,.35); border-radius: 18px; background: linear-gradient(160deg, rgba(226,176,108,.08), rgba(255,255,255,.02)); }
.mke-ipay__head h2 { margin: 12px 0 6px; font-size: clamp(22px,2.4vw,30px); }
.mke-ipay__head p { color: var(--mk-text-dim, #c9bfb3); margin: 0 0 20px; max-width: 640px; }
.mke-ipay__grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 28px; align-items: center; }
.mke-ipay__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mke-ipay__row span { min-width: 150px; color: var(--mk-text-dim, #c9bfb3); font-size: 14px; }
.mke-ipay__row strong { font-size: 17px; }
.mke-ipay__amount { color: var(--mk-gold, #e2b06c); font-size: 24px !important; }
.mke-ipay__copy { margin-left: auto; background: transparent; border: 1px solid rgba(226,176,108,.5); color: var(--mk-gold, #e2b06c); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.mke-ipay__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mke-ipay__qr { text-align: center; }
.mke-ipay__qr img, .mke-ipay__qrcode { display: block; width: 220px; height: 220px; margin: 0 auto 10px; background: #fff; padding: 10px; border-radius: 14px; box-sizing: border-box; }
.mke-ipay__qrcode svg { width: 100%; height: 100%; display: block; }
.mke-ipay__qr small { color: var(--mk-text-dim, #c9bfb3); }
@media (max-width: 760px) { .mke-ipay { padding: 20px; } .mke-ipay__grid { grid-template-columns: 1fr; } .mke-ipay__qr { order: -1; } .mke-ipay__row span { min-width: 120px; } }

/* Payment policy */
.mke-policy { margin: 18px 0 22px; padding: 16px 18px; border: 1px solid rgba(226,176,108,.28); border-radius: 14px; background: rgba(226,176,108,.06); }
.mke-policy__incl { margin: 0 0 12px; font-size: 15px; color: var(--mk-text, #f3ece4); display: flex; gap: 10px; align-items: center; }
.mke-policy__tick { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--mk-gold, #e2b06c); color: #14100d; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.mke-policy__plan { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mke-policy__plan span { padding: 10px 8px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); text-align: center; font-size: 13px; color: var(--mk-text-dim, #c9bfb3); line-height: 1.35; }
.mke-policy__plan b { display: block; font-size: 18px; color: var(--mk-gold, #e2b06c); }
.mke-policy--checkout { max-width: 1280px; margin: 0 auto 28px; }
.mke-ipay__incl { font-style: normal; font-size: 13px; color: var(--mk-text-dim, #c9bfb3); }
.mke-ipay__plan { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.mke-ipay__plan h3 { margin: 0 0 12px; font-size: 18px; }
.mke-ipay__plan ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.mke-ipay__plan li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.mke-ipay__plan li.is-now { border-color: rgba(226,176,108,.55); background: rgba(226,176,108,.1); }
.mke-ipay__pct { min-width: 46px; font-weight: 700; color: var(--mk-gold, #e2b06c); }
.mke-ipay__when { flex: 1; }
.mke-ipay__when b { color: var(--mk-gold, #e2b06c); font-weight: 600; }
.mke-ipay__plan p { margin: 0; font-size: 14px; color: var(--mk-text-dim, #c9bfb3); }
.mke-ipay__send { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mke-ipay__send p { margin: 0; color: var(--mk-text, #f3ece4); font-size: 15px; }
.mke-ipay__wa { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .mke-ipay__send .mke-ipay__wa { width: 100%; justify-content: center; } }

/* My Account: WooCommerce clearfix pseudo-elements were taking the first grid cell */
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none !important; content: none !important; }
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
