#box {
    max-width: 1017.5px;
}

.main-color {
    background-color: #FF8383;
    border: 1px solid #FF8383;
    color: #fff;
}

.red-text {
    color: red;
    /* background-color: red; */
}

.blue-text {
    color: #339;
}

.blue-text2 {
    color: #94c5ef;
}

.blue-text3 {
    color: #3399FF;
}

/* 圖片尺寸 */
p img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

header img {
    height: 100%;
    max-width: 100%;
    min-height: 66.77px;
    object-fit: contain;
}

#menu img, #ad img {
    width: 170px;
}

#index img {
    width: 810px;
}

.title-bar {
    width: 800px;
    height: 30px;
    line-height: 30px;
    padding-left: 30px;
}

#category img {
    max-width: 100%;
}

.product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.detail img {
    width: 360px;
    /* height: 360px; */
    object-fit: cover;
}

footer img {
    width: 300px;
}

/* search */
.iconInput {
    position: relative;
    height: 45px;
    width: 250px;
    display: flex;
    align-items: center;
}

    .iconInput input {
        position: absolute;
        height: 100%;
        width: 100%;
        border-radius: 10px;
    }

.iconInput-btn button img {
    position: relative;
    height: 60%;
    right: 15px;
}

.iconInput-btn input[type="text"] {
    padding-left: 10px;
    padding-right: 45px;
}

.iconInput-btn button {
    position: absolute;
    height: 100%;
    right: 0px;
    padding: 0%;
    background-color: transparent;
    border: transparent;
    cursor: pointer;
}

/* select */
.dropbtn {
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

.dropdown a:hover {
    background-color: #ddd;
}


/* 圖片比例 */
.img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 高度和寬度的比例 */
    position: relative;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
    }

/*detail兌換完畢or補貨中*/
.product-state {
    background-color: #f7ebd3;
    color: #5d6162;
}

@media screen and (max-width: 767px) {
    #ad {
        display: none;
    }
}

@media screen and (min-width:768px) {
    header img {
        height: 100px;
        object-fit: contain;
    }
}
