/* =========================================================
   PRODUCT DETAIL PAGE
   Dark Theme
   ใช้ร่วมกันได้กับสินค้าทุกรุ่น
========================================================= */

.product-detail-page {
    background: #292929;
    color: #e8e8e8;
}


/* =========================================================
   1. PRODUCT HERO
========================================================= */

.product-detail-page .product-hero {
    padding: 80px 0 90px;
    background: #292929;
}

.product-detail-page .product-gallery {
    padding-right: 35px;
}


/* กล่องรูปสินค้าหลัก */

.product-detail-page .main-product-image {
    height: 520px;
    background: linear-gradient(to right, #2a2a2a 0%, #4a4a4a 50%, #2a2a2a 100%);
    border: 1px solid #3f3f3f;
    border-radius: 24px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-detail-page .main-product-image img {
    max-width: 76%;
    max-height: 420px;
    object-fit: contain;
    transition: 0.3s ease;
}


/* ZKTeco Badge */

.product-detail-page .product-badge {
    position: absolute;
    left: 25px;
    top: 25px;

    background: #ffbe33;
    color: #202020;

    padding: 8px 18px;
    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;

    z-index: 2;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.product-detail-page .product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.product-detail-page .thumb {
    width: 82px;
    height: 82px;

    background: #333333;
    border: 2px solid #444444;
    border-radius: 12px;

    padding: 8px;
    cursor: pointer;

    opacity: 0.65;

    transition:
        border-color 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.product-detail-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-page .thumb:hover {
    opacity: 1;
    border-color: #777777;
}

.product-detail-page .thumb.active {
    opacity: 1;
    border-color: #ffbe33;
    background: #383838;
}


/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-detail-page .product-info {
    padding-left: 20px;
}


/* TIME ATTENDANCE */

.product-detail-page .product-category,
.product-detail-page .small-title {
    display: inline-block;

    color: #ffbe33;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 12px;
}


/* ZKTeco MB10 */

.product-detail-page .product-info h1 {
    font-size: 52px;
    font-weight: 800;

    color: #ffffff;

    margin-bottom: 8px;
}


/* ชื่อภาษาไทย */

.product-detail-page .product-info h2 {
    font-size: 24px;
    line-height: 1.55;
    font-weight: 600;

    color: #f0f0f0;

    margin-bottom: 20px;
}


/* รายละเอียด */

.product-detail-page .product-description {
    color: #bcbcbc;

    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   FEATURE TAG
   Face / Fingerprint / RFID
========================================================= */

.product-detail-page .feature-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 25px 0;
}

.product-detail-page .feature-tags span {
    background: #353535;
    color: #ffffff;

    border: 1px solid #494949;
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 13px;
}

.product-detail-page .feature-tags i {
    margin-right: 5px;
    color: #ffbe33;
}

/* =========================================================
   QUICK SPEC
========================================================= */

.product-detail-page .quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid #444444;
    border-bottom: 1px solid #444444;

    margin: 28px 0;
    padding: 20px 0;
}

.product-detail-page .quick-spec-item {
    text-align: center;
    border-right: 1px solid #444444;
}

.product-detail-page .quick-spec-item:last-child {
    border-right: 0;
}

.product-detail-page .quick-spec-item strong {
    display: block;

    font-size: 21px;
    font-weight: 700;

    color: #ffffff;
}

.product-detail-page .quick-spec-item span {
    font-size: 12px;
    color: #aaaaaa;
}


/* =========================================================
   PRODUCT BUTTONS
========================================================= */

.product-detail-page .product-actions {
    display: flex;
    gap: 12px;

    margin-top: 30px;
}


/* ปุ่มสอบถามราคา */

.product-detail-page .btn-contact {
    display: inline-block;

    padding: 14px 27px;

    border-radius: 8px;

    background: #ffbe33;
    color: #202020 !important;

    font-weight: 700;

    text-decoration: none !important;

    transition: 0.25s ease;
}

.product-detail-page .btn-contact:hover {
    background: #ffbe338c;
    color: #111111 !important;

    transform: translateY(-2px);
}


/* ปุ่ม Datasheet */

.product-detail-page .btn-download {
    display: inline-block;

    padding: 14px 27px;

    border-radius: 8px;

    border: 1px solid #555555;

    color: #eeeeee !important;
    background: #333333;

    font-weight: 600;

    text-decoration: none !important;

    transition: 0.25s ease;
}

.product-detail-page .btn-download:hover {
    background: #404040;
    border-color: #666666;

    color: #ffffff !important;
}

.product-detail-page .product-actions i {
    margin-right: 6px;
}


/* =========================================================
   2. FEATURES SECTION
   จุดเด่นของ ZKTeco MB10
========================================================= */

.product-detail-page .feature-section {
    background: #242424;

    padding: 90px 0 70px;

    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}


/* หัวข้อ Section */

.product-detail-page .section-heading {
    text-align: center;

    max-width: 650px;

    margin: 0 auto 50px;
}

.product-detail-page .section-heading > span {
    color: #ffbe33;

    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
}

.product-detail-page .section-heading h2 {
    font-size: 36px;
    font-weight: 700;

    color: #ffffff;

    margin: 8px 0 12px;
}

.product-detail-page .section-heading p {
    color: #aaaaaa;

    line-height: 1.8;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.product-detail-page .feature-card {
    height: 100%;

    background: #303030;

    padding: 35px 28px;

    border-radius: 16px;

    text-align: center;

    border: 1px solid #3d3d3d;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product-detail-page .feature-card:hover {
    transform: translateY(-7px);

    border-color: #555555;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}


/* Icon */

.product-detail-page .feature-icon {
    width: 65px;
    height: 65px;

    background: #3b3527;
    color: #ffbe33;

    margin: 0 auto 22px;

    border-radius: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 25px;
}


/* ชื่อ Feature */

.product-detail-page .feature-card h3 {
    font-size: 18px;
    font-weight: 700;

    color: #ffffff;
}


/* รายละเอียด Feature */

.product-detail-page .feature-card p {
    font-size: 14px;

    color: #aaaaaa;

    line-height: 1.8;
}


/* =========================================================
   3. PRODUCT HIGHLIGHT
========================================================= */

.product-detail-page .product-highlight {
    padding: 110px 0;

    background: #292929;
}


/* ฝั่งรูป */

.product-detail-page .highlight-image {
    min-height: 500px;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* วงกลมหลังสินค้า */

.product-detail-page .highlight-circle {
    width: 410px;
    height: 410px;

    border-radius: 50%;

    background: #333333;
    border: 1px solid #414141;

    position: absolute;
}

.product-detail-page .highlight-image > img {
    max-width: 330px;

    position: relative;

    z-index: 2;
}


/* Floating Label */

.product-detail-page .floating-label {
    position: absolute;

    background: #343434;

    border: 1px solid #464646;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    padding: 14px 22px;

    border-radius: 12px;

    z-index: 3;
}

.product-detail-page .floating-label strong,
.product-detail-page .floating-label span {
    display: block;
}

.product-detail-page .floating-label strong {
    color: #ffffff;

    font-size: 18px;
}

.product-detail-page .floating-label span {
    color: #aaaaaa;

    font-size: 12px;
}

.product-detail-page .label-one {
    top: 70px;
    left: 25px;
}

.product-detail-page .label-two {
    right: 20px;
    bottom: 80px;
}


/* ฝั่งข้อความ */

.product-detail-page .highlight-content {
    padding-left: 40px;
}

.product-detail-page .highlight-content h2 {
    font-size: 42px;
    line-height: 1.35;

    font-weight: 700;

    color: #ffffff;
}

.product-detail-page .highlight-content h2 span {
    color: #ffbe33;
}

.product-detail-page .highlight-content > p {
    color: #b5b5b5;

    line-height: 1.9;

    margin: 22px 0;
}

.product-detail-page .highlight-content ul {
    list-style: none;

    padding: 0;
}

.product-detail-page .highlight-content li {
    margin: 15px 0;

    color: #d2d2d2;
}


/* Check */

.product-detail-page .highlight-content li i {
    width: 28px;
    height: 28px;

    background: #3b3527;
    color: #ffbe33;

    border-radius: 50%;

    text-align: center;
    line-height: 28px;

    margin-right: 10px;
}


/* =========================================================
   4. SPECIFICATIONS
========================================================= */

.product-detail-page .spec-section {
    background: #242424;

    padding: 90px 0;

    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}


/* ตาราง */

.product-detail-page .spec-wrapper {
    max-width: 850px;

    margin: auto;

    background: #303030;

    border: 1px solid #3d3d3d;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.product-detail-page .spec-row {
    display: grid;

    grid-template-columns: 40% 60%;

    border-bottom: 1px solid #414141;
}

.product-detail-page .spec-row:last-child {
    border-bottom: 0;
}

.product-detail-page .spec-name,
.product-detail-page .spec-value {
    padding: 19px 28px;
}


.product-detail-page .spec-section .spec-wrapper {
    background: #f2f2f2;
    border: 1px solid #d5d5d5;
}

.product-detail-page .spec-section .spec-row {
    border-bottom: 1px solid #d8d8d8;
}

.product-detail-page .spec-section .spec-name {
    background: #dedede;
    color: #222222;
}

.product-detail-page .spec-section .spec-value {
    background: #f4f4f4;
    color: #222222;
}


/* =========================================================
   5. CALL TO ACTION
========================================================= */

.product-detail-page .product-cta {
    padding: 80px 0;

    background: #292929;
}

.product-detail-page .cta-box {
    background: #202020;

    border: 1px solid #3d3d3d;

    border-radius: 22px;

    padding: 45px 55px;

    color: #ffffff;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-detail-page .cta-box span {
    color: #ffbe33;

    font-size: 13px;
}

.product-detail-page .cta-box h2 {
    color: #ffffff;

    font-size: 32px;

    margin: 4px 0 8px;
}

.product-detail-page .cta-box p {
    color: #aaaaaa;

    margin: 0;
}


/* CTA Button */

.product-detail-page .cta-box > a {
    flex-shrink: 0;

    background: #ffbe33;
    color: #202020;

    padding: 15px 27px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;

    margin-left: 30px;

    transition: 0.25s ease;
}

.product-detail-page .cta-box > a:hover {
    background: #388bfd;

    color: #111111;

    transform: translateY(-2px);
}

.product-detail-page .cta-box > a i {
    margin-left: 8px;
}


/* =========================================================
   RESPONSIVE : TABLET
========================================================= */

@media (max-width: 991px) {

    .product-detail-page .product-gallery {
        padding-right: 0;
    }

    .product-detail-page .product-info {
        padding: 30px 0 0;
    }

    .product-detail-page .highlight-content {
        padding-left: 0;
    }

    .product-detail-page .cta-box {
        display: block;

        text-align: center;
    }

    .product-detail-page .cta-box > a {
        display: inline-block;

        margin: 25px 0 0;
    }

}


/* =========================================================
   RESPONSIVE : MOBILE
========================================================= */

@media (max-width: 576px) {

    .product-detail-page .product-hero {
        padding: 45px 0;
    }

    .product-detail-page .main-product-image {
        height: 350px;
    }

    .product-detail-page .product-info h1 {
        font-size: 38px;
    }

    .product-detail-page .product-info h2 {
        font-size: 20px;
    }


    /* Quick Specs */

    .product-detail-page .quick-specs {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px 0;
    }

    .product-detail-page .quick-spec-item:nth-child(2) {
        border-right: 0;
    }


    /* Buttons */

    .product-detail-page .product-actions {
        flex-direction: column;
    }

    .product-detail-page .btn-contact,
    .product-detail-page .btn-download {
        text-align: center;
    }


    /* Heading */

    .product-detail-page .section-heading h2 {
        font-size: 28px;
    }


    /* Highlight */

    .product-detail-page .highlight-content h2 {
        font-size: 31px;
    }

    .product-detail-page .highlight-circle {
        width: 300px;
        height: 300px;
    }

    .product-detail-page .highlight-image > img {
        max-width: 240px;
    }


    /* Specification */

    .product-detail-page .spec-row {
        grid-template-columns: 1fr;
    }

    .product-detail-page .spec-name {
        padding-bottom: 7px;
    }

    .product-detail-page .spec-value {
        padding-top: 7px;
    }


    /* CTA */

    .product-detail-page .cta-box {
        padding: 35px 25px;
    }

}

/* ขยายความกว้างหน้า Product Detail บน Desktop */
@media (min-width: 1200px) {
    .product-detail-page .container {
        max-width: 1360px;
    }
}
