/* --- BASE SETUP & FONT --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.6;
    scroll-behavior: smooth; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 100px 0;
    text-align: center;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #ff4500;
    font-weight: 700; 
    letter-spacing: 1.5px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: #ff4500;
    color: #111;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 5px; 
    margin-top: 30px;
    font-weight: 600;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid #ff4500;
}

.btn:hover {
    background-color: #e63900;
    transform: translateY(-2px);
}

.btn-small {
    background-color: #333; 
    color: #f0f0f0;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
    display: inline-block; 
    margin-top: 15px;
}

.btn-small:hover {
    background-color: #ff4500;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background-color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #f0f0f0;
    font-weight: 700;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff4500;
}

/* --- HERO SECTION --- */
.full-screen-hero {
    /* Placeholder Hero Image - ควรเปลี่ยนเป็นรูป Banner แนวตั้งหรือรูปที่เหมาะสม */
    background: url('https://via.placeholder.com/1920x1080/1a1a1a/ff4500?text=T-SHIRT+ZONE+HERO') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f0f0f0;
    position: relative;
    background-attachment: fixed; 
}

.hero-content {
    padding: 30px 50px;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.3); /* เพิ่มพื้นหลังจางๆ ให้อ่านง่ายขึ้น */
}

.hero-content h2 {
    font-size: 4em;
    margin: 10px 0;
    color: #f0f0f0;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.hero-content p {
    font-size: 1.4em;
    color: #ff4500;
    font-weight: 600;
}

/* --- ABOUT SECTION --- */
.two-column-layout {
    display: flex;
    gap: 40px;
    text-align: left;
    align-items: center;
}

.two-column-layout .col-content { flex: 1; }
.two-column-layout .col-image { flex-shrink: 0; width: 40%; }
.two-column-layout .col-image img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); }

/* --- PRODUCTS SECTION (จุดที่แก้ไขสำคัญ) --- */
.product-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
    justify-content: center;
}

.product-item {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    height: 600px;
    overflow: hidden;   
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s;
}

.product-item:hover {
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
}

.product-caption { font-size: 0.9em; margin-bottom: 15px; }

/* *** แก้ไข: รูปภาพเดี่ยวให้ปรับความสูงอัตโนมัติ *** */
.product-image-static { 
    width: 100%; 
    height: auto; /* เปลี่ยนเป็น auto เพื่อรักษาสัดส่วน */
    border-radius: 5px; 
    margin-bottom: 15px; 
}

/* *** แก้ไข: Image Slider ให้ปรับความสูงอัตโนมัติ *** */
.image-gallery-wrapper { 
    width: 100%;
    height: 1040px;
    margin-bottom: 10px; 
    overflow-x: scroll; 
    overflow-y: hidden; 
    scroll-snap-type: x mandatory; 
    border-radius: 5px; 
    display: flex; /* เพิ่มเพื่อให้ภายในขยายตามรูป */
}

.gallery-image { 
    flex-shrink: 0; 
    width: 100%; 
    height: auto; /* เปลี่ยนเป็น auto */
    scroll-snap-align: start; 
    border-radius: 5px; 
}
.image-gallery-wrapper::-webkit-scrollbar { display: none; }

