/*door-list*/

.btn-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-custom img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-custom span {
    margin-top: 8px;
    font-size: 14px;
}

/*modal*/

.modal-dialog .modal-content {
    background-color: rgba(0, 0, 0, 0);
    border: none;
}

.modal-content .modal-header {
    border-bottom: none;
    padding: 0;
}

.modal-content .close {
    color: #fff;
    opacity: 1;
    font-size: 40px;
}

/*modal-dialog*/

.modal .modal-dialog {
    max-width: 1200px;
    padding: 0 2rem;
}

@media (max-width: 991px) {
    .modal.show .modal-dialog {
        padding: 0 1rem;
    }
}

@media (max-width: 767px) {
    .modal.show{
        padding-left: 0;
    }

    .modal.show .modal-body {
        padding: 0;
    }

    .modal.show .modal-dialog {
        padding: 0;
        margin: 0;
    }
}

/*door-style*/

.door-img-pillar,
.modal-content .img-fluid {
    width: 100%;
    position: relative;
}

.modal-content .img-fluid {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .modal-content .img-fluid {
        margin-bottom: 1rem;
    }
}

.door-img-pillar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    background-image: url(../img/door-top.png);
    width: 100%;
    height: 100%;
    background-size: 799px 56px;
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 100;
}

.door-img-pillar::before,
.door-img-pillar::after,
.modal-content .img-fluid::before,
.modal-content .img-fluid::after {
    content: '';
    display: block;
}

.door-img-pillar::before,
.door-img-pillar::after {
    position: relative;
    background-position: top;
    z-index: 3;
    background-repeat: no-repeat;
}


.door-img-pillar::before {
    background-image: url(../img/door-left-1.png);
    width: 160px;
    height: 645px;
    position: absolute;
    top: 1px;
    left: -3px;
    background-position: top;
    z-index: 0;
}

.door-img-pillar::after {
    background-image: url(../img/door-right-1.png);
    width: 160px;
    height: 645px;
    position: absolute;
    top: 0px;
    right: -4px;
    z-index: 0;
}

/*choose*/

.choose-box {
    background-color: #fff;
    border-radius: 6px;
    padding: 10px;
}

.style-header {
    font-size: 17px;
    font-weight: bold;
    color: #8c561c;
    border-left: 5px #ffb200 solid;
    padding-left: 10px;
    line-height: 21px;
}

.door-title {
    border-bottom: 1px #dfdfdf solid;
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 0;
    padding-top: 8px;
}

.door-title:first-child {
    margin-top: 0;
    padding-top: 0;
}

.door-title small {
    color: #898989;
    margin-right: 10px;
    padding: 5px;
    border-radius: 3px;
}

.door-color {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 99%;
    overflow: hidden;
    z-index: 0;
    margin-left: 3px;
}

.door-color::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 17px;
    background-image: url(../img/door-bottom-1.png);
    background-repeat: repeat-x;
    background-position: center;
    background-size: contain;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    transform: scaleY(-1);
    border-radius: 5px 5px 0 0;
    z-index: 1;
}

.door-color li {
    width: 100%;
    opacity: 0.875;
    transition: .7s;
    list-style: none;
}

.door-color li a {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 100;
    height: 25px;
    margin: 0 auto;
}


.door-color li a:hover {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.door-color li a:active {
    background-color: rgba(0, 0, 0, 0);
}

.modal-content .img-fluid::after {
    background-image: url(../img/door-bottom.png);
    width: 100%;
    height: 70px;
    position: relative;
    top: 1px;
    z-index: 1;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
}


/*choose*/
.swatch-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 57px;
    flex-wrap: wrap;
}

.swatch-div>div {
    border: 1px #ececec solid;
    transition: all 0.1s ease-in-out;
}

.swatch-div:hover>div,
.swatch-div.active>div {
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease-in-out;
    border: 2px #f1b81a solid;
}

.swatch-div span {
    font-size: 13px;
}

.color-swatch {
    width: 100%;
    height: 45px;
    max-width: 45px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    cursor: pointer;
}

.color-swatch.selected {
    border-color: #000;
}

.hole-swatch {
    width: 100%;
    height: 45px;
    max-width: 45px;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    cursor: pointer;
    background-position: center;
    background-size: 85px;
}

.hole-swatch.no-style {
    background: white;
    position: relative;
    overflow: hidden;
}

.hole-swatch.no-style::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 200%;
    z-index: 1;
    background-color: #cf5050;
    transform: translate(-50%, -50%) rotate(45deg);
}

.hole-swatch.matte {
    background-size: cover;
}

.hole-swatch.matte.short {
    background-size: 109px 43px;
    background-repeat: no-repeat;
}


.modal-body .modal-footer {
    border-top: none;
    text-align: center;
    width: 100%;
    justify-content: center;
    padding: 0;
}

.modal-body .modal-footer .clear-btn {
    background-color: #6a6a6a;
    border-radius: 3px;
    color: #fff;
    width: 100%;
    padding: 10px;
}

.modal-body .modal-footer .clear-btn:hover {
    background-color: #000;
    transition: all 0.3s ease-in-out;

}

/*type1*/

.door-type1 {
    width: 690px;
    height: 564px;
    margin: 56px 65px 0 66px;
    background-image: url(../img/door01.jpg);
    background-size: 99% 502px;
    background-position: top 0px center;
    background-repeat: repeat-y;
    position: relative;
    z-index: 1;
}

@media (max-width: 575px) {
    .door-type1 {
        height: 508px;
        background-size: 99% 545px;
    }

    .door-type1 .door-color li a {
        height: 27px;
    }
}

/*type2*/

