/* ------------------------------------------- */
/* --- GENERAL STYLES --- */
/* ------------------------------------------- */

.cat-top-sec {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    margin-top: 5px;
}

.after-header {
    padding: 10px 0;
}

.breadcrumbs {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 10px 0px 10px 0px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: #777;
}

.breadcrumbs li a {
    color: #1d1d1d;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs li:not(:first-child)::before {
    content: "/";
    margin: 0 8px;
    color: #777;
    font-weight: 300;
}

.breadcrumbs ul li img {
    width: 14px;
    color: #858585;
    margin-right: 5px;
    margin-bottom: 4px;
}

@media (max-width: 576px) {
    .breadcrumbs {
        margin-top: 0px;
    }
    .breadcrumbs_ml {
        margin-left: 0px;
    }
    .breadcrumbs li:last-child span[itemprop="name"] {
        display: inline-block;
        max-width: 15ch;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
}

/* ------------------------------------------- */
/* --- CHILD CATEGORY LIST --- */
/* ------------------------------------------- */
.child-list .item {
    display: inline-block;
    line-height: 34px;
    padding: 0 14px;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 30px;
    margin: 0 5px 5px 0;
    font-size: 13px;
    font-weight: normal;
}

.child-list .item:hover {
    background: #3749bb;
    border: 1px solid #3749bb;
    color: #fff;
    text-decoration: none;
}

/* ------------------------------------------- */
/* --- PRODUCT TOP BAR (Sort/Limit/Filter) --- */
/* ------------------------------------------- */
#content{
    padding:0px;
}
.product-top-bar-row{
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
}
.product-top-bar {
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.product-control-row {
    display: flex;
    align-items: center;
    /* For mobile layout, we use flex properties in media query */
}

/* Left Section: Filter Button & Heading */
.product-actions-group {
    display: flex;
    align-items: center;
}

.action-btn {
    background: none;
    border: 1px solid #ccc;
    color: #333;
    padding: 7px 15px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: none; /* Desktop: Hide by default */
}

.action-btn .filter-icon {
    font-size: 16px;
    margin-right: 5px;
}

.page-title {
    font-size: 16px;
    line-height: 30px;
    font-weight: bold;
    color: #000000;
}

/* Right Section: Sort and Limit Controls */
.controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 0;
}

.control-label {
    margin-right: 8px;
    color: #666666;
    font-size: 13px;
    font-weight: bold;
    line-height: 20px;
    margin-bottom: 5px;
}

.custom-select-field {
    cursor: pointer;
    line-height: 1.42857;
    background: #f1f3f5;
    padding: 6px 5px;
    font-size: 14px;
    border: none;
    position: relative;
    outline: none;
    height: 30px;
    max-width: 110px;
}

/* --- MOBILE/SMALL SCREEN OVERRIDES (Max-width 767px) --- */

@media (max-width: 767px) {
    .product-control-row {
        flex-wrap: wrap; /* Controls wrap to the next line */
    }
    /* Filter/Heading section takes full width and moves up */
    .product-actions-group {
        order: 1;
        padding-bottom: 10px;
        justify-content: space-between; /* Filter button on the left, title on the right */
    }

    /* Sort/Show section takes full width and moves down */
    .controls-wrapper {
        order: 2;
        justify-content: space-between;
        padding-left: 15px;
        margin: 0 -15px; /* Adjust for row padding */
    }

    .action-btn {
        display: inline-flex; /* Filter button shown */
    }

    .page-title.mobile-only {
        display: block; /* Mobile heading shown */
    }

    /* Hide 'Show:' label on mobile */
    .control-item .control-label[for="input-limit"] {
        display: none;
    }
    #content{
        padding:0px 15px;
    }
}

/* ------------------------------------------- */
/* --- PRODUCT GRID (FEATURED/CATEGORY) --- */
/* ------------------------------------------- */
.cat-body {
    padding-top: 20px;
    background: #F2F4F8;
}

.category-product-grid, .cat-pagination {
    width: 100%;
}

.c-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(4, 1fr); /* Default desktop: 4 per row (Changed from 5 in comments to 4 in code) */
}

/* RESPONSIVE GRID */
@media (max-width: 576px) {
    .c-grid {
        grid-template-columns: repeat(1, 1fr); /* 2 per row on phone */
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .c-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on tablet */
    }
}

@media (min-width: 992px) {
    .c-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .c-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* PRODUCT ITEM */
.c-item {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.08);
    transition: .3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 10px;
}

/*.c-item:hover {*/
/*    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);*/
/*    transform: translateY(-3px);*/
/*}*/

.c-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fb-inner-content {
    padding: 12px;
}

/* BADGE */
.c-badge {
    text-align: left;
}

.c-badge span {
    background: var(--cta-focus);
    color: #fff;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 0px 20px 20px 0px;
    margin-left: -12px;
    position: absolute;
    line-height: 14px;
    z-index: 10;
}

.c-badge span.gift {
    margin-top: 25px;
}

/* IMAGE */
.c-img {
    text-align: center;
    margin: 12px 0;
}

.c-img img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 5px 0px;
}

/* DETAILS */
.c-details {
    text-align: left;
    /*margin-top: auto; */
    display: flex;
    flex-direction: column;
}

