@import "shared/mixins-and-vars";

.product-tile {
    display: block;
    width: (200 / @px);
    border: solid 1px #999;
    border-radius: 10px;
    margin: 0 auto;
    padding: (40 / @px) 10px;
    position: relative;
    text-decoration: none;
    color: #111;
    overflow: hidden;
    text-align: center;

    .enable__is-dark-mode & {
        color: @dark-mode-white;
    }

    del,
    ins,
    mark {
        background-color: transparent;

        .enable__is-dark-mode & {
            color: @dark-mode-white;
        }
    }

    del,
    mark.del {
        text-decoration: line-through;
    }

    &__badge {
        position: absolute;
        top: 0;
        left: 0;
        background: #aaa;
        padding: 5px;

        .enable__is-dark-mode & {
            background: #550000;
        }
    }

    &__name {
        font-weight: bold;
    }

    &__image {
        width: 100%;
    }

    &--not-as-good-example {
        del::before,
        ins::before {
            .enable__visually-hidden;
            .not-selectable;
        }

        del,
        mark.del {
            &::before {
                content: "Old price: ";
            }
        }

        ins,
        mark.ins {
            &::before {
                content: "Current price: ";
            }
        }
    }
}
