/* Custom Styles for Xe Tải Vĩnh Phúc */

/* Dashicons icon alignment */
.dashicons {
    vertical-align: middle;
    line-height: inherit;
}

/* ==========================================================================
   Single Product Detail Page Enhancements (Theo mẫu Sangoys)
   ========================================================================== */

/* 0. Khoảng cách rộng rãi, thoáng đãng giữa Cột ảnh và Cột thông tin */
@media (min-width: 850px) {
    .product-main .product-info,
    .product-main .summary.entry-summary {
        padding-left: 40px !important;
    }
    .product-main .product-gallery {
        padding-right: 15px !important;
    }
}

/* Tiêu đề sản phẩm chi tiết */
.product-info .product-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #00488f !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

/* Tinh chỉnh phần mô tả ngắn (Short description) */
.product-short-description {
    margin: 15px 0 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
}

.product-short-description p {
    margin-bottom: 8px;
    font-weight: 600;
}

/* 1. Bao bọc khối liên hệ & Báo giá chi tiết */
.xetai-single-contact-wrapper {
    margin: 25px 0;
    padding: 22px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 72, 143, 0.05);
}

/* 2. Nút Báo giá lớn (YÊU CẦU BÁO GIÁ) */
.xetai-btn-quote-large {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: linear-gradient(135deg, #00488f 0%, #002d62 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 72, 143, 0.25) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 20px !important;
    cursor: pointer;
}

.xetai-btn-quote-large:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.35) !important;
}

.xetai-btn-quote-large .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* 3. Tiêu đề khối liên hệ */
.xetai-contact-title {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.xetai-contact-title .dashicons {
    color: #00488f;
    font-size: 16px;
}

/* 4. Lưới 3 nút liên hệ nhanh */
.xetai-single-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    filter: brightness(1.05);
}

.contact-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.25;
}

.contact-btn .btn-text .label {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

.contact-btn .btn-text .val {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Màu sắc từng nút liên hệ */
.btn-phone {
    background-color: #28a745;
}

.btn-zalo {
    background-color: #0068ff;
}

.btn-messenger {
    background: linear-gradient(135deg, #00488f 0%, #002d62 100%);
}

/* 5. Khối cam kết đại lý */
.xetai-commitments {
    border-top: 1px dashed #e2e8f0;
    padding-top: 14px;
    font-size: 13px;
    color: #475569;
}

.commit-item {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.commit-item:last-child {
    margin-bottom: 0;
}

.commit-item .dashicons {
    color: #16a34a;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 6. Thư viện ảnh sản phẩm chi tiết 1:1 */
.product-gallery-slider img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 10px;
    background: #f8fafc;
}

.product-thumbnails img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 6px;
}

.product-thumbnails a {
    border-radius: 6px;
    overflow: hidden;
    display: block;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.product-thumbnails a.is-active,
.product-thumbnails a:hover {
    border-color: #00488f !important;
}

/* 7. Tabs Thông tin chi tiết & Thông số kỹ thuật */
.woocommerce-tabs ul.nav {
    border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-tabs ul.nav > li > a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    padding: 14px 18px !important;
    text-transform: uppercase !important;
}

.woocommerce-tabs ul.nav > li.active > a,
.woocommerce-tabs ul.nav > li > a:hover {
    color: #00488f !important;
    border-bottom: 3px solid #00488f !important;
}

/* CTA Banner Styles */
.xetai-cta-banner {
    background: linear-gradient(135deg, #00488f 0%, #002d62 100%);
    border-radius: var(--xetai-radius, 8px);
    padding: 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 24px rgba(0, 72, 143, 0.25);
}

.xetai-cta-content h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.xetai-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
}

.xetai-cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cta-hotline, .btn-cta-zalo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-hotline {
    background: #fff;
    color: #00488f !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-cta-hotline:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-cta-zalo {
    background: #0068ff;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 104, 255, 0.3);
}

.btn-cta-zalo:hover {
    background: #0054cc;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .xetai-single-buttons-grid {
        grid-template-columns: 1fr;
    }
    .xetai-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .xetai-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-cta-hotline, .btn-cta-zalo {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   Universal Scroll Animations Engine (Silky Smooth, Gentle Easing ~1.1s)
   ========================================================================== */

@keyframes xetaiFadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 32px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes xetaiFadeInDown {
    0% {
        opacity: 0;
        transform: translate3d(0, -32px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes xetaiFadeInLeft {
    0% {
        opacity: 0;
        transform: translate3d(-38px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes xetaiFadeInRight {
    0% {
        opacity: 0;
        transform: translate3d(38px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes xetaiZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.91);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes xetaiBlurIn {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes xetaiFlipInX {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(25deg);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg);
    }
}

[data-animate] {
    opacity: 0;
    will-change: opacity, transform, filter;
}

[data-animate].in-view {
    animation-duration: 1.15s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: forwards;
}

[data-animate="fadeInUp"].in-view {
    animation-name: xetaiFadeInUp;
}

[data-animate="fadeInDown"].in-view {
    animation-name: xetaiFadeInDown;
}

[data-animate="fadeInLeft"].in-view {
    animation-name: xetaiFadeInLeft;
}

[data-animate="fadeInRight"].in-view {
    animation-name: xetaiFadeInRight;
}

[data-animate="zoomIn"].in-view {
    animation-name: xetaiZoomIn;
}

[data-animate="blurIn"].in-view {
    animation-name: xetaiBlurIn;
}

[data-animate="flipInX"].in-view {
    animation-name: xetaiFlipInX;
}

/* UX Builder preview */
.uxb-editor [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

