/**
 * 5fil Kampanya - Frontend Styles
 * WoodMart Theme Compatible
 */

/* Garage Sale Product Label */
.product-labels.labels-rectangular .garage-sale.product-label {
    background: #FF5500;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    display: inline-block;
    line-height: 1.4;
}

/* Position the label on product images */
.product-image-link,
.product-image-wrapper,
.woocommerce-product-gallery__image {
    position: relative;
}

.product-labels.labels-rectangular {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 15;
    pointer-events: none;
}

/* WoodMart Product Card Compatibility */
.product-grid-item .product-wrapper {
    position: relative;
}

.product-grid-item .product-image-link {
    position: relative;
}

/* Product List View */
.product-list-item .product-image-wrapper {
    position: relative;
}

/* Single Product Page */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
}

.woocommerce-product-gallery__image {
    position: relative;
}

/* Single Product Page - Left Corner */
.single-product .product-labels.labels-rectangular.filfil-single-product-badge,
.woocommerce div.product .product-labels.labels-rectangular.filfil-single-product-badge,
.woocommerce-product-gallery .product-labels.labels-rectangular.filfil-single-product-badge,
.woocommerce-product-gallery__wrapper .product-labels.labels-rectangular.filfil-single-product-badge,
.woocommerce div.product div.images .product-labels.labels-rectangular.filfil-single-product-badge,
.woocommerce div.product div.images .woocommerce-product-gallery .product-labels.labels-rectangular.filfil-single-product-badge {
    left: 10px !important;
    right: auto !important;
    top: 10px !important;
    position: absolute !important;
    z-index: 15 !important;
}

.single-product .woocommerce-product-gallery,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product div.images,
.woocommerce-product-gallery__wrapper {
    position: relative !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-labels.labels-rectangular:not(.filfil-single-product-badge) {
        top: 8px;
        right: 8px;
    }
    
    .product-labels.labels-rectangular.filfil-single-product-badge {
        left: 8px !important;
        right: auto !important;
        top: 8px !important;
    }
    
    .product-labels.labels-rectangular .garage-sale.product-label {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .product-labels.labels-rectangular:not(.filfil-single-product-badge) {
        top: 5px;
        right: 5px;
    }
    
    .product-labels.labels-rectangular.filfil-single-product-badge {
        left: 5px !important;
        right: auto !important;
        top: 5px !important;
    }
    
    .product-labels.labels-rectangular .garage-sale.product-label {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* WoodMart Quick View Compatibility */
.quick-view .product-labels.labels-rectangular {
    top: 10px;
    right: 10px;
}

/* WoodMart Carousel Compatibility */
.owl-carousel .product-grid-item .product-labels.labels-rectangular {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Category Pages */
.archive.woocommerce .product-labels.labels-rectangular {
    position: absolute;
}

/* Shop Page Grid */
.products.columns-2 .product-labels.labels-rectangular,
.products.columns-3 .product-labels.labels-rectangular,
.products.columns-4 .product-labels.labels-rectangular,
.products.columns-5 .product-labels.labels-rectangular,
.products.columns-6 .product-labels.labels-rectangular {
    top: 10px;
    right: 10px;
}

/* Related Products */
.related.products .product-labels.labels-rectangular,
.upsells.products .product-labels.labels-rectangular {
    top: 10px;
    right: 10px;
}

/* Widget Products */
.widget_products .product-labels.labels-rectangular,
.widget_recently_viewed_products .product-labels.labels-rectangular {
    top: 5px;
    right: 5px;
}
