/* =========================================================
   Safe DRAWER
========================================================= */

.safe-drawer-overlay{

    position:fixed;
    inset:0;

    background:
        rgba(15,23,42,0.45);

    backdrop-filter:blur(4px);

    opacity:0;
    visibility:hidden;

    transition:all 0.25s ease;

    z-index:3000;
}

.safe-drawer-overlay.active{

    opacity:1;
    visibility:visible;
}

.safe-drawer{

    position:fixed;

    top:0;
    right:0;

    width:420px;
    max-width:100%;

    height:100vh;

    background:#ffffff;

    z-index:3001;

    transform:
        translateX(100%);

    transition:transform 0.28s ease;

    display:flex;
    flex-direction:column;

    box-shadow:
        -10px 0 40px rgba(15,23,42,0.14);
}


.safe-drawer.active,
.safe-drawer-overlay.active .safe-drawer{

    transform:
        translateX(0);
}

/* =========================================================
   HEADER CONTENT
========================================================= */

.safe-drawer-header-content{

    flex:1;

    min-width:0;

    overflow:hidden;
}

/* =========================================================
   DRAWER TITLE
========================================================= */

.safe-drawer-title{

    margin:0;

    font-size:28px;

    font-weight:700;

    line-height:1.1;

    color:#111827;

    white-space:nowrap;
}


/* =========================================================
   SUBTITLE
========================================================= */

.safe-drawer-subtitle{

    margin-top:8px;

    font-size:15px;

    line-height:1.4;
}

/* =========================================================
   BACK BUTTON
========================================================= */

.safe-drawer-close{

    width:52px;

    height:52px;

    flex-shrink:0;
}

.safe-drawer-close:hover{
    background:#e2e8f0;
}


/* =========================================================
   DRAWER HEADER
========================================================= */

.safe-drawer-header{

    display:flex;

    align-items:flex-start;

    gap:12px;

    padding-right:14px;
}

.safe-drawer-header h3{

    margin:0;

    font-size:20px;
    font-weight:700;

    color:#0f172a;
}

.safe-drawer-header button{

    width:40px;
    height:40px;

    border:none;

    border-radius:50%;

    background:#f8fafc;

    cursor:pointer;

    color:#64748b;
}

/* ========================================================= */

.safe-drawer-body{

    flex:1;
    overflow-y:auto;
    padding:2px 14px 14px;
}


/* =========================================================
   BRAND PRODUCTS DRAWER
========================================================= */

.safe-brand-products{

    padding:20px;

    border-top:
        1px solid #edf2f7;

    background:#ffffff;
}

.safe-brand-products-head h2{

    margin:0 0 8px;

    font-size:38px;
    line-height:1.1;
    font-weight:800;

    color:#1e293b;
}

.safe-brand-products-head p{

    margin:0 0 22px;

    font-size:16px;
    line-height:1.6;

    color:#475569;
}

/* =========================================================
   SEARCH
========================================================= */

.safe-drawer-search-wrap{

    padding:8px 0 10px;
}

.safe-drawer-search-box{

    height:52px;

    border:
        1px solid #e2e8f0;

    border-radius:16px;

    display:flex;
    align-items:center;

    overflow:hidden;

    background:#fff;
}

.safe-search-icon{

    width:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
}

.safe-drawer-search{

    flex:1;

    height:100%;

    border:none;
    outline:none;

    font-size:15px;

    padding-right:14px;
}

.safe-brand-product-search{

    width:100%;

    height:54px;

    border:
        1px solid #dbe2ea;

    border-radius:16px;

    padding:0 18px;

    font-size:16px;

    outline:none;

    margin-bottom:18px;
}

/* ========================================================= */

.safe-brand-filter-row{

    display:flex;
    gap:10px;

    flex-wrap:wrap;

    margin-bottom:22px;
}

.safe-brand-filter-btn{

    border:none;

    height:42px;

    padding:0 18px;

    border-radius:12px;

    background:#f1f5f9;

    color:#334155;

    font-weight:600;

    cursor:pointer;

    transition:0.2s ease;
}

.safe-brand-filter-btn.active,
.safe-brand-filter-btn:hover{

    background:#16a34a;

    color:#ffffff;
}

/* ========================================================= */


.stock-in{

    background:#dcfce7;

    color:#166534;
}

.stock-out{

    background:#fef3c7;

    color:#92400e;
}

/* ========================================================= */

.safe-brand-empty{

    padding:30px 10px;

    text-align:center;

    color:#64748b;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

    .safe-brand-products{

        padding:16px;
    }

    .safe-brand-products-head h2{

        font-size:26px;
    }

    .safe-brand-products-grid{

        grid-template-columns:1fr;
    }
}

.safe-brand-products-view::-webkit-scrollbar{
    width:6px;
}

.safe-brand-products-view::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:999px;
}

.safe-brand-product-card{

    display:flex;

    align-items:flex-start;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:24px;

    margin-bottom:8px;

    position:relative;

    width:100%;

    height:150px;

    overflow:hidden;
}

