/* SIDEBAR */
#sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 1050;

    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 30px rgba(0,0,0,.12);
}

#wrapper.sidebar-open #sidebar-wrapper {
    transform: translateX(0);
}

/* Overlay */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

#wrapper.sidebar-open #sidebar-overlay {
    display: block;
}

/* Sidebar content */
.sidebar-inner {
    padding: 12px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.sidebar-brand .mobicertify-logo {
    max-width: 160px;
}

#sidebarClose {
    background: transparent;
    border: none;
    color: #5b4282;
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
}

#sidebarClose:hover {
    color: #8a6db5;
}

.sidebar-user-card{

    background:#f8f9fa;

    border:1px solid #ececec;

    border-radius:15px;

    padding:18px;

}

.sidebar-user-card a {
    color: #333;
}

.user-greeting {
    font-size: 13px;
    color: #666;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #5b4282;
}

/* Links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #333;
    padding: 12px 14px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 500;

    transition: all .25s ease;
}

.sidebar-links a:hover{

    background:#eef5ff;

    color:#0d6efd;

}

.sidebar-links a i{

    color:#0d6efd;

}

.sidebar-section-title{

    font-size:13px;

    font-weight:700;

    letter-spacing:.8px;

    color:#666;

    margin:24px 0 12px;

    text-transform:uppercase;

}


/* ===============================
   Search Box
================================= */

.sidebar-search{
    margin:20px 0;
}

.sidebar-search .form-control{
    border-radius:12px;
    border:1px solid #ddd;
}

.sidebar-search .btn{
    border-radius:12px;
}


/* ===============================
   Brand List
================================= */

.brand-list{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.brand-list a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px 12px;

    text-decoration:none;

    color:#333;

    border-radius:10px;

    transition:.25s;

}

.brand-list a:hover{

    background:#f5f5f5;

}

.brand-list img{

    width:32px;

    height:32px;

    object-fit:contain;

}


/* ===============================
   Category List
================================= */

.category-list{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.category-list a{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px 12px;

    border-radius:10px;

    color:#333;

    text-decoration:none;

    transition:.25s;

}

.category-list a:hover{

    background:#f5f5f5;

}

.category-list i{

    color:#0d6efd;

    width:20px;

}



.category-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}


  .title {
    font-weight: 600;
    text-align: center;
    color: #282c3f;
    text-transform: uppercase;
    font-size: 30px;
  }

  .cat_title {
    font-weight: 200;
    text-align: center;
    color: #282c3f;
    text-transform: uppercase;
    font-size: 20px;
  }

  .card {
    overflow: hidden;
    border: none;
    border-radius: 16px;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.overlay-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.25);
    z-index: 2;
}

@media(max-width:480px){

    #sidebar-wrapper{

        width:100%;

        max-width:100%;

    }

    .sidebar-brand img{

        width:140px;

    }

    .sidebar-links a{

        padding:14px;

        font-size:15px;

    }

}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
        max-width: 100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-header,
    .cart-footer,
    .cart-item {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cart-item .row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .cart-item .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .cart-item .col-4.text-end {
        text-align: left !important;
    }

    .cart-item img {
        max-width: 120px;
        width: 100%;
        height: auto;
    }

    .cart-item .btn {
        width: 100%;
    }

    .cart-footer {
        position: sticky;
        bottom: 0;
        z-index: 1;
        background: #fff;
    }
}

.cart-sidebar{
    position:fixed;
    top:0;
    right:-420px;
    width:400px;
    max-width:100%;
    height:100vh;
    background:#fff;
    z-index:1055;
    transition:right .3s ease;
    overflow-y:auto;
    box-shadow:-4px 0 15px rgba(0,0,0,.15);
}

.cart-sidebar.active{
    right:0;
}

.cart-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    z-index:1054;
}

.cart-overlay.active{
    display:block;
}

body.cart-open{

    overflow:hidden;

}

/* =================================
   MOBICERTIFY LOGO - RESPONSIVE
================================= */

.mobicertify-logo {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
}

.mobicertify-logo img {
    display: block;
    width: clamp(125px, 14vw, 190px);
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 991.98px) {
    .mobicertify-logo img {
        width: clamp(125px, 20vw, 165px);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .mobicertify-logo img {
        width: 135px;
        height: auto !important;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .mobicertify-logo img {
        width: 120px;
    }
}

.sidebar-brand img {
    display: block;
    width: 160px;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .sidebar-brand img {
        width: 140px;
    }
}