@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Main layout */
.itemgroup-catalog-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.sidebar-filters {
    width: 300px;
    flex-shrink: 0;
}

.catalog-main-content {
    flex: 1;
}

.filter-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.filter-title {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-title .btn-filter-toggle {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    width: 100%;
    color: #495057;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-content {
    padding: 15px;
}

/* Category tree */
.category-tree {
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 5px;
    position: relative;
}

.category-item.active {
    background-color: #e7f1ff;
    border-radius: 4px;
}

.category-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-decoration: none;
    color: #6c757d;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 4px;
}

.category-toggle:hover {
    color: #495057;
}

.category-toggle .toggle-icon {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}

.category-link {
    text-decoration: none;
    color: #495057;
    display: inline-flex;
    align-items: center;
    padding: 3px 0;
    vertical-align: middle;
    line-height: 1.4;
}

.category-link:hover {
    color: #007cba;
}

.category-children {
    margin-left: 20px;
    margin-top: 5px;
}

.no-toggle {
    display: inline-block;
    width: 20px;
}

/* Product display */
.products-container {
    min-height: 400px;
    position: relative;
}

.product-type-header .btn {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.product-table td {
    vertical-align: middle;
}

.product-row:hover {
    background-color: #f8f9fa;
}

.product-details-row {
    background-color: #f8f9fa;
}

.product-details-content {
    border-left: 4px solid #28a745;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.34s ease;
    will-change: opacity, transform;
}

.product-details-row.is-open .product-details-content {
    opacity: 1;
    transform: translateY(0);
}

.cross-categories a {
    color: #6c757d;
    text-decoration: none;
    border-bottom: 1px dotted #6c757d;
}

.cross-categories a:hover {
    color: #0056b3;
    border-bottom: 1px solid #0056b3;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs span {
    display: inline-block;
}

.breadcrumbs span:not(:last-child):after {
    content: "›";
    margin: 0 10px;
    color: #999;
}

.breadcrumbs a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns per row */
    gap: 20px;
    margin: 30px 0;
}

