
/*	:root {
      --primary: #1e88e5;
      --accent: #43a047;
      --dark: #0f172a;
      --text: #334155;
      --bg: #f8fafc;
      --card: #ffffff;
	}

/*	ชุดสี 1: Pastel Modern
	โทนสีอ่อนสดใส เหมาะกับเว็บที่อยากให้ดูเป็นมิตรและอบอุ่น */
/*	:root {
	  --primary: #6c63ff;   /* Violet Pastel */
/*	  --accent: #ff6584;    /* Pink Coral */
/*	  --dark: #1e293b;      /* Navy */
/*	  --text: #475569;      /* Slate Gray */
/*	  --bg: #fdfdfd;        /* Soft White */
/*	  --card: #ffffff;      /* Pure White */
/*	}
*/

/* ชุดสี 2: Gradient Vibrant
โทนสดใส มีพลัง เหมาะกับเว็บที่ต้องการความโดดเด่น*/
/*	:root {
	  --primary: #00c6ff;   /* Sky Blue */
/*	  --accent: #ff6a00;    /* Orange Vibrant */
/*	  --dark: #0f172a;      /* Deep Navy */
/*	  --text: #334155;      /* Cool Gray */
/*	  --bg: #f8fafc;        /* Light Gray */
/*	  --card: #ffffff;      /* White */
/*	}
*/

/*	ชุดสี 3: Elegant Luxury
	โทนหรูหรา เหมาะกับเว็บที่ต้องการความพรีเมียม */
	:root {
	  --primary: #4a00e0;   /* Royal Purple */
	  --accent: #8e2de2;    /* Purple Gradient */
	  --dark: #0b1020;      /* Midnight Black */
	  --text: #000000;      /* Light Gray #475569 */
	  --bg: #E0F2FE;        /* Soft White #f9fafb  f0f2f5 2b394a*/
	  --card: #ffffff;      /* White */
	}

    * { box-sizing: border-box; }
    body {
      margin: 0; font-family: "Segoe UI", Tahoma, sans-serif;
      color: var(--text); background: var(--bg);
      line-height: 1.6;
    }

    #message {
      font-size: 2em;
      color: #ffffff;
/*      opacity: 1;
      transition: opacity 1s ease-in-out; */
    }
    a { text-decoration: none; }
    .container { width: 90%; max-width: 1120px; margin: 0 auto; }
    header {
/*
      background: #ffffffee; backdrop-filter: blur(6px);
      border-bottom: 2px solid #e2e8f0;
		background: linear-gradient(to right, #6EE7B7, #D9F99D);
		
         /*   color: #333;*/
		
		
		color: rgb(255, 255, 255); 
		background-color: rgb(208, 1, 27);
            padding: 6px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: bold;

    }