.safe-brand-product-card:hover{

    border-color:#16a34a;

    box-shadow:
        0 10px 24px rgba(15,23,42,0.08);
}

/* NEW */

/* =========================================================
   LEFT COLUMN
========================================================= */

.safe-brand-product-left{

    width:125px;

    min-width:125px;

    height:150px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    align-items:flex-start;
}


/* =========================================================
   RIGHT COLUMN
========================================================= */

.safe-brand-product-info{

    width:267px;
    height:150px;
    position:relative;
    padding:10px 12px 10px 10px;
    min-width:0;
}


/* =========================================================
   ROW 1
   BRAND + EXPAND
========================================================= */


.safe-brand-product-row1{

    position:absolute;

    top:6px;
    left:10px;
    right:10px;

    display:flex;

    align-items:center;

    justify-content:space-between;
}



/* =========================================================
   ROW 2
   PART NO + SUB GENERIC
========================================================= */

.safe-brand-product-row2{

    position:absolute;

    top:30px;
    left:10px;
    right:10px;
    display:flex;
    align-items:center;

    gap:8px;

    overflow:hidden;
}


/* =========================================================
   ROW 3
   BEST PRICE + BADGES

       justify-content:space-between;

========================================================= */

.safe-brand-product-row3{

    position:absolute;

    top:55px;
    left:10px;
    right:10px;

    display:flex;

    align-items:center;

    justify-content:space-between;
}


/* =========================================================
   ROW 4
   ACTION BUTTONS
========================================================= */

.safe-brand-product-row4{

    position:absolute;

    right:10px;
    bottom:10px;
}


/* =========================================================
   BADGES GROUP
========================================================= */

.safe-brand-product-badges{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;
    overflow:visible;
    width:80px;
    justify-content:center;
}


/* =========================================================
   BEST PRICE BOX
========================================================= */

.safe-brand-best-price-box{

    width:120px;

    height:50px;

    border-radius:16px;

    background:
        linear-gradient(
            180deg,
            #fff7ed 0%,
            #ffedd5 100%
        );
    margin-right:12px;
    padding:4px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    flex-shrink:0;
}



/* =========================================================
   BEST PRICE VALUE
========================================================= */

.safe-brand-best-price-value{

    font-size:22px;

    font-weight:900;

    color:#111827;

    line-height:1;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

/* IMAGE */

.safe-brand-product-image{

    width:125px;

    height:125px;

    border-radius:18px;

    overflow:hidden;

    background:#f5f7fb;

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;
}

/* =========================================================
   PREMIUM PRICE SYSTEM
========================================================= */

.safe-brand-price-area{

    width:125px;

    height:25px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:0;
}

/* =========================================================
   LIST PRICE BOX
========================================================= */

.safe-brand-list-box{

    width:100%;

    height:28px;

    min-width:0;

    border-radius:14px;

    background:#f8fafc;

    padding:0 12px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    overflow:hidden;

    transition:0.25s ease;
}

.safe-brand-list-box:hover{

    transform:scale(1.05);
}

.safe-brand-list-label{

    font-size:8px;

    font-weight:700;

    color:#111827;

    line-height:.8;

    white-space:nowrap;

    flex-shrink:0;

    letter-spacing:0.2px;
}

.safe-brand-list-value{

    font-size:10px;

    font-weight:800;

    color:#111827;

    line-height:.8;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

    min-width:0;

    flex-shrink:1;

    text-decoration-line:line-through;

    text-decoration-color:#ef4444;

    text-decoration-thickness:2px;

    text-decoration-skip-ink:none;

    transition:0.25s ease;
}

.safe-brand-list-box:hover
.safe-brand-list-value{

    text-decoration:none;
    transform:scale(1.5);
}

/* =========================================================
   BEST PRICE BOX - badge 
=========================================================*/

.safe-brand-best-box{

    width:140px;

    height:45px;

    border-radius:18px;

    background:
        linear-gradient(
            180deg,
            #fff7ed 0%,
            #ffedd5 100%
        );


    display:flex;

    flex-direction:column;

    justify-content:center;

    overflow:hidden;

    transition:0.3s ease;

    position:relative;

    min-width:0;
}

.safe-brand-best-box:hover{

    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(249,115,22,0.18);
}
 
/* =========================================================
   BEST PRICE LABEL
========================================================= */

.safe-brand-best-label{

    font-size:10px;

    font-weight:900;

    color:#f97316;

    letter-spacing:0.3px;

    line-height:1;

    margin-bottom:3px;
    text-align:center;

}

/* =========================================================
   BEST PRICE VALUE
========================================================= */

.safe-brand-best-value{

    width:100%;

    display:block;

    font-size:20px;

    font-weight:900;

    color:#111827;

    line-height:1;

    filter:blur(8px);

    transition:0.35s ease;

    user-select:none;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
    text-align:center;

}

/* =========================================================
   REVEAL STATE
========================================================= */

.safe-brand-best-box.revealed
.safe-brand-best-value{

    filter:blur(0);
}

.safe-brand-status-group{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
}

.safe-brand-product-row1 a{

    text-decoration:none;
}

.safe-brand-product-open{

    width:26px;
    height:26px;

    border-radius:50%;

    background:#f8fafc;

    border:1px solid #e2e8f0;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;

    font-weight:400;

    color:#64748b;

    text-decoration:none;

    transition:0.22s ease;
}

.safe-brand-product-open:hover{

    background:#fff7ed;

    border-color:#fdba74;

    color:#f97316;
}

/* CONTENT 

.safe-brand-product-content{

    flex:1;

    display:flex;

    flex-direction:column;

    min-width:0;
} */

/* PART */

.safe-brand-product-part{

    flex-shrink:0;

    font-size:16px;

    font-weight:800;

    color:#000;

    text-decoration:none;

    line-height:1;
}

.safe-brand-product-part:hover{

    color:#f97316;

    text-decoration:none;
}

/* TITLE */

.safe-brand-product-title{

    flex:1;

    min-width:0;

    font-size:13px;

    font-weight:500;

    color:#64748b;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

    line-height:1;
}

/* LIST PRICE 

.safe-brand-product-list-row{

    display:flex;

    align-items:center;

    justify-content:space-between;
}*/

.safe-brand-product-list-price{

    font-size:13px;

    color:#94a3b8;

    text-decoration:line-through;
}

/* BEST PRICE 

.safe-brand-product-best-price{

    font-size:22px;

    font-weight:800;

    color:#16a34a;
} 


.safe-brand-badge{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
}

.safe-badge-safe{

    background:#0f172a;
}

.safe-badge-genuine{

    background:#16a34a;
}
*/
/* DOTS */

.safe-brand-dot{

    width:12px;
    height:12px;

    border-radius:50%;
}

.safe-dot-green{

    background:#16a34a;
}

.safe-dot-yellow{

    background:#facc15;
}

.safe-dot-red{

    background:#ef4444;
}

/* =========================================================
   SAFE / SPONSORED LOGO
========================================================= */

.safe-brand-safe-logo{

    width:12px;

    height:12px;

    border-radius:50%;

    object-fit:cover;

    display:block;

    flex-shrink:0;
}

/* =========================================================
   BRAND LETTER BADGE
========================================================= */

.safe-brand-letter-badge{

    width:12px;

    height:12px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:8px;

    font-weight:800;

    color:#ffffff;

    flex-shrink:0;
}

/* OEM */

.safe-brand-letter-badge.safe-oem{

    background:#25eba6;

    color:#000;

}


/* GENUINE */

.safe-brand-letter-badge.genuine{

    background:#16a34a;
}


/* AFTERMARKET */

.safe-brand-letter-badge.after_market{

    background:#f97316;
}

/* ACTIONS */

.safe-brand-product-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:8px;

    width:100%;
}

