/**
 * KafeZare Shop v1.2
 * Scoped exclusively to #kz-shop-v12
 */

#kz-shop-v12{
    --shop-dark:#120906;
    --shop-dark2:#2b170d;
    --shop-brown:#6b3d21;
    --shop-gold:#d6a354;
    --shop-gold2:#f4d28e;
    --shop-cream:#fff8ef;
    --shop-bg:#fbf6f0;
    --shop-text:#281810;
    --shop-muted:#756960;
    width:100%;
    overflow:hidden;
    background:var(--shop-bg);
    color:var(--shop-text);
    font-family:Vazirmatn,Tahoma,Arial,sans-serif;
    isolation:isolate;
}
#kz-shop-v12 *,#kz-shop-v12 *::before,#kz-shop-v12 *::after{box-sizing:border-box}
#kz-shop-v12 a{text-decoration:none!important}
#kz-shop-v12 img{max-width:100%;display:block}
#kz-shop-v12 h1,#kz-shop-v12 h2,#kz-shop-v12 h3,#kz-shop-v12 p{margin-top:0}
#kz-shop-v12 .kz-shop-container{width:min(1240px,calc(100% - 40px));margin-inline:auto}

/* HERO */
#kz-shop-v12 .kz-shop-hero{
    position:relative;min-height:390px;overflow:hidden;
    color:#fff;
    background:
      radial-gradient(circle at 76% 45%,rgba(214,163,84,.26),transparent 24%),
      radial-gradient(circle at 12% 80%,rgba(113,61,30,.25),transparent 30%),
      linear-gradient(135deg,var(--shop-dark),var(--shop-dark2) 58%,#51301a);
}
#kz-shop-v12 .kz-shop-hero-inner{
    min-height:390px;display:grid;grid-template-columns:1.2fr .8fr;
    align-items:center;gap:30px;padding:50px 0;
}
#kz-shop-v12 .kz-shop-eyebrow{
    display:inline-flex;align-items:center;gap:8px;padding:8px 14px;
    border:1px solid rgba(255,255,255,.14);border-radius:999px;
    background:rgba(255,255,255,.06);backdrop-filter:blur(10px);
    color:var(--shop-gold2)!important;font-size:11px;font-weight:800;
}
#kz-shop-v12 .kz-shop-eyebrow b{width:7px;height:7px;border-radius:50%;background:var(--shop-gold);box-shadow:0 0 15px rgba(214,163,84,.8)}
#kz-shop-v12 .kz-shop-hero h1{margin:16px 0 10px;color:#fff!important;font-size:clamp(38px,5vw,64px);line-height:1.2;font-weight:900}
#kz-shop-v12 .kz-shop-hero p{max-width:650px;color:rgba(255,255,255,.68)!important;font-size:14px;line-height:2.1}
#kz-shop-v12 .kz-shop-breadcrumb{position:absolute;top:96px;z-index:8;font-size:11px}
#kz-shop-v12 .kz-shop-breadcrumb a,#kz-shop-v12 .kz-shop-breadcrumb span{color:rgba(255,255,255,.55)!important}
#kz-shop-v12 .kz-shop-orb{position:absolute;border-radius:50%;pointer-events:none}
#kz-shop-v12 .kz-shop-orb-a{width:420px;height:420px;right:-130px;top:-120px;background:radial-gradient(circle,rgba(214,163,84,.18),transparent 68%);filter:blur(5px);animation:kzShopPulse 5s ease-in-out infinite}
#kz-shop-v12 .kz-shop-orb-b{width:240px;height:240px;left:-100px;bottom:-100px;background:radial-gradient(circle,rgba(255,255,255,.07),transparent 70%)}
@keyframes kzShopPulse{50%{transform:scale(1.08);opacity:.75}}