.c-name {
    font-size: 14px;
    font-weight: 600;
    color: #081621;
    padding: 20px 10px;
    border-top: 3px solid rgba(55, 73, 187, 0.03);
    height: 62px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c-name a {
    color: #111;
}

.c-name a:hover {
    color: #EF4A23;
    text-decoration: underline !important;
    
}

/* PRICE */
.c-price,
.c-price .new {
    text-align:center;
    font-size: 17px;
    font-weight: 700;
    color: #e60023;
    padding: 8px 0px 15px 8px;
}

.c-price .old {
    font-size: 12px;
    margin-left: 4px;
    color: #888;
    text-decoration: line-through;
}

/* RATING */
.c-details .rating {
    text-align: left;
    padding: 0 8px;
    margin-bottom: 8px;
    font-size: 14px;
    position: absolute;
    top: 36%;
    left: 25%;
    display:none;
}

.c-details .rating .fa-star,
.c-details .rating .fa-star-o {
    color: #f7941d;
    margin-right: -2px;
    line-height: 1;
    display: inline-block;
}

/* BUTTON GROUP */
/*.c-details .button-group {*/
/*    display: flex;*/
/*    justify-content: space-around;*/
/*    align-items: center;*/
/*    padding: 0 10px 10px;*/
/*    border-top: 1px solid #eee;*/
/*    margin-top: 10px !important;*/
/*}*/

/*.c-details .button-group button {*/
/*    background: #fff;*/
/*    border: 1px solid #ddd;*/
/*    color: #666;*/
/*    padding: 8px 10px;*/
/*    flex-grow: 1;*/
/*    margin: 0 4px;*/
/*    border-radius: 3px;*/
/*    transition: 0.3s;*/
/*    font-size: 12px;*/
/*}*/

/*.c-details .button-group button:first-child {*/
/*    background: #6E2594;*/
/*    color: #fff;*/
/*    border-color: #6E2594;*/
/*    font-weight: 600;*/
/*}*/

/*.c-details .button-group button:hover {*/
/*    background: #EF4A23;*/
/*    color: #fff;*/
/*    border-color: #EF4A23;*/
/*}*/

/*.c-details .button-group button:first-child:hover {*/
/*    background: #541c73;*/
/*    border-color: #541c73;*/
/*}*/
.button-group button {
    display: inherit;
    flex-wrap: nowrap;
    line-height: 34px;
    background: #fff;
    background: var(--brand-light);
    color: var(--btn-secondary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px;
    cursor: pointer;
    justify-content: center;
    align-content: center;
    text-decoration: none;
    border: none;
    width: 85%;
    margin: 5px 18px;
}
@media (max-width: 480px) {
    .button-group button {
        width: 85%;
    }
}
.button-group button:hover {
    background: var(--btn-secondary);
    color: var(--brand-light);
}
.btn-none{
    display:none !important;
}
.p-compare{
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-compare {
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center; /* ADD THIS */
    gap: 5px;
    margin-top: 7px;
    border: none;
    font-weight: 400;
    font-size: 13px;
    text-decoration: none;
    background: rgb(55 73 187 / 5%);
    width: 100%;
    padding: 5px 5px;
    margin: 0px 18px;
    border-radius: 3px;
    text-align: center;
}

.add-compare:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.add-compare img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Opencart/Bootstrap Class Overrides */
.category-product-grid .product-layout {
    padding: 0 !important;
    margin: 0 !important;
}

.category-product-grid .product-thumb {
    border: none;
    box-shadow: none;
    height: 100%;
}

@media (max-width: 767px) {
    #column-left {
        position: fixed;
        top: 5%;
        right: -100%;
        width: 280px;
        height: calc(100vh - 5%); 
        z-index: 89;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease-in-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 60px;
        display: block !important;
    }

    #column-left.show {
        right: 0;
    }
    
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 80;
        display: none;
    }
}
.mfltr-btn {
    display: flex;
    color: rgb(0, 0, 0);
    padding: 0 10px;
    height: 30px;
    background: rgba(55, 73, 187, 0.05);
    border: none;
    white-space: nowrap;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    outline: none;
}
@media (min-width: 768px) {
    #lc-toggle {
        display: none; 
    }
}

 #buy-now-popup { 
        display: none;
    }

/* Modal Background */
.custom-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

/* Modal Content Box */
.custom-modal-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

/* Close Button (X) */
.close-custom-modal {
    /*position: absolute;*/
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Message Area */
.modal-msg-body {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Success Icon */
.success-icon {
    color: #00c853; /* Green Color */
    font-size: 18px;
    margin-top: 15px;
}

/* Dynamic Link Style (Product Name) */
.modal-msg-text a {
    color: #ff5722 !important; 
    text-decoration: none;
}

/* Buttons Area */
.modal-btn-group {
    display: flex;
    gap: 15px;
    margin-left: 38px; /* Align with text */
}

/* Compare Now Button */
.btn-compare-now {
    background-color: var(--brand-dark); /* Blue Color */
    color: #fff !important;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}
.btn-compare-now:hover {
    box-shadow: 0 50px rgba(0, 0, 0, 0.2) inset;
    color: #fff;
    text-decoration: none;
}

/* Continue Button */
.btn-continue-shopping {
    background-color: #fff;
    color: #304ffe;
    border: 1px solid #304ffe;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: 0.3s;
}
.btn-continue-shopping:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;

}

.col-sm-12.category-description {
    padding: 15px;
    margin: 20px 0 0px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.cat-seo-description {
    margin: 20px 0 20px !important;
}

.cat_empty {
    text-align: center;
    padding: 80px 0; 
    background: #fff;
}

.empty-icon-wrapper {
    width: 90px;
    height: 90px;
    background-color: #f5f6fa; 
    border-radius: 50%; 
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    margin-bottom: 20px; 
}

.empty-icon-wrapper .material-icons {
    font-size: 42px;
    color: #303f9f;
    margin-right: 20px;
    margin-top: -15px;
}
.cat_empty p {
    font-size: 16px;
    color: #555;
    margin: 0;
    font-weight: 400;
}
.cat_empty .buttons {
    justify-content: center !important;
}