.safe-brand-product-actions button{

    width:38px;
    height:38px;

    border:none;

    border-radius:12px;

    background:#f8fafc;

    cursor:pointer;

    transition:0.2s ease;

    font-size:16px;
}

.safe-brand-product-actions button:hover{

    background:#f97316;

    color:#fff;
}

.safe-brand-wishlist-btn,
.safe-brand-cart-btn{
    border:none;
    cursor:pointer;
    transition:0.2s;
}

.safe-brand-wishlist-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:16px;

    background:#f8fafc;

    font-size:22px;

    color:#475569;

    transition:0.25s ease;
}

.safe-brand-wishlist-btn:hover{

    background:#fff1f2;

    color:#e11d48;

    transform:translateY(-2px);
}

.safe-brand-wishlist-btn.active i{

    color:#ef4444;
}

.safe-brand-cart-btn{

    width:52px;

    height:52px;

    border:none;

    border-radius:16px;

    background:#16a34a;

    color:#fff;

    font-size:20px;

    font-weight:700;

    box-shadow:
        0 8px 18px rgba(22,163,74,0.25);

    transition:0.25s ease;
}

.safe-brand-cart-btn:hover{

    transform:translateY(-2px);

    background:#15803d;
}

.safe-brand-product-brand{

    font-size:12px;

    font-weight:700;

    color:#64748b;

    line-height:1;

    margin:0;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

/* =========================================================
   TOOLTIP SYSTEM
========================================================= */

[data-tooltip]{

    position:relative;

    overflow:visible;
}


/* =========================================================
   TOOLTIP BOX
========================================================= */

[data-tooltip]::after{

    content:attr(data-tooltip);

    position:absolute;

    top:-32px;
    left:50%;

    transform:translateX(-50%);

    background:#111827;

    color:#ffffff;

    font-size:10px;

    font-weight:600;

    padding:5px 8px;

    border-radius:8px;

    white-space:nowrap;

    opacity:0;

    pointer-events:none;

    transition:0.18s ease;

    z-index:9999;
}


/* =========================================================
   SHOW TOOLTIP
========================================================= */

[data-tooltip]:hover::after{

    opacity:1;
}

.safe-brand-badge-tooltip{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:visible;
}