/* Module Blackfriday */

:root {
    --bf-primary: #E42024;
    --bf-background: #333333;
    --site-primary: #1d4289;
}

.blackfriday-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    border-radius: 50%;
    font-size: 1.2em;
    width: 80px;
    height: 80px;
    color: #FFF;
    text-align: center;
    background: #ff1717;
}
.text-wrap {
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
}
.text-wrap span {
    display: block;
    line-height: 1.2em;
}
.blackfriday-badge span:nth-child(2) {
    color: white;
    font-size: 1.25em;
}

.product-outofstock {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(202, 204, 209, 0.85);
    z-index: 9999;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.product-outofstock span {
    color: red;
    font-size: 1.3em;
}

.widget-drawer {
    z-index: 214748394!important;
}

.modal {
    --bs-modal-padding: 0 !important;
    z-index: 2147483947!important;
}

.modal a {
    text-decoration: none !important;
}

.normal-price{
    position: absolute;
    top: -30px;
    right: -55px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
    background-color: #caccd1;
    color: black;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 99999;
}

.blackfriday-price{
    position: absolute;
    top: 20px;
    right: -40px;
    width: 100px;
    line-height: 100px;
    border-radius: 50%;
    text-align: center;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 99998;
}

.strikethrough {
    position: relative;
}

.strikethrough:before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    right: 0;
    border-top: 2px solid;
    border-color: red;

    -webkit-transform:rotate(10deg);
    -moz-transform:rotate(10deg);
    -ms-transform:rotate(10deg);
    -o-transform:rotate(10deg);
    transform:rotate(10deg);
}

.black-friday-modal-body {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left:0;
    z-index: 2147483947!important;
    overflow-y: auto;
    background-color: var(--bf-background);
}

.black-friday-modal-body hr {
    background-color: var(--bf-primary);
}

.black-friday-modal-body hr:last-child {
    display: none;
}

.blackfriday-header {
    display: flex;
    justify-content: center;
    background: #ff1715;
}

.blackfriday-header img {
    object-fit: contain;
}

.blackfriday-header a {
    position: absolute;
    top:20px;
    right:20px;
    font-weight: bold;
    color: white;
    font-size: 1em;
    padding: 0.5em 1em;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.blackfriday-category-links {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(322px, 1fr) );
    padding: 3rem 2rem;
    gap: 1em;
}

.blackfriday-category-links a {
    text-align: center;
    color:white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5em 1em;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 3px 1px var(--bf-primary);
    border-radius: 6px;
}

.blackfriday-category-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto;
}

.blackfriday-category-section .category-name-link {
    margin-top: 1.5rem;
    text-align: center;
    color:white;
    font-weight: bold;
    font-size: 1.3em;
    padding: 0.5em 1em;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 3px 1px var(--bf-primary);
    border-radius: 6px;
    width: 96%;
}

.blackfriday-category-section .category-under-link {
    margin-bottom: 3rem;
    text-align: center;
    color:white;
    font-weight: bold;
    font-size: 1em;
    padding: 0.5em 1em;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 3px 1px var(--bf-primary);
    border-radius: 6px;
    width: 90%;
}

.blackfriday-category-links a:hover,
.blackfriday-category-section .category-name-link:hover,
.blackfriday-category-section .category-under-link:hover {
    background-color: rgba(0, 0, 0, 1);
}

.blackfriday-category-products {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(140px, 1fr) );
    padding: 3rem 1rem;
    gap: 2em 1em;
}

.blackfriday-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
}

.blackfriday-product-card .product-out-of-stock {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(147,147,147, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.blackfriday-product-card .product-out-of-stock span {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--bf-primary);
    text-align: center;
}

.blackfriday-product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8em;
    font-weight: bold;
    background-color: var(--bf-primary);
    color: white;
    padding: 0.2rem 0.5rem;
    box-shadow: 1px 1px 5px -1px var(--bf-primary);
    border-radius: 4px;
}

.blackfriday-product-card .product-image {
    height: 135px
}

.blackfriday-product-card .product-title {
    display: -webkit-box;
    max-width: 100%;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: initial;
    word-break: break-word;
    color: inherit;
    text-decoration: none;
    height: 72px;
    line-height: 19px !important;
    font-weight: 700;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.8em;
}

.blackfriday-product-card .product-price {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.blackfriday-product-card .product-price .old-price,
.blackfriday-product-card .product-price .new-price {
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 1.2em;
}

.blackfriday-product-card .product-price .old-price {
    text-decoration: line-through;
}

.blackfriday-product-card .product-price .new-price {
    color: var(--bf-primary);
}

.blackfriday-product-card .product-title:hover {
    color: var(--site-primary);
}

.blackfriday-product-card .add_to_cart_button {
    background-color: #c12026;
    color: white;
    padding: 0.5rem 0.8rem;
    margin-top: 1rem;
    font-size: 0.8em;
}

.blackfriday-product-card .added_to_cart {
    margin-top: 0.5rem;
    background-color: var(--site-primary);
    color:white;
    font-size: 0.8em;
}

@media only screen and (min-width: 498px) {
    .blackfriday-category-products {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(200px, 1fr) );
        padding: 3rem 2rem;
        gap: 2em 1em;
    }

    .blackfriday-product-card .product-badge {
        font-size: 1em;
    }

    .blackfriday-product-card .product-title {
        font-size: 1em;
    }

    .blackfriday-product-card .add_to_cart_button,
    .blackfriday-product-card .added_to_cart {
        font-size: 1em;
    }

    .blackfriday-product-card .product-image {
        height: 200px
    }
}

@media only screen and (min-width: 1555px) {
    .blackfriday-header img {
        max-height: 800px;
    }
}

@media only screen and (min-width: 1376px) {
    .blackfriday-category-links {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* End Module Blackfriday */