/* FLOATING BEANS */
#kz-shop-v12 .kz-shop-beans{position:absolute;inset:0;pointer-events:none;opacity:.65}
#kz-shop-v12 .kz-shop-beans i{position:absolute;width:18px;height:27px;border-radius:55% 45% 55% 45%;background:linear-gradient(145deg,#8b542d,#2d160c);box-shadow:inset -3px -2px 4px rgba(0,0,0,.45),0 8px 18px rgba(0,0,0,.18);transform:rotate(35deg);animation:kzShopBeanFloat 6s ease-in-out infinite}
#kz-shop-v12 .kz-shop-beans i::after{content:"";position:absolute;width:2px;height:20px;left:8px;top:3px;background:rgba(255,214,145,.22);border-radius:50%;transform:rotate(15deg)}
#kz-shop-v12 .kz-shop-beans i:nth-child(1){right:12%;top:25%;animation-delay:-1s}
#kz-shop-v12 .kz-shop-beans i:nth-child(2){right:28%;top:16%;transform:scale(.7) rotate(-20deg);animation-delay:-3s}
#kz-shop-v12 .kz-shop-beans i:nth-child(3){right:42%;top:72%;transform:scale(.55) rotate(50deg);animation-delay:-2s}
#kz-shop-v12 .kz-shop-beans i:nth-child(4){left:13%;top:28%;transform:scale(.65) rotate(80deg);animation-delay:-4s}
#kz-shop-v12 .kz-shop-beans i:nth-child(5){left:28%;bottom:17%;transform:scale(.45) rotate(-10deg);animation-delay:-2.5s}
#kz-shop-v12 .kz-shop-beans i:nth-child(6){right:6%;bottom:20%;transform:scale(.8) rotate(15deg);animation-delay:-4.5s}
@keyframes kzShopBeanFloat{50%{translate:0 -18px;rotate:12deg}}

/* 3D CUP */
#kz-shop-v12 .kz-shop-cup{height:280px;position:relative;display:flex;justify-content:center;align-items:flex-end;filter:drop-shadow(0 35px 35px rgba(0,0,0,.35));transform:rotate(-3deg);animation:kzShopCupFloat 5s ease-in-out infinite}
#kz-shop-v12 .kz-shop-cup-body{position:absolute;bottom:32px;width:180px;height:125px;border-radius:18px 18px 48px 48px;background:linear-gradient(90deg,#eee1d4,#fffaf3 45%,#cdbdaf);border:5px solid rgba(255,255,255,.65);box-shadow:inset -15px -8px 25px rgba(65,33,17,.16),inset 8px 5px 14px rgba(255,255,255,.8);z-index:3}
#kz-shop-v12 .kz-shop-cup-coffee{position:absolute;top:-13px;left:5px;width:160px;height:35px;border-radius:50%;background:radial-gradient(ellipse at 45% 45%,#9c6235 0 20%,#3a1c0e 52%,#160904 100%);box-shadow:0 3px 0 rgba(255,255,255,.3)}
#kz-shop-v12 .kz-shop-cup-logo{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);font-weight:900;font-size:20px;color:#6b3d21}
#kz-shop-v12 .kz-shop-cup-handle{position:absolute;bottom:65px;right:calc(50% - 120px);width:65px;height:65px;border:13px solid #e8d9ca;border-left:0;border-radius:0 50% 50% 0;z-index:2}
#kz-shop-v12 .kz-shop-saucer{position:absolute;bottom:18px;width:230px;height:30px;border-radius:50%;background:linear-gradient(#f9f0e7,#bda99a);box-shadow:0 7px 12px rgba(0,0,0,.25)}
#kz-shop-v12 .kz-shop-steam{position:absolute;bottom:155px;width:28px;height:100px;border-radius:50%;border-left:4px solid rgba(255,255,255,.35);filter:blur(1px);animation:kzShopSteam 3s ease-in-out infinite;z-index:5}
#kz-shop-v12 .steam-1{left:calc(50% - 42px);transform:rotate(8deg)}
#kz-shop-v12 .steam-2{left:calc(50% - 5px);height:120px;animation-delay:-1s;transform:rotate(-5deg)}
#kz-shop-v12 .steam-3{left:calc(50% + 30px);height:90px;animation-delay:-2s;transform:rotate(10deg)}
@keyframes kzShopSteam{0%,100%{opacity:.1;transform:translateY(8px) scaleX(.8)}50%{opacity:.7;transform:translateY(-22px) scaleX(1.1)}}
@keyframes kzShopCupFloat{50%{transform:translateY(-10px) rotate(1deg)}}


