
/*
Theme Name: Storefront Child
Theme URI: https://shawndavisdesigns.com/
Description: Custom child theme for Shawn Davis Designs.
Author: Shawn Davis
Author URI: https://shawndavisdesigns.com/
Template: storefront
Version: 1.0.0
Text Domain: storefront-child
*/

/* =========================================
   SHAWN DAVIS DESIGNS
   CUSTOM STYLES
   ========================================= */

/*
   Additional custom styling will go here.
*/

/* =========================================
   SHAWN DAVIS DESIGNS - SOLD RIBBON
   ========================================= */

/* Anchor ribbons to product containers */
.woocommerce ul.products li.product,
.woocommerce div.product {
    position: relative;
}

/* Diagonal SOLD ribbon */
.woocommerce .sdd-sold-ribbon {
    position: absolute !important;
    top: 25px !important;
    left: -38px !important;

    display: block !important;
    width: 165px !important;
    padding: 8px 0 !important;

    background-color: #8dcb3f !important;
    color: #ffffff !important;

    font-family: "Source Sans Pro",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
    line-height: 1.4 !important;
    text-align: center;

    transform: rotate(-45deg) !important;

    border-top: 2px solid white;
    border-bottom: 2px solid white;

    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    z-index: 50;
    pointer-events: none;
}

/* Clip the sash at product-card edges */
.woocommerce ul.products li.product {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce .sdd-sold-ribbon {
        top: 20px !important;
        left: -32px !important;
        width: 135px !important;
        font-size: 12px !important;
        padding: 6px 0 !important;
    }
}