.messageshow {
  position: sticky; top: 0; 
	
  background-color: #ee4d2d;
/*  background: linear-gradient(to right, #e2e8f0, #cca3ff);
  border-radius: 20px;*/
  padding: 10px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
	

}
.card-icon img {
	
  width: 300px;
  height: 300px;
  object-fit: contain;
}
    .nav {
      display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
    }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: rgb(255, 255, 255); }
    .brand .logo {
      width: 36px; height: 36px; border-radius: 8px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
    }
    .nav a { padding: 8px 12px; border-radius: 8px; }
    /*.nav a:hover { background: #f1f5f9; } */
    .cta {
      /*padding: 8px 14px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 600;*/
		 linear-gradient(135deg, #4a00e0, #8e2de2);

    }
    .hero {
		
      padding: 48px 0;   background: linear-gradient(180deg, #fdf2ff, #f8fafc);
      border-bottom: 2px solid #e2e8f0;
    }
    .hero-content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
  /*  .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #e3f2fd; color: #0b5bb5; font-weight: 600; }*/
    .hero h1 { margin: 14px 0 8px; font-size: 2rem; color: var(--dark); }
    .hero p { margin: 0 0 18px; font-size: 1.05rem; }
    .btns { display: flex; gap: 12px; flex-wrap: wrap; }
  /*  .btn-primary { background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 700; }*/
    .btn-outline { border: 2px solid var(--accent); color: var(--accent); padding: 10px 14px; border-radius: 10px; font-weight: 700; background: #fff; }
    .hero-img {
      width: 100%; min-height: 220px; border-radius: 16px;
      background: radial-gradient(1200px 400px at 20% 0%, #e8f4ff, #ffffff);
      border: 1px solid #e2e8f0; display: grid; place-items: center; padding: 24px;
    }
    .hero-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%;
    }
    .printer {
      background: var(--card); border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; text-align: center;
    }
    .printer .img {
      height: 90px; border-radius: 8px; background: linear-gradient(135deg,#e2e8f0,#f8fafc);
      margin-bottom: 10px; display: grid; place-items: center; color: #64748b; font-weight: 700;
    }
    .features, .products, .service, .about, .faq, .contact { padding: 36px 0; }
    .section-title { font-size: 1.6rem; color: var(--dark); margin-bottom: 8px; }
    .section-sub { color: #64748b; margin-bottom: 18px; }
    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /*  .card {
      background: var(--card); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px;
    }*/
    .card h3 { margin: 1px 0 1px; color: var(--dark); }
    .card p { margin: 0; }
    .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .product {
        background: var(--card); 
		border: 2px solid #e2e8f0; 
		border-radius: 12px; 
		padding: 14px; 
		display: grid; 
		gap: 10px;
    }
    .price { font-size: 1.2rem; color: var(--accent); font-weight: 800; }
    .stock { font-weight: 600; color: #1f7a1f; }
    .buy { display: flex; gap: 8px; }
    .btn-buy { flex: 1; background: var(--primary); color: #fff; padding: 10px 12px; border-radius: 10px; font-weight: 700; text-align: center; }
    .btn-pickup { flex: 1; background: #fff; border: 2px solid var(--primary); color: var(--primary); padding: 10px 12px; border-radius: 10px; font-weight: 700; text-align: center; font-size: 16px }
    .service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .brand-card { background: var(--card); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
    .badge-brand { display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 700; }
    .badge-epson { background: #e3f2fd; color: #0b5bb5; }
    .badge-brother { background: #e8f5e9; color: #1b5e20; }
    .list { margin: 10px 0 0; padding-left: 20px; }
    .list li { margin: 6px 0; }
    .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .qa { background: var(--card); border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; }
    footer {
      margin-top: 20px; padding: 24px 0; background: #0b1020; color: #cbd5e1;
    }
    .ft { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
    .ft h4 { margin: 0 0 10px; color: #e2e8f0; }
    .copy { margin-top: 14px; font-size: 0.9rem; color: #94a3b8; }
    @media (max-width: 960px) {
      .hero-content { grid-template-columns: 1fr; }
      .cards, .products-grid, .service-grid, .faq-grid, .ft { grid-template-columns: 1fr; }
      .hero-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) { .hero-grid { grid-template-columns: 1fr; } }
        /* ป้าย Flash Sale */
        .flash-sale-badge {
            position: absolute;
            top: 0;
            left: 0;
            background-color: #f97316; /* สีส้ม */
            color: white;
            padding: 5px 15px;
            font-weight: bold;
            font-size: 14px;
            z-index: 10;
            border-bottom-right-radius: 5px;
        }
		.ict-badge {
			text-align: center;
			border-radius: 10px;
            background-color: #02d3e6; 
            color: white;
            padding: 5px 15px;
            font-weight: bold;
            font-size: 16px;
        }


/* ตั้งค่าพื้นฐาน */
* {
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
}

.checkout-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap; /* รองรับมือถือ */
}

/* ส่วนรายการสินค้า (ซ้าย) */
.order-details {
    flex: 2;
    min-width: 300px;
}

.order-details h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.item-list {
    border-top: 1px solid #ddd;
}

.item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.product-img {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-right: 20px;
    object-fit: contain;
}

.item-info {
    flex-grow: 1;
}

.item-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.item-info p {
    font-size: 14px;
    color: #777;
}

.remove-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}

.remove-link:hover {
    text-decoration: underline;
}

.item-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* ส่วนสรุปราคา (ขวา) */
.order-summary {
    flex: 1;
    min-width: 300px;
    background-color: #f0f3f7; /* สีพื้นหลังอ่อนๆ ตามรูป */
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.order-summary h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

.checkout-btn {
    display: block;
    width: 90%;
    background-color: #4a90e2; /* สีน้ำเงินตามรูป */
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 30px; /* ขอบมนๆ */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 25px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.checkout-btn:hover {
    background-color: #357abd;
}

/* Responsive: ปรับเมื่อหน้าจอเล็กลง */
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }
}


.button-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ปุ่ม Get สีฟ้า */
.btn-get {
    background-color: #31b8f9;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 20px;
    padding: 10px 0;
    border-radius: 14px;
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-get:active {
    opacity: 0.7;
}

/* ปุ่มรถเข็น */
.btn-cart {
    background-color: #FFFFFF;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    position: relative;
}

.btn-cart:active {
    background-color: #444444;
}

/* รูปไอคอนรถเข็น (SVG) */
.cartP-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #333333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* เครื่องหมายบวกเล็กๆ */
.plus-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #333333;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plus-badge::after, .plus-badge::before {
    content: '';
    position: absolute;
    background-color: #ffffff;
}

.plus-badge::before {
    width: 6px;
    height: 1.2px;
}

.plus-badge::after {
    width: 1.2px;
    height: 6px;
}

/* Container ของตะกร้า */
.cart-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* ตัวไอคอนตะกร้า (SVG) */
.cart-icon {
    width: 40px;
    height: 40px;
    fill: #FFFFFF ; /* สีเทาของตัวตะกร้า #000 */
}

/* ป้ายแจ้งเตือนสีฟ้า */
.badge {
    position: absolute;
    top: -5px;      /* ปรับตำแหน่งขึ้น-ลง */
    right: -12px;   /* ปรับตำแหน่งซ้าย-ขวา */
    background-color: #FFFFFF; /* สีฟ้า#4ab3f4 */
    color: #ee4d2d;      /* สีตัวเลข (สีดำ)#000 */
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;

    /* ทำให้เป็นทรงรี (Pill Shape) */
    padding: 2px 10px;
    border-radius: 20px;

    /* จัดตัวเลขให้อยู่ตรงกลาง */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 15px;
    line-height: 1;
}


    /* ปุ่มแอดไลน์สีเขียวเอกลักษณ์ */
    .btn-line {
        background-color: #06C755;
        color: white !important;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s;
        border: none;
    }
    .btn-line:hover {
        background-color: #05b34c;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
    }

    /* ปุ่มลอยมุมขวาล่าง */
    .floating-line {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 999;
        width: 60px;
        height: 60px;
        background-color: #06C755;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        text-decoration: none;
        transition: all 0.3s;
    }
    .floating-line:hover {
        transform: scale(1.1);
        color: white;
    }

    /* ตกแต่งส่วน Footer Contact */
    .contact-section {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px dashed #ccc;
        text-align: center;
    }