.door-type2 {
    width: 690px;
    height: 564px;
    margin: 57px 65px 0 66px;
    background-image: url(../img/door02.jpg);
    background-size: 99% 848px;
    background-position: top -1px center;
    background-repeat: no-repeat;
    z-index: 1;
}

.door-type2 .door-color li a {
    height: 29px;
}

/*type3*/

.door-type3 {
    width: 100%;
    max-width: 690px;
    height: 564px;
    margin: 56px 68px 0 70px;
    background-color: #fff;
    z-index: 1;
}

.door-type3 .door-color li {
    position: relative;
    display: flex;
    flex-direction: column;
}

.door-type3 .door-color li a {
    height: 50px;
}

.door-type3 .door-color li .d a:hover,
.door-type3 .door-color li i:hover,
.door-type3 .straight-div i:hover,
.door-type3 .horizontal-div i:hover {
    background-color: inherit;
    cursor: pointer;
}

.door-type3 .door-color li .d a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.door-type3 .door-color li .d:active a {
    background-color: rgba(0, 0, 0, 0);
}

.door-type3 .door-color li div {
    width: 100%;
}

.door-type3 .door-color li i:last-of-type {
    width: 100%;
    display: block;
    height: 12px;
    border-bottom: rgb(113 113 113 / 10%) 7px solid;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 2px rgb(104 104 104 / 60%);
    border-top: 1px rgb(98 98 98 / 20%) solid;
    border-bottom: 2px rgb(118 118 118 / 20%) solid;
    z-index: 300;
}

.door-type3 .straight-div {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: space-evenly;
}

.door-type3 .straight-div>div {
    width: 12px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1;
    cursor: pointer;
}

.door-type3 .straight-div i {
    width: 12px;
    display: block;
    height: 100%;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 0px rgb(104 104 104 / 60%);
    border-right: 1px rgb(98 98 98 / 20%) solid;
    border-left: 2px rgb(118 118 118 / 20%) solid;
    position: absolute;
}

.door-type3 .horizontal-div {
    width: 100%;
    height: 96%;
    position: absolute;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.door-type3 .horizontal-div>div {
    width: 100%;
    height: 12px;
    background-color: #ffffff;
    z-index: 1;
    cursor: pointer;
    z-index: 999;
}

.door-type3 .horizontal-div i {
    width: 100%;
    display: block;
    height: 12px;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 0px rgb(104 104 104 / 60%);
    border-top: 1px rgb(98 98 98 / 20%) solid;
    border-bottom: 6px rgb(118 118 118 / 20%) solid;
    position: absolute;
}


/*type4*/

.door-type4 {
    width: 100%;
    max-width: 690px;
    height: 564px;
    margin: 56px 68px 0 70px;
    background-color: #fff;
    z-index: 1;
}

.door-type4 .door-color {
    margin-left: 0px;
    width: 100%;
}

.door-type4 .door-color li {
    position: relative;
    display: flex;
    flex-direction: column;
}

.door-type4 .door-color li a {
    background-image: url(../img/door04.png);
    background-repeat: repeat-x;
    background-size: 100% 58px;
    height: 58px;
}

.door-type4 .door-color li .d a:hover,
.door-type4 .door-color li i:hover {
    background-color: inherit;
    cursor: pointer;
}

.door-type4 .door-color li .d a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.door-type4 .door-color li .d:active a {
    background-color: rgba(0, 0, 0, 0);
}

.door-type4 .door-color li div {
    width: 100%;
}

.door-type4 .door-color li i:last-of-type {
    width: 100%;
    display: block;
    height: 12px;
    border-bottom: rgb(113 113 113 / 10%) 7px solid;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 2px rgb(104 104 104 / 60%);
    border-top: 1px rgb(98 98 98 / 20%) solid;
    border-bottom: 5px rgb(118 118 118 / 20%) solid;
    z-index: 300;
}


/*type5*/

.door-type5 {
    width: 100%;
    max-width: 690px;
    height: 564px;
    margin: 56px 68px 0 70px;
    background-color: #fff;
    z-index: 1;
}

.door-type5 .door-color {
    margin-left: 0px;
    width: 100%;
}

.door-type5 .door-color li {
    background-image: url(../img/door04.jpg);
    background-repeat: repeat-x;
    background-size: 100% 52px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.door-type5 .door-color li a {
    height: 58px;
}

.door-type5 .door-color li .d a:hover,
.door-type5 .door-color li i:hover,
.door-type5 .straight-div i:hover {
    background-color: inherit;
    cursor: pointer;
}

.door-type5 .door-color li .d a:hover,
.door-type5 .door-color li i:hover,
.door-type5 .straight-div i:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.door-type5 .door-color li .d:active a {
    background-color: rgba(0, 0, 0, 0);
}

.door-type5 .door-color li div {
    width: 100%;
}

.door-type5 .door-color li i:last-of-type {
    width: 100%;
    display: block;
    height: 12px;
    border-bottom: rgb(113 113 113 / 10%) 7px solid;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 2px rgb(104 104 104 / 60%);
    border-top: 1px rgb(98 98 98 / 20%) solid;
    border-bottom: 5px rgb(118 118 118 / 20%) solid;
    z-index: 300;
}

.straight-div {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: space-evenly;
}

.straight-div>div {
    width: 12px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1;
    cursor: pointer;
}

.straight-div i {
    width: 12px;
    display: block;
    height: 100%;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 0px rgb(104 104 104 / 60%);
    border-right: 1px rgb(98 98 98 / 20%) solid;
    border-left: 2px rgb(118 118 118 / 20%) solid;
    position: absolute;
}