/* BIS STORE FRONTEND - COMPLETE GLOBAL FIX */
:root{
    --store-max:1540px;
    --store-pad:32px;
    --blue:#174ea6;
    --blue-dark:#0b377e;
    --blue-soft:#eef4ff;
    --navy:#071528;
    --text:#111827;
    --muted:#64748b;
    --line:#e5e7eb;
    --soft:#f8fafc;
    --orange:#f4a000;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--text);background:#fff;font-size:16px;line-height:1.5}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
img{max-width:100%}

.store-shell{
    width:min(var(--store-max),calc(100% - (var(--store-pad) * 2)));
    margin-inline:auto;
}

/* ANNOUNCEMENT */
.store-announcement{width:100%;color:#fff;background:linear-gradient(90deg,#0b377e,#174ea6)}
.announcement-inner{min-height:40px;display:flex;align-items:center;justify-content:center;gap:20px;font-size:14px;font-weight:600}
.announcement-inner a{display:inline-flex;align-items:center;gap:5px;color:#fbbf24;font-weight:800}

/* HEADER */
.store-header-wrap{width:100%;background:#fff}
.store-header{min-height:104px;display:grid;grid-template-columns:290px minmax(360px,1fr) 330px;align-items:center;gap:32px}
.store-logo{display:flex;align-items:center;gap:13px;min-width:0}
.store-logo-mark{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:15px;color:#fff;background:linear-gradient(135deg,#174ea6,#2563eb);font-size:27px;box-shadow:0 8px 24px rgba(23,78,166,.18)}
.store-logo b{display:block;color:#123d84;font-size:28px;line-height:1.05;font-weight:900;letter-spacing:-.02em}
.store-logo small{display:block;margin-top:5px;color:#64748b;font-size:11px;font-weight:600;white-space:nowrap}
.store-search{height:52px;display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:hidden;border:1.5px solid #cfd8e6;border-radius:13px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.04)}
.store-search input{min-width:0;width:100%;padding:0 18px;border:0;outline:0;color:#1e293b;font-size:15px}
.store-search input::placeholder{color:#94a3b8}
.store-search button{min-width:128px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;color:#fff;background:var(--blue);font-size:14px;font-weight:800;cursor:pointer}
.store-actions{display:flex;align-items:center;justify-content:flex-end;gap:24px}
.store-actions>a{min-width:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#334155;font-size:12px;font-weight:700}
.store-actions>a:hover{color:var(--blue)}
.store-actions i{font-size:25px}
.store-actions .header-icon-only{min-width:44px}
.store-actions .header-icon-only i{font-size:30px}

/* NAV */
.store-main-nav-wrap{position:relative;z-index:200;width:100%;border-top:1px solid #eef2f7;border-bottom:1px solid #dfe6ef;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025)}
.store-main-nav{min-height:58px;display:flex;align-items:stretch}
.category-mega{position:relative;flex:0 0 auto}
.category-mega-trigger{height:58px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 24px;border:0;color:#fff;background:var(--blue);font-size:15px;font-weight:850;cursor:pointer}
.category-mega-trigger>i:first-child{font-size:17px}
.category-mega-trigger>i:last-child{font-size:11px}
.category-mega-panel{position:absolute;left:0;top:100%;z-index:9990;width:min(1120px,92vw);display:none;padding:25px;border:1px solid #dbe3ef;border-top:0;border-radius:0 0 18px 18px;background:#fff;box-shadow:0 24px 60px rgba(15,23,42,.16)}
.category-mega:hover .category-mega-panel{display:block}
.category-mega-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #eef2f7}
.category-mega-head small{color:var(--blue);font-size:11px;font-weight:900;letter-spacing:.08em}
.category-mega-head h3{margin:4px 0 0;font-size:22px}
.category-mega-head>a{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-size:13px;font-weight:850}
.category-mega-grid{display:grid;grid-template-columns:repeat(var(--mega-columns),minmax(0,1fr));gap:24px;margin-top:20px}
.category-parent{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.category-parent>span{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:var(--blue);background:var(--blue-soft)}
.category-parent strong{font-size:14px}
.category-child{display:block;padding:6px 0 6px 48px;color:var(--muted);font-size:13px}
.category-child:hover{color:var(--blue)}
.category-empty{padding:30px;text-align:center;color:#94a3b8}
.store-nav-links{min-width:0;display:flex;align-items:stretch;gap:4px;padding-left:18px;overflow:visible}
.store-nav-links>a,.main-account-trigger{height:58px;display:flex;align-items:center;gap:7px;padding:0 15px;border:0;color:#24324a;background:transparent;white-space:nowrap;font-size:15px;font-weight:800;cursor:pointer}
.store-nav-links>a:hover,.main-account-trigger:hover{color:var(--blue);background:#f8fbff}
.main-account-dropdown{position:relative}
.main-account-trigger i{font-size:10px}
.main-account-menu{position:absolute;top:100%;right:0;z-index:9995;width:230px;display:none;padding:9px;border:1px solid #e2e8f0;border-radius:0 0 13px 13px;background:#fff;box-shadow:0 20px 45px rgba(15,23,42,.14)}
.main-account-dropdown:hover .main-account-menu{display:block}
.main-account-menu a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:8px;color:#475569;font-size:13px;font-weight:650}
.main-account-menu a:hover{color:var(--blue);background:#f1f5ff}
.main-account-menu i{width:18px;color:var(--blue);font-size:16px}

/* MAIN */
.store-main{min-height:350px;padding-top:24px;padding-bottom:35px}

/* HOMEPAGE */
.hero{display:grid;grid-template-columns:1fr 1fr;min-height:460px;overflow:hidden;border-radius:22px;background:linear-gradient(120deg,#eaf6ff,#cae9ff)}
.hero>div:first-child{display:flex;flex-direction:column;justify-content:center;padding:64px}
.hero span,.sectionhead small,.pagetitle small{color:var(--blue);font-size:13px;font-weight:900;letter-spacing:.05em}
.hero h1{max-width:700px;margin:12px 0;font-size:clamp(42px,4vw,64px);line-height:1.03;letter-spacing:-.025em}
.hero p{max-width:620px;color:#475569;font-size:17px;line-height:1.7}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:10px;font-size:14px;font-weight:850}
.primary{color:#fff;background:var(--blue)}
.secondary{border:1px solid #cbd5e1;background:#fff}
.heroart{display:grid;place-items:center;overflow:hidden}
.heroart img{width:100%;height:100%;object-fit:cover}
.heroart i{color:var(--blue);font-size:120px}
.cats{display:grid;grid-template-columns:repeat(8,1fr);gap:20px;padding:32px 0}
.cats a{text-align:center}
.cats span{width:82px;height:82px;display:grid;place-items:center;margin:auto;border-radius:50%;color:var(--blue);background:#f1f5f9;font-size:28px}
.cats b,.cats small{display:block;margin-top:6px}
.cats b{font-size:14px}
.cats small{color:#94a3b8;font-size:11px}
.promos{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.promos article{padding:30px;border-radius:17px;background:#fff1dd}
.promos article:nth-child(2){background:#e7f0ff}
.promos article:nth-child(3){background:#e8f8ec}
.promos h3{margin:8px 0;font-size:28px}
.promos p{color:#64748b}
.promos a{display:inline-block;margin-top:8px;padding:10px 15px;border-radius:8px;color:#fff;background:#111827;font-size:13px;font-weight:800}
.sectionhead{display:flex;align-items:end;justify-content:space-between;margin:36px 0 16px}
.sectionhead h2{margin:4px 0 0;font-size:29px}
.sectionhead>a{font-size:14px;font-weight:800}
.products{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.products article{padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:0 3px 14px rgba(15,23,42,.035)}
.pimg{height:220px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#f8fafc}
.pimg img{width:100%;height:100%;object-fit:contain}
.pimg i{color:#94a3b8;font-size:46px}
.products small{display:block;margin-top:10px;color:#94a3b8;font-size:12px}
.products h3{min-height:42px;margin:5px 0;font-size:15px}
.price{font-size:16px;font-weight:900}
.price del{margin-left:5px;color:#94a3b8;font-size:12px}
.view{display:flex;justify-content:center;margin-top:10px;padding:10px;border-radius:8px;color:var(--blue);background:var(--blue-soft);font-size:12px;font-weight:800}
.blogs{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.blogs article{display:grid;grid-template-columns:130px 1fr;overflow:hidden;border:1px solid var(--line);border-radius:13px}
.blogs article>div{display:grid;place-items:center;background:#f1f5f9}
.blogs section{padding:15px}

/* SHOP */
.pagetitle{padding:18px 0 28px}
.pagetitle h1{margin:5px 0 0;font-size:38px}
.shop{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px}
.shop aside{padding:18px;border:1px solid var(--line);border-radius:14px}
.shop aside a{display:block;padding:10px 0;border-bottom:1px solid #f1f5f9;font-size:14px}
.shopsearch{display:grid;grid-template-columns:1fr auto;margin-bottom:18px}
.shopsearch input{min-width:0;padding:13px 14px;border:1px solid #cbd5e1;border-radius:9px 0 0 9px}
.shopsearch button{padding:0 20px;border:0;border-radius:0 9px 9px 0;color:#fff;background:var(--blue);font-weight:800}

/* ACCOUNT / TRACK */
.track{max-width:1050px;margin:28px auto}
.trackform,.trackresult,.box,.profile{padding:26px;border:1px solid var(--line);border-radius:16px}
.trackform form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin-top:18px}
.trackform input{padding:13px;border:1px solid #cbd5e1;border-radius:9px}
.error{margin-top:12px;color:#b91c1c}
.trackresult{margin-top:18px}
.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.summary div{padding:15px;border-radius:10px;background:#f8fafc}
.summary small,.summary b{display:block}
.timeline{margin-top:20px}
.timeline>div{display:grid;grid-template-columns:22px 1fr;gap:10px;padding-bottom:17px}
.timeline span{width:14px;height:14px;border:4px solid #bfdbfe;border-radius:50%;background:var(--blue)}
.timeline b,.timeline small{display:block}
.timeline small{color:#94a3b8}
.account{display:grid;grid-template-columns:240px minmax(0,1fr);gap:25px;padding:18px 0}
.account>aside{align-self:start;padding:16px;border:1px solid var(--line);border-radius:14px}
.account>aside a{display:block;padding:11px;border-radius:8px}
.account>aside a.active{color:var(--blue);background:var(--blue-soft);font-weight:800}
.welcome{padding:28px;border-radius:16px;background:linear-gradient(120deg,#eaf6ff,#d5eaff)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}
.stats div{padding:20px;border:1px solid var(--line);border-radius:13px}
.stats b,.stats small{display:block}
.stats b{font-size:26px}
.orderrow{display:grid;grid-template-columns:1fr 140px 120px;gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid #f1f5f9}
.orderrow span b,.orderrow span small{display:block}
.orderrow small{color:#94a3b8}
.profile{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile div{padding:15px;background:#f8fafc}
.profile small,.profile b{display:block}
table{width:100%;margin:18px 0;border-collapse:collapse}
th,td{padding:11px;border-bottom:1px solid var(--line);text-align:left}
.empty{padding:28px;color:#94a3b8;text-align:center}

/* BENEFITS */
.benefits-wrap{width:100%;padding:0 0 20px;background:#fff}
.benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:20px 24px;border:1px solid #e9eef5;border-radius:15px;background:#f8fafc}
.benefits>div{display:flex;align-items:center;gap:12px}
.benefits i{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:var(--blue);background:#fff;font-size:20px}
.benefits b,.benefits small{display:block}
.benefits b{font-size:13px}
.benefits small{margin-top:2px;color:#64748b;font-size:11px}

/* NEWSLETTER */
.newsletter-wrap{width:100%;background:#fff}
.newsletter{min-height:150px;display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);align-items:center;gap:50px;padding:32px 38px;border-radius:18px 18px 0 0;color:#fff;background:linear-gradient(110deg,#0e408f,#245ab0)}
.newsletter-copy>span{color:#bfdbfe;font-size:11px;font-weight:900;letter-spacing:.12em}
.newsletter h3{margin:4px 0 5px;font-size:28px}
.newsletter p{margin:0;color:#dbeafe;font-size:14px}
.newsletter-form{display:grid;grid-template-columns:minmax(0,1fr) auto;overflow:hidden;border-radius:11px;background:#fff}
.newsletter-form input{min-width:0;height:52px;padding:0 17px;border:0;outline:0;color:#334155;font-size:14px}
.newsletter-form button{min-width:135px;border:0;color:#111827;background:#fbbf24;font-size:13px;font-weight:900;cursor:pointer}

/* FOOTER */
.store-footer-wrap{width:100%;color:#fff;background:var(--navy)}
.store-footer{display:grid;grid-template-columns:1.45fr repeat(4,minmax(130px,1fr));gap:42px;padding-top:46px;padding-bottom:40px}
.footer-logo{display:flex;align-items:center;gap:11px}
.footer-logo-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:11px;color:#fff;background:var(--blue);font-size:20px}
.footer-logo b,.footer-logo small{display:block}
.footer-logo b{font-size:19px}
.footer-logo small{margin-top:2px;color:#94a3b8;font-size:9px}
.footer-brand p{max-width:320px;margin:16px 0;color:#aab7c9;font-size:13px;line-height:1.7}
.footer-contact-link{display:flex;align-items:center;gap:8px;color:#cbd5e1;font-size:12px}
.footer-column h4{margin:0 0 14px;color:#fff;font-size:14px}
.footer-column a{display:block;margin-top:10px;color:#aab7c9;font-size:12px}
.footer-column a:hover{color:#fff}
.footer-bottom{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.09);color:#94a3b8;font-size:11px}
.footer-bottom>div{display:flex;align-items:center;gap:7px}

/* PWA + MOBILE NAV */
.frontend-mobile-nav{display:none}
.frontend-install-card{position:fixed;right:18px;bottom:20px;z-index:9998;width:min(390px,calc(100vw - 30px));grid-template-columns:48px 1fr auto 28px;gap:10px;align-items:center;padding:12px;border:1px solid #dbe3ef;border-radius:15px;background:#fff;box-shadow:0 18px 55px rgba(15,23,42,.20)}
.frontend-install-card:not([hidden]){display:grid}
.frontend-install-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:11px;color:#fff;background:linear-gradient(135deg,#174ea6,#2563eb);font-size:21px}
.frontend-install-card strong,.frontend-install-card small{display:block}
.frontend-install-card strong{font-size:12px}
.frontend-install-card small{margin-top:2px;color:#64748b;font-size:10px;line-height:1.35}
.frontend-install-card>button{padding:8px 10px;border:0;border-radius:8px;color:#fff;background:var(--blue);font-size:10px;font-weight:850}
.frontend-install-card .frontend-install-close{padding:0;color:#64748b;background:transparent;font-size:20px}

/* RESPONSIVE */
@media(max-width:1280px){
    :root{--store-pad:24px}
    .store-header{grid-template-columns:240px minmax(280px,1fr) 290px;gap:20px}
    .store-logo b{font-size:24px}
    .store-nav-links>a,.main-account-trigger{padding-inline:11px;font-size:14px}
    .products{grid-template-columns:repeat(4,1fr)}
    .store-footer{gap:28px}
}
@media(max-width:1000px){
    .store-header{grid-template-columns:230px 1fr;min-height:auto;padding-top:18px;padding-bottom:18px}
    .store-actions{grid-column:1/-1;justify-content:center;padding-top:3px}
    .store-main-nav{overflow-x:auto}
    .category-mega-grid{grid-template-columns:repeat(3,1fr)!important}
    .products{grid-template-columns:repeat(3,1fr)}
    .cats{grid-template-columns:repeat(4,1fr)}
    .promos,.blogs{grid-template-columns:1fr}
    .shop,.account{grid-template-columns:1fr}
    .benefits{grid-template-columns:repeat(2,1fr)}
    .newsletter{grid-template-columns:1fr;gap:22px}
    .store-footer{grid-template-columns:1.3fr repeat(2,1fr)}
}
@media(max-width:760px){
    :root{--store-pad:14px}
    body{padding-bottom:70px}
    .announcement-inner{min-height:36px;justify-content:space-between;gap:8px;font-size:10px}
    .store-header{grid-template-columns:1fr;gap:12px}
    .store-logo{justify-content:center}
    .store-search{grid-row:2;height:48px}
    .store-search button{min-width:54px}
    .store-search button span{display:none}
    .store-actions{grid-column:auto;justify-content:space-around;gap:8px}
    .store-actions>a{font-size:10px}
    .store-actions i{font-size:22px}
    .store-actions .header-icon-only i{font-size:26px}
    .store-main-nav-wrap{display:none}
    .store-main{padding-top:16px}
    .hero{grid-template-columns:1fr;min-height:auto}
    .hero>div:first-child{padding:34px 24px}
    .hero h1{font-size:38px}
    .hero p{font-size:14px}
    .heroart{min-height:260px}
    .products{grid-template-columns:repeat(2,1fr);gap:12px}
    .pimg{height:180px}
    .benefits{grid-template-columns:1fr 1fr;padding:16px}
    .newsletter{width:calc(100% - 28px);min-height:auto;padding:25px 20px}
    .newsletter-form{grid-template-columns:1fr;overflow:visible;background:transparent}
    .newsletter-form input{border-radius:9px 9px 0 0}
    .newsletter-form button{min-height:46px;border-radius:0 0 9px 9px}
    .store-footer{grid-template-columns:1fr 1fr;gap:28px 20px;padding-top:34px}
    .footer-brand{grid-column:1/-1}
    .footer-bottom{flex-direction:column;justify-content:center;padding:14px 0;text-align:center}
    .frontend-mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:9997;display:grid;grid-template-columns:repeat(5,1fr);min-height:64px;padding:4px 4px max(4px,env(safe-area-inset-bottom));border-top:1px solid #dbe3ef;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(15,23,42,.08);backdrop-filter:blur(12px)}
    .frontend-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;color:#64748b;font-size:9px;font-weight:750}
    .frontend-mobile-nav i{font-size:20px}
    .frontend-mobile-nav a:active,.frontend-mobile-nav a:hover{color:var(--blue)}
    .frontend-install-card{right:10px;bottom:78px;width:calc(100vw - 20px)}
}
@media(max-width:520px){
    .cats{grid-template-columns:repeat(3,1fr)}
    .products{grid-template-columns:repeat(2,1fr)}
    .products h3{font-size:13px}
    .summary,.stats,.profile{grid-template-columns:1fr}
    .trackform form{grid-template-columns:1fr}
    .benefits{grid-template-columns:1fr}
    .store-footer{grid-template-columns:1fr}
    .footer-brand{grid-column:auto}
    .newsletter h3{font-size:23px}
}


/* =========================================================
   2026-08-08 CATEGORY MEGA MENU + LATEST PRODUCTS
   ========================================================= */
.category-mega-panel{
    max-height:min(76vh,720px);
    overflow:auto;
}
.category-mega.is-compact .category-mega-panel{
    width:min(620px,92vw);
}
.category-mega.is-compact .category-mega-grid{
    grid-template-columns:1fr !important;
}
.category-mega.is-mega .category-mega-panel{
    width:min(1240px,94vw);
}
.category-parent{
    position:relative;
    min-height:48px;
    padding:5px 7px;
    border-radius:10px;
    transition:.18s ease;
}
.category-parent:hover{
    background:#f5f8ff;
}
.category-parent .category-row-arrow{
    margin-left:auto;
    color:#94a3b8;
    font-size:10px;
}
.category-menu-thumb{
    width:42px !important;
    height:42px !important;
    flex:0 0 42px;
    overflow:hidden;
    border:1px solid #e3e8f1;
    border-radius:10px !important;
    background:#f8fafc !important;
}
.category-menu-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.category-children{
    margin:2px 0 8px;
}
.category-child{
    padding-left:58px;
}
.category-latest-products{
    display:none;
    margin:7px 0 3px;
    padding:10px;
    border:1px solid #e7edf6;
    border-radius:12px;
    background:#fbfdff;
}
.category-mega-column:hover .category-latest-products{
    display:block;
}
.category-latest-title{
    margin-bottom:7px;
    color:#174ea6;
    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.category-latest-product{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    gap:9px;
    align-items:center;
    padding:6px;
    border-radius:9px;
}
.category-latest-product:hover{
    background:#eef4ff;
}
.latest-product-image{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid #e7ecf4;
    border-radius:8px;
    background:#fff;
    color:#94a3b8;
}
.latest-product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:2px;
}
.latest-product-copy{
    min-width:0;
}
.latest-product-copy strong,
.latest-product-copy small{
    display:block;
}
.latest-product-copy strong{
    overflow:hidden;
    color:#1f2937;
    font-size:11px;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.latest-product-copy small{
    margin-top:3px;
    color:#174ea6;
    font-size:10px;
    font-weight:850;
}

/* Homepage/category/product consistency */
.ux-product-slider{
    scrollbar-width:thin;
}
.ux-product-card img{
    image-rendering:auto;
}

@media(max-width:1000px){
    .category-mega-column:hover .category-latest-products{
        display:none;
    }
}
