/* Mishkat theme styles. Colors and fonts come from theme.json. */
:root{
  --mk-night:var(--wp--preset--color--night,#0F2239);
  --mk-navy:var(--wp--preset--color--navy,#193251);
  --mk-gold:var(--wp--preset--color--gold,#DFA563);
  --mk-gold-deep:var(--wp--preset--color--gold-deep,#9A6420);
  --mk-sky:var(--wp--preset--color--sky,#56B6DC);
  --mk-cream:var(--wp--preset--color--cream,#F9F9F5);
  --mk-line:var(--wp--preset--color--line,#E4E2DA);
  --mk-muted:var(--wp--preset--color--muted,#5A6A7E);
}

.mk-wrap{max-width:1160px;margin-inline:auto;padding-inline:1.25rem;box-sizing:border-box;width:100%}
.wp-site-blocks>*{margin-block-start:0}
.mk-main>*{margin-block-start:0}

/* keyboard focus */
:where(a,button,input,summary):focus-visible{outline:3px solid var(--mk-sky);outline-offset:2px;border-radius:4px}

/* ---------- header ---------- */
header.wp-block-template-part{position:sticky;top:0;z-index:50}
body.admin-bar header.wp-block-template-part{top:32px}
@media (max-width:782px){body.admin-bar header.wp-block-template-part{top:46px}}
header.wp-block-template-part>*{margin-block-start:0}

.mk-announce{background:var(--mk-night);color:var(--mk-cream);padding-block:.4rem}
.mk-announce p{margin:0;font-size:.85rem;letter-spacing:0}

.mk-header{background:rgba(249,249,245,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--mk-line)}
.mk-header__inner{padding-block:.3rem;gap:1.25rem}
.mk-header__brand{gap:1.75rem;align-items:center}
.mk-header__tools{gap:.75rem;align-items:center}
.mk-header .wp-block-site-logo img{display:block;height:auto}
.mk-nav a{text-decoration:none;color:var(--mk-navy);padding-block:.35rem;border-bottom:2px solid transparent;transition:border-color .15s}
.mk-nav a:hover{border-bottom-color:var(--mk-gold)}
.mk-search{min-width:230px}
.mk-search .wc-block-product-search__fields,.mk-search .wp-block-search__inside-wrapper{border-radius:999px}
.mk-search input[type="search"]{font-family:inherit;border-radius:999px}
.mk-search label,.mk-search .wc-block-product-search__label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
form.mk-search{display:flex;align-items:center;min-width:250px;border:1px solid var(--mk-line);border-radius:999px;background:#fff;overflow:hidden;margin:0}
form.mk-search:focus-within{border-color:var(--mk-gold);box-shadow:0 0 0 3px rgba(86,182,220,.35)}
form.mk-search input[type="search"]{flex:1;min-width:0;border:0;background:transparent;padding:.5rem 1rem;font:inherit;font-size:.95rem;outline:0;border-radius:0}
form.mk-search button{border:0;background:var(--mk-gold);color:var(--mk-night);font:inherit;font-weight:700;font-size:.95rem;padding:.5rem 1.1rem;cursor:pointer;align-self:stretch}
form.mk-search button:hover{background:var(--mk-navy);color:var(--mk-cream)}
.mk-header .wc-block-mini-cart__button,.mk-header .wc-block-customer-account__account-icon{color:var(--mk-navy)}
@media (max-width:781px){
  .mk-header__inner{flex-wrap:wrap!important;gap:.4rem .75rem!important}
  .mk-header__brand{flex:1 1 auto}
  .mk-header__tools{display:contents!important}
  form.mk-search{order:10;flex:1 1 100%;min-width:0;margin-bottom:.35rem}
}
body{overflow-x:clip}

/* ---------- hero ---------- */
.mk-hero{
  color:var(--mk-cream);
  background:
    radial-gradient(55% 75% at 24% 52%,rgba(223,165,99,.30),transparent 68%),
    radial-gradient(1.5px 1.5px at 8% 18%,rgba(255,255,255,.85),transparent 100%),
    radial-gradient(1.5px 1.5px at 41% 12%,rgba(255,255,255,.6),transparent 100%),
    radial-gradient(2px 2px at 58% 83%,rgba(255,255,255,.55),transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 30%,rgba(255,255,255,.7),transparent 100%),
    radial-gradient(1.5px 1.5px at 74% 64%,rgba(255,255,255,.5),transparent 100%),
    linear-gradient(135deg,#0F2239 0%,#193251 62%,#24476F 100%);
}
.mk-hero__cols{align-items:center;gap:clamp(2rem,6vw,5rem);margin:0}
@media (min-width:782px){.mk-hero__text{flex-basis:56%!important}.mk-hero__art{flex-basis:44%!important}}
.mk-hero h1{color:var(--mk-cream);margin:0 0 .75rem;line-height:1.3}
.mk-hero p{color:rgba(249,249,245,.84);max-width:32rem;font-size:var(--wp--preset--font-size--medium,1.125rem)}
.mk-hero .wp-block-buttons{margin-top:1.25rem;gap:.75rem}
.mk-hero .mk-btn-ghost .wp-block-button__link{background:transparent;color:var(--mk-cream);border:1.5px solid rgba(249,249,245,.55)}
.mk-hero .mk-btn-ghost .wp-block-button__link:hover{background:rgba(249,249,245,.12);color:#fff;border-color:var(--mk-cream)}

/* the niche (mishkat) that holds the lantern */
.mk-niche{
  margin:0 auto;width:min(240px,60%);aspect-ratio:4/5;box-sizing:border-box;
  border-radius:999px 999px 20px 20px;
  background:radial-gradient(circle at 50% 36%,#FFF7E6 0%,#F6DDB0 62%,#E8BC7C 100%);
  box-shadow:0 0 0 1px rgba(223,165,99,.55),0 0 0 14px rgba(223,165,99,.10),0 34px 90px rgba(223,165,99,.28);
  display:grid;place-items:center;padding:9% 9% 7%;
}
.mk-niche img{width:100%;height:auto;display:block}

/* ---------- home sections ---------- */
.mk-section{padding-block:1.25rem}
.mk-section:last-of-type{padding-bottom:2.5rem}
body:not(.block-editor-iframe__body) .mk-section--hide-empty:not(:has(li.product)){display:none}
.mk-section__head{align-items:baseline;margin-bottom:.9rem}
.mk-section__head h2{margin:0;font-size:var(--wp--preset--font-size--large)}
.mk-more{margin:0}
.mk-more a{font-weight:700;font-size:.95rem;text-decoration:none;border-bottom:2px solid var(--mk-gold)}

/* category chips: category lists show as small pills (no images), on every page */
.woocommerce ul.products:not(:has(li:not(.product-category))){display:flex;flex-wrap:wrap;gap:.5rem;margin:0;padding:0;list-style:none}
.woocommerce ul.products:not(:has(li:not(.product-category)))::before,.woocommerce ul.products:not(:has(li:not(.product-category)))::after{display:none}
.woocommerce ul.products li.product.product-category{float:none!important;width:auto!important;margin:0!important;padding:0;background:none;border:0;box-shadow:none;display:block}
.woocommerce ul.products li.product-category img,.woocommerce ul.products li.product-category .count,.woocommerce ul.products li.product-category .button{display:none!important}
.woocommerce ul.products li.product-category a{display:block;padding:.45rem 1.1rem;background:#fff;border:1px solid var(--mk-line);border-radius:999px;text-decoration:none;color:var(--mk-navy);transition:border-color .15s,background .15s}
.woocommerce ul.products li.product-category a:hover{border-color:var(--mk-gold);background:#FFF7E6}
.woocommerce ul.products li.product-category h2{font-family:var(--wp--preset--font-family--body);font-size:.95rem!important;font-weight:500;line-height:1.5!important;margin:0!important;padding:0!important}
.woocommerce ul.products li.product-category a:not(:has(h2)){display:none!important}
.woocommerce ul.products li.product-category > *:not(a){display:none!important}
.woocommerce ul.products li.product-category::before,.woocommerce ul.products li.product-category::after{display:none!important}
.woocommerce ul.products li.product.product-category:hover{box-shadow:none!important;border-color:transparent!important}
.woocommerce ul.products li.product-category:has(a[href*="uncategorized"]){display:none}
.mk-chips{padding-block:1rem .25rem}

/* horizontally scrolling product rows */
.mk-row{position:relative}
.mk-row .woocommerce{margin:0}
.mk-row .woocommerce ul.products{display:flex;gap:1rem;margin:0;padding:0 0 .9rem;list-style:none;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--mk-gold) transparent;-webkit-overflow-scrolling:touch}
.mk-row .woocommerce ul.products::before,.mk-row .woocommerce ul.products::after{display:none}
.mk-row .woocommerce ul.products li.product{float:none!important;margin:0!important;flex:0 0 clamp(150px,17vw,210px);width:auto!important;scroll-snap-align:start}
@media (max-width:640px){.mk-row .woocommerce ul.products li.product{flex-basis:46%}}
.mk-row__btn{position:absolute;top:calc(50% - 2rem);z-index:5;width:42px;height:42px;border-radius:50%;border:1px solid var(--mk-line);background:#fff;color:var(--mk-navy);font-size:1.7rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 18px rgba(25,50,81,.15);padding:0;padding-bottom:3px}
.mk-row__btn:hover{background:var(--mk-gold);border-color:var(--mk-gold)}
.mk-row__btn[hidden]{display:none}
.mk-row__btn--left{left:-12px}
.mk-row__btn--right{right:-12px}
@media (hover:none){.mk-row__btn{display:none}}

/* product cards */
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--mk-line);border-radius:10px;padding:.5rem .5rem .75rem;display:flex;flex-direction:column;position:relative;transition:border-color .15s,box-shadow .15s;box-sizing:border-box}
.woocommerce ul.products li.product:hover{border-color:var(--mk-gold);box-shadow:0 10px 30px rgba(25,50,81,.08)}
.woocommerce ul.products li.product a img{border-radius:6px;aspect-ratio:1/1;object-fit:cover;width:100%;height:auto;margin:0 0 .7rem}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--wp--preset--font-family--body);font-size:.9rem;font-weight:500;line-height:1.55;padding:0;margin:0 0 .25rem;color:var(--mk-navy);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.woocommerce ul.products li.product .price{color:var(--mk-navy);font-weight:700;font-size:1.02rem;margin-bottom:.1rem;display:block}
.woocommerce ul.products li.product .price del{color:var(--mk-muted);font-weight:400;opacity:.8}
.woocommerce ul.products li.product .price ins{text-decoration:none}
.woocommerce ul.products li.product .button{margin-top:auto;display:block;background:var(--mk-gold);color:var(--mk-night);border-radius:8px;font-weight:700;font-size:.95rem;text-align:center;padding:.6rem .5rem;white-space:nowrap}
.woocommerce ul.products li.product .button:hover{background:var(--mk-navy);color:var(--mk-cream)}
/* anything else a plugin adds under the price (empty boxes, notes) is hidden inside the scrolling rows */
.mk-row .woocommerce ul.products li.product > :not(.woocommerce-LoopProduct-link):not(.onsale):not(.button){display:none!important}
.mk-row .woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:3.1em}
.mk-row .woocommerce ul.products li.product{padding-bottom:.5rem}

/* quick add-to-cart button under cards: hidden by default. Add the CSS class mk-show-btn to a row's group in the editor to show it. */
.woocommerce ul.products li.product .button{display:none!important}
.mk-show-btn .woocommerce ul.products li.product:not(.product-category) .button{display:block!important}
.woocommerce span.onsale{background:var(--mk-navy);color:var(--mk-cream);border-radius:6px;min-height:0;min-width:0;line-height:1;padding:.4rem .6rem;top:.9rem;inset-inline-start:.9rem;inset-inline-end:auto;left:auto;right:auto}

/* shop / single product (WooCommerce blocks) */
.wc-block-components-product-price,.wp-block-woocommerce-product-price{color:var(--mk-navy);font-weight:700}
.wc-block-components-product-image img,.wc-block-grid__product-image img{border-radius:8px}
.wc-block-product-template .wp-block-post-title{font-family:var(--wp--preset--font-family--body);font-size:1rem;font-weight:500;line-height:1.6}
.wc-block-product-template .wp-block-post-title a{text-decoration:none;color:var(--mk-navy)}
.wc-block-components-button:not(.is-link){border-radius:10px;font-weight:700}

/* ---------- pages ---------- */
.mk-page{padding-block:clamp(1.5rem,4vw,3rem) clamp(2.5rem,6vw,4.5rem)}
.mk-page .wp-block-post-title{margin-bottom:1.5rem}
.mk-page .wp-block-post-content>p,.mk-page .wp-block-post-content>ul,.mk-page .wp-block-post-content>ol,.mk-page .wp-block-post-content>h2,.mk-page .wp-block-post-content>h3{max-width:46rem}
.mk-404{text-align:start;min-height:45vh}


/* Pages rendered by WooCommerce's own templates (cart, checkout, order confirmation, shop, product): give them side padding and a max width */
.wp-site-blocks>main.wp-block-group:not(.mk-main):not(.mk-wrap){max-width:1160px;width:100%;margin-inline:auto;padding-inline:1.25rem;padding-block:clamp(1.25rem,3vw,2.5rem);box-sizing:border-box}

/* ---------- footer ---------- */
.mk-footer{background:var(--mk-night);color:rgba(249,249,245,.82);border-top:3px solid var(--mk-gold);margin-block-start:0;padding-block:3rem 1.5rem}
.mk-footer h3{color:var(--mk-cream);font-size:1.15rem;margin:0 0 .75rem}
.mk-footer p{margin:0}
.mk-footer a{color:var(--mk-gold);text-decoration:none}
.mk-footer a:hover{color:#fff;text-decoration:underline}
.mk-fstrip{gap:1.5rem;margin:0 0 2rem;padding-bottom:2rem;border-bottom:1px solid rgba(249,249,245,.14)}
.mk-fstrip__item>*{margin-block:0}
.mk-fstrip__item .mk-ico{color:var(--mk-gold);display:block;margin-bottom:.55rem}
.mk-fstrip__item h3{font-family:var(--wp--preset--font-family--body);font-size:1.02rem;font-weight:700;margin:0 0 .2rem}
.mk-fstrip__item p{font-size:.92rem;color:rgba(249,249,245,.7);line-height:1.7}
.mk-footer__cols{gap:2.5rem}
.mk-footer__brand .wp-block-image{margin:0 0 .75rem}
.mk-footer__links{list-style:none;margin:0;padding:0}
.mk-footer__links li{margin:0 0 .45rem}
.mk-footer__legal{margin-top:2.25rem!important;padding-top:1.25rem;border-top:1px solid rgba(249,249,245,.14);font-size:.85rem;color:rgba(249,249,245,.6)}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- WhatsApp ---------- */
.mk-wa{position:fixed;left:16px;bottom:16px;z-index:60;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:transform .15s}
.mk-wa:hover{transform:scale(1.06)}
@media (max-width:640px){.mk-wa{width:50px;height:50px;left:12px;bottom:12px}.mk-wa svg{width:26px;height:26px}}
.mk-wa-btn{display:inline-block;background:var(--mk-gold);color:var(--mk-night)!important;font-weight:700;padding:.8rem 1.6rem;border-radius:10px;text-decoration:none!important}
.mk-wa-btn:hover{background:var(--mk-navy);color:var(--mk-cream)!important}
.mk-footer .mk-wa-link{font-weight:700;font-size:1.05rem}

/* ---------- hero motion: entrance, then a gentle loop ---------- */
@keyframes mk-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes mk-niche-in{from{opacity:0;transform:translateY(44px) scale(.9)}to{opacity:1;transform:none}}
@keyframes mk-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes mk-breathe{
  0%,100%{box-shadow:0 0 0 1px rgba(223,165,99,.55),0 0 0 14px rgba(223,165,99,.10),0 34px 90px rgba(223,165,99,.22)}
  50%{box-shadow:0 0 0 1px rgba(223,165,99,.85),0 0 0 24px rgba(223,165,99,.16),0 34px 130px rgba(223,165,99,.50)}
}
@keyframes mk-lamp{
  0%,100%{filter:brightness(1) drop-shadow(0 0 0 rgba(255,190,100,0))}
  50%{filter:brightness(1.08) drop-shadow(0 0 16px rgba(255,190,100,.7))}
}
@keyframes mk-twinkle{0%,100%{opacity:.2;transform:scale(.7) rotate(0deg)}50%{opacity:1;transform:scale(1.2) rotate(20deg)}}

.mk-hero__text>*{animation:mk-rise .8s cubic-bezier(.2,.7,.2,1) both}
.mk-hero__text>*:nth-child(2){animation-delay:.12s}
.mk-hero__text>*:nth-child(3){animation-delay:.24s}
.mk-hero__art{position:relative;animation:mk-niche-in 1s cubic-bezier(.2,.7,.2,1) .15s both}
.mk-niche{position:relative;animation:mk-float 6s ease-in-out 1.2s infinite,mk-breathe 4.5s ease-in-out 1.2s infinite}
.mk-niche img{animation:mk-lamp 4.5s ease-in-out 1.2s infinite}
.mk-hero__art::before,.mk-hero__art::after,.mk-niche::before,.mk-niche::after{content:"";position:absolute;width:16px;height:16px;background:#F6DDB0;clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);pointer-events:none;animation:mk-twinkle 3s ease-in-out infinite}
.mk-hero__art::before{top:4%;left:10%;animation-delay:.2s}
.mk-hero__art::after{bottom:10%;right:8%;width:12px;height:12px;animation-delay:1.1s}
.mk-niche::before{top:-14px;right:-24px;width:20px;height:20px;animation-delay:.6s}
.mk-niche::after{bottom:30%;left:-28px;width:11px;height:11px;animation-delay:1.8s}
@media (prefers-reduced-motion:reduce){
  .mk-hero__text>*,.mk-hero__art,.mk-niche,.mk-niche img,.mk-hero__art::before,.mk-hero__art::after,.mk-niche::before,.mk-niche::after{animation:none!important}
}

/* ---------- gift finder band on the home page ---------- */
.mk-gift-band{background:#FFF7E6;border-block:1px solid #F0DDB8;padding-block:1.1rem}
.mk-gift-band__inner{align-items:center;gap:1rem 2rem}
.mk-gift-band__text>*{margin-block:0}
.mk-gift-band h2{font-size:1.2rem;margin:0 0 .15rem}
.mk-gift-band p{color:var(--mk-muted);font-size:.95rem;line-height:1.7}
