/*
 Theme Name:   Woodmart Child
 Theme URI:    https://xtemos.com/themes/woodmart/
 Description:  A lightweight, secure, and customizable child theme for the Woodmart WordPress theme with full WooCommerce support.
 Author:       Slivosco
 Author URI:   https://slivos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart-child
*/

/* ---------------------------------------------------
   Add custom styles below
---------------------------------------------------- */
/* ================= (Free Shipping + Delivery Estimate Styling) ================= */

.slivos-delivery-shipping-info,
.slivos-delivery-shipping-info-shop {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.slivos-delivery-shipping-info p,
.slivos-delivery-shipping-info-shop p {
    display: flex;
    align-items: center;
    margin: 3px 0;
}

.slivos-delivery-shipping-info svg,
.slivos-delivery-shipping-info-shop svg {
    margin-right: 6px;
    vertical-align: middle;
    fill: currentColor;
}

.slivos-delivery-shipping-info .delivery-estimate,
.slivos-delivery-shipping-info-shop .delivery-estimate {
    color: #0073e6;
    font-weight: 600;
}

.slivos-delivery-shipping-info .free-shipping,
.slivos-delivery-shipping-info-shop .free-shipping,
.slivos-free-shipping {
    color: #28a745; /* Green for Free Shipping */
    font-weight: 700;
}

.slivos-free-shipping {
    margin: 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slivos-delivery-shipping-info,
    .slivos-delivery-shipping-info-shop,
    .slivos-free-shipping {
        font-size: 13px;
    }

    .slivos-delivery-shipping-info svg,
    .slivos-delivery-shipping-info-shop svg,
    .slivos-free-shipping svg {
        width: 12px;
        height: 12px;
    }
}

/* Hide stock status globally on the front-end for Woodmart theme */
.woocommerce div.product .stock,
.woocommerce .products li.product .stock,
.wd-stock-status,
.wd-product-stock {
    display: none !important;
}

.product_meta .wd-stock-status-label {
    display: none !important;
}

/* ================================
   HIDE TAGS ON FRONT-END (WOODMART)
   ================================ */

/* Hide tags under product title */
.product_meta .tagged_as,
.product_meta .tags,
.product_meta .wd-tags,
.woocommerce-product-details__tags,
.tags-links {
    display: none !important;
}

/* Hide tag lists on blog/shop/archive pages */
.tag-links,
.post-meta .meta-tags,
.entry-meta .meta-tags {
    display: none !important;
}

/* Hide tag widgets sitewide */
.widget_product_tag_cloud,
.widget_tag_cloud,
.tagcloud,
.footer-tagcloud {
    display: none !important;
}

/* Hide tags inside Woodmart custom blocks */
.wd-tag,
.wd-tags {
    display: none !important;
}

/*Add SSL / Safe Browsing / Secure Payments icons*/
.slivos-security-icons {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.slivos-security-icons span {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

/* Prevent auto-ads from showing above header (all pages + all devices) */
html > body > ins.adsbygoogle:first-of-type,
html > ins.adsbygoogle:first-of-type,
body > ins.adsbygoogle:first-of-type {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}