/* =========================================
   Product Display Enhancer - Complete Styling
   Version 1.0 - Using unique 'pde-' prefix
   ========================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Open+Sans:wght@400;600&display=swap');

/* =========================================
   1. Hide Default WooCommerce Elements
   ========================================= */
.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .onsale {
    display: none !important;
}

/* =========================================
   2. Hero Section
   ========================================= */
.pde-hero {
    background: #008E8F;
    padding: 87px 20px;
    text-align: center;
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.pde-hero-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 66px;
    letter-spacing: -0.01em;
    text-align: center;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.pde-hero-desc {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   3. Search and Filter Bar
   ========================================= */
.pde-search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
}

.pde-search,
.pde-filter {
    flex: 1;
    min-width: 250px;
}

.pde-search-filter-bar label {
    display: block;
    margin-bottom: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #3D3D3D;
}

.pde-input-wrapper {
    position: relative;
    background: #F6F6F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    padding: 10px 14px;
}

.pde-search-icon {
    margin-right: 10px;
    flex-shrink: 0;
}

#pde-search-input {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #3D3D3D;
    outline: none;
}

#pde-search-input::placeholder {
    color: #6D6D6D;
}

#pde-category-select {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: #F6F6F6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #6D6D6D;
    outline: none;
    border-radius: 8px;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D6D6D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

/* =========================================
   4. Product Grid Container
   ========================================= */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 20px !important;
    max-width: 1200px !important;
    margin: 0 auto 60px auto !important;
    list-style: none !important;
}

/* =========================================
   5. Product Card - Main Container
   background: #FFFFFF;
   border: 1px solid #EAECF0;
   box-shadow: 0px 4px 4px 0px #0000000A;
   ========================================= */
.woocommerce ul.products li.product {
    background: #FFFFFF !important;
    border: 1px solid #EAECF0 !important;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
}

/* =========================================
   6. Product Image
   height: 360px
   ========================================= */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 360px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* =========================================
   7. Product Content Wrapper
   padding: 24px
   ========================================= */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px !important;
    text-decoration: none !important;
    flex-grow: 1 !important;
}

/* =========================================
   8. Category Tag (Radial Drill Allgeared)
   background: #EEFFFC;
   border: 1px solid #C5FFFA;
   padding: 4px 12px;
   font: Inter 500 14px/20px #008E8F
   gap to title: 16px
   ========================================= */
.pde-category-tag {
    background: #EEFFFC;
    border: 1px solid #C5FFFA;
    border-radius: 16px;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 16px;
    width: fit-content;
}

.pde-category-tag span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #008E8F;
}

/* =========================================
   9. Product Title
   font: Open Sans 600 24px/32px #262626
   ========================================= */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: 0 !important;
    color: #262626 !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* =========================================
   10. Product Description
   font: Open Sans 600 14px/22px #5D5D5D
   gap to meta row: 16px
   ========================================= */
.pde-product-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #5D5D5D;
    margin: 0;
    padding-bottom: 16px;
}

/* =========================================
   11. Product Meta Row (Specs + View Details)
   ========================================= */
.pde-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 24px 24px;
    margin-top: auto;
}

/* =========================================
   12. Product Specs
   font: Open Sans 400 14px/22px #475467
   ========================================= */
.pde-product-specs {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #475467;
}

/* =========================================
   13. View Details Button
   font: Open Sans 600 14px/22px #262626
   border: 1px solid #E7E7E7
   backdrop-filter: blur(20px)
   background: #FFFFFF
   ========================================= */
.pde-view-details {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
    color: #262626;
    background: #FFFFFF;
    border: 1px solid #E7E7E7;
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pde-view-details:hover {
    background: #F6F6F6;
    border-color: #D0D0D0;
}

/* Hide default button */
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable {
    display: none !important;
}

/* =========================================
   14. Responsive - Tablet (2 columns)
   ========================================= */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pde-hero-title {
        font-size: 48px;
        line-height: 56px;
    }
}

/* =========================================
   15. Responsive - Mobile (1 column)
   ========================================= */
@media (max-width: 768px) {
    .pde-hero {
        padding: 50px 20px;
    }

    .pde-hero-title {
        font-size: 40px;
        line-height: 48px;
    }

    .pde-hero-desc {
        font-size: 16px;
        line-height: 24px;
    }

    .pde-search-filter-bar {
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        padding: 0 16px !important;
    }

    .woocommerce ul.products li.product a img {
        height: 280px !important;
    }

    .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
        font-size: 20px !important;
        line-height: 28px !important;
    }

    .pde-product-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pde-hero-title {
        font-size: 32px;
        line-height: 40px;
    }

    .pde-hero-desc {
        font-size: 14px;
        line-height: 22px;
    }
}