.subcategory-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.subcategory-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Fix for subcategory images */
.subcategory-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcategory-image .wp-post-image,
.subcategory-image img.subcategory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure WooCommerce placeholder images work */
.subcategory-image .woocommerce-placeholder {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.subcategory-link:hover .subcategory-image img {
    transform: scale(1.05);
}

.subcategory-description {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.subcategory-link:hover .subcategory-img {
    transform: scale(1.05);
}

.subcategory-title {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.subcategory-count {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9em;
}

/* Product Gallery */
.product-gallery-container {
    margin-bottom: 40px;
}

.product-gallery-title {
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.product-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 15px;
    text-align: center;
}

.gallery-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
    max-height: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.image-caption {
    padding: 8px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-style: italic;
    min-height: 40px;
    font-size: 0.9em;
    color: #666;
}

/* Lightbox modal */
.modal-body .img-fluid {
    max-height: 70vh;
    object-fit: contain;
}

/* Collapse */
.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Toggle icons */
.filter-title .btn-filter-toggle .toggle-icon,
.product-type-header .btn .toggle-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.filter-title .btn-filter-toggle[aria-expanded="true"] .toggle-icon,
.product-type-header .btn[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.filter-title .btn-filter-toggle[aria-expanded="false"] .toggle-icon,
.product-type-header .btn[aria-expanded="false"] .toggle-icon {
    transform: rotate(0deg);
}

/* Bootstrap collapse animation fix */
.collapse.show {
    display: block;
}

/* Product image thumb */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Location badges */
.location-badges .badge {
    font-size: 0.8em;
    padding: 4px 8px;
    margin: 2px;
}

/* Quantity input */
.qty-input {
    width: 60px;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 30px;
}

/* Ensure dashicons show in buttons */
.btn .dashicons {
    margin-right: 5px;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1;
}


/* New css */

.product-gallery-item img.gallery-image {
    height: 150px !important;
    width: 100% !important;
}

.product-gallery-item .gallery-image-wrapper {
    background: transparent;
    border: 1px solid #CDDAE1;
    border-radius: 10px !important;
    box-shadow: none;
}

.product-gallery-item {
    border: none;
    border-radius: 0px !important;
    box-shadow: none;
}

.product-type-content td.product-image {
    display: none;
}

.product-details-row td {
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    background: transparent !important;
}

/* .product-type-content th:first-child {
    display: none;
} */

.product-details-row {
    background-color: #fffcf9 !important;
}

.image-caption.small {
    color: #333E48 !important;
    font-weight: 700;
    text-align: center;
    font-size: 12px !important;
    line-height: 18px;
    background: transparent !important;
    border-top: none !important;
    font-family: "Montserrat", sans-serif !important;
    font-style: normal;
}

.product-gallery-item:hover {
    box-shadow: none !important;
}

.product-type-header.mb-3 span.badge.bg-primary.ms-2 {
    display: none;
}

.catalog-main-content h1 {
    font-size: 30px;
    font-family: "Montserrat", sans-serif !important;
    line-height: 40px;
    color: #333E48;
    margin-bottom: 15px;
    font-weight: 700 !important;
}

.products-container h3.mb-0 {
    font-size: 18px;
    color: #333E48;
    line-height: 28px;
    font-weight: 700 !important;
    font-family: "Montserrat", sans-serif !important;
}

.catalog-results {
    margin-top: 50px;
}

.woocommerce-breadcrumb a {
    font-size: 12px;
    color: #333E48;
    background: transparent !important;
    font-weight: 600;
}

h3.filter-title {
    background: #F5F7F8 !important;
    border-color: #CDDAE1 !important;
}

.filter-section {
    border-color: #CDDAE1 !important;
}

button.btn-filter-toggle {
    font-size: 14px !important;
    color: #333E48 ! IMPORTANT;
    font-weight: 700 !important;
    font-family: "Montserrat", sans-serif !important;
}

a.category-link {
    font-size: 14px !important;
    color: #333E48 ! IMPORTANT;
    font-weight: 400 !important;
    font-family: "Montserrat", sans-serif !important;
}

a.category-link span.badge.bg-secondary {
    display: none;
}

.category-item .category-toggle {
    width: 15px !important;
}

.catalog-main-content p {
    font-family: "DM Sans", sans-serif;
    font-size: 14px !important;
    margin: 0 !important;
    font-weight: 400;
}

.product-type-group.mb-4 {
    margin-bottom: 50px !important;
}

.product-gallery.group-gallery.mb-3 {
    margin-bottom: 38px !important;
}

.product-type-content th {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    color: #333E48;
    font-size: 12px !important;
    line-height: 18px;
    background: transparent !important;
    border-bottom: none !important;
}

.product-type-content thead {
    box-shadow: 0px 3px 6px #333E481A !important;
}

.product-type-content table.table.table-hover.product-table.mb-0 tr:first-child th:first-child {
    border-top-left-radius: 10px;
}

.product-type-content table.table.table-hover.product-table.mb-0 {
    border-spacing: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    border: 1px solid #CDDAE1;
    overflow: hidden;
}

.product-type-content table.table.table-hover.product-table.mb-0 td,
.product-type-content table.table.table-hover.product-table.mb-0 td strong {
    font-size: 12px !important;
    color: #333E48 !important;
    font-weight: 400 !important;
    font-family: "DM Sans", sans-serif;
}

.stock span.badge.bg-success {
    background: transparent !important;
    color: #49A70A;
    font-size: 12px;
}

.product-details-content.p-4.bg-light.border.rounded {
    background: #fffcf9 !important;
    border: none !important;
    border-radius: 0 !important;
}

.bg-light-extra {
    background-color: #f6f7f8 !important;
}

.product-details-content .col-md-9 ul.product-meta-list.text-muted {
    display: none;
}

.product-details-content .col-md-9 h4 {
    font-size: 14px;
    color: #333E48;
    font-family: "DM Sans", sans-serif !important;
    font-weight: 500 !important;
}

.product-details-row button.btn.btn-success.btn-add-cart span.dashicons.dashicons-cart {
    display: none;
}

.product-type-content th {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

.btn-group.btn-group-sm button.btn.btn-success.btn-add-cart {
    display: none;
}

.buying-actions input.form-control.text-center.qty-input {
    background: transparent;
    border-radius: 5px;
    border: 1px solid #CDDAE1;
    height: 36px;
    text-align: left !important;
}

.buying-actions select {
    background: transparent;
    border-radius: 5px;
    border: 1px solid #CDDAE1;
    height: 36px;
    color: #333E48 !important;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
}

.product-details-row button.btn.btn-success.btn-add-cart {
    text-transform: uppercase;
    background: #F5913B;
    border-color: #F5913B;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 {
    position: relative;
    border-radius: 10px !important;
    padding: 40px 20px 20px !important;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .d-flex.align-items-center.mb-2 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 17;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .text-muted.small.mt-1 {
    font-size: 14px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .text-muted.small.mt-1 strong {
    margin-right: 10px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 input.form-control.text-center.ns-cl-qty-input.form-control-sm {
    height: 42px;
    border-radius: 5px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 button.btn.btn-outline-success.btn-add-container.fw-bold.btn-sm {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .text-muted.small.mt-1 strike.text-danger {
    margin-right: 10px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .d-flex.align-items-center.mb-2 span.badge.bg-warning.text-dark.me-2 svg {
    height: 18px;
    width: 23px;
    margin-right: 5px;
}

.container-option.p-3.border.rounded.bg-white.mt-3 .d-flex.align-items-center.mb-2 span.badge.bg-warning.text-dark.me-2 {
    padding: 7px 17px;
    border-top-left-radius: 10px !important;
    border-radius: 0;
    font-size: 12px;
    color: #333E48 !important;
    display: flex;
    align-items: center;
}

.product-details-row button.btn.btn-success.btn-add-cart:hover {
    color: #F5913B !important;
    background: transparent;
}

.buying-actions a.btn.btn-outline-primary.btn-sm.flex-grow-1.fw-bold:hover {
    background: #F5913B !important;
    color: #fff !important;
}

.product-type-content table.table.table-hover.product-table.mb-0 td .attribute-item strong {
    font-size: 12px;
    color: #333E48;
    font-weight: 500 !important;
}

.product-details-row a.btn.btn-outline-primary.mt-2:hover {
    background-color: #F5913B !important;
    color: #fff;
}

.product-details-row a.btn.btn-outline-primary.mt-2 {
    border-color: #F5913B;
    border-radius: 5px;
    color: #F5913B;
    font-family: "Montserrat", sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.buying-actions a.btn.btn-outline-primary.btn-sm.flex-grow-1.fw-bold {
    border-color: #F5913B !important;
    border-radius: 5px;
    height: 36px;
    line-height: 28px;
    color: #F5913B !important;
}

.buying-actions label.block.text-muted.small.fw-bold.mb-1 {
    font-size: 12px;
    color: #333E48 !important;
    font-family: "DM Sans", sans-serif !important;
    font-weight: 500 !important;
}

/* Prduct page Css */

div#primary {
    width: 100%;
}

.single-product .wc-tabs {
    text-align: left !important;
}

div#tab-description {
    border: none;
}

.woocommerce-product-gallery__wrapper {
    border: 1px solid #CDDAE1;
    border-radius: 10px;
}

.woocommerce-product-gallery__image {
    border-radius: 10px !important;
}

.summary.entry-summary {
    padding-left: 100px;
}

h1.product_title.entry-title {
    font-size: 30px;
    color: #333E48;
    font-weight: 700 !important;
    font-family: "Montserrat", sans-serif !important;
}

span.loop-product-categories {
    display: none !important;
}

ul.product-meta-list.text-muted li {
    font-size: 14px;
    color: #333E48 !important;
    font-family: "DM Sans", sans-serif;
    line-height: 22px;
    margin-bottom: 8px;
}

/* Product page css */
@media only screen and (max-width: 1440px) {

    .buying-actions.p-0 .row.align-items-end.g-3.mb-3 .col-md-5:first-child {
        width: 50% !important;
    }

    .buying-actions.p-0 .row.align-items-end.g-3.mb-3 .col-md-2 {
        width: 50%;
    }

    .buying-actions.p-0 .row.align-items-end.g-3.mb-3 .col-md-5 {
        width: 100%;
    }

    .container-option.p-3.border.rounded.bg-white.mt-3 .col-md-8 {
        width: 100%;
        margin-bottom: 20px;
    }

    .container-option.p-3.border.rounded.bg-white.mt-3 .col-md-4.text-end {
        width: 100%;
    }

    .container-option.p-3.border.rounded.bg-white.mt-3 .text-muted.small.mt-1 strong {
        margin-right: 5px;
    }

    .container-option.p-3.border.rounded.bg-white.mt-3 .text-muted.small.mt-1 strike.text-danger {
        margin-right: 5px;
    }

}

@media only screen and (max-width: 991px) {

    .product-type-content table.table.table-hover.product-table.mb-0 {
        width: 180%;
    }

    .catalog-results .product-gallery-item {
        width: 150px;
    }

}


/* New Css */



@media (max-width: 768px) {
    .itemgroup-catalog-container {
        flex-direction: column;
    }

    .sidebar-filters {
        width: 100%;
    }

    .subcategories-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 columns on smaller screens */
    }

    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .gallery-image {
        height: 150px;
    }

    .image-overlay {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .gallery-image {
        height: 120px;
    }

    .image-overlay {
        height: 120px;
    }

    .overlay-text {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

/* Quick View Button Styling */
.btn-view-details {
    color: #466881 !important;
    border-color: #466881 !important;
}

.btn-view-details:hover {
    background-color: #466881 !important;
    color: #ffffff !important;
    border-color: #466881 !important;
}

/* =========================================
   New Layout Modes (Vertical vs Horizontal)
   ========================================= */

/* Vertical Mode (Grouped View - Top Level) */
.subcategories-grid.vertical-mode {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* Fixed 3 columns per row */
    gap: 20px;
    margin-bottom: 30px;
}

.subcategories-grid.vertical-mode .subcategory-card {
    /* Existing vertical styles apply */
    height: 100%;
}

.subcategories-grid.vertical-mode .card-image-wrapper {
    height: 160px;
    /* Reduced height for vertical cards */
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategories-grid.vertical-mode .card-image-wrapper img {
    max-height: 140px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.subcategories-grid.vertical-mode .card-content {
    padding: 15px;
    text-align: center;
}

.subcategories-grid.vertical-mode .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Horizontal Mode (Subcategory View) */
.subcategories-grid.horizontal-mode {
    display: grid;
    /* Ensure typically 3 columns on wide screens, responsive */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.subcategories-grid.horizontal-mode .subcategory-card .card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Ensure equal height items */
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.subcategories-grid.horizontal-mode .card-image-wrapper {
    width: 30%;
    /* Approx 1/3 width like image */
    min-width: 120px;
    max-width: 160px;
    flex-shrink: 0;
    background: #fff;
    /* Remove border right if not needed, or keep for separation */
    /* border-right: 1px solid #eee; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    /* Add padding around image */
}

.subcategories-grid.horizontal-mode .card-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.subcategories-grid.horizontal-mode .card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically if short content */
    text-align: left;
}

.subcategories-grid.horizontal-mode .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;
}

.subcategories-grid.horizontal-mode .short-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subcategories-grid.horizontal-mode .card-meta {
    font-size: 0.9rem;
    color: #333;
    /* Darker for count as per image? Or bold? */
    font-weight: 700;
    margin-top: auto;
}

/* Category Section styling (for Grouped View) */
.category-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
}


/* Inner Subcategories List (Vertical Card) */
.child-categories-list {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: left;
}

.child-categories-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.child-categories-list li {
    margin-bottom: 6px;
    padding-left: 2px;
}

.child-categories-list a {
    color: #6c757d;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.child-categories-list a:hover {
    color: #007cba;
    text-decoration: underline;
    transform: translateX(2px);
}

.child-categories-list a::before {
    content: "›";
    margin-right: 5px;
    color: #adb5bd;
    font-weight: bold;
}
p.stock.in-stock span {
    color: #4e9e19;
    background: rgba(78, 158, 25, 0.1);
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
}
p.stock.in-stock {
    font-size: 14px;
    color: #333E48 !important;
    font-family: "DM Sans", sans-serif;
    line-height: 22px;
    font-weight: 400;
}
.availability {
    font-size: 14px;
    color: #333E48 !important;
    font-family: "DM Sans", sans-serif;
    line-height: 22px;
}
@media only screen and (max-width: 600px) {
    .product-type-content table.table.table-hover.product-table.mb-0 {width: 200%;}
    .product-details-content.p-4.bg-light.border.rounded .col-md-3.text-center {width: 20%;}
    .product-details-content.p-4.bg-light.border.rounded .col-md-9 {width: 80%;}
    .catalog-main-content h1 {font-size: 24px;line-height: 30px;}
    .products-container h3.mb-0 {font-size: 24px;line-height: 40px;}
    .products-container span.text-success.fw-bold.h5.mb-0 {font-size: 18px !important;}
    .summary.entry-summary{padding-left: 15px;padding-top: 20px;}
.container-option.p-3.border.rounded.bg-white.mt-3 .col-md-5.text-end .d-flex.gap-2.justify-content-end.align-items-center {
    justify-content: start !important;
}
.buying-actions a.btn.btn-outline-primary.btn-sm.flex-grow-1.fw-bold {
    max-width: 159px;
}
.container-option.p-3.border.rounded.bg-white.mt-3 .col-md-5.text-end {
    margin-top: 10px;
}
td.sku a.text-decoration-underline.fw-bold.sku-link {
    text-decoration: none !important;
}
    .product-details-content.p-4.bg-light.border.rounded .col-md-9 {
        width: 50%;
    }
    .buying-actions .row.align-items-end.g-3.mb-3 {
    display: block;
}
.buying-actions.p-0 {
    margin-top: 30px;
    display: block;
}
span.text-success.fw-bold.h5.mb-0 {
    font-size: 18px !important;
}
 .buying-actions.p-0 input.form-control.text-center.qty-input {
    max-width: 100px;
}
    .buying-actions.p-0 input.form-control.form-control-sm {
    border-radius: 5px;
    height: 36px;
}
.product-details-content .row.g-4 {
    display: block;
}
}

/* SKU Image Hover Preview */
.sku {
    position: relative;
}

.sku-image-preview {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 15px;
    width: 150px;
    height: 150px;
    border: 2px solid #CDDAE1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    overflow: hidden;
}

.sku:hover .sku-image-preview {
    opacity: 1;
}

.sku-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Category Filter Alignment Improvements */
.filter-section {
    margin-bottom: 20px;
}

.filter-title {
    padding: 0;
    margin: 0;
}

.filter-title .btn-filter-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #333;
}

.filter-title .btn-filter-toggle:hover {
    background: #f8f9fa;
}

.filter-title .btn-filter-toggle .toggle-icon {
    font-style: normal;
    font-size: 18px;
    line-height: 1;
    margin-left: auto;
}

.filter-content {
    padding: 15px;
}

.category-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-item {
    margin-bottom: 6px;
    padding-left: 0;
    line-height: 1.6;
}

.category-item .category-toggle {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 6px;
    vertical-align: baseline;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
}

.category-item .category-toggle:hover {
    color: #495057;
}

.category-item .no-toggle {
    display: inline-block;
    width: 16px;
    margin-right: 6px; 
}

.category-link {
    display: inline;
    padding: 0;
    line-height: 1.6;
    vertical-align: baseline;
    text-decoration: none;
    color: #495057;
}

.category-link:hover {
    color: #007cba;
}

.category-children {
    margin-left: 22px;
    margin-top: 4px;
    padding-left: 0;
}

.category-children .category-tree {
    padding-left: 0;
}


/* New Css 11-03-2026 */

.card-image-wrapper {
    border: 1px solid #CDDAE1;
    background: transparent !important;
    border-radius: 8px;
}
.subcategory-card.vertical {
    border: none;
    padding: 0 !important;
    box-shadow: none !important;
}
.subcategory-card .card-title a {
    color: #333E48;
    font-size: 14px;
    font-weight: 400;
    font-family: 'DM Sans';
}
.subcategory-card .card-content .card-meta.icon-meta.mb-2.text-muted.small {
    display: none;
}
.subcategory-card.vertical:hover .card-image-wrapper {
    background: #CDDAE1 !important;
}
.subcategory-card:hover .card-title a {
    color: #F5913B !important;
}
h2.category-section-title.border-bottom.pb-2.mb-4 {
    font-size: 30px;
    border: none !important;
    margin-top: 0;
}
ul.dropdown-menu-user-account{
    z-index: 9999;
}
.woocommerce-Tabs-panel {
    padding: 30px 0 !important;
}
.woocommerce-Tabs-panel .electro-description.clearfix {
    margin-bottom: 0;
}
@media only screen and (max-width: 1480px) {
    
    .category-section.mb-5 {padding-left: 20px;}
.subcategories-grid.vertical-mode {grid-template-columns: repeat(5, 1fr);}
}
@media only screen and (max-width: 1200px) {
    
    .category-section.mb-5 {padding-left: 80px;}
.subcategories-grid.vertical-mode {grid-template-columns: repeat(4, 1fr);}
}
@media only screen and (max-width: 991px) {
    
    .category-section.mb-5 {padding-left: 80px;}
.subcategories-grid.vertical-mode {grid-template-columns: repeat(2, 1fr);}
}
@media only screen and (max-width: 767px) {
    
    .category-section.mb-5 {padding-left: 00px;}
.subcategories-grid.vertical-mode {grid-template-columns: repeat(3, 1fr);}
}
@media only screen and (max-width: 600px) {
.subcategories-grid.vertical-mode .card-image-wrapper img {
    max-height: 99px;
    max-width: 100%;
    width: auto;
    object-fit: contain !important;
    height: 100px !important;
    width: 100px !important;
}
    .subcategories-grid.vertical-mode {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .subcategories-grid.vertical-mode .card-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 5px !important;
}
.subcategories-grid.vertical-mode .card-image-wrapper {
    height: 100px;}
}
/* New Css 11-03-2026 */