/* Dots Indicator */
.dots-indicator { text-align: center; margin-top: 10px; margin-bottom: 10px; }
.dot { height: 8px; width: 8px; background-color: #555; border-radius: 50%; display: inline-block; margin: 0 4px; transition: background-color 0.3s; }
.dot.active { background-color: #ff4500; }


/* --- REVIEW SECTION --- */
.review-section { background-color: #111; padding: 100px 0; }
.review-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.review-item { background-color: #1a1a1a; padding: 25px; border-radius: 10px; max-width: 350px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); transition: transform 0.3s; text-align: left; }
.review-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(255, 69, 0, 0.2); }
.rating { color: #ffd700; font-size: 1.4em; margin-bottom: 15px; text-align: center;}
.review-text { font-style: italic; margin-bottom: 15px; color: #ccc; }
.reviewer-name { font-weight: bold; color: #f0f0f0; font-size: 0.9em; }


/* --- CONTACT & FOOTER SECTION --- */
#contact { padding: 80px 0; text-align: center; } 
.contact-grid { display: flex; justify-content: center; gap: 50px; }
.contact-column { text-align: left; max-width: 400px; padding: 15px; }

#contact h2 { text-align: left; }
.contact-column a { color: #ff4500 !important; }

footer {
    background-color: #000;
    padding: 20px 0;
    font-size: 0.9em;
    text-align: center;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .full-screen-hero { height: 60vh; }
    .hero-content h2 { font-size: 2.5em; }
    .two-column-layout { flex-direction: column; }
    .two-column-layout .col-image { width: 100%; }
    .product-item { width: 90%; }
    /* ลบการกำหนดความสูงในมือถือออกด้วย */
    .contact-grid { flex-direction: column; align-items: center; }
    .contact-column { max-width: 90%; width: 100%; text-align: center; }
    #contact h2 { text-align: center; }
    
    header h1 { font-size: 1.5em; }
    nav a { margin-left: 15px; }
    .btn { padding: 10px 25px; font-size: 1em; }
    /* --- CSS สำหรับฟอร์มสั่งซื้อด่วน (Standalone) --- */
.quick-order-card-standalone {
    background: #ffffff; /* พื้นหลังสีขาว */
    color: #333; /* ตัวอักษรสีเข้ม */
    padding: 30px; 
    border-radius: 15px; /* ขอบมน */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 40px auto; /* จัดกึ่งกลางและเว้นระยะ */
    max-width: 500px; /* จำกัดความกว้างไม่ให้ใหญ่เกินไป */
    text-align: left;
}

.form-header { 
    font-size: 1.5em; margin-top: 0; margin-bottom: 20px; font-weight: bold; color: #000; 
}

.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-group { flex: 1; }
.form-group label { display: block; font-size: 0.9em; margin-bottom: 5px; color: #333; font-weight: 600; }
.form-group select, .form-group input { 
    width: 100%; padding: 10px; 
    border: 1px solid #ccc; border-radius: 6px; 
    box-sizing: border-box; font-size: 1em;
    background-color: #fff; color: #333;
}

.price-summary { 
    display: flex; justify-content: space-between; align-items: center;
    margin: 20px 0; padding: 15px 0;
    background-color: #f9f9f9; border-radius: 8px; padding-left: 15px; padding-right: 15px;
}
.stock-status { color: #dc3545; font-size: 0.9em; }
.total-price-text { font-weight: 800; font-size: 1.3em; color: #000; }

.action-buttons { display: flex; gap: 10px; margin-top: 10px; }

/* ปุ่มแชทสั่งซื้อ (สีน้ำเงินเข้ม/ดำ) */
.btn-chat-buy {
    flex: 1.5; 
    background-color: #0f172a; 
    color: #fff; text-align: center; padding: 12px; 
    border-radius: 30px; 
    font-weight: bold; font-size: 1em; display: block; text-decoration: none;
    transition: 0.3s;
}
.btn-chat-buy:hover { background-color: #1e293b; transform: translateY(-2px); }

/* ปุ่มคัดลอกข้อความ (สีเทาอ่อน) */
.btn-copy {
    flex: 1; 
    background-color: #f1f5f9; 
    color: #334155; border: none; 
    border-radius: 30px; 
    cursor: pointer; font-weight: 600;
    transition: 0.3s;
}
.btn-copy:hover { background-color: #e2e8f0; }

.note { font-size: 0.8em; color: #999; text-align: center; margin-top: 15px; }

/* Mobile Responsive */
@media (max-width: 600px) {
    .action-buttons { flex-direction: column; }
    .quick-order-card-standalone { width: 90%; }
}
    /* --- Policy Info Section Style --- */
.policy-info-section {
    padding: 60px 0;
    background-color: #ffffff; /* พื้นหลังส่วนนี้เป็นสีขาวตามภาพ */
    color: #000; /* ตัวอักษรสีดำ */
}

.policy-main-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
    text-align: left; /* จัดชิดซ้ายตามภาพ */
}

.policy-grid {
    display: flex;
    gap: 20px; /* ระยะห่างระหว่างกล่อง */
    flex-wrap: wrap;
}

.policy-card {
    flex: 1; /* ให้ทุกกล่องกว้างเท่ากัน */
    min-width: 300px; /* ความกว้างขั้นต่ำ */
    background-color: #fff;
    border: 1px solid #e5e7eb; /* เส้นขอบสีเทาอ่อน */
    border-radius: 12px; /* ขอบมน */
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* เงาบางๆ */
    text-align: left;
}

.policy-card h4 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}

.policy-card p {
    font-size: 1rem;
    color: #4b5563; /* สีเทาเข้ม */
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .policy-grid {
        flex-direction: column; /* เรียงแนวตั้งในมือถือ */
    }
    .policy-main-title {
        text-align: center;
        font-size: 1.5rem;
    }
/* --- สไตล์สำหรับไอคอนโปรไฟล์ใน Header --- */
.header-profile-icon {
    height: 35px; /* กำหนดความสูงของไอคอน (ปรับแก้ได้ตามชอบ) */
    width: auto;  /* ให้ความกว้างปรับอัตโนมัติตามสัดส่วน */
    margin: 0 20px; /* ระยะห่างซ้าย-ขวา จากตัวหนังสือ */
    border-radius: 50%; /* ทำให้รูปเป็นวงกลม (ถ้าไม่อยากได้วงกลมให้ลบบรรทัดนี้ออก) */
    border: 2px solid #333; /* เส้นขอบสีเทาเข้ม (ถ้าไม่ชอบให้ลบออก) */
    vertical-align: middle; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    
    /* ป้องกันไม่ให้รูปบีบตัวเมื่อหน้าจอเล็ก */
    flex-shrink: 0; 
}

/* ปรับปรุงการจัดเรียงใน Header เล็กน้อยเพื่อให้สมดุล */
.header-container {
    display: flex;
    justify-content: space-between; /* จัดให้ h1 อยู่ซ้าย, nav อยู่ขวา, img จะอยู่ตรงกลาง */
    align-items: center; /* จัดทุกอย่างให้อยู่กึ่งกลางแนวตั้ง */
    padding: 10px 0; /* เพิ่มพื้นที่ว่างบนล่างนิดหน่อย */
/* --- จัดรูปแบบ Header ใหม่ --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* กลุ่มโลโก้ (ซ้าย) */
.logo-group {
    display: flex;
    align-items: center;
}

/* กลุ่มเมนูและปุ่ม (ขวา) */
.nav-group {
    display: flex;
    align-items: center;
    gap: 20px; /* ระยะห่างระหว่างปุ่มกับเมนู */
}

/* สไตล์ปุ่มแชทใน Header */
.header-chat-btn {
    background-color: #06c755; /* สีเขียว LINE */
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid white;
    transition: background-color 0.3s;
}

.header-chat-btn:hover {
    background-color: #05b34c;
}

/* ปรับเมนูให้อยู่ในแนวเดียวกัน */
nav {
    display: flex;
    align-items: center;
}

/* Mobile Responsive: ซ่อนปุ่มหรือปรับขนาดเมื่อจอเล็ก */
@media (max-width: 600px) {
    .header-container { flex-direction: column; gap: 10px; }
    .nav-group { flex-direction: column; gap: 10px; }
}







