/* Modal Contact Form Styles */
.fancybox-wrap {
    position: fixed !important;
    top: 0 !important;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px; 
    overflow: hidden !important;
}

.fancybox-wrap .popup {
    padding: 0 7px;
}

.fancybox-wrap .fancybox-skin {
    overflow: auto;
    padding-left: 33px !important;
    padding-right: 33px !important;
}

.fancybox-wrap .fancybox-inner,
.fancybox-wrap .fancybox-skin {
    height: 100% !important;
}

.fancybox-wrap .fancybox-inner {
    width: auto !important;
}

/* BuyPopup Modal Styles */
#buyPopup {

}

#buyPopup h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 25px 30px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    border-radius: 12px 12px 0 0;
}

#buyPopup h4 {
    display: none;
}

#buyPopup form {
    padding: 0;
}

#buyPopup .form-group {
    margin-bottom: 20px;
    width: 100%;
    float: none;
}

#buyPopup .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    text-align: right;
}

#buyPopup .form-group.w50 {
    width: 100%;
    float: none;
    margin-right: 0;
}

#buyPopup .form-group.w50.r {
    float: none;
    margin-right: 0;
}

#buyPopup input,
#buyPopup textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #495057;
    text-align: right;
    direction: rtl;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#buyPopup input:focus,
#buyPopup textarea:focus {
    outline: none;
    border-color: #3575d3;
    box-shadow: 0 0 0 3px rgba(53, 117, 211, 0.1);
}

#buyPopup textarea {
    resize: none;
    height: 120px;
    font-family: inherit;
}

#buyPopup .captcha-reg {
    margin: 20px 0;
    text-align: center;
}

#buyPopup .enter-btn {
    width: 100%;
    margin-top: 0;
    background: #3575d3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#buyPopup .enter-btn:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
}

#buyPopup .success,
#buyPopup .error {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#buyPopup .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#buyPopup .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fancybox-wrap #buyPopup .enter-btn {
    width: 100%;
    margin-top: 12px;
}

.fancybox-wrap #buyPopup .enter-btn,
a.fancybox-buy,
a.fancybox-bid {
    position: relative;
    padding-top: 13px;
    padding-bottom: 13px;
    line-height: inherit;
    border-radius: 8px;
    border: 2px solid #111;
    background: #111;
    transition: 50ms;
}
.product-images-in > div.product-page__image-wrapper.active {
    border: 3px solid #111;
}


.fancybox-wrap #buyPopup .enter-btn{
    background: #3575d3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.fancybox-wrap #buyPopup .enter-btn:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
}
.product-info > .row > .col-xs-9 {
    border-right: 1px solid #c3c5c6;
}
.product-page__description .sd1 {
    border-left: 1px solid #c3c5c6;
}
.product-page h1 {
    font-size: 24px !important;
}
.fa-arrow-left.fa-arrow-left:before,
.fa-arrow-right.fa-arrow-right:before {
    content: "➝";
}
.fa-arrow-left.fa-arrow-left {
    transform: rotate(-180deg);
}
.modal-images {
    display: flex;
    transition: 0.5s;
}
.modal-active .modal-images {
    opacity: 1;
    visibility: visible;
}
.modal-images .cover {
    width: 100%;
    height: 100%;
    margin: auto;
    background: #fff;
    border-radius: 15px;
}
.modal-images .first-line {
    margin-bottom: 10px;
}
.modal-images .content-images,
.modal-images .first-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.modal-images .close {
    background: url(../images/close.png) no-repeat;
    width: 16px;
    height: 16px;
    opacity: 1;
}
.modal-images .content-images {
    height: calc(100% - 30px);
}
.modal-images .content-images > div {
    height: 100%;
    overflow: auto;
    position: sticky;
    top: 0;   
}
.modal-images .left {
    width: 80%;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.modal-images .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}
.modal-images .right img {
    width: 112px;
    height: auto;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}
.modal-images .right img.active {
    border: 2px solid #3575d3;
}
.modal-images .left img {
    height: 100%;
    width: auto;
}
.modal-images .product-name {
    font-size: 21px;
}
.product-page__description .row {
    margin: 20px 0;
}
@media screen and (max-width: 520px) {
    .fancybox-wrap {
        width: 100% !important;
    }
}
@media screen and (max-width: 850px) {
    .modal-images .left {
        width: 100%;
    }
    .modal-images .right {
        display: none;
    }
}
