/* Global Styles */
body {
    font-family: 'Anuphan', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: rgb(1, 46, 73);
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1em;
}

ul li {
    padding-left: 1.5em;
    margin-bottom: 0.5em;
    position: relative;
}

ul li strong {
    color: rgb(0, 150, 219);
}

/* --- Hero Section --- */
.hero-section {
    background-image: url('img/ultacool/bg.png');
    background-size: cover;
    background-position: center;
    background-color: #008ad8;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero-text {
    text-align: center;
    flex: 1;
}

.hero-product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    width: 100%;
    max-width: 450px;
    height: auto;
}

.hero-text .logo {
    width: 250px;
    max-width: 80%;
    height: auto;
    margin: 0 auto 20px;
}

.hero-text h1 {
    font-size: clamp(2em, 5vw, 3.5em);
    margin-bottom: 10px;
    color: #fff;
    word-break: break-word;
}

.hero-text h2 {
    font-size: clamp(1.2em, 2.5vw, 1.5em);
    color: #f0f0f0;
    margin-bottom: 30px;
    font-weight: 400;
}

.cta-button {
    background-color: #0ea5e9;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #38bdf8;
}

/* --- Ad Section --- */
.ad-section {
    padding: 80px 0;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
}

.ad-container-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.ad-text-content {
    text-align: center;
    flex: 1;
}

.ad-product-image {
    flex: 1;
}

