.text-justify{
    text-align:justify;
}
.auth-avtar{
    font-weight: bold;
    font-size: 1rem;
    margin-left: 10px;
}

/* General DataTable Styling */
table.dataTable {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    background-color: #f8f9fa; /* Light background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* Header Styling */
table.dataTable thead {
    background: linear-gradient(45deg, #6a11cb, #2575fc); /* Gradient Background */
    color: white;
    text-align: center;
}

table.dataTable thead th {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table Row Styling */
table.dataTable tbody tr {
    background-color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-bottom: 2px solid #f1f1f1;
}

table.dataTable tbody tr:hover {
    background-color: #e3f2fd; /* Light blue background on hover */
    cursor: pointer;
    transform: translateY(-5px); /* Subtle hover effect */
}

/* Zebra Striping for Rows */
table.dataTable.table-striped tbody tr:nth-child(odd) {
    background-color: #fafafa; /* Light grey stripe */
}

/* Table Cells */
table.dataTable td, table.dataTable th {
    text-align: center;
    padding: 16px;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
    border: none;
}

/* Pagination Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #6a11cb;
    color: white!important;
    padding: 8px 20px;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #2575fc;
    transform: scale(1.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #2575fc!important;
    color: white!important;
    
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background-color: #ddd;
    color: #888;
}

/* Tooltip Styling for Buttons */
button[data-bs-toggle="tooltip"] {
    position: relative;
    cursor: pointer;
}

button[data-bs-toggle="tooltip"]:hover::after {
    content: attr(data-bs-original-title);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

/* Add Custom Hover Effect */
table.dataTable.table-hover tbody tr:hover {
    background-color: #f0f8ff; /* Subtle light blue on hover */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.dataTables_wrapper .dataTables_filter input {
    margin-bottom: 13px;
    margin-left:-28px!important
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2575fc;
    outline: none;
}
/* Responsive Styling for Smaller Screens */
@media (max-width: 768px) {
    table.dataTable {
        font-size: 12px;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        font-size: 12px;
        padding: 6px 10px;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 12px;
    }
    /* Custom Pagination Styling */
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 5px 10px;
        margin: 2px;
        border: 1px solid #ddd;
        border-radius: 4px;
        color: #007bff;
        text-decoration: none;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #007bff;
        color: white !important;
        border: 1px solid #007bff;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #0056b3;
        color: white;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        color: #ccc !important;
        border: 1px solid #ccc;
    }
}

.badge-success {
    color: #fff !important;
    background-color: #28a745 !important;
}


.mobile-banner {
        display: none;
        width: 100%;
    }
    .mobile-banner img {
        width: 100%;
        max-width: 720px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    @media (max-width: 768px) {
        .desktop-banner { display: none; }
        .mobile-banner { display: block; }
    }
    
    /* product category for mobile  */
    @media (max-width: 768px) { 
                .masonry-layout.style-2 {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 20px;
                }
            
                .masonry-layout.style-2 .collection-item {
                    width: 100%;
                    max-width: 400px; /* Mobile me max width fix */
                }
            }


.out-of-stock {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: red;
    transform: rotate(-10deg);
}
/*.tf-slideshow {*/
/*    width: 100%;*/
/*    overflow: hidden;*/
/*}*/

/*.swiper {*/
/*    width: 100%;*/
/*    height: auto;*/
/*}*/

/*.swiper-slide {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

/*.wrap-slider {*/
/*    width: 100%;*/
/*    max-width: 100%;*/
/*    overflow: hidden;*/
/*}*/

/*.wrap-slider img {*/
/*    width: 100%;*/
/*    height: auto;*/
  /*   object-fit: cover; /* or 'contain' if you want full image to be visible */
/*}*/

/*@media (max-width: 768px) {*/
/*    .swiper-slide {*/
/*        height: auto !important;*/
/*    }*/

/*    .wrap-slider img {*/
/*        width: 100%;*/
/*        height: auto;*/
/*    }*/
/*}*/




/* ==========================================================================
   EFFICIENT ELECTRICALS BRAND THEME & REDESIGN
   Color Palette: Brand Red (#e31e24), Hover Red (#c0141a), Dark Neutral (#15181e), White (#ffffff)
   ========================================================================== */

/* Top Announcement Bar */
.brand-top-bar {
    background-color: #e31e24 !important;
    color: #ffffff;
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.5;
    letter-spacing: 0.2px;
}
.brand-top-bar a {
    color: #ffffff;
    transition: opacity 0.2s;
}
.brand-top-bar a:hover {
    color: #ffe5e6;
    text-decoration: underline;
}

/* Header Adjustments */
#header.header-default {
    background-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: none;
    z-index: 999;
}
#header .logo-header img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}
#header .logo-header:hover img {
    transform: scale(1.02);
}

/* Center Prominent Search Form */
.main-header-search-form {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}
.main-header-search-form .search-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e31e24;
    border-radius: 30px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.12);
    transition: all 0.25s ease;
}
.main-header-search-form .search-input-wrapper:focus-within {
    box-shadow: 0 4px 14px rgba(227, 30, 36, 0.25);
    border-color: #c0141a;
}
.main-header-search-form .search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 18px;
    font-size: 14px;
    color: #222222;
    background: transparent;
    height: 44px;
}
.main-header-search-form .search-input::placeholder {
    color: #888888;
    font-size: 13.5px;
}
.main-header-search-form .search-submit-btn {
    background: #e31e24;
    color: #ffffff;
    border: none;
    outline: none;
    padding: 0 22px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 6px;
    white-space: nowrap;
}
.main-header-search-form .search-submit-btn:hover {
    background: #c0141a;
    color: #ffffff;
}

