/* Jovio storefront enhancements (Bluezone) */
:root { --bz-p: #7467c8; --bz-p2: #5b4fb3; --bz-soft: #f1eefc; --bz-red: #ef4b5f; --bz-ink: #1f1b3a; --bz-mut: #7b7797; --bz-line: #ece9f6; }

/* ---------- product cards ---------- */
.product-item { border-radius: 18px !important; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(70, 50, 150, .45); }
.product-item .product-thumb img { transition: transform .35s ease; }
.product-item:hover .product-thumb img { transform: scale(1.04); }
.product-item .product-info .title a {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.45; min-height: 2.9em; color: var(--bz-ink) !important;
}
.product-item .prices .price { font-weight: 800; }

/* heart */
.product-item .product-action a.bz-heart {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    background: #fff !important; color: var(--bz-red) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12) !important; border: 0 !important;
    transition: transform .15s ease, background .15s ease;
}
.product-item .product-action a.bz-heart svg, .product-item .product-action a.bz-heart svg path { width: 19px; height: 19px; fill: none !important; stroke: currentColor !important; stroke-width: 1.9; stroke-linejoin: round; transition: fill .15s ease; }
.product-item .product-action a.bz-heart.is-on svg, .product-item .product-action a.bz-heart.is-on svg path { fill: currentColor !important; }
.product-item .product-action a.bz-heart i, .product-item .product-action a.bz-heart::before, .product-item .product-action a.bz-heart::after { display: none !important; content: none !important; }
.product-item .product-action a.bz-heart:hover { transform: scale(1.08); }
.product-item .product-action a.bz-heart.pop { animation: bzPop .4s ease; }
@keyframes bzPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- "view more" ---------- */
.bz-more {
    display: inline-flex !important; align-items: center; gap: 6px; white-space: nowrap;
    padding: 7px 14px; border-radius: 999px; background: var(--bz-soft); color: var(--bz-p2) !important;
    font-weight: 700; font-size: 13px; text-decoration: none !important; transition: background .15s ease, color .15s ease;
}
.bz-more:hover { background: var(--bz-p); color: #fff !important; }
.section-title.d-flex { align-items: center; }

/* ---------- filters dropdown ---------- */
.bz-tabs-hidden { display: none !important; }
.bz-filter { position: relative; margin: 6px 0 18px; display: flex; justify-content: flex-start; }
.bz-filter-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-width: 260px; max-width: 100%;
    padding: 11px 16px; border-radius: 14px; border: 1px solid var(--bz-line); background: #fff; color: var(--bz-ink);
    font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px -14px rgba(70, 50, 150, .5);
}
.bz-filter-toggle b { color: var(--bz-p2); }
.bz-filter-lbl { flex: 1; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-filter-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--bz-soft); display: grid; place-items: center; flex: none; }
.bz-filter-ic svg { width: 15px; height: 15px; fill: var(--bz-p); }
.bz-caret { width: 8px; height: 8px; border-inline-end: 2px solid var(--bz-mut); border-bottom: 2px solid var(--bz-mut); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; flex: none; }
.bz-filter.open .bz-caret { transform: rotate(-135deg); margin-top: 4px; }
.bz-filter-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 60; width: 320px; max-width: calc(100vw - 32px);
    max-height: 60vh; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--bz-line); border-radius: 16px;
    box-shadow: 0 24px 50px -20px rgba(40, 30, 90, .35); display: none;
}
.bz-filter.open .bz-filter-menu { display: block; animation: bzIn .15s ease; }
@keyframes bzIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.bz-filter-head { display: none; }
.bz-filter-opt {
    display: flex; width: 100%; align-items: center; padding: 11px 12px; border: 0; background: none; border-radius: 10px;
    font: inherit; font-size: 14px; color: var(--bz-ink); cursor: pointer; text-align: start;
}
.bz-filter-opt:hover { background: #f7f5fe; }
.bz-filter-opt.is-active { background: var(--bz-soft); color: var(--bz-p2); font-weight: 700; }
.bz-filter-opt.is-active::after { content: '✓'; margin-inline-start: auto; }
@media (max-width: 767px) {
    .bz-filter-toggle { width: 100%; min-width: 0; }
    .bz-filter-menu {
        position: fixed; inset-inline: 0; bottom: 0; top: auto; width: 100%; max-width: none; max-height: 70vh;
        border-radius: 22px 22px 0 0; padding: 10px 14px 24px; z-index: 10001;
    }
    .bz-filter.open .bz-filter-menu { animation: bzUp .2s ease; }
    .bz-filter-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 12px; border-bottom: 1px solid var(--bz-line); margin-bottom: 6px; }
    .bz-filter-x { border: 0; background: var(--bz-soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
    body.bz-sheet-open::after { content: ''; position: fixed; inset: 0; background: rgba(20, 15, 50, .45); z-index: 10000; }
    body.bz-sheet-open { overflow: hidden; }
}
@keyframes bzUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- search ---------- */
.bz-search-form .jovio-search-field, .bz-search-form { position: relative; }
.bz-search-pop {
    position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 80; background: #fff; border: 1px solid var(--bz-line);
    border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(40, 30, 90, .35); padding: 6px; display: none; text-align: start;
}
.bz-search-pop.show { display: block; }
.bz-sp-h { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; font-size: 12px; color: var(--bz-mut); }
.bz-sp-clear { border: 0; background: none; color: var(--bz-p2); font-size: 12px; cursor: pointer; }
.bz-sp-item { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--bz-ink); cursor: pointer; }
.bz-sp-item::before { content: '↺'; color: var(--bz-mut); margin-inline-end: 8px; }
.bz-sp-item:hover { background: #f7f5fe; }

.bz-msearch { display: none; }
@media (max-width: 991px) {
    .bz-msearch { display: block; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--bz-line); position: relative; z-index: 50; }
    .bz-msearch form, .bz-menu-search form { margin: 0; }
    .bz-msearch .jovio-search-field, .bz-menu-search .jovio-search-field {
        display: flex; align-items: center; background: #f6f4fd; border: 1px solid var(--bz-line); border-radius: 14px; padding: 0 6px 0 12px; height: 46px;
    }
    .bz-msearch input, .bz-menu-search input { flex: 1; border: 0 !important; background: transparent !important; height: 44px; font-size: 15px; outline: 0; box-shadow: none !important; padding: 0 6px; }
    .bz-msearch button[type="submit"], .bz-menu-search button[type="submit"] {
        width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--bz-p); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none;
    }
}

/* mobile menu: original styling kept */
.product-style1-area .jovio-categories-more { display: none !important; }

/* ---------- toast fallback ---------- */
.bz-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); opacity: 0; z-index: 100000; background: var(--bz-p2); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); transition: .25s ease; }
.bz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.bz-toast.is-error { background: #d63a4b; }
