/* =========================================
   การตั้งค่าทั่วไป
========================================= */

.breadcrumb-container {
    margin-top: 20px !important;
    padding:10px 0 20px 0;
}
.breadcrumb {
    font-size: 14px;
    color: #666;
}
.breadcrumb span {
    color: #555;
    font-weight: bold;
}

.product-detail-section {
    background-color: #f4f6f9;
    padding-bottom: 60px;
    margin-bottom: 0 ;
    padding-bottom: 10 ;
}

/* =========================================
   กล่องรายละเอียดสินค้า (ด้านบน)
========================================= */
.product-detail-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

/* แกลลอรี่รูปภาพ (ซ้าย) */
.product-gallery {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-box {
    position: relative;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 10px 30px;
    text-align: center;
    border: 1px solid #eeeeee;
}

.main-image-box img {
    max-width: 100%;
    max-height: 350px;
    height: auto;
    object-fit: contain;
}

.thumbnail-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: space-between;
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid #eeeeee;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumb-img.active-thumb, .thumb-img:hover {
    border-color: #0056b3; /* สีน้ำเงินตอนกดเลือก */
}

.thumb-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

/* ข้อมูลสินค้า (ขวา) */
/* 🌟 1. ตั้งค่ากรอบข้อมูลฝั่งขวาให้เริ่มจากด้านบน */
.product-info {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 👈 เปลี่ยนตรงนี้เป็น flex-start เพื่อดันขึ้นบนสุด */
    padding-top: 10px; /* เพิ่มระยะห่างจากขอบบนนิดหน่อยให้ดูไม่อึดอัด */
}

.product-title {
    font-size: 32px;
    color: #0056b3;
    margin: 0 0 10px 0;
}

.product-model {
    font-size: 20px;
    color: #444;
    font-weight: normal;
    margin: 0 0 15px 0;
}

.product-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 50px 0;
}

.feature-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
    text-align: center;
}

.feature-icon-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.feature-icon-item p {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.btn-contact-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0056b3;
    color: #ffffff;
    
    /* 🌟 จุดที่ 1: ปรับความกว้างของปุ่ม */
    /* โค้ดเดิมคือ 100% (เต็มจอ) ถ้าอยากให้ปุ่มสั้นลง ให้เปลี่ยนเป็นตัวเลข เช่น 250px หรือใช้ auto */
    width: 500px !important; 
    
    /* 🌟 จุดที่ 2: ปรับความหนา/ความสูงของปุ่ม (บน-ล่าง ซ้าย-ขวา) */
    /* เลขตัวแรก (15px) คือความหนาบน-ล่าง ถ้าอยากให้ปุ่มผอมลงให้ลดเลขนี้ลง เช่น 10px */
    padding: 10px 30px !important; 
    
    /* 🌟 จุดที่ 3: ปรับขนาดตัวหนังสือด้านในปุ่ม */
    font-size: 16px !important; 
    
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-contact-large:hover {
    background-color: #004494;
}

.btn-icon {
    width: 24px;
    margin-right: 10px;
}

/* =========================================
   กล่องข้อมูลทางเทคนิค (ด้านล่าง)
========================================= */
.product-tech-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.tech-title {
    font-size: 22px;
    color: #0056b3;
    margin: 0 0 30px 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    text-align: center;
}

.tech-table th {
    color: #0056b3;
    font-size: 14px;
    padding: 15px;
    border: 1px solid #eeeeee;
    font-weight: bold;
}

.tech-table td {
    padding: 15px;
    border: 1px solid #eeeeee;
    font-size: 14px;
    color: #444;
}

.col-item { width: 35%; }
.col-unit { width: 10%; }
.col-models { background-color: #fcfcfc; }

.model-row th {
    font-size: 13px;
    color: #333;
    background-color: #fcfcfc;
}

.model-row img {
    height: 60px;
    margin-top: 10px;
    object-fit: contain;
}

.tech-table .text-left {
    text-align: left;
    color: #555;
}

.tech-table tbody tr:nth-child(even) {
    background-color: #fafafa; /* ม้าลายสลับสีอ่อนๆ */
}

.remark-text {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
}
.footer {
    margin-top: -15px !important; /* 🌟 ปรับเลขติดลบเพิ่มขึ้นได้ (เช่น -20px หรือ -30px) จนกว่าขอบขาวจะหายวับไปครับ */
    position: relative;
    z-index: 999; /* บังคับให้ขอบสีน้ำเงินลอยทับรอยต่อ */
}
/* =========================================
   ตกแต่งแถบนำทาง (Breadcrumb) ให้เหมือนกันทุกหน้า
========================================= */
.breadcrumb-container {
    padding: 15px 0;
}

.breadcrumb {
    font-family: inherit; /* ดึงฟอนต์หลักของเว็บมาใช้ (เช่น Prompt, Kanit) */
    font-size: 14px; /* ขนาดตัวอักษร ปรับเพิ่มลดได้ */
    color: #666666; /* สีของเครื่องหมายลูกศร > */
    margin: 0;
}

.breadcrumb a {
    color: #666; /* 🌟 สีฟ้า สำหรับลิงก์ที่กดได้ (หน้าแรก, สินค้า) */
    text-decoration: none; /* เอาเส้นใต้ตัวหนังสือออก */
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: #003d82; /* สีฟ้าเข้มขึ้นเวลาเอาเมาส์ไปชี้ */
    text-decoration: underline; /* ให้มีเส้นใต้ตอนชี้ */
}

.breadcrumb span {
    color: #0056b3; /* 🌟 สีเทาเข้ม/ดำ สำหรับหน้าปัจจุบัน (เครื่องซักผ้า 12 กก.) */
    font-weight: 800; /* ทำให้ตัวหนังสือหนาขึ้น */
}
/* =========================================
   รองรับมือถือ (Responsive)
========================================= */
@media (max-width: 768px) {
    .product-detail-card {
        flex-direction: column;
        padding: 25px;
    }
    .product-gallery, .product-info {
        width: 100%;
    }
    .feature-icons-grid {
        grid-template-columns: repeat(2, 1fr); /* มือถือเหลือ 2 คอลัมน์ */
    }
    /* 1. บังคับให้การ์ดเรียงเนื้อหาจาก บนลงล่าง (รูปอยู่บน ข้อมูลอยู่ล่าง) */
    .product-detail-card {
        display: flex;
        flex-direction: column;
        padding: 0; /* ลบ padding รอบนอกออกเพื่อประหยัดพื้นที่ */
        gap: 20px;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .product-gallery, 
    .product-info {
        width: 100%;
    }

    /* 2. โซนรูปภาพหลัก (Main Image) */
    .main-image-box {
        background-color: #f8f9fa; /* สีพื้นหลังกล่องรูปสีเทาอ่อน */
        border-radius: 12px;
        padding: 20px;
        text-align: center;
        border: 1px solid #eef0f2;
        margin-bottom: 15px;
    }

    .main-image-box img {
        max-width: 100%;
        height: auto;
        max-height: 280px; /* ล็อกความสูงไม่ให้รูปล้นจอเกินไป */
        object-fit: contain;
    }

    /* 3. โซนสไลด์รูปย่อ (Thumbnails) ให้ตรงตามรูปม็อคอัพ */
    .thumbnail-slider {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .thumbnail-list {
        display: flex;
        gap: 10px;
        overflow-x: auto; /* เลื่อนซ้ายขวาได้ด้วยนิ้ว */
        padding: 5px 0;
        scrollbar-width: none; /* ซ่อนแถบ Scrollbar */
    }
    .thumbnail-list::-webkit-scrollbar {
        display: none; /* ซ่อนแถบ Scrollbar (Chrome/Safari) */
    }

    .thumb-img {
        width: 65px;
        height: 65px;
        object-fit: contain;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 5px;
        background: #fff;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    /* กรอบสีน้ำเงินเวลากดเลือกรูปย่อ */
    .thumb-img.active-thumb {
        border: 2px solid #1a5299; 
    }

    /* ปุ่มลูกศรซ้ายขวา */
    .thumb-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: #888;
        padding: 0 10px;
    }

    /* 4. โซนข้อมูลสินค้า (ตัวหนังสือ) */
    .product-info {
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #eef0f2;
    }

    .product-title {
        font-size: 22px;
        color: #1a5299;
        margin-bottom: 5px;
    }

    .product-model {
        font-size: 16px;
        color: #666;
        margin-bottom: 15px;
    }

    .product-desc {
        font-size: 14px;
        line-height: 1.6;
        color: #444;
        margin-bottom: 25px;
    }

    /* 5. โซนไอคอนคุณสมบัติ (จัดเป็นตาราง 2 คอลัมน์ ซ้าย-ขวา) */
    .feature-icons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* บังคับ 2 คอลัมน์บนมือถือ */
        gap: 15px;
        margin-bottom: 25px;
    }

    .feature-icon-item {
        text-align: center;
    }

    .feature-icon-item img {
        width: 45px;
        height: auto;
        margin-bottom: 8px;
    }

    .feature-icon-item p {
        font-size: 12px;
        color: #555;
        margin: 0;
        line-height: 1.4;
    }

    /* 6. ปุ่มติดต่อเรา (ยืดกว้างเต็มจอ) */
    .btn-contact-large {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 14px;
        background-color: #1a5299;
        color: #fff;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        text-decoration: none;
    }

    .btn-contact-large .btn-icon {
        width: 20px;
        margin-right: 10px;
    }

    /* 7. โซนตารางข้อมูลเทคนิค (ให้เลื่อนซ้ายขวาได้ ป้องกันเว็บพัง) */
    .product-tech-card {
        padding: 20px;
        margin-top: 20px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eef0f2;
    }

    .tech-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto; /* ถ้าตารางมีหลายคอลัมน์ จะใช้นิ้วปัดเลื่อนซ้ายขวาได้ */
        -webkit-overflow-scrolling: touch;
    }
    /* =========================================
       ปรับแต่งปุ่มติดต่อเรา (Contact Button)
    ========================================= */
    .btn-contact-large {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px; /* 🌟 ปรับระยะห่างตรงนี้! (ยิ่งตัวเลขมาก ยิ่งห่างกัน) */
        width: 100%;
        padding: 14px;
        background-color: #1a5299;
        color: #fff;
        border-radius: 8px;
        font-size: 18px; /* ปรับขนาดตัวหนังสือให้ใหญ่ขึ้นนิดนึงได้ครับ */
        font-weight: bold;
        text-decoration: none;
    }

    .btn-contact-large .btn-icon {
        width: 24px; /* 🌟 ปรับขนาดไอคอนให้ใหญ่ขึ้นหรือเล็กลงตรงนี้ */
        margin-right: 0; /* ลบ margin เดิมทิ้ง เพราะเราใช้ gap แทนแล้ว */
    }
}