/* Header Icons */
.nav-icon .nav-icon-item {
    font-size: 20px;
    color: #222222;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.nav-icon .nav-icon-item:hover {
    color: #e31e24;
}
.nav-icon .count-box {
    background-color: #e31e24 !important;
    color: #ffffff !important;
}

/* Category Navigation Bar (Horizontal Scrollable Below Logo/Search) */
.category-nav-bar-container {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 2px solid #e31e24;
    position: relative;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}
.category-nav-inner {
    display: flex;
    align-items: center;
    position: relative;
    padding: 2px 0;
}
.cat-scroll-arrow-btn {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 10;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.cat-scroll-arrow-btn:hover {
    background: #e31e24;
    color: #ffffff;
    border-color: #e31e24;
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}
.cat-scroll-arrow-btn:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.category-scroll-track {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    gap: 4px;
    padding: 6px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    user-select: none;
}
.category-scroll-track::-webkit-scrollbar {
    display: none;
}
.category-scroll-track.active-drag {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Category Node & Dropdown */
.cat-nav-node {
    position: relative;
    flex-shrink: 0;
}
.cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.cat-nav-link:hover,
.cat-nav-node:hover > .cat-nav-link {
    color: #e31e24;
    background: #fff4f4;
}
.cat-nav-caret {
    font-size: 9px;
    transition: transform 0.2s ease;
    color: #888888;
}
.cat-nav-node:hover .cat-nav-caret {
    transform: rotate(180deg);
    color: #e31e24;
}

/* Subcategories Floating Dropdown */
.cat-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid #ebebeb;
    border-top: 3px solid #e31e24;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}
.cat-nav-node:hover > .cat-nav-dropdown {
    display: block;
    animation: catDropIn 0.2s ease forwards;
}
@keyframes catDropIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cat-nav-dropdown-item {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #444444;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.2s ease;
}
.cat-nav-dropdown-item:hover {
    color: #e31e24;
    background: #fff8f8;
    padding-left: 22px;
}

/* Redesigned Brand Footer */
#footer.brand-footer {
    background-color: #15181e !important;
    color: #b5bcc7;
    border-top: 3px solid #e31e24;
    position: relative;
}
#footer.brand-footer h6 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#footer.brand-footer h6::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #e31e24;
}
#footer.brand-footer .footer-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 15px;
}
#footer.brand-footer .footer-menu_item {
    color: #b5bcc7;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
}
#footer.brand-footer .footer-menu_item:hover {
    color: #e31e24 !important;
    transform: translateX(4px);
}
#footer.brand-footer .btn-get-direction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e31e24;
    color: #ffffff !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
#footer.brand-footer .btn-get-direction:hover {
    background: #c0141a;
    transform: translateY(-1px);
}
#footer.brand-footer .social-btn {
    width: 36px;
    height: 36px;
    background: #232731;
    color: #ffffff !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s ease;
    text-decoration: none;
}
#footer.brand-footer .social-btn:hover {
    background: #e31e24;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.4);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .main-header-search-form {
        max-width: 100%;
    }
    .cat-scroll-arrow-btn {
        display: none;
    }
    .category-scroll-track {
        padding: 6px 4px;
    }
    .cat-nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    #footer.brand-footer .footer-cat-grid {
        grid-template-columns: 1fr;
    }
}
