/* ==========================================================================
   Custom CSS cho Phần Sản Phẩm Triển Khai
   ========================================================================== */

/* Thanh hiển thị thông số chi tiết */

.sp-thong-so-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 15px 0;
}

.sp-thong-so-info .sp-item {
    font-size: 14px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-thong-so-info .sp-item i {
    color: #1f5953;
    font-size: 15px;
}

/* Grid danh sách Sản phẩm triển khai */
.sp-grid-container {
    display: grid;
    gap: 25px;
    margin: 20px 0;
}

.sp-grid-container.sp-col-1 {
    grid-template-columns: 1fr;
}

.sp-grid-container.sp-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sp-grid-container.sp-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sp-grid-container.sp-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {

    .sp-grid-container.sp-col-3,
    .sp-grid-container.sp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .sp-grid-container.sp-col-2,
    .sp-grid-container.sp-col-3,
    .sp-grid-container.sp-col-4 {
        grid-template-columns: 1fr;
    }
}

/* Card Sản phẩm */
.sp-card {
    background: #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sp-card-thumb {
    position: relative;
    overflow: hidden;
    padding-top: 65%;
    /* Tỉ lệ ảnh chuẩn 16:10 */
}

.sp-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-card:hover .sp-card-thumb img {
    transform: scale(1.05);
}

.sp-card-body {
    padding: 18px 20px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sp-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.sp-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-card-title a:hover {
    color: #1f5953;
}

.sp-card-specs {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.sp-card-specs .sp-specs-row {
    margin-bottom: 5px;
}

.sp-card-specs .sp-specs-row i {
    color: #1f5953;
    margin-right: 4px;
}

.sp-card-specs .sp-spec {
    display: inline-block;
    margin: 0 5px;
}

.sp-card-actions {
    margin-top: auto;
}

.sp-btn-detail {
    background-color: #1f5953 !important;
    border-color: #1f5953 !important;
    color: #fff !important;
    padding: 8px 24px;
    border-radius: 99px;
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.sp-btn-detail:hover {
    background-color: #16403c !important;
}

/* ==========================================================================
   CSS Cho Trang Chi Tiết Sản Phẩm Chuẩn Waterpoint (single-san_pham.php)
   ========================================================================== */

/* 1. Hero Banner Full-width */
.wtp-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 60px 0 90px;
}

.wtp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 28, 25, 0.45) 0%, rgba(10, 25, 23, 0.8) 100%);
    z-index: 1;
}