/* v1.4 compatibility layer: protect the shop from theme/WooCommerce global styles */
#kz-shop-v12{display:block!important;position:relative;clear:both!important;max-width:none!important;margin:0!important;padding:0!important;}
#kz-shop-v12 .kz-shop-container{max-width:1240px!important;}
#kz-shop-v12 .kz-shop-product-grid .product-category,
#kz-shop-v12 .kz-shop-product-grid .woocommerce-loop-product__link{display:block;}
#kz-shop-v12 .kz-shop-product-grid .button::after{display:none!important;}
#kz-shop-v12 .kz-shop-product-quick a.loading{padding-right:14px!important;}
#kz-shop-v12 .woocommerce-result-count{display:none!important;}

/* CATEGORIES */
#kz-shop-v12 .kz-shop-categories{padding:65px 0 35px;background:#fff}
#kz-shop-v12 .kz-shop-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
#kz-shop-v12 .kz-shop-section-head span,#kz-shop-v12 .kz-shop-toolbar>div>span{color:var(--shop-gold);font-size:10px;font-weight:900}
#kz-shop-v12 .kz-shop-section-head h2,#kz-shop-v12 .kz-shop-toolbar h2{margin:4px 0 0;color:var(--shop-text);font-size:28px;font-weight:900}
#kz-shop-v12 .kz-shop-section-head>a{color:var(--shop-brown)!important;font-size:11px;font-weight:800}
#kz-shop-v12 .kz-shop-category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
#kz-shop-v12 .kz-shop-category-card{position:relative;min-height:175px;overflow:hidden;border-radius:22px;background:#3a1e10;box-shadow:0 12px 30px rgba(48,28,15,.09);isolation:isolate}
#kz-shop-v12 .kz-shop-category-image,#kz-shop-v12 .kz-shop-category-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#kz-shop-v12 .kz-shop-category-image img{transition:transform .55s ease,opacity .35s ease;opacity:.7}
#kz-shop-v12 .kz-shop-category-card:hover .kz-shop-category-image img{transform:scale(1.08);opacity:.9}
#kz-shop-v12 .kz-shop-category-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:48px;color:rgba(255,255,255,.35)}
#kz-shop-v12 .kz-shop-category-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:end;padding:18px;background:linear-gradient(transparent 25%,rgba(24,10,4,.88));z-index:2}
#kz-shop-v12 .kz-shop-category-overlay strong{color:#fff;font-size:17px}
#kz-shop-v12 .kz-shop-category-overlay small{margin-top:4px;color:rgba(255,255,255,.65);font-size:10px}

/* PRODUCTS */
#kz-shop-v12 .kz-shop-products-section{padding:45px 0 80px}
#kz-shop-v12 .kz-shop-toolbar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px}
#kz-shop-v12 .kz-shop-toolbar-actions{display:flex;align-items:center;gap:10px}
#kz-shop-v12 .kz-shop-search{display:flex;width:260px;height:44px;background:#fff;border:1px solid #eadfd4;border-radius:14px;overflow:hidden}
#kz-shop-v12 .kz-shop-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;padding:0 14px;color:var(--shop-text);font-size:11px}
#kz-shop-v12 .kz-shop-search button{width:45px;border:0;background:var(--shop-brown);color:#fff;font-size:20px}
#kz-shop-v12 .kz-shop-ordering .woocommerce-ordering{float:none;margin:0}
#kz-shop-v12 .kz-shop-ordering select{height:44px;padding:0 14px;border:1px solid #eadfd4;border-radius:14px;background:#fff;color:var(--shop-text);font-size:11px;outline:0}
#kz-shop-v12 .kz-shop-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
#kz-shop-v12 .kz-shop-product-card{position:relative;min-width:0;background:#fff;border:1px solid #eee5dc;border-radius:24px;overflow:hidden;box-shadow:0 8px 25px rgba(49,29,15,.055);transition:transform .35s ease,box-shadow .35s ease}
#kz-shop-v12 .kz-shop-product-card:hover{transform:translateY(-7px);box-shadow:0 20px 40px rgba(49,29,15,.12)}
#kz-shop-v12 .kz-shop-product-media{position:relative;background:linear-gradient(145deg,#f6eee6,#fff);overflow:hidden}
#kz-shop-v12 .kz-shop-product-image{display:block;position:relative;aspect-ratio:1/1}
#kz-shop-v12 .kz-shop-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
#kz-shop-v12 .kz-shop-product-card:hover .kz-shop-product-image img{transform:scale(1.06)}
#kz-shop-v12 .kz-shop-badge{position:absolute;top:13px;right:13px;z-index:4;padding:7px 10px;border-radius:999px;font-size:9px;font-weight:900;color:#fff}
#kz-shop-v12 .kz-shop-sale{background:#a43f2d}
#kz-shop-v12 .kz-shop-featured{background:var(--shop-brown)}
#kz-shop-v12 .kz-shop-stock{position:absolute;left:13px;top:13px;z-index:4;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);color:#5d7752;font-size:8px;font-weight:800}
#kz-shop-v12 .kz-shop-product-quick{position:absolute;left:12px;right:12px;bottom:12px;z-index:5;opacity:0;transform:translateY(8px);transition:.3s}
#kz-shop-v12 .kz-shop-product-card:hover .kz-shop-product-quick{opacity:1;transform:none}
#kz-shop-v12 .kz-shop-product-quick .add_to_cart_button,
#kz-shop-v12 .kz-shop-product-quick .button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%;min-height:44px;margin:0!important;padding:0 14px!important;border-radius:13px!important;background:rgba(43,23,13,.94)!important;color:#fff!important;font-size:10px!important;font-weight:900!important;line-height:1!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important}
#kz-shop-v12 .kz-shop-product-quick .added_to_cart{display:none!important}
#kz-shop-v12 .kz-shop-product-body{padding:16px}
#kz-shop-v12 .kz-shop-product-cat{display:inline-block;margin-bottom:7px;color:#a27858!important;font-size:9px;font-weight:800}
#kz-shop-v12 .kz-shop-product-title{min-height:44px;margin:0!important}
#kz-shop-v12 .kz-shop-product-title a{color:var(--shop-text)!important;font-size:14px;font-weight:900;line-height:1.7}
#kz-shop-v12 .kz-shop-product-rating{display:flex;align-items:center;gap:5px;margin-top:7px;min-height:18px;color:#c58b35}
#kz-shop-v12 .kz-shop-product-rating small{font-size:9px;color:#77695f}
#kz-shop-v12 .kz-shop-no-rating{color:#a49a93;font-size:8px}
#kz-shop-v12 .kz-shop-price{margin-top:10px;min-height:25px}
#kz-shop-v12 .kz-shop-price .amount{font-weight:900;color:var(--shop-brown)}
#kz-shop-v12 .kz-shop-price del .amount{font-size:10px;color:#aaa;font-weight:500}
#kz-shop-v12 .kz-shop-price ins{text-decoration:none}
#kz-shop-v12 .kz-shop-price .woocommerce-Price-currencySymbol{font-size:9px;margin-right:3px}

/* PAGINATION */
#kz-shop-v12 .kz-shop-pagination{margin-top:38px;text-align:center}
#kz-shop-v12 .kz-shop-pagination ul{display:flex;justify-content:center;gap:7px;list-style:none;margin:0;padding:0}
#kz-shop-v12 .kz-shop-pagination li{margin:0}
#kz-shop-v12 .kz-shop-pagination a,
#kz-shop-v12 .kz-shop-pagination span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border-radius:12px;background:#fff;border:1px solid #eadfd4;color:var(--shop-brown);font-size:11px;font-weight:800}
#kz-shop-v12 .kz-shop-pagination .current{background:var(--shop-brown);border-color:var(--shop-brown);color:#fff}
#kz-shop-v12 .kz-shop-pagination .dots{background:transparent;border:0}

/* EMPTY */
#kz-shop-v12 .kz-shop-empty{text-align:center;padding:80px 20px;background:#fff;border-radius:28px}
#kz-shop-v12 .kz-shop-empty-icon{font-size:55px;margin-bottom:10px}
#kz-shop-v12 .kz-shop-empty h2{margin:0 0 8px;color:var(--shop-text)}
#kz-shop-v12 .kz-shop-empty p{color:var(--shop-muted);font-size:12px}
#kz-shop-v12 .kz-shop-empty-btn{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 20px;border-radius:13px;background:var(--shop-brown);color:#fff!important;font-size:11px;font-weight:900}

/* MOBILE */
@media (max-width:1024px){
    #kz-shop-v12 .kz-shop-category-grid{grid-template-columns:repeat(3,1fr)}
    #kz-shop-v12 .kz-shop-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:800px){
    #kz-shop-v12 .kz-shop-hero-inner{grid-template-columns:1fr;text-align:center;padding-top:75px}
    #kz-shop-v12 .kz-shop-hero p{margin-inline:auto}
    #kz-shop-v12 .kz-shop-cup{height:220px;transform:scale(.8)}
    #kz-shop-v12 .kz-shop-breadcrumb{display:none}
    #kz-shop-v12 .kz-shop-toolbar{align-items:stretch;flex-direction:column}
    #kz-shop-v12 .kz-shop-toolbar-actions{flex-wrap:wrap}
    #kz-shop-v12 .kz-shop-search{flex:1;width:auto}
    #kz-shop-v12 .kz-shop-ordering{flex:1}
    #kz-shop-v12 .kz-shop-ordering select{width:100%}
    #kz-shop-v12 .kz-shop-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
}
@media (max-width:560px){
    #kz-shop-v12 .kz-shop-container{width:min(100% - 24px,1240px)}
    #kz-shop-v12 .kz-shop-hero{min-height:430px}
    #kz-shop-v12 .kz-shop-hero-inner{min-height:430px}
    #kz-shop-v12 .kz-shop-hero h1{font-size:38px}
    #kz-shop-v12 .kz-shop-category-grid{grid-template-columns:repeat(2,1fr);gap:10px}
    #kz-shop-v12 .kz-shop-category-card{min-height:135px;border-radius:17px}
    #kz-shop-v12 .kz-shop-category-overlay{padding:12px}
    #kz-shop-v12 .kz-shop-category-overlay strong{font-size:13px}
    #kz-shop-v12 .kz-shop-product-card{border-radius:17px}
    #kz-shop-v12 .kz-shop-product-body{padding:12px}
    #kz-shop-v12 .kz-shop-product-title{min-height:42px}
    #kz-shop-v12 .kz-shop-product-title a{font-size:12px}
    #kz-shop-v12 .kz-shop-product-quick{opacity:1;transform:none;position:static;padding:0 10px 10px}
    #kz-shop-v12 .kz-shop-product-quick .add_to_cart_button,
    #kz-shop-v12 .kz-shop-product-quick .button{min-height:40px}
    #kz-shop-v12 .kz-shop-beans{opacity:.35}
}
@media (prefers-reduced-motion:reduce){
    #kz-shop-v12 *,#kz-shop-v12 *::before,#kz-shop-v12 *::after{animation:none!important;transition:none!important}
}
