/*
 Theme Name: Divi Child
 Template: Divi
 Version: 1.0.0
*/


/* Remove the vertical line from .container::before */
.container::before {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* Category Hero Section */
.category-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 200px 0;
    margin: 0 0 40px 0;
    text-align: center;
    color: #fff;
    width: 100%;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.category-hero-content {
    position: relative;
   /* z-index: 2; */
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

.category-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #000000;
    letter-spacing: 1px;
}

.category-description {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #e01a19;
}

/* Main Content Area */
.category-main-content {
    width: 95% !important;
    margin: 40px auto !important;
    float: none !important;
    overflow: visible;
    max-width: none !important;
}

.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Remove any other potential pseudo-elements */
.category-layout::before,
.category-layout::after,
.category-filters::before,
.category-filters::after,
.category-products::before,
.category-products::after {
    display: none !important;
    border: none !important;
}

/* Remove Divi sidebar borders */
.et_pb_widget {
    border: none !important;
}

.et_pb_sidebar {
    border: none !important;
}

.et_pb_column {
    border: none !important;
}

/* Filters Sidebar */
.category-filters {
    flex: 0 0 280px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
    border-left: none !important;
    border-right: none !important;
}

.filters-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* Products Grid */
.category-products {
    flex: 1;
    position: relative;
    overflow: visible;
    min-height: 400px;
    border: none !important;
}

.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-item {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.product-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

.product-image {
    margin-bottom: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-title {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 15px;
}

.product-price del {
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
}

.product-price ins {
    text-decoration: none;
    color: #007cba;
}

.standard-brand {
    max-width: 120px;
    height: auto;
    margin: 10px auto 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-item:hover .standard-brand {
    opacity: 1;
}

/* Pagination */
.custom-pagination {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    clear: both;
    position: relative;
    width: 100%;
}

.custom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin: 0 3px;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 45px;
}

.custom-pagination .page-numbers:hover {
    border-color: #007cba;
    color: #007cba;
}

.custom-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.custom-pagination .page-numbers.prev,
.custom-pagination .page-numbers.next {
    font-weight: bold;
}

/* No Products Message */
.no-products {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* WooCommerce Filter Plugin Styles */
.woof {
    margin-bottom: 20px;
}

.woof select,
.woof input[type="text"],
.woof input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.woof .woof_label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.woof .woof_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woof .woof_list li {
    margin-bottom: 8px;
}

/* CRITICAL FIXES FOR DIVI LAYOUT */
#main-content {
    overflow: visible !important;
}

#content-area {
    overflow: visible !important;
    width: 100% !important;
}

#left-area {
    overflow: visible !important;
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Remove all Divi borders and lines */
#left-area .et_pb_widget:not(.category-filters) {
    border: none !important;
}

.et_pb_row {
    overflow: visible !important;
    border: none !important;
}

.et_pb_column {
    overflow: visible !important;
    border: none !important;
}

/* Ensure full width container */
.container {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* Remove specific Divi sidebar borders */
.et_pb_sidebar_0 .et_pb_widget,
.et_pb_sidebar_1 .et_pb_widget {
    border: none !important;
}

/* Force remove any remaining vertical lines */
.et_left_sidebar #left-area,
.et_right_sidebar #left-area {
    border: none !important;
}

/* Additional container pseudo-element removal */
.container::after {
    display: none !important;
    content: none !important;
}

#main-content .container::before,
#main-content .container::after {
    display: none !important;
    content: none !important;
}

/* Responsive Design */
@media (max-width: 980px) {
    .category-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-filters {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .custom-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-main-content {
        width: 95% !important;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 60px 0;
    }
    
    .category-title {
        font-size: 2em;
    }
    
    .category-description {
        font-size: 1.1em;
    }
    
   .custom-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .product-item {
        padding: 20px 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .category-main-content {
        width: 95% !important;
    }
}

@media (max-width: 480px) {
    .custom-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100% !important;
    }
    
    .category-products {
    align-self: center;
    width: 100%;
    }
    
    .category-hero-content {
        padding: 0 15px;
    }
    
    .category-title {
        font-size: 1.8em;
    }
    
    .category-filters {
        padding: 20px 15px;
    }
    
    .custom-pagination .page-numbers {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 0.9em;
    }
    
    .category-main-content {
        width: 95% !important;
    }
}


.category-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
}

