/* product-list */

.product-wrap {
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    width: 1200px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-item {
    list-style: none;
    display: inline-block;
    width: calc((100% - 20px) / 2);
    padding: 10px;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.product-item > img {
    width: 90%;
    margin: 24px 0;
}
.product-title {
    padding: 12px;
    border-bottom: 1px solid #ccc;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
}

.product-title > span {
    font-size: 1.2rem;
}

.product-more-info > button {
    margin: 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 36px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 1em;
}

.product-more-info > button:hover {
    background-color: #62affa;
    color: #ffffff;
}

/* priduct details */
#dialog {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1500;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.dialog-inner {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    top: 10vh;
    border: 4px solid white;
    padding: 36px;
    text-align: center;
}

.detail-content {
    margin: 64px 0;
    position: relative;
    display: flex;
    gap: 40px;
    justify-content: space-evenly;
}

.detail-img {
    display: inline-block;
}

.detail-info {
    display: inline-block;
    list-style: none;
}

.detail-info-title {
    font-size: 2rem;
}

.detail-spec {
    display: inline-block;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.8;
}

.detail-spec a {
    color: white;
}

.close {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 36px;
    cursor: pointer;
    background-color: black;
    font-size: 1rem;
    color: #ffffff;
}

.close:hover {
    background-color: #62affa;
}

@media screen and (max-width: 660px) {
    .product-wrap {
        width: 100%;
    }

    .product-item {
        width: 90%;
        margin: 0 auto;
    }

    .detail-spec {
        font-size: 1rem;
        line-height: 1.5;
        padding-bottom: 1rem;
    }
}
