.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before {
    display: none !important;
}
/* =========================================
   1. PRODUCT CARD WRAPPER (Base)
   ========================================= */
.dodigitals-product-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* Ye zaroori hai taaki andar ka content bahar na nikle */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dodigitals-product-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: #ddd;
}

/* =========================================
   2. IMAGE & OVERLAY ACTIONS
   ========================================= */
.product-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 6px;
    /* Aspect Ratio Fix (Optional) */
    aspect-ratio: 1 / 1; 
}

.dodigitals-product-wrapper:hover .product-image-wrapper img {
    transform: scale(1.08);
}

/* Overlay Buttons (Right Side) */
.product-overlay-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.dodigitals-product-wrapper:hover .product-overlay-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-overlay-actions .action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.product-overlay-actions .action-btn:hover {
    background: #FF7130;
    color: #fff;
}

/* Sale Badge */
.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #FF7130; /* Theme Color */
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================
   3. PRODUCT INFO & TITLE
   ========================================= */
.product-info-wrapper {
    flex-grow: 1; /* Pushes footer down */
    text-align: left;
}

.woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.4;
}

.woocommerce-loop-product__title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    overflow: hidden;
    transition: 0.2s;
}

.woocommerce-loop-product__title a:hover {
    color: #FF7130;
}

.price-wrapper {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-wrapper del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.price-wrapper ins {
    text-decoration: none;
    color: #e63946;
}

/* =========================================
   4. VARIATIONS (Hover Reveal Logic)
   ========================================= */
/* Default: Hidden (Use opacity/height instead of display:none for smooth animation) */
.product-variations {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

/* On Hover: Show Variations */
.dodigitals-product-wrapper:hover .product-variations {
    max-height: 60px; /* Adjust based on content */
    opacity: 1;
    margin-bottom: 10px;
    margin-top: 5px;
}

.variation-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Swatches */
.variation-button.swatch-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.2s;
    background-size: cover;
    padding: 0;
}

.variation-button.swatch-item:hover, 
.variation-button.swatch-item.selected {
    border-color: #333;
    transform: scale(1.1);
}

.variation-button.swatch-item.is-text {
    width: auto;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #f5f5f5;
}

/* =========================================
   5. FOOTER BUTTONS (Add to Cart / Buy Now)
   ========================================= */
.product-actions-footer {
    margin-top: auto; /* Pushes to bottom */
}

.product-buttons-wrapper {
    display: flex;
    gap: 8px;
}

.product-buttons-wrapper .button {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    white-space: nowrap;
}

/* Add to Cart */
.product-buttons-wrapper .ajax_add_to_cart, 
.product-buttons-wrapper .custom-add-to-cart-button {
    background: #222;
    color: #fff;
}
.product-buttons-wrapper .ajax_add_to_cart:hover {
    background: #444;
}

/* Buy Now */
.product-buttons-wrapper .buy-now-button-simple, 
.product-buttons-wrapper .custom-buy-now-button {
    background: #FF7130;
    color: #fff;
}
.product-buttons-wrapper .buy-now-button-simple:hover {
    background: #e65c00;
}

/* =========================================
   6. MOBILE & LIST VIEW ADJUSTMENTS
   ========================================= */
@media (max-width: 767px) {
    .product-buttons-wrapper {
        flex-direction: column; /* Stack buttons on mobile */
    }
    .product-buttons-wrapper .button {
        width: 100%;
    }
    
    /* Always show variations on mobile (No hover) */
    .product-variations {
        max-height: none;
        opacity: 1;
        margin-bottom: 10px;
    }
    
    .product-overlay-actions {
        opacity: 1; /* Always show icons on mobile */
        transform: translateX(0);
        top: 5px;
        right: 5px;
    }
}