.wtp-hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.wtp-breadcrumb {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.wtp-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.wtp-breadcrumb a:hover {
    color: #f59e0b;
}

.wtp-breadcrumb .sep {
    margin: 0 10px;
    opacity: 0.5;
}

.wtp-breadcrumb .current {
    color: #f59e0b;
    font-weight: 600;
}

.wtp-hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #f59e0b;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.wtp-hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.wtp-hero-sub {
    font-size: 20px;
    font-weight: 400;
    color: #e2e8f0;
    letter-spacing: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.wtp-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wtp-btn-gold {
    background: linear-gradient(135deg, #e6c875 0%, #c59b27 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.4);
    transition: all 0.3s ease !important;
}

.wtp-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.6);
    background: linear-gradient(135deg, #f0d588 0%, #d4a933 100%) !important;
}

.wtp-btn-trans {
    background: transparent !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.wtp-btn-trans:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

.wtp-hero-hotline {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wtp-hero-hotline .hotline-phone {
    color: #f59e0b;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.wtp-hero-hotline .hotline-phone:hover {
    color: #fbbf24;
}

.hotline-label {
    font-size: 16px;
    text-transform: uppercase;
}

.hotline-phone {
    font-size: 32px;
}

@media (max-width: 768px) {
    .wtp-hero-banner {
        min-height: 420px;
        padding: 40px 15px 70px;
    }

    .wtp-hero-title {
        font-size: 28px;
    }

    .wtp-hero-sub {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* 2. Dải Thông Số Kỹ Thuật (Specs Strip) */
.wtp-specs-strip-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
    margin-bottom: 40px;
}

.wtp-specs-strip {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border: 1px solid #f1f5f9;
}

.wtp-spec-col {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.wtp-spec-col:last-child {
    border-right: none;
}

.wtp-spec-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wtp-spec-img i {
    font-size: 45px;
    background-image: linear-gradient(90deg, #139694 0%, #0A548D 100%);
    background-size: cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

.wtp-spec-info {
    display: flex;
    flex-direction: column;
}

.wtp-spec-val {
    font-size: 19px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
}

.wtp-spec-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

@media (max-width: 991px) {
    .wtp-specs-strip-section {
        margin-top: 0;
        padding-top: 20px;
    }

    .wtp-specs-strip {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px 15px;
    }

    .wtp-spec-col {
        flex: 1 1 calc(50% - 15px);
        border-right: none;
        padding: 10px;
        background: #f8fafc;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .wtp-spec-col {
        flex: 1 1 100%;
    }
}

/* 3. Section Giới Thiệu Tổng Quan */
.wtp-intro-section {
    padding: 40px 0 60px;
}

.wtp-intro-text-box {
    padding-right: 20px;
}

.wtp-intro-sub {
    font-size: 14px;
    color: #1f5953;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.wtp-intro-title {
    font-size: 50px !important;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 20px;
}

.wtp-intro-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

.wtp-intro-desc p {
    margin-bottom: 14px;
}

.wtp-intro-image-wrap {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.wtp-intro-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.wtp-intro-image-wrap:hover .wtp-intro-img {
    transform: scale(1.02);
}

@media (max-width: 849px) {
    .wtp-intro-text-box {
        padding-right: 0;
        margin-bottom: 25px;
    }

    .wtp-intro-title {
        font-size: 26px;
    }
}

/* 4. Section Chi Tiết & Phối Cảnh */
.wtp-content-detail-section {
    margin-bottom: 50px;
}

.wtp-content-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.wtp-section-heading-wrap {
    margin-bottom: 30px;
}

.wtp-section-heading {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.wtp-section-sub {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 10px;
}

.is-divider.divider-small {
    width: 60px;
    height: 3px;
    background: #1f5953;
    margin: 12px auto 0;
}

.wtp-content-card .entry-content img {
    border-radius: 8px;
    margin: 20px 0;
}

/* 5. Section Form Đăng Ký Tư Vấn */
.wtp-form-section {
    background: linear-gradient(135deg, #1b4c47 0%, #102e2b 100%);
    padding: 60px 0 50px;
    color: #ffffff;
    margin-bottom: 60px;
}

.wtp-form-box {
    max-width: 860px;
    margin: 0 auto;
}

.wtp-form-title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.wtp-form-subtitle {
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 30px;
}

.wtp-form-wrapper .wpcf7-form {
    max-width: 100%;
}

.wtp-form-wrapper .wpcf7-form .flex-row {
    gap: 12px;
}

.wtp-form-wrapper .wpcf7-form input[type="text"],
.wtp-form-wrapper .wpcf7-form input[type="tel"],
.wtp-form-wrapper .wpcf7-form input[type="email"] {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wtp-form-wrapper .wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #e6c875 0%, #c59b27 100%) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 40px !important;
    font-size: 14.5px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wtp-form-wrapper .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.6);
}

.wtp-form-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

/* 6. Section Sản Phẩm Liên Quan */
.wtp-related-section {
    padding-bottom: 60px;
}

/* ==========================================================================
   CSS Cho Trang Chi Tiết Bài Viết (single-post.php)
   ========================================================================== */

/* 1. Banner Title Hero */
.wtp-post-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1b4c47 0%, #0d2624 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 100px 0 60px;
    margin-bottom: 45px;
    border-bottom: 3px solid #eab308;
}

.wtp-post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 28, 25, 0.65) 0%, rgba(10, 25, 23, 0.88) 100%);
    z-index: 1;
}

.wtp-post-hero-container {
    position: relative;
    z-index: 2;
}

.wtp-post-breadcrumb {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wtp-post-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wtp-post-breadcrumb a:hover {
    color: #eab308;
}

.wtp-post-breadcrumb .sep {
    opacity: 0.5;
}

.wtp-post-breadcrumb .current {
    color: #eab308;
    font-weight: 600;
}

.wtp-post-hero-content {
    max-width: 900px;
}

.wtp-post-cat-badge {
    display: inline-block;
    background: #eab308;
    color: #0f172a !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
    transition: all 0.2s ease;
}

.wtp-post-cat-badge:hover {
    background: #ca8a04;
    transform: translateY(-1px);
}

.wtp-post-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.wtp-post-meta {
    font-size: 13.5px;
    color: #cbd5e1;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.wtp-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wtp-post-meta .meta-item i {
    color: #eab308;
}

/* 2. Post Content Body */
.wtp-post-body-container {
    margin-bottom: 60px;
}

.wtp-post-main-content {
    background: #ffffff;
    padding: 0 38px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    line-height: 1.85;
    font-size: 16px;
    color: #334155;
}

.wtp-post-lead-excerpt {
    font-size: 17px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.75;
    padding: 16px 22px;
    background: #f8fafc;
    border-left: 4px solid #1f5953;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    font-style: italic;
}

.wtp-post-main-content .entry-content img {
    border-radius: 8px;
    margin: 18px 0;
    width: 100%;
}

.wtp-post-tags {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wtp-post-tags .tags-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-right: 4px;
}

.wtp-post-tags .tag-item {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wtp-post-tags .tag-item:hover {
    background: #1f5953;
    color: #ffffff;
}

/* 3. Post Sidebar */
.wtp-post-sidebar {
    position: sticky;
    top: 90px;
}

.wtp-sidebar-consult-card {
    background: linear-gradient(135deg, #1b4c47 0%, #102e2b 100%);
    color: #ffffff;
    padding: 26px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 18px rgba(27, 76, 71, 0.2);
}

.wtp-sidebar-consult-card .card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtp-sidebar-consult-card .card-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.5;
}

.wtp-sidebar-consult-card .wpcf7-form input[type="text"],
.wtp-sidebar-consult-card .wpcf7-form input[type="tel"],
.wtp-sidebar-consult-card .wpcf7-form input[type="email"] {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wtp-sidebar-consult-card .wpcf7-form input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #e6c875 0%, #c59b27 100%) !important;
    color: #0f172a !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(197, 155, 39, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtp-sidebar-consult-card .wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(197, 155, 39, 0.5);
}

.wtp-sidebar-recent-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wtp-sidebar-recent-card .card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtp-sidebar-recent-card .recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wtp-sidebar-recent-card .recent-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wtp-sidebar-recent-card .recent-thumb {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.wtp-sidebar-recent-card .recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wtp-sidebar-recent-card .recent-item:hover .recent-thumb img {
    transform: scale(1.06);
}

.wtp-sidebar-recent-card .recent-info {
    flex-grow: 1;
}

.wtp-sidebar-recent-card .recent-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 3px 0;
}

.wtp-sidebar-recent-card .recent-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wtp-sidebar-recent-card .recent-title a:hover {
    color: #1f5953;
}

.wtp-sidebar-recent-card .recent-date {
    font-size: 11.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .wtp-post-title {
        font-size: 25px;
    }

    .wtp-post-hero-banner {
        padding: 50px 0 40px;
    }

    .wtp-post-main-content {
        padding: 0 18px;
    }
}