﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC',sans-serif;
    list-style: none;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
        color: unset;
    }

img {
    width: 100%;
}

header {
    background: #ffffff;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-in {
    width: 1140px;
    margin: 0 auto;
    overflow: hidden;
    padding-left: 15px;
}

.logo {
    font-size: 2vw;
    color: #FFF;
    padding: 0;
    margin: 0;
}

    .logo img {
        width: 171px;
    }

.area-title {
    margin-top: 0.5rem;
}
.area-cover {
    margin-bottom: 0.5rem;
}
.content p {
    margin: 0;
    text-align: center;
    font-size: clamp(1rem, 5vw, 2rem);
    font-weight: bolder;
}

.product-area {
    margin-top: -10px;
    padding: 0 10px;
}

    .product-area .row [class^="col-"] {
        padding: 0 5px;
        margin-top: 10px;
    }

.product-card {
    width: 100%;
    display: block;
    color: unset;
    aspect-ratio: 1/1.2;
    padding: 20px;
    border: 1px solid #d5d5d5;
}

    .product-card:hover,
    .product-card:focus,
    .product-card:active {
        border-color: #d30180;
    }

        .product-card:hover .product-title,
        .product-card:focus .product-title,
        .product-card:active .product-title {
            color: #d30180;
        }

.product-img {
    aspect-ratio: 1;
}

.product-title {
    margin-top: 5px;
    font-size: 14px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-group {
    display: flex;
    justify-content: space-around;
    align-items: end;
}

    .price-group .original-price {
        font-size: clamp(.5rem, 1vw, 1.5rem);
        text-decoration: line-through;
    }

    .price-group .sale-price {
        font-size: clamp(1.5rem, 2vw, 2rem);
        color: #dc3545;
        margin: 0;
    }

.hvr-float-shadow {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: transform;
    transition-property: transform;
    height: fit-content;
    margin-top: var(--bs-gutter-y);
}

    .hvr-float-shadow:before {
        pointer-events: none;
        position: absolute;
        z-index: -1;
        content: '';
        top: 100%;
        left: 5%;
        height: 10px;
        width: 90%;
        opacity: 0;
        background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 80%);
        /* W3C */
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        -webkit-transition-property: transform, opacity;
        transition-property: transform, opacity;
    }

    .hvr-float-shadow:hover,
    .hvr-float-shadow:focus,
    .hvr-float-shadow:active {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
        /* move the element up by 5px */
    }

        .hvr-float-shadow:hover:before,
        .hvr-float-shadow:focus:before,
        .hvr-float-shadow:active:before {
            opacity: 1;
            -webkit-transform: translateY(5px);
            transform: translateY(5px);
            /* move the element down by 5px (it will stay in place because it's attached to the element that also moves up 5px) */
        }

footer {
    margin-top: 60px;
    text-align: center;
}

@media (min-width:992px) {
    .area-title {
        margin: 1.5rem 0;
    }
    .area-cover {
        margin-bottom: 1.5rem;
    }
    .product-area .row [class^="col"] {
        padding: 0 10px;
        margin-top: 20px;
    }

    .product-area {
        margin-top:-20px;
        padding: 0;
    }

    .product-title {
        font-size: 16px;
    }

}