.product-image-ad {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.ad-heading {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: #fff;
    margin-bottom: 10px;
}

.ad-sub-heading {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #cbd5e0;
}

.ad-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.ad-item {
    background-color: #0c4a6e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ad-item:hover {
    transform: translateY(-10px);
}

.ad-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.ad-item h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.ad-item p {
    color: #f0f0f0;
    font-size: 0.9em;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 60px 0;
    background-color: #e5e5e5;
    text-align: center;
}

.benefits-section .container {
    text-align: center;
}

.benefits-section h2 {
    margin-bottom: 40px;
    font-size: clamp(1.8em, 4vw, 2.2em);
}

.benefits-section ul {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.benefits-section ul li {
    font-size: clamp(1em, 2vw, 1.1em);
    padding: 10px 0;
    border-bottom: 1px solid #cccccc;
}

.benefits-section ul li:last-child {
    border-bottom: none;
}

/* --- Call to Action Section (Buy Now) --- */
.cta-section {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.8em, 4vw, 2em);
    margin-bottom: 30px;
}

.cta-section .primary-cta {
    background-color: rgb(0, 150, 219);
    color: #fff;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-section .primary-cta:hover {
    background-color: rgb(1, 46, 73);
}

/* --- Product Info Header Section --- */
.product-info-header {
    background-color: #ffffff;
    padding: 60px 0 20px 0;
}

.product-header-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.product-header-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.product-header-text h1 {
    font-size: clamp(1.5em, 3vw, 2.5em);
    color: #1e293b;
    margin-bottom: 10px;
}

.product-header-text p {
    font-size: clamp(0.9em, 1.5vw, 1em);
    color: #555555;
    line-height: 1.6;
}

/* --- Additional Information Section --- */
.additional-info-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.additional-info-section .container {
    text-align: center;
}

.additional-info-section h2 {
    margin-bottom: 40px;
    color: rgb(1, 46, 73);
    font-size: clamp(1.8em, 4vw, 2.2em);
    text-align: left;
}

.additional-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

.info-column {
    background-color: #ffffff;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item h3 {
    font-size: 1.2em;
    color: #555555;
    margin: 0;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgb(0, 150, 219);
    border-radius: 50%;
    padding: 10px;
}

.storage-heading {
    margin-top: 40px;
    margin-bottom: 10px;
    color: rgb(1, 46, 73);
}

.storage-list {
    list-style: disc;
    padding-left: 20px;
}

.storage-list li {
    font-size: clamp(0.9em, 1.5vw, 1em);
    color: #555555;
    margin-bottom: 8px;
}

.info-column h3 {
    font-size: 1.5em;
    color: rgb(1, 46, 73);
    margin-bottom: 15px;
}

.info-column p {
    color: #555555;
    margin-bottom: 15px;
    font-size: clamp(0.9em, 1.5vw, 1em);
}

/* --- Footer Adjustments --- */
.footer {
    background-color: #1e293b;
    color: #f0f0f0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 20px;
}

.footer-contact {
    text-align: left;
    margin-bottom: 20px;
}

.footer-contact h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.contact-list {
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    color: #f0f0f0;
    margin-bottom: 10px;
    font-size: 1em;
}

.contact-list li img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.footer-copyright {
    text-align: right;
    flex-grow: 1;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .ad-container-grid {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .ad-text-content {
        text-align: center;
    }

    .ad-product-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .benefits-section,
    .cta-section,
    .additional-info-section {
        padding: 40px 0;
    }

    .ad-section {
        padding: 50px 0;
    }

    .ad-container-grid {
        flex-direction: column;
    }
    
    .ad-content {
        grid-template-columns: 1fr;
    }

    .ad-item {
        margin-bottom: 20px;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact,
    .footer-copyright {
        text-align: center;
        margin-bottom: 15px;
    }

    .contact-list li {
        justify-content: center;
    }
    
    .product-info-header {
        padding: 40px 0 10px 0;
    }
    .product-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .product-header-logo {
        width: 120px;
        margin-bottom: 15px;
    }
    .product-header-text h1 {
        text-align: center;
    }
    
    .additional-info-grid {
        grid-template-columns: 1fr;
    }
    .additional-info-section h2 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text .logo {
        width: 200px;
    }
    .hero-text h1 {
        font-size: 2.5em;
    }
    .hero-text h2 {
        font-size: 1.3em;
    }
    .cta-button, .primary-cta {
        padding: 12px 25px;
        font-size: 1em;
    }

    .footer-contact h4 {
        font-size: 1.1em;
    }
}
  .barra-redes {
	right: 10px; /* Sirve para que la bara quede en la izquierda */
	position: fixed; /* Sirve para que quede fijo osea pegajoso*/
	top: 40%; /* Bajamos la barra 200px de arriba a abajo */
	z-index: 2000; /* Utilizamos la propiedad z-index para que no se superponga algún otro elemento como sliders, galerías, etc */
}


.ul {
	list-style: none;
    line-height: 45px;
}
/* CSS สำหรับ Modal Pop-up ไว้อาลัย */
.t-one-modal {
    display: none; /* ซ่อนไว้ตอนแรก - JavaScript จะเปลี่ยนเป็น flex เมื่อโหลด */
    position: fixed; /* ให้อยู่เหนือเนื้อหาทั้งหมด */
    z-index: 9999; /* ค่า z-index สูงมากเพื่อให้ทับองค์ประกอบอื่น */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8); /* ฉากหลังสีดำทึบมากขึ้น เพื่อความสงบ */
    padding-top: 20px; /* ปรับ padding เล็กน้อย */
    
    display: flex; 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); /* เพิ่มเอฟเฟกต์เบลอเล็กน้อยที่ฉากหลัง */
}

.t-one-modal-content.mourning-content {
    background-color: #000; /* พื้นหลังสีดำสนิท */
    margin: auto; 
    padding: 30px;
    border: 3px solid #666; /* ขอบสีเทาเข้ม */
    width: 90%; 
    max-width: 600px; /* ปรับความกว้างสูงสุด */
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-out; /* ปรับ Animation ให้ช้าลงเล็กน้อย */
}

.mourning-heading {
    /* นำ Flexbox ที่เคยใช้จัดโบว์ออกไป */
    display: block; 
    text-align: center;
    color: #fafafa; 
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: bold;
}

.mourning-p {
    color: #AAA; /* สีเทาอ่อนสำหรับข้อความย่อย */
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.mourning-image-container {
    margin: 0 auto 20px auto; 
    width: 80%;
    max-width: 300px; 
    overflow: hidden; 
    
    /* **สิ่งสำคัญ:** ต้องใส่ Position Relative ที่นี่ */
    position: relative; 
}

.mourning-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%); /* ทำให้รูปภาพเป็นขาวดำ */
}

.mourning-company {
    color: #BBB;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 5px;
}

.mourning-slogan {
    color: #999;
    font-size: 0.95rem;
    margin-top: 0;
}

/* Animation สำหรับการปรากฏ */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* ถ้าต้องการให้มีปุ่มปิด แต่ซ่อนไว้ในตอนแรก และแสดงเมื่อต้องการ */
/*
.t-one-close-btn {
    display: none; // ซ่อนปุ่มปิด
}
*/
.mourning-ribbon-overlay {
    /* **สิ่งสำคัญ:** ต้องใส่ Position Absolute ที่นี่ */
    position: absolute; 
    
    /* จัดตำแหน่งมุมซ้ายล่าง */
    bottom: -15px; /* ชิดขอบล่าง */
    left: -50px; /* ชิดขอบซ้าย */
    
    width: 150px; /* กำหนดขนาดโบว์ (ปรับได้ตามต้องการ) */
    height: auto; 
    z-index: 10; /* ให้โบว์อยู่ด้านบนสุด */
    filter: grayscale(100%); /* ทำให้โบว์เป็นขาวดำ */
    
    /* เพิ่มการย้ายตำแหน่งเล็กน้อย เพื่อไม่ให้ชิดมุมจนเกินไป */
    transform: translate(5px, 0); 
}