/**
 * Single Product Styles
 * استایل صفحه تک محصول
 */

.single-product-page.v2 {
    background: #fafbfc;
    border-radius: 13px;
    box-shadow: 0 2px 18px #b5b5b515;
}

.custom-single-product-grid {
    display: flex;
    gap: 10px;
    padding: 20px;
    align-items: flex-start;
}

.gallery-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 305px;
    max-width: 50%;
}

.big-img-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 17px #cccccc0c;
    padding: 14px 8px;
    margin-bottom: 11px;
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-side img.main-img {
    width: 100%;
    height: 400px;
    max-height: 400px;
    aspect-ratio: 4/2;
    border-radius: 13px;
    box-shadow: 0 8px 26px #0001;
    transition: .19s;
    object-fit: cover;
    background: #f3f3f3;
}

.thumbs {
    display: flex;
    gap: 11px;
    margin-top: 0;
}

.thumbs img {
    height: 62px;
    width: 62px;
    border-radius: 8px;
    object-fit: cover;
    background: #fafafa;
    box-shadow: 0 1px 7px #8181810a;
    cursor: pointer;
    opacity: .87;
    transition: .13s;
    border: 2px solid #dde2ee;
    margin-top: 2px;
}

.thumbs img:hover,
.thumbs img:focus,
.thumbs img.selected {
    opacity: 1;
    border-color: #faaf40;
    background: #fff4db;
}

.info-side {
    flex: 1;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 50%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px 10px;
}

.product-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.7;
    margin-bottom: 0;
    color: #222;
}

.product-desc {
    font-size: 14px;
    line-height: 2.1;
    color: #24232e;
    background: #f7f7fa;
    border-radius: 7px;
    padding: 13px 3px;
    max-width: 925px;
}

.keyvals-table {
    width: 100%;
    display: flex;
    border-collapse: separate;
    margin: 5px 0;
    min-width: 260px;
    font-size: 13px;
}

.keyvals-table tr {
    display: flex;
    justify-content: space-between;
}

.keyvals-table td {
    font-size: 13px;
    font-weight: 600;
    padding: 2.5px 12px 2.5px 0;
    color: #232342;
    background: transparent;
    text-align: right;
    border: none;
    vertical-align: middle;
    min-width: 85px;
}

.keyvals-table td b {
    margin-right: 5px;
}

.keyvals-table .icon-p {
    font-size: 1.14em;
    opacity: .78;
    margin-left: 6px;
    vertical-align: middle;
}

.product-table-wrap {
    margin-top: 11px;
    background: #fff0ee;
    padding: 13px 7px 2px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 9px #bb8a8a13;
    overflow-x: auto;
}

.product-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 270px;
}

.product-table th,
.product-table td {
    font-size: 1em;
    padding: 9px 14px 8px 4px;
    border: 1px solid #e2ced5;
    text-align: right;
    background: #fff;
}

.product-table th {
    background: #b3006d;
    color: #fff;
    font-size: 1.08em;
}

.keyvals-table .icon-dollar svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    vertical-align: -2px;
    margin-left: 2px;
    margin-right: 0;
    display: inline-block;
}

.keyvals-table .icon-p svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    min-height: 17px;
    vertical-align: -2px;
    margin-left: 2px;
    margin-right: 0;
    display: inline-block;
    fill: #000;
}

.keyvals-table tbody {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Owner Contact Box */
.abad-owner-contact-box {
    width: 100%;
    margin: 0 auto 10px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    direction: rtl;
}

.owner-info-wrapper-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.owner-info-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.owner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.owner-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    text-align: center;
}

.btn-contact-owner {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    min-width: 60px;
}

.btn-contact-owner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1100px) {
    .custom-single-product-grid {
        flex-direction: column;
        gap: 30px;
        padding: 13px;
    }
    
    .gallery-side,
    .info-side {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .owner-avatar {
        width: 80px;
        height: 80px;
    }
    
    .owner-name {
        font-size: 1.15rem;
    }
    
    .btn-contact-owner {
        font-size: 1rem;
        padding: 10px 15px;
        min-width: 60px;
    }
}

