.single-product {
    background-color: var(--bds-bg-page); 
}

.bds-single-layout {
    margin-top: 30px;
    margin-bottom: 60px;
}

.bds-single-box {
    background-color: #fff;
    border-radius: var(--bds-card-radius);
    box-shadow: var(--bds-card-shadow);
    border: 1px solid var(--bds-border);
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.bds-gallery-wrap .product-images {
    background: #000;
    height: 500px !important;
    overflow: hidden !important; 
    margin: 0 !important;
    margin-bottom: 24px !important; 
    padding: 0 !important;
    width: 100% !important;
    border-radius: 12px !important; 
}

.bds-gallery-wrap .product-images .flickity-viewport,
.bds-gallery-wrap .product-gallery-slider {
    height: 100% !important;
}

.bds-gallery-wrap .product-images .woocommerce-product-gallery__image {
    padding-top: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bds-gallery-wrap .product-images .woocommerce-product-gallery__image a {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bds-gallery-wrap .product-images img {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important; 
}

.bds-gallery-wrap .flickity-prev-next-button {
    background: rgba(255,255,255,0.8);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.bds-gallery-wrap .flickity-prev-next-button:hover {
    background: #fff;
    color: #000;
}

.bds-gallery-wrap .product-thumbnails {
    padding: 0 !important; 
    margin-left: 0 !important; 
    margin-right: 0 !important; 
    margin-bottom: 30px !important; 
    background: transparent !important;
}

.bds-gallery-wrap .product-thumbnails .col {
    width: 86px !important; 
    max-width: 86px !important;
    flex-basis: 86px !important;
    padding: 0 12px 0 0 !important; 
}

.bds-gallery-wrap .product-thumbnails a {
    display: block !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bds-gallery-wrap .product-thumbnails img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s;
}

.bds-gallery-wrap .product-thumbnails .col:not(.is-nav-selected) img {
    opacity: 0.5;
}
.bds-gallery-wrap .product-thumbnails .col:not(.is-nav-selected):hover img {
    opacity: 0.8;
}

.bds-info-wrap {
    padding: 0 0 30px !important; 
    margin: 0 !important;
}

.bds-info-wrap .woocommerce-breadcrumb,
.bds-info-wrap nav.woocommerce-breadcrumb,
.bds-info-wrap .breadcrumbs {
    text-transform: none !important; 
    font-size: 1rem !important;
    color: #64748b !important;
    margin-bottom: 8px !important;
}

.bds-info-wrap .woocommerce-breadcrumb a {
    color: #64748b !important;
    font-weight: normal !important;
    text-transform: none !important;
}

.bds-single-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important; 
    color: #1e293b !important;
}

.bds-specs {
    font-size: 1rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.bds-single-category {
    font-size: 1rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.bds-single-price-row {
    display: flex !important;
    align-items: baseline !important; 
    gap: 16px !important; 
    margin-bottom: 12px !important; 
}

.bds-single-gia {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #dc2626 !important; 
}

.bds-single-gia-m2,
.bds-single-dt {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bds-text);
}

.bds-single-dia-chi {
    font-size: 1rem;
    color: var(--bds-text-light);
    margin-top: 16px;
}

.bds-single-dia-chi i {
    color: var(--bds-secondary);
    margin-right: 6px;
}

.bds-single-sidebar {
    position: relative;
}

.bds-seller-box.is-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    height: max-content !important;
    background: #fbfdf9 !important; 
    border-radius: var(--bds-card-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e1f0db !important;
    padding: 24px;
}

.bds-properties-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 40px !important; 
    row-gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bds-prop-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #ebebeb !important;
}

.seller-block-dynamic {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-top: 0;
}

.div-right {
    display: none; 
}

.agent-profile-card {
    display: flex;
    flex-direction: column;
}

.agent-contact-title {
    color: #007614;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.agent-profile-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.agent-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.agent-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.2;
}

.agent-phone {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    text-decoration: none;
    margin-bottom: 12px;
    display: block;
}

.agent-socials {
    display: flex;
    gap: 12px;
}

.social-icon-box {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.social-icon-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.social-icon-box.zalo-box {
    
}

.social-icon-box.viber-box {
    
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px; 
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-features li {
    display: flex;
    align-items: flex-start; 
    gap: 10px;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.agent-features li:last-child {
    margin-bottom: 0;
}

.agent-features li i {
    color: #0d8324; 
    font-size: 16px;
    margin-top: 2px;
}

.bds-related-list {
    display: flex;
    flex-direction: column;
}
.bds-hz-item {
    display: flex;
    gap: 20px;
    padding: 16px;
    background-color: #fff; 
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-card-radius);
    box-shadow: var(--bds-card-shadow);
    margin-bottom: 16px;
    transition: var(--bds-transition);
}
.bds-hz-item:hover {
    box-shadow: var(--bds-card-shadow-hover);
    transform: translateY(-2px);
}
.bds-hz-item:last-child {
    margin-bottom: 0;
}
.bds-hz-image {
    width: 200px; 
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--bds-card-radius);
    display: flex; 
}
.bds-hz-image img {
    width: 100%;
    height: 100%; 
    min-height: 140px; 
    object-fit: cover;
    transition: var(--bds-transition);
}
.bds-hz-item:hover .bds-hz-image img {
    transform: scale(1.05);
}
.bds-hz-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0; 
}
.bds-hz-title {
    margin-bottom: 8px;
}
.bds-hz-title a {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.bds-hz-title a:hover {
    color: #dc2626;
}
.bds-hz-divider {
    width: 40px;
    height: 3px;
    background-color: #e85a24; 
    margin-bottom: 12px;
}
.bds-hz-price-row {
    margin-bottom: 12px;
}
.bds-hz-price-row .total-price {
    font-size: 24px;
    font-weight: 700;
    color: #e85a24;
}
.bds-hz-price-row .total-price .amount {
    font-size: 24px;
    font-weight: 700;
    color: #e85a24;
}
.bds-hz-gia-sub {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}
.bds-hz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.bds-hz-col {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--bds-text-light);
    gap: 4px;
}
.bds-hz-col.hz-area {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: var(--bds-bg-light);
    border: 1px solid var(--bds-border);
    padding: 4px 10px;
    border-radius: 4px;
}
.badge-type {
    color: var(--bds-text);
    font-weight: 600;
    font-size: 13px;
    border-right: 1px solid var(--bds-border);
    padding-right: 8px;
}
.bds-hz-col.hz-area .value {
    color: var(--bds-text);
    font-weight: 600;
}
.bds-hz-col.location .address {
    font-size: 15px;
    color: #222;
}
.bds-hz-col.address-full .address-text {
    font-size: 13px;
    color: #666;
}

@media (max-width: 768px) {
    .bds-single-layout,
    .bds-single-layout.row,
    .bds-single-layout.row-large {
        margin-top: 15px;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .bds-single-box {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 8px;
    }
    
    
    .bds-gallery-wrap .product-images {
        height: 300px !important;
        border-radius: 8px !important;
        margin-bottom: 16px !important;
    }
    
    .bds-gallery-wrap .product-images img {
        object-fit: cover !important; 
    }
    
    
    .bds-gallery-wrap .product-thumbnails .col {
        width: 25% !important;
        max-width: 25% !important;
        flex-basis: 25% !important;
        padding: 0 8px 0 0 !important;
    }
    
    
    .product-title.bds-single-title {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    .bds-single-price-row {
        gap: 12px;
        margin: 16px 0;
        flex-wrap: wrap;
    }
    .bds-single-gia {
        font-size: 28px;
    }
    .bds-single-gia-m2, .bds-single-dt {
        font-size: 16px;
    }
    .bds-single-dia-chi {
        font-size: 15px;
    }
    
    
    .bds-single-sidebar {
        padding: 0 !important;
        margin: 0 !important;
    }
    .bds-seller-box.is-sticky {
        position: fixed !important;
        top: auto !important; 
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        z-index: 9999 !important;
        border-radius: 12px 12px 0 0 !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15) !important;
        background-color: #fff !important;
    }
    
    .nut-lien-he {
        flex-direction: column;
    }
    
    
    .bds-properties-list {
        grid-template-columns: 1fr !important; 
        row-gap: 12px !important;
        column-gap: 0 !important;
    }
    .bds-prop-row {
        font-size: 15px;
        justify-content: space-between;
    }
    
    
    .bds-hz-location-top {
        display: none !important; 
    }
    .bds-hz-item {
        padding: 10px;
        gap: 12px;
        align-items: stretch;
        height: 175px; 
        overflow: hidden;
    }
    .bds-hz-info {
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .bds-hz-image {
        width: 110px; 
    }
    .bds-hz-image img {
        height: 100%;
        min-height: unset;
        object-fit: cover;
    }
    .bds-hz-title {
        margin-bottom: 4px;
    }
    .bds-hz-title a {
        font-size: 15px; 
        -webkit-line-clamp: 2;
    }
    .bds-hz-price-row {
        margin-bottom: 6px;
    }
    .bds-hz-gia-sub {
        font-size: 14px; 
        margin-top: 2px;
    }
    .bds-hz-col.address-full {
        text-align: left !important; 
        max-width: 100% !important;
    }
    .bds-hz-col.address-full .address-text {
        font-size: 13px;
        white-space: normal;
        line-height: 1.4;
    }
    .bds-hz-price-row .total-price {
        font-size: 20px; 
    }
    .bds-hz-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
        overflow: hidden;
    }
    
    
    .bds-hz-col.hz-area {
        padding: 4px 8px;
        gap: 6px;
        flex-wrap: wrap; 
    }
    .badge-type, .bds-hz-col.hz-area .value {
        font-size: 12px;
        white-space: nowrap; 
    }
    .bds-hz-col.address-full {
        text-align: left !important;
        max-width: 100% !important;
    }
}

.bds-svg-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    position: relative;
    top: -1px;
    color: currentColor;
    opacity: 0.8;
}

.mobile-toggle-icon {
    display: none;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    
    .bds-seller-box.is-sticky .agent-collapsible-content {
        display: none;
    }
    .bds-seller-box.is-sticky.expanded .agent-collapsible-content {
        display: block;
        animation: slideUpFade 0.3s ease forwards;
    }
    
    
    .bds-seller-box.is-sticky .agent-contact-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        cursor: pointer;
        padding: 4px 0;
    }
    .bds-seller-box.is-sticky.expanded .agent-contact-title {
        margin-bottom: 16px;
        border-bottom: 1px solid #e1f0db;
        padding-bottom: 12px;
    }
    
    .mobile-toggle-icon {
        display: block;
        color: #0d8324;
        font-size: 16px;
    }
    .bds-seller-box.is-sticky.expanded .mobile-toggle-icon {
        transform: rotate(180deg);
    }
    
    
    .bds-seller-box.is-sticky {
        padding: 12px 16px !important;
    }
    .bds-seller-box.is-sticky.expanded {
        padding: 24px 16px !important;
    }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}