
.tab-links {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    cursor: pointer;
    width: 100%;
    padding: 0;
}
.tab-links li.active, .tab-links li:hover {
    border-color: #002d52;
    background: #002d52;
    color: #ffffff;
}

.tab-links li {
    list-style: none;
    padding: 10px 30px;
    border: 1px solid #002d52;
    border-radius: 5px;
    justify-content: space-evenly;
    display: flex;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    color: #002d52;
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.deals-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 0px 20px 10px;
    border-radius: 15px;
}
.deal-product { border:1px solid #eee; padding:10px; text-align:center; transition:0.3s; }
.deal-product:hover { box-shadow:0 5px 15px rgba(0,0,0,0.1); }
.deal-product img { max-width:100%; height:auto; margin-bottom:10px; }
.btn-view-more { display:block; margin:20px auto; padding:10px 20px; background:#0073aa; color:#fff; border:none; cursor:pointer; }
.deals-banner.sales-banner {
    padding: 50px;
    background: #0072ce;
    border-radius: 10px;
}
.deals-banner h2 {
    color: white !important;
    font-size: 46px !important;
    margin-bottom: 0 !important;
    text-shadow: 0px 0px 6px #00000069;
}
.deals-banner.clearance-banner {
    padding: 50px;
    background: #f6a81f;
    border-radius: 10px;
}

.deals-banner.refurbished-banner {
    padding: 50px;
    background: #038603;
      border-radius: 10px;
}

.deals-section {
    margin-bottom: 40px;
}

/* Override default product list styles to work with the grid layout
     - remove floats/width coming from the global product list styles
     - make each grid cell a flex column so cards share equal height
     - limit image height and use object-fit to avoid tall images stretching cards */
.deals-products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        margin: 40px 0;
        padding: 0px 20px 10px;
        border-radius: 15px;
        grid-auto-rows: 1fr;
}

.deals-products li.product {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 20px !important;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
}

/* Stronger specificity to override global WooCommerce list styles */
.products.deals-products li.product,
.woocommerce .products.deals-products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.deals-products li.product .woocommerce-LoopProduct-link,
.deals-products li.product a.woocommerce-LoopProduct-link {
        display: block;
}

.deals-products li.product img.wp-post-image {
        width: 100%;
        max-height: 220px;
        object-fit: contain;
        display: block;
        margin: 0 0 12px;
}

/* Some plugins or scripts add a wrapper with inline min-height (.woo-height).
   Force that wrapper to not impose huge min-heights inside the deals grid. */
.deals-products .woo-height {
    min-height: 0 !important;
    height: auto !important;
}

/* Also ensure we target images reliably (not all images have wp-post-image class) */
.deals-products li.product a img,
.deals-products li.product img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

/* push price / button to the bottom so cards align visually */
.deals-products li.product .price,
.deals-products li.product .button,
.deals-products li.product a.button {
        margin-top: auto;
}

@media (max-width: 767px) {
    .deals-products {
        display: block;
        padding: 0;
    }
    .deals-products li.product {
        width: auto !important;
        margin: 10px 0 !important;
    }
}


@media (max-width: 767px) {
  .deals-banner h2 {
    font-size: 34px !important;
}
.deals-banner.deals-banner {
    padding: 30px !important;
}
.deals-products {
    display: inline-block;

    margin: 25px 0;
    padding: 0px 0px 10px;
    border-radius: 15px;
}li.product {
    background: #ffffff;
    padding: 20px 20px 30px 20px !important;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 0%);
    margin: 10px 10px 30px;
}
}