/* Zarinova listing polish v20261117 — card grid, hover actions, mobile 2-col */
#product-category .cpagerow:has(.product-layout:not(.product-list)),
#product-search .cpagerow:has(.product-layout:not(.product-list)){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 24px;margin-left:0;margin-right:0}
#product-category .cpagerow:has(.product-layout:not(.product-list))::before,
#product-category .cpagerow:has(.product-layout:not(.product-list))::after{display:none}
#product-category .cpagerow:has(.product-layout:not(.product-list))>.product-layout{width:auto;float:none;padding:0;margin:0}
.product-thumb{margin-bottom:0;display:flex;flex-direction:column;height:100%}
.product-thumb .image{aspect-ratio:4/5;border-radius:2px}
.product-thumb .image>a{display:block;height:100%}
.product-thumb .image>a>img{object-fit:cover;height:100%}
.product-thumb .image::after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(to top,rgba(30,27,24,.28),transparent);opacity:0;transition:opacity .35s;pointer-events:none}
.product-thumb:hover .image::after{opacity:1}
.product-thumb .caption{display:flex;flex-direction:column;flex:1;position:static}
.product-thumb .protitle{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;min-height:3.75em;max-height:3.75em;font-size:20px;line-height:1.25}
.product-thumb .protitle a{display:inline!important}
.product-thumb .catlist-des{display:none}
.product-thumb .price{margin-top:auto;padding-top:6px;font-weight:500;letter-spacing:.01em}
.product-thumb .price-pending{margin:auto 0 0;padding-top:6px;font-size:13px;color:var(--za-muted,#5E574F);font-style:italic}
/* tablets */
@media(max-width:991px){
#product-category .cpagerow:has(.product-layout:not(.product-list)){grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 16px}
}
/* phones: 2 columns, tight gutters, readable text */
@media(max-width:767px){
#product-category .cpagerow:has(.product-layout:not(.product-list)){grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}
.product-thumb .protitle{font-size:14.5px!important;line-height:1.3!important;min-height:3.9em;max-height:3.9em}
.product-thumb .price{font-size:14px!important}
.product-thumb .button-group{display:none}
.product-thumb .new,.product-thumb .sale{top:8px;left:8px;padding:4px 7px;font-size:9px}
#product-category .cate-border{margin-bottom:18px;padding:8px 0}
#product-category .catesort{width:50%;float:left;padding:0 6px}
#product-category .catesort label{display:none}
}
@media(max-width:360px){.product-thumb .protitle{font-size:13.5px!important}}
@media(prefers-reduced-motion:reduce){.product-thumb .image::after{transition:none}}

/* ---- v3 fixes: clipped prices, search grid, related cards, live-search dropdown ---- */
.product-thumb{overflow:visible!important}
.product-thumb .price,.product-thumb .price-pending{height:auto!important;min-height:0!important;line-height:1.5!important;padding-bottom:4px}
.product-thumb .caption{padding-bottom:6px}
.cpagerow:has(.product-layout:not(.product-list)){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 24px;margin-left:0;margin-right:0}
.cpagerow:has(.product-layout:not(.product-list))::before,.cpagerow:has(.product-layout:not(.product-list))::after{display:none}
.cpagerow:has(.product-layout:not(.product-list))>.product-layout{width:auto!important;float:none!important;padding:0!important;margin:0!important}
@media(max-width:991px){.cpagerow:has(.product-layout:not(.product-list)){grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 16px}}
@media(max-width:767px){.cpagerow:has(.product-layout:not(.product-list)){grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 10px}}
/* related / carousels on product & home: fill the frame instead of letterboxing */
.zn-products .product-thumb .image img,.product-thumb .image>a>img,.product-thumb .image img.img-responsive{width:100%;height:100%;object-fit:cover!important;object-position:center top}
.zn-products .product-thumb{border:0!important}
.product-thumb .image{background:var(--za-blush,#EFE3DA)}
/* live search dropdown: above the menu, tidy rows */
header{position:relative;z-index:1100}
.zn-header-main{z-index:1200}
.zn-header-main #search.desktop-search{z-index:1300!important}
.madebyhand-search-result{position:absolute;top:calc(100% + 12px)!important;left:0!important;right:0!important;width:auto;min-width:min(440px,92vw);max-height:min(72vh,560px);overflow-y:auto;background:var(--za-paper,#FFFDF9);border:1px solid var(--za-line,#E6DCCD);border-radius:2px;box-shadow:0 28px 64px rgba(30,27,24,.20);z-index:1400!important;padding:4px 0;margin:0!important}
.madebyhand-search-result:empty{display:none}
.madebyhand-search-result .madebyhand-cat{width:100%!important;float:none;padding:0}
.madebyhand-search-result .searchbr{display:flex;align-items:center;gap:16px;float:none;width:100%;margin:0;padding:12px 18px;border:0;border-bottom:1px solid var(--za-line,#E6DCCD);transition:background .2s}
.madebyhand-search-result .madebyhand-cat:last-child .searchbr{border-bottom:0}
.madebyhand-search-result .searchbr:hover{background:var(--za-linen,#F3EADF)}
.madebyhand-search-result .searchbr .product-info{flex:0 0 64px;width:64px!important;padding:0;float:none}
.madebyhand-search-result .searchbr .product-info img{width:64px;height:80px;object-fit:cover;display:block}
.madebyhand-search-result .madebyhand-dis{flex:1;min-width:0;width:auto!important;float:none;padding:0}
.madebyhand-search-result .madebyhand-dis .rating,.madebyhand-search-result .madebyhand-dis .list-des{display:none}
.madebyhand-search-result .madebyhand-dis h4{white-space:normal;text-transform:none;margin:0 0 6px;font:400 17px/1.3 var(--za-serif,Georgia,serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.madebyhand-search-result .madebyhand-dis h4 a{color:var(--za-ink,#1E1B18)}
.madebyhand-search-result .madebyhand-dis .price{font:500 14px var(--za-sans,sans-serif);color:var(--za-ink,#1E1B18);height:auto}
.madebyhand-search-result>div>p,.madebyhand-search-result>div:not(.madebyhand-cat){padding:16px 18px;margin:0;font-size:14px;color:var(--za-muted,#5E574F)}
/* v4: force every card photo to fill the 4:5 frame (wide supplier photos were letterboxed) */
.product-thumb .image{position:relative;overflow:hidden;background:var(--za-blush,#EFE3DA)!important}
.product-thumb .image>a:first-child{display:block;position:absolute;inset:0}
.product-thumb .image>a:first-child>img{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center 8%;margin:0!important}
.product-thumb .image .second-img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;opacity:0;transition:opacity .4s}
.product-thumb:hover .image .second-img{opacity:1}
.product-thumb .image>a:nth-of-type(2){position:absolute;inset:0}
.madebyhand-search-result .zv-search-all{padding:0;border-top:1px solid var(--za-line,#E6DCCD)}.madebyhand-search-result .zv-search-all a{display:block;padding:14px 18px;text-align:center;font:500 11px var(--za-sans,sans-serif);letter-spacing:.18em;text-transform:uppercase;color:var(--za-ink,#1E1B18)}.madebyhand-search-result .zv-search-all a:hover{background:var(--za-ink,#1E1B18);color:var(--za-ivory,#FAF6F0)}

/* ---- card photo/colour flipper ---- */
.product-thumb .image img.zv-fade{opacity:.55;transition:opacity .15s}
.product-thumb .image>a>img{transition:opacity .25s}
.zv-nav-wrap{position:absolute;inset:0;pointer-events:none;z-index:3}
.zv-nav{position:absolute;top:50%;transform:translateY(-50%);pointer-events:auto;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,253,249,.92);color:var(--za-ink,#1E1B18);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(30,27,24,.18);opacity:0;transition:opacity .25s,background .2s;cursor:pointer;padding:0}
.zv-prev{left:10px}.zv-next{right:10px}
.zv-nav:hover{background:#fff}
.product-thumb:hover .zv-nav,.product-thumb:focus-within .zv-nav{opacity:1}
.zv-count{position:absolute;right:10px;bottom:10px;background:rgba(30,27,24,.62);color:#fff;font:500 10px var(--za-sans,sans-serif);letter-spacing:.12em;padding:4px 8px;border-radius:20px;opacity:0;transition:opacity .25s;pointer-events:none}
.product-thumb:hover .zv-count{opacity:1}
.product-thumb[data-zv-slides] .second-img,.product-thumb[data-zv-slides] .image>a:nth-of-type(2){display:none!important}
.zv-swatches{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 2px;min-height:22px}
.zv-sw{width:20px;height:20px;border-radius:50%;border:1px solid rgba(30,27,24,.22);background:var(--c);padding:0;cursor:pointer;position:relative;transition:transform .15s,box-shadow .15s}
.zv-sw:hover{transform:scale(1.12)}
.zv-sw.is-active{box-shadow:0 0 0 2px var(--za-ivory,#FAF6F0),0 0 0 3.5px var(--za-ink,#1E1B18)}
.zv-sw:focus-visible,.zv-nav:focus-visible{outline:2px solid var(--za-gold,#9A7440);outline-offset:2px}
@media(hover:none){.zv-nav{opacity:.9;width:32px;height:32px}.zv-count{opacity:1}}
@media(max-width:767px){.zv-sw{width:18px;height:18px}.zv-swatches{gap:6px}.zv-nav{width:30px;height:30px}}
.product-thumb .button-group{margin-top:8px}
/* card title: never clip the last visible line; thumbnails are pre-cropped (no baked white padding) */
.product-thumb .caption{height:auto!important;max-height:none!important;overflow:visible!important}
.product-thumb .protitle{max-height:none!important;min-height:3.85em!important;padding-bottom:.12em}

/* --- 2026-11-24 tester notes --- */
/* mini-cart buttons: stacked, equal width, clear gap */
#cart .cartbt,.dropdown-menu .cartbt{display:flex!important;flex-direction:column;gap:12px;align-items:stretch;padding:8px 16px 16px;margin:0}
#cart .cartbt .btn,.dropdown-menu .cartbt .btn{width:100%;margin:0!important;text-align:center;float:none}
/* list view: horizontal card (image left, details right) */
.product-layout.product-list .product-thumb{float:none!important;width:100%;display:flex!important;flex-direction:row!important;align-items:center;gap:40px;max-width:960px;margin:0 auto 22px;padding:20px 28px;background:#fff;border:1px solid #eadfd3}
.product-layout.product-list .product-thumb .image{flex:0 0 220px;width:220px!important;float:none!important;margin:0!important}
.product-layout.product-list .caption{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:0!important;gap:8px}
.product-layout.product-list .caption .protitle{width:100%;text-align:left;min-height:0!important;font-size:1.35em;line-height:1.25}
.product-layout.product-list .caption .price{width:100%;text-align:left;margin:0}
.product-layout.product-list .caption .catlist-des{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;text-align:left;font-size:13.5px;line-height:1.55;color:#6b5f57}
.product-layout.product-list .caption .rating{display:none}
.product-layout.product-list .zv-swatches{justify-content:flex-start;margin:2px 0}
.product-layout.product-list .button-group{display:flex;justify-content:flex-start;width:auto;margin-top:6px}
@media(max-width:767px){.product-layout.product-list .product-thumb{flex-direction:column!important;gap:14px;padding:16px}.product-layout.product-list .product-thumb .image{flex-basis:auto;width:100%!important}.product-layout.product-list .caption{align-items:center;text-align:center}.product-layout.product-list .caption .protitle,.product-layout.product-list .caption .price,.product-layout.product-list .caption .catlist-des{text-align:center}.product-layout.product-list .zv-swatches,.product-layout.product-list .button-group{justify-content:center}}
/* anonymous review */
.zv-anon{display:flex;align-items:center;gap:8px;margin:6px 0 14px;font-size:13px}
.zv-anon input{margin:0}
