﻿    .footer-widget /*************************
*******Typography******
**************************/

@import url(http://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,700,100);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,600,700);
@import url(http://fonts.googleapis.com/css?family=Abel);

@font-face {
    font-family: 'Phetsarath OT';
    src: url('../fonts/PhetsarathOT.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ============================================= */
/* WhatsApp Floating Button                      */
/* ============================================= */
/* ============================================= */
/* WhatsApp Floating Button (Cross-Browser)      */
/* ============================================= */
.whatsapp-button {
  /* Positioning */
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;

  /* Appearance */
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  
  /* Shadow with Prefixes for older browsers */
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Icon Alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Animation with Prefixes */
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.whatsapp-button img {
  width: 35px;
  height: 35px;

}
.whatsapp-button {
    position: fixed;
    right: 20px; /* ปรับระยะห่างจากขอบขวาเล็กน้อย */
    bottom: 90px; /* [แก้ไข] เพิ่มค่า bottom เพื่อให้ปุ่มสูงขึ้น */
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}
.whatsapp-button:hover {
  /* Transform with Prefixes */
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}


body {
    min-height: 100%; /* ใช้ min-height เพื่อให้เนื้อหายาวกว่าจอได้ */
    display: flex;
    flex-direction: column;
}


html, body

ul li {
}
.content-wrapper {
    flex: 1 0 auto;
}

    list-style: none;
}

a:hover {
    outline: none;
    text-decoration: none;
}

a:focus {
    outline: none;
    outline-offset: 0;
}

a {
    -webkit-transition: 300ms;
    transition: 300ms;
}

.btn:hover,
.btn:focus {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.navbar-toggle {
    background-color: #000;
}

a#scrollUp {
    bottom: 0px;
    right: 10px;
    padding: 5px 10px;
    background: #FE980F;
    color: #FFF;
    -webkit-animation: bounce 2s ease infinite;
    animation: bounce 2s ease infinite;
}

a#scrollUp i {
    font-size: 30px;
}


/*************************
*******Header CSS******
**************************/

.header_top {
    background-color: #333333;
    border-bottom: 1px solid #222;
    padding: 8px 0; /* เพิ่ม padding บน-ล่าง */
    min-height: 40px; /* กำหนดความสูงขั้นต่ำ */
    box-sizing: border-box;
}



.contactinfo ul li a {
    color: #FFFFFF !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
.contactinfo ul li a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}


/* 
 * PART 2: MIDDLE BAR (BLACK THEME)
 * แถบกลาง (โลโก้, Cart, Login) เป็น "สีดำ"
 */
.header-middle {
    background: #222222 !important;  /* สีพื้นเข้ม */
    padding-top:5px;
    padding-bottom: 5px;
	margin-bottom: 0px;
}

/* เปลี่ยนเส้นขอบด้านล่างให้เป็นสีเทาเข้ม */
.header-middle .container .row {
    border-bottom: 1px solid #444444;

}

.main-content-section {
  margin-top: 30px; /* << ปรับตัวเลขนี้เพื่อเพิ่มหรือลดระยะห่างได้ตามต้องการ */
}
/* ทำให้ลิงก์ Cart, Login เป็นสีเทาอ่อน */
.shop-menu ul li a {
    color: #E0E0E0 !important;
    background: none !important;
}
/* ทำให้เป็นสีส้มเมื่อเมาส์ชี้ */
.shop-menu ul li a:hover {
    color: #FE980F !important;
    background: none !important;
}
.mini-cart-item {
    display: flex;
    align-items: center; /* จัดให้ทุกอย่างอยู่กึ่งกลางแนวตั้ง */
    gap: 10px; /* เพิ่มช่องว่างระหว่างรูปกับข้อมูล */
    margin-bottom: 10px;
}

/* กำหนดขนาดของกล่องที่ครอบรูปภาพ */
.mini-cart-img {
    flex-shrink: 0; /* ป้องกันไม่ให้กล่องรูปโดนบีบ */
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
}

/* [สำคัญ] กำหนดขนาดรูปภาพให้พอดีกับกล่อง */
.mini-cart-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ทำให้รูปเต็มกล่องโดยไม่เสียสัดส่วน */
}

/* ทำให้ส่วนข้อมูล (ชื่อ, ราคา) ขยายเต็มพื้นที่ที่เหลือ */
.mini-cart-info {
    flex: 1;
    min-width: 0; /* แก้ปัญหา text ยาวเกิน */
}

/* จัดสไตล์ชื่อสินค้า */
.mini-cart-info a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* แสดง ... ถ้ายาวเกิน */
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.mini-cart-info a:hover {
    color: #fe980f;
}


/* จัดสไตล์ราคาและจำนวน */
.mini-cart-info span {
    font-size: 13px;
    color: #888;
}

/* จัดสไตล์ปุ่มลบ */
.mini-cart-remove a {
    font-size: 16px;
    color: #e04444;
    padding: 5px;
}
.mini-cart-remove a:hover {
    color: #c00;
}

/* ปรับปรุงหน้าตาโดยรวมของ Dropdown */
.mini-cart-dropdown {
    width: 320px; /* กำหนดความกว้างของ Dropdown */
}

ul.mini-cart-list {
    list-style: none;
    padding: 10px;
    margin: 0;
    max-height: 300px; /* จำกัดความสูง ถ้ามีของเยอะให้ scroll ได้ */
    overflow-y: auto;
}

.mini-cart-summary {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.mini-cart-actions {
    padding: 10px;
    background-color: #f9f9f9;
    text-align: center;
}
.mini-cart-actions .btn {
    width: 100%;
background-color: #ff0000;
color: #ffffff;
}
.pos-page .mini-cart-dropdown {
    display: none !important; /* สั่งให้ตัว Dropdown ซ่อนไปเลยตลอดกาล */
    pointer-events: none;     /* ป้องกันไม่ให้เมาส์ทำปฏิกิริยาใดๆ กับมันได้ */
}
/* 
 * PART 3: MAIN NAVIGATION MENU (RED THEME)
 * แถบเมนูหลัก (Home, Shop, ค้นหา) เป็น "สีแดง"
 */
.footer-fab {
    position: fixed;
    bottom: 180px;
    left: 25px; /* [แก้ไข] ย้ายจาก right มาเป็น left */
    width: 60px;
    height: 60px;
    background-color: #cc0033;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}
#footerModal .modal-header {
    background-color: #c9302c; /* สีแดงเข้ม */
    color: #fff;               /* ตัวอักษรสีขาว */
    border-bottom: none;        /* เอาเส้นขอบล่างออก */
    padding: 15px 20px;
    position: relative;         /* ตั้งค่านี้เพื่อให้ปุ่มปิดอ้างอิงตำแหน่งได้ */
}

/* 2. จัดตำแหน่งและสไตล์ของปุ่มปิด (X) */
#footerModal .modal-header .close {
    position: absolute;      /* ทำให้ตำแหน่งลอยอย่างอิสระ */
    top: 50%;                /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    right: 20px;             /* ชิดขวา โดยมีระยะห่าง 20px */
    transform: translateY(-50%); /* เทคนิคจัดกึ่งกลางแนวตั้งให้สมบูรณ์ */
    
    color: #fff;             /* สีของเครื่องหมาย X */
    opacity: 0.8;            /* ทำให้โปร่งใสเล็กน้อย */
    font-size: 2rem;         /* ปรับขนาดให้ใหญ่ขึ้นเล็กน้อย */
    font-weight: bold;
    text-shadow: none;       /* เอาเงาตัวอักษรออก */
    margin: 0;
    padding: 0;
}

/* ทำให้ปุ่มปิดชัดขึ้นเมื่อเอาเมาส์ไปชี้ */
#footerModal .modal-header .close:hover {
    opacity: 1;
    color: #fff;
}
#footerModal .footer-widget {
    background-color: transparent;
    padding: 0; /* เอา padding เดิมออก ถ้ามี */
}

/* เปลี่ยนสีหัวข้อและตัวอักษรทั้งหมดเป็นสีเข้ม */
#footerModal .widget-title,
#footerModal p,
#footerModal .address p {
    color: #333; /* สีเทาเข้ม */
}

/* ทำให้เส้นใต้หัวข้อเป็นสีส้มเหมือนเดิม */
#footerModal .widget-title {
    border-bottom: 2px solid #FE980F;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ปรับสไตล์ของฟอร์มรับข่าวสาร */
#footerModal .newsletter-form input[type="email"] {
    background-color: #f0f0f0; /* พื้นหลังช่องกรอกสีเทาอ่อน */
    color: #333;
    border: 1px solid #ccc;
}

#footerModal .newsletter-form input[type="email"]::placeholder {
    color: #888;
}

/* ปรับสีไอคอน Social Media */
#footerModal .social-links a {
    background-color: #f0f0f0;
    color: #555;
}

#footerModal .social-links a:hover {
    background-color: #FE980F;
    color: #fff;
}



.cart-fab {
    position: fixed; /* ตำแหน่งคงที่ */
    width: 60px;
    height: 60px;
    bottom: 500px; /* ระยะห่างจากด้านล่าง (ปรับได้ตามชอบ) */
    right: 30px; /* ระยะห่างจากด้านขวา */
    background-color: #c00; /* สีพื้นหลัง (สีแดงตามธีม) */
    color: #FFF; /* สีไอคอน */
    border-radius: 50%; /* ทำให้เป็นวงกลม */
    text-align: center;
    font-size: 24px; /* ขนาดไอคอน */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25); /* เพิ่มเงา */
    z-index: 1000; /* ให้อยู่เหนือเนื้อหาอื่น */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-fab:hover {
    background-color: #a00; /* สีเข้มขึ้นเมื่อเอาเมาส์ไปชี้ */
    transform: scale(1.1); /* ขยายเล็กน้อย */
}

/* ตัวเลขจำนวนสินค้าบนปุ่ม */
.cart-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 3px 8px;
    border-radius: 50%;
    background: #FFD700; /* สีเหลืองทอง */
    color: #333; /* สีตัวอักษร */
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #fff;
}

.mobile-cart-list {
    padding: 0 15px; /* เพิ่มช่องว่างซ้ายขวาเล็กน้อย */
}

.mobile-cart-item {
    display: flex;          /* <<< คำสั่งวิเศษ: เปิดใช้งาน Flexbox */
    align-items: center;    /* <<< ทำให้ทุกอย่างอยู่กึ่งกลางแนวตั้ง */
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0; /* เส้นคั่นบางๆ ระหว่างสินค้า */
}

.mobile-cart-item:last-child {
    border-bottom: none; /* ชิ้นสุดท้ายไม่ต้องมีเส้นคั่น */
}

.cart-item-image {
    flex-shrink: 0; /* ป้องกันไม่ให้รูปถูกบีบ */
    width: 60px;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    border-radius: 4px;
}

.cart-item-details {
    flex-grow: 1; /* <<< คำสั่งวิเศษ: ให้ส่วนนี้ "ยืด" จนเต็มพื้นที่ว่าง */
}

.cart-item-details .item-name {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: bold;
}

.cart-item-details .item-qty-price,
.cart-item-details .item-subtotal {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.cart-item-details .item-subtotal {
    color: #333;
}

.cart-item-remove {
    flex-shrink: 0; /* ป้องกันไม่ให้ปุ่มถูกบีบ */
    margin-left: 15px;
}

.cart-item-remove a i {
    font-size: 22px;
    color: #d9534f;
    transition: all 0.2s;
}
.cart-item-remove a:hover i {
    color: #c9302c;
    transform: scale(1.1);
}

.mobile-cart-summary {
    background-color: #f9f9f9;
    padding: 5px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}










#header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1030;
}
/* ... โค้ดส่วนอื่น ๆ เหมือนเดิม ... */
.header_top .language-selector { display: flex; align-items: center; gap: 12px; }
.header_top .lang-btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s ease-in-out; opacity: 0.8; }
.header_top .lang-btn:hover img { opacity: 1; transform: scale(1.1); }
.header_top .lang-btn.active img { opacity: 1; border-color: #FFFFFF; }

.header_main { background-color: #D32F2F; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* [แก้ไขจุดสำคัญ] บังคับให้ Navbar ยืดเต็มความกว้าง */
.header_main .navbar {
    border: none;
    margin-bottom: 0;
    min-height: 50px;
    background: transparent;
    width: 100% !important; /* << เพิ่มบรรทัดนี้เพื่อแก้ปัญหา */
}

.header_main > .container-fluid { padding-left: 0; padding-right: 0; }
.header-left-group{display:flex;align-items:center}
.navbar-brand.text-logo{color:#FFFFFF;font-size:28px;font-weight:700;letter-spacing:1px}
.text-logo .logo-d{background-color:#FE980F;padding:0px 10px;border-radius:4px;margin-right:5px}

.mainmenu-desktop { display: block; margin-left: 30px; }
.mainmenu-desktop .navbar-nav > li > a { color: rgba(255,255,255,0.85); font-size: 20px; font-weight: 500; padding: 30px 30px; text-transform: uppercase; transition: all 0.3s ease; border-bottom: 3px solid transparent; }
.mainmenu-desktop .navbar-nav > li > a:hover, .mainmenu-desktop .navbar-nav > li > a.active { color: #FFFFFF; background: none; border-bottom-color: #FFFFFF; }

.header-right-actions{display:flex;align-items:center;gap:15px}
.shop-menu-desktop .navbar-nav{display:flex;flex-direction:row}
.shop-menu-desktop .navbar-nav > li > a{color:#FFFFFF;font-size:15px;padding:8px 10px}
.shop-menu-desktop .navbar-nav > li > a:hover{background-color:rgba(0,0,0,0.15);border-radius:4px}
.navbar-toggle .icon-bar{background-color:#FFFFFF!important}


/* ========================================================================
   [2] สไตล์สำหรับเมนู Off-canvas (ไม่มีการเปลี่ยนแปลง)
   ======================================================================== */
/* ... โค้ดส่วนนี้เหมือนเดิมทุกประการ ... */
.offcanvas-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0s 0.3s; }
.offcanvas-container { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background-color: #2c2c2c; z-index: 1050; transform: translateX(-100%); transition: transform 0.3s ease-in-out; display: flex; flex-direction: column; }
body.offcanvas-open .offcanvas-overlay { opacity: 1; visibility: visible; transition: opacity 0.3s ease-in-out; }
body.offcanvas-open .offcanvas-container { transform: translateX(0); }
.offcanvas-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #1a1a1a; flex-shrink: 0; }
.offcanvas-title { color: #fff; font-size: 18px; margin: 0; font-weight: 600; }
.close-btn { background: none; border: none; color: #fff; font-size: 28px; opacity: 0.8; padding: 0; line-height: 1; }
.offcanvas-body { padding: 15px 0; overflow-y: auto; flex-grow: 1; }
.offcanvas-body .nav { padding-left: 0; list-style: none; margin: 0; }
.offcanvas-body .nav > li > a { display: flex; align-items: center; padding: 12px 20px; font-size: 16px; color: #e0e0e0; border-bottom: 1px solid #3a3a3a; transition: background-color 0.2s, color 0.2s; }
.offcanvas-body .nav > li > a:hover, .offcanvas-body .nav > li > a.active { background-color: #D32F2F; color: #fff; padding-left: 20px; }
.offcanvas-body .nav > li > a i { width: 20px; margin-right: 12px; text-align: center; flex-shrink: 0; }
.offcanvas-body .shop-menu-mobile, .offcanvas-body .language-selector-mobile { margin-top: 15px; padding-top: 15px; border-top: 1px solid #444; }
.offcanvas-body .nav:last-of-type > li:last-of-type > a { border-bottom: none; }
.language-selector-mobile { text-align: center; padding: 10px 20px; }



.header-bottom {


    background-color: #D9534F !important;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 3px solid #C12E2A;
	margin-bottom: 20px;
}


.mainmenu ul li a {
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);

    /* --- [ จุดแก้ไข ] เพิ่ม 2 บรรทัดนี้เพื่อสร้างระยะห่าง --- */
    padding-left: 35px !important;
    padding-right: 35px !important;
}
.mainmenu ul li a:hover,
.mainmenu ul li a.active {
    background: none !important;
    color: #FFFFFF !important;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 8px;
}


/*  Dropdown menu*/

.navbar-header .navbar-toggle .icon-bar {
    background-color: #fff;
}

.nav.navbar-nav>li:hover>ul.sub-menu {
    display: block;
    -webkit-animation: fadeInUp 400ms;
    animation: fadeInUp 400ms;
}

ul.sub-menu {
    position: absolute;
    /* [ปรับปรุง] ใช้ top: 100% เพื่อให้เมนูย่อยอยู่ต่อท้ายเมนูหลักพอดีเป๊ะ */
    top: 100%; 
    left: 0;
    
    /* [ปรับปรุง] เปลี่ยนเป็นสีทึบที่เข้มขึ้นเล็กน้อย ดูสะอาดตา */
    background: #2c3e50; /* หรือใช้สีแดงของเว็บคุณ เช่น #c9302c */

    list-style: none;
    padding: 10px 0; /* เพิ่มระยะห่างขอบบน-ล่างเล็กน้อย */
    margin: 0;
    
    /* [ปรับปรุง] ลดความกว้างลงเล็กน้อยให้พอดีๆ */
    width: 230px; 
    
    border-radius: 0 0 5px 5px; /* ทำให้ขอบล่างโค้งมน สวยงาม */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ดูมีมิติ */
    
    display: none; /* ซ่อนไว้เป็นค่าเริ่มต้น */
    z-index: 999;
    
    /* [เพิ่ม] - ทำให้การเปลี่ยนแปลงทั้งหมดนุ่มนวล */
    transition: all 0.3s ease;
}

/* --- 2. ทำให้เมนูแสดงผลเมื่อชี้ที่ Dropdown หลัก --- */
/* และเพิ่ม Animation ที่คุณมีอยู่แล้ว */
.dropdown:hover > ul.sub-menu {
    display: block;
    animation: fadeInUp 0.4s ease; /* ใช้ Animation ที่คุณสร้างไว้ */
}


/* --- 3. สไตล์ของรายการเมนูย่อยแต่ละอัน (List Items) --- */
.navbar-nav li ul.sub-menu li {
    padding: 0; /* เอา padding เดิมออก จัดการที่ <a> แทน */
}

.navbar-nav li ul.sub-menu li a {
    display: block; /* ทำให้ลิงก์เต็มความกว้างของ li */
    padding: 12px 20px; /* กำหนดระยะห่างที่สวยงาม */
    color: #ecf0f1;  /* เปลี่ยนสีตัวอักษรเป็นสีขาวนวล */
    transition: all 0.3s ease; /* เพิ่มความนุ่มนวลตอนเปลี่ยนสี */
    font-size: 14px;
}

/* --- 4. [สำคัญ!] เพิ่มเอฟเฟกต์เมื่อเอาเมาส์ชี้ --- */
.navbar-nav li ul.sub-menu li a:hover,
.navbar-nav li ul.sub-menu li.active a { /* ทำให้ลิงก์ที่ active มีสไตล์เหมือน hover */
    background: #FDB45E; /* สีไฮไลท์ที่คุณใช้อยู่ */
    color: #2c3e50; /* เปลี่ยนสีตัวอักษรเป็นสีเข้มเพื่อให้อ่านง่าย */
    padding-left: 25px; /* ทำให้ตัวหนังสือขยับนิดๆ ตอนชี้ */
}


/* --- 5. โค้ด Animation (ของคุณเอง) --- */
@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.footer-section {
    background-color: #222;
    color: #bbb;
margin-top: 50px;
    padding-top: 20px;
}

.footer-section .widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-section .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: #FE980F; /* Theme color */
}

.footer-widget p {
    color: #bbb;
    line-height: 1.8;
}

/* About Widget */
.about-widget h2 span {
    color: #FE980F; /* Theme color */
}

.about-widget .address p {
    margin-bottom: 10px;
}

.about-widget .address i {
    color: #FE980F; /* Theme color */
    margin-right: 10px;
}

/* Links Widget */
.links-widget ul {
    list-style: none;
    padding-left: 0;
}

.links-widget ul li {
    margin-bottom: 10px;
}

.links-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.links-widget ul li a:hover {
    color: #FE980F; /* Theme color */
    padding-left: 5px;
}

/* Newsletter Widget */
.newsletter-form {
    position: relative;
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    background-color: #444;
    border: 1px solid #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background-color: #FE980F; /* Theme color */
    border: none;
    color: #fff;
    padding: 0 20px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.social-links a {
    color: #bbb;
    font-size: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FE980F; /* Theme color */
}

/* Footer Bottom */
.footer-bottom {
    background-color: #111;
    padding: 0px 0;
    margin-top: 20px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: #888;
}

.footer-bottom a {
    color: #FE980F; /* Theme color */
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Adjust alignment for small screens */
@media (max-width: 767px) {
    .footer-bottom .pull-left,
    .footer-bottom .pull-right {
        text-align: center;
        width: 100%;
    }
    .footer-bottom .pull-right {
        margin-top: 10px;
    }
    .footer-widget {
        margin-bottom: 5px;
    }
}


/*************************
******* Home ******
**************************/

#slider {
    padding-bottom: 20px;
  margin-top: 20px;
}

.carousel-indicators li {
    background: #C4C4BE;
}

.carousel-indicators li.active {
    background: #FE980F;
}

.pricing {
    position: absolute;
    right: 40%;
    top: 52%;
}

.girl {
    margin-left: 0;
}

.item h1 {
    color: #ff0000;
    font-family: abel;
    font-size: 48px;
    margin-top: 115px;
}

.item h1 span {
    color: #FE980F;
}

.item h2 {
    color: #363432;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 22px;
    margin-top: 10px;
}

.item p {
    color: #363432;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.get {
    background: #FE980F;
    border: 0 none;
    border-radius: 0;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin-top: 23px;
}

.item button:hover {
    background: #FE980F;
}

.control-carousel {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: #C2C2C1;
}

.control-carousel:hover {
    color: #FE980F;
}

.right {
    right: 0;
}

.category-products {
    border: 1px solid #F7F7F0;
    margin-bottom: 35px;
    padding-bottom: 20px;
    padding-top: 15px;
}


h2.title:before {
    content: " ";
    position: absolute;
    background: #fff;
    bottom: -6px;
    width: 220px;
    height: 30px;
    z-index: -1;
    left: 50%;
    margin-left: -110px;
}

.category-products .panel {
    background-color: #FFFFFF;
    border: 0px;
    border-radius: 0px;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-bottom: 0px;
}
.category-products .panel-default .panel-heading {
    background-color: #FFFFFF;
    border: 0 none;
    color: #FFFFFF;
    padding: 5px 5px;
}

.category-products .panel-default .panel-heading .panel-title a {
    color: #696763;
   font-family: 'Phetsarath OT', sans-serif;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.panel-group .panel-heading+.panel-collapse .panel-body {
    border-top: 0 none;
}

.category-products .badge {
    background: none;
    border-radius: 10px;
    color: #696763;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    min-width: 10px;
    padding: 3px 7px;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

.panel-body ul {
    padding-left: 0px;
}

.panel-body ul li a {
    color: #696763;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

.brands-name {
    border: 1px solid #F7F7F0;
    padding-bottom: 15px;
    padding-top: 15px;
}

.brands-name .nav-stacked li a {
    background-color: #FFFFFF;
    color: #696763;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    padding: 5px 5px;
    text-decoration: none;
    text-transform: uppercase;
}

.brands-name .nav-stacked li a:hover {
    background-color: #fff;
    color: #696763;
}

.shipping {
    background-color: #F2F2F2;
    margin-top: 40px;
    overflow: hidden;
    padding-top: 20px;
    position: relative;
}

.price-range {
    margin-top: 30px;
}

.well {
    background-color: #FFFFFF;
    border: 1px solid #F7F7F0;
    border-radius: 4px;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-bottom: 20px;
    min-height: 20px;
    padding: 35px;
}

.tooltip-inner {
    background-color: #FE980F;
    border-radius: 4px;
    color: #FFFFFF;
    max-width: 200px;
    padding: 3px 8px;
    text-align: center;
    text-decoration: none;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #FE980F;
    border-width: 5px 5px 0;
    bottom: 0;
    left: 50%;
    margin-left: -5px;
}


.features_items {
    overflow: hidden;
}


h2.title {
    color: #FE980F;
        font-family: 'Noto Sans Lao', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 15px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
}



/* --- สไตล์ปุ่ม Add to Cart (ปุ่มหลักสีแดง) --- */
/* เราเพิ่ม .productinfo เพื่อเจาะจงเฉพาะปุ่มที่อยู่ด้านล่าง */
.productinfo .add-to-cart {
    background: #e74c3c; /* สีแดง */
    border: none;
    color: #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.productinfo .add-to-cart:hover {
    background: #c0392b; /* สีแดงเข้มขึ้นเมื่อ hover */
    color: #fff;
}


/* --- สไตล์ Overlay รูปแบบใหม่ --- */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-image-wrapper {
    position: relative;
    overflow: hidden; /* ซ่อนส่วนเกินที่อาจล้นออกมา */
}
/* ทำให้ Overlay แสดงผลเมื่อนำเมาส์ไปวาง */
.product-image-wrapper:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

/* --- 3.3) จัดเรียงปุ่มใน Overlay --- */
.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 3.4) สไตล์ปุ่มใน Overlay --- */

.overlay-content .overlay-btn:hover {
    background: #FE980F;
    color: #fff;
    border-color: #FE980F;
}

.overlay-content .overlay-btn {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 5px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    min-width: 120px;
}










/* --- สไตล์ของปุ่มที่อยู่ใน Overlay (ต้องเปลี่ยนเป็นสีเข้ม) --- */
.product-overlay .overlay-content .overlay-btn {
    background: transparent;
    border: 2px solid #555;      /* << แก้ไข: เส้นขอบสีเทาเข้ม */
    color: #333;                 /* << แก้ไข: ตัวอักษรสีดำ */
    padding: 8px 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* ทำให้ปุ่มใน Overlay เปลี่ยนสีเมื่อ hover (สลับกัน) */
.product-overlay .overlay-content .overlay-btn:hover {
    background: #333;           /* << แก้ไข: พื้นหลังเป็นสีดำ */
    color: #fff;                 /* << แก้ไข: ตัวอักษรเป็นสีขาว */
    border-color: #333;          /* << แก้ไข: เส้นขอบเป็นสีเดียวกับพื้นหลัง */
}

/* ทำให้ปุ่มใน Overlay เปลี่ยนสีเมื่อ hover */
.product-overlay .overlay-content .overlay-btn:hover {
    background: #fff; /* พื้นหลังเป็นสีขาว */
    color: #FE980F; /* ตัวอักษรเป็นสีส้ม (สีหลักของเว็บ) */
}

.product-overlay .add-to-cart {
    background: #fff;
    border: 0 none;
    border-radius: 0;
    color: #FE980F;
    font-family: 'Phetsarath OT', sans-serif; 
    font-size: 15px;
    margin: 0; /* This removes the bottom margin and centers the button */
    padding: 8px 16px; /* Optional: Adds some space inside the button */
}

.product-overlay .add-to-cart:hover {
    background: #fff;
    color: #FE980F;
}

.product-overlay p {
      font-family: 'Phetsarath OT', sans-serif; 
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.add-to-cart {
    background: #F5F5ED;
    border: 0 none;
    border-radius: 0;
    color: #696763;
    font-family: 'Noto Sans Lao', sans-serif;
    font-size: 15px;
    margin-bottom: 25px;
}

.add-to-cart:hover {
    background: #FE980F;
    border: 0 none;
    border-radius: 0;
    color: #FFFFFF;
}

.add-to {
    margin-bottom: 10px;
}

.add-to-cart i {
    margin-right: 5px;
}

.add-to-cart:hover {
    background: #FE980F;
    color: #FFFFFF;
}

.choose {
    border-top: 1px solid #F7F7F0;
}

.choose ul li a {
    color: #B3AFA8;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    padding-left: 0;
    padding-right: 0;
}

.choose ul li a i {
    margin-right: 5px;
}

.choose ul li a:hover {
    background: none;
    color: #FE980F;
}

.category-tab {
    overflow: hidden;
font-family: 'Noto Sans Lao', sans-serif;
}

.category-tab ul {
    background: #40403E;
    border-bottom: 1px solid #FE980F;
    list-style: none outside none;
    margin: 0 0 30px;
    padding: 0;
    width: 100%;
}

.category-tab ul li a {
    border: 0 none;
    border-radius: 0;
    color: #B3AFA8;
    display: block;
font-family: 'Noto Sans Lao', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.category-tab ul li a:hover {
    background: #FE980F;
    color: #fff;
}

.nav-tabs li.active a,
.nav-tabs li.active a:hover,
.nav-tabs li.active a:focus {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #FE980F;
    border: 0px;
    color: #FFFFFF;
    cursor: default;
    margin-right: 0;
    margin-left: 0;
}

.nav-tabs li a {
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 4px 4px 0 0;
    line-height: 1.42857;
    margin-right: 0;
}

.recommended_items {
margin-top: 10px;
    overflow: hidden;
}

#recommended-item-carousel .carousel-inner .item {
    padding-left: 0;
}

.recommended-item-control {
    position: absolute;
    top: 41%;
}

.recommended-item-control i {
    background: none repeat scroll 0 0 #FE980F;
    color: #FFFFFF;
    font-size: 20px;
    padding: 4px 10px;
}

.recommended-item-control i:hover {
    background: #ccccc6;
}

.recommended_items h2 {}

.our_partners {
    overflow: hidden;
}

.our_partners ul {
    background: #F7F7F0;
    margin-bottom: 30px;
}

.our_partners ul li a:hover {
    background: none;
}


/*************************
*******Shop CSS******
**************************/

#advertisement {
    padding-bottom: 30px;
}

#advertisement img {
    width: 100%;
}

.pagination {
    display: inline-block;
    margin-bottom: 25px;
    margin-top: 0;
    padding-left: 15px;
}

.pagination li:first-child a,
.pagination li:first-child span {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: 0;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.pagination .active a,
.pagination .active span,
.pagination .active a:hover,
.pagination .active span:hover,
.pagination .active a:focus,
.pagination .active span:focus {
    background-color: #FE980F;
    border-color: #FE980F;
    color: #FFFFFF;
    cursor: default;
    z-index: 2;
}

.pagination li a,
.pagination li span {
    background-color: #f0f0e9;
    border: 0;
    float: left;
    line-height: 1.42857;
    margin-left: -1px;
    padding: 6px 12px;
    position: relative;
    text-decoration: none;
    margin-right: 5px;
    color: #000;
}

.pagination li a:hover {
    background: #FE980F;
    color: #fff;
}


/*************************
*******Product Details CSS******
**************************/

.product-details {
    padding: 15px !important;
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    margin-top: 10px !important;
 margin-bottom: 80px !important;
    overflow: hidden !important;
}



/* --- 3. (สำคัญที่สุด) รีเซ็ตและจัดสไตล์ส่วนข้อมูลสินค้าใหม่ทั้งหมด --- */
.product-information {
    padding: 10px 15px !important; /* << ล้าง padding เก่า 60px ทิ้งไป! */
    border: none !important;
    position: static !important; /* ป้องกันการจัดวางที่ผิดพลาด */
}

/* --- ล้างสไตล์เก่าของ ราคา และ input ที่ไม่ต้องการ --- */
.product-information span,
.product-information span span {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important; /* ใช้ขนาดฟอนต์ตามที่กำหนดใหม่ */
    color: inherit !important; /* ใช้สีตามที่กำหนดใหม่ */
    font-weight: normal !important;
}
.product-information span input, 
.product-information span label {
    display: none !important; /* ซ่อน input และ label ของดีไซน์เก่า */
}


/* --- 4. สร้างสไตล์ใหม่ที่ทรงพลังกว่า --- */

/* ชื่อสินค้า */
.product-information .product-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}
@media (max-width: 767px) {
    .product-title {
        font-size: 15px !important; /* ปรับเล็กลงเพื่ออ่านง่ายบนมือถือ */

    }
}
/* ราคา */
.product-information .product-price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #FE980F !important;
    margin-bottom: 20px !important;
}

/* คำอธิบาย */
.product-information .product-description h4 {
    font-weight: 700; color: #555; margin-bottom: 10px;
}
.product-information .product-description p {
    color: #666; line-height: 1.6;
}

/* สถานะสต็อก */
.product-information .stock-status {
    font-weight: 700; padding: 5px 10px; border-radius: 5px; font-size: 14px;
}
.product-information .stock-status.in-stock { background-color: #e6ffed; color: #237804; }
.product-information .stock-status.out-of-stock { background-color: #fff1f0; color: #cf1322; }
.product-information .items-left { margin-left: 10px; color: #888; font-size: 13px; }

/* ส่วนควบคุมการสั่งซื้อ */
.product-information .cart-controls {
    display: flex !important;
    align-items: center !important;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
}
.cart-controls label { font-weight: 700; margin-right: 10px; display: block !important; }
.cart-controls .quantity-input { width: 70px; height: 40px; text-align: center; border: 1px solid #ccc; border-radius: 5px; margin-right: 15px; display: block !important; }
.cart-controls .btn-add-to-cart { background: #FE980F; color: #FFFFFF; border: none; padding: 10px 20px; font-size: 16px; font-weight: 700; border-radius: 5px; transition: background 0.2s ease; display: block !important; }
.cart-controls .btn-add-to-cart:hover { background: #e68a0d; color: #FFFFFF; }

.cart {
    background: #FE980F;
    border: 0 none;
    border-radius: 0;
    color: #FFFFFF;
    font-family: 'Phetsarath OT', sans-serif; 
    font-size: 15px;
    margin-bottom: 10px;
    margin-left: 20px;
}

.shop-details-tab {
    border: 1px solid #F7F7F0;
    margin-bottom: 75px;
    margin-left: 15px;
    margin-right: 15px;
    padding-bottom: 10px;
}

.shop-details-tab .col-sm-12 {
    padding-left: 0;
    padding-right: 0;

}

#reviews ul {
    background: #FFFFFF;
    border: 0 none;
    list-style: none outside none;
    margin: 0 0 20px;
    padding: 0;
}

#reviews ul li {
    display: inline-block;
}

#reviews ul li a {
    color: #696763;
    display: block;
font-family: 'Phetsarath OT', sans-serif;
    font-size: 14px;
    padding-right: 15px;
}

#reviews ul li a i {
    color: #FE980F;
    padding-right: 8px;
}

#reviews ul li a:hover {
    background: #fff;
    color: #FE980F;
}

#reviews p {
    color: #363432;
}

#reviews form span {
    display: block;
}

#reviews form span input {
    background: #F0F0E9;
    border: 0 none;
    color: #A6A6A1;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    outline: medium none;
    padding: 8px;
    width: 48%;
}

#reviews form span input:last-child {
    margin-left: 3%;
}

#reviews textarea {
    background: #F0F0E9;
    border: medium none;
    color: #A6A6A1;
    height: 195px;
    margin-bottom: 25px;
    margin-top: 15px;
    outline: medium none;
    padding-left: 10px;
    padding-top: 15px;
    resize: none;
    width: 99.5%;
}

#reviews button {
    background: #FE980F;
    border: 0 none;
    border-radius: 0;
    color: #FFFFFF;
    font-family: 'Noto Sans Lao', sans-serif; 
    font-size: 14px;
}


/*************************
*******404 CSS******
**************************/

.logo-404 {
    margin-top: 60px;
}

.content-404 {
    margin-bottom: 60px;
}

.content-404 h1 {
    color: #363432;
    font-family: 'Roboto', sans-serif;
    font-size: 41px;
    font-weight: 300;
}

.content-404 img {
    margin: 0 auto;
}

.content-404 p {
    color: #363432;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

.content-404 h2 {
    margin-top: 50px;
}

.content-404 h2 a {
    background: #FE980F;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 44px;
    font-weight: 300;
    padding: 8px 40px;
}


/*************************
*******login page CSS******
**************************/

#form {
    display: block;
    margin-bottom: 185px;
    margin-top: 185px;
    overflow: hidden;
}

.login-form {}

.signup-form {}

.login-form h2,
.signup-form h2 {
    color: #696763;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
}

.login-form form input,
.signup-form form input {
    background: #F0F0E9;
    border: medium none;
    color: #696763;
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 300;
    height: 40px;
    margin-bottom: 10px;
    outline: medium none;
    padding-left: 10px;
    width: 100%;
}

.login-form form span {
    line-height: 25px;
}

.login-form form span input {
    width: 15px;
    float: left;
    height: 15px;
    margin-right: 5px;
}

.login-form form button {
    margin-top: 23px;
}

.login-form form button,
.signup-form form button {
    background: #FE980F;
    border: medium none;
    border-radius: 0;
    color: #FFFFFF;
    display: block;
    font-family: 'Roboto', sans-serif;
    padding: 6px 25px;
}

.login-form label {}

.login-form label input {
    border: medium none;
    display: inline-block;
    height: 0;
    margin-bottom: 0;
    outline: medium none;
    padding-left: 0;
}

.or {
    background: #FE980F;
    border-radius: 40px;
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    height: 50px;
    line-height: 50px;
    margin-top: 75px;
    text-align: center;
    width: 50px;
}


/*************************
*******Cart CSS******
**************************/


#cart_items .cart_info {
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
}
.cart_menu { background: #f7f7f7 !important; font-weight: 700 !important; }
.cart_info table thead tr td { padding: 15px 10px !important; border-bottom: 2px solid #FE980F !important; }
.cart_info table tbody tr { border-bottom: 1px solid #f0f0f0 !important; }
.cart_info table tbody tr:last-child { border-bottom: none !important; }
.cart_info table tbody tr td { padding: 10px 10px !important; vertical-align: middle !important; }
.cart_product img { width: 90px !important; height: auto !important; border-radius: 5px !important; }
.cart_description h4 a { color: #363432 !important; font-weight: 700 !important; }
.cart_price p, .cart_total p { font-size: 16px !important; font-weight: normal !important; }
.cart_total .cart_total_price { font-weight: 700 !important; color: #333 !important; }

/* --- 2. [อัปเกรด] ขยายปุ่ม +/- และปุ่มลบ --- */
.cart_quantity_button { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}
.cart_quantity_button a {
    background: #f0f0f0 !important;
    color: #555 !important;
    font-size: 20px !important; /* << เพิ่มขนาดฟอนต์ */
    font-weight: 700 !important;
 font-weight: 700 !important;

    height: 38px !important;   /* << เพิ่มความสูง */
    width: 38px !important;    /* << เพิ่มความกว้าง */
    line-height: 38px !important;
    text-align: center !important;
    border-radius: 50% !important;
    border: none !important;
    transition: all 0.2s ease;
}
.cart_quantity_button a:hover {
    background: #FE980F !important;
    color: #fff !important;
}
.cart_quantity_input {
    width: 40px !important;
    height: 35px !important; /* << ทำให้สูงเท่ากับปุ่ม */
    text-align: center !important;
    border: 1px solid #e6e6e6 !important;
    margin: 0 8px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;

}
.cart_quantity_delete {
    color: #c90000 !important;
    font-size: 22px !important; /* << เพิ่มขนาดไอคอน "x" */
    padding: 5px !important;
    transition: color 0.2s ease;
}
.cart_quantity_delete:hover {
    color: #ff4d4f !important;
}

/* --- 3. [อัปเกรด] ปรับส่วนสรุปยอดให้กระชับและสวยงาม --- */
#do_action .total_area {
    background: #f7f7f9 !important;
    padding: 20px 25px !important; /* << ลด Padding ลง */
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
}
.total_area ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}
.total_area ul li {
    background: transparent !important;
    padding: 10px 0 !important; /* << ลด Padding ของรายการ */
    margin: 0 !important;
    color: #666 !important;
    border-bottom: 1px solid #e6e6e6 !important;
    font-size: 15px !important;
}
.total_area ul li:last-child {
    font-weight: 700 !important;
    font-size: 20px !important;
    color: #333 !important;
    border-bottom: none !important;
}
.total_area ul li:last-child span {
    color: #FE980F !important;
}
.total_area span {
    float: right !important;
}
.total_area .cart-buttons {
    margin-top: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
.total_area .cart-buttons .btn {
    width: 100% !important;
    padding: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    margin: 0 !important;
}
.total_area .cart-buttons .update { /* Continue Shopping */
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    color: #555 !important;
    order: 2; /* << สลับให้ปุ่มนี้อยู่ล่าง */
}
.total_area .cart-buttons .check_out { /* Proceed to Checkout */
    background: #FE980F !important;
    color: #FFFFFF !important;
    border: 1px solid #FE980F !important;
    order: 1; /* << สลับให้ปุ่มนี้อยู่บน */
}
td.cart_total .cart_total_price {
    display: flex;          /* << เปิดใช้งาน Flexbox เพื่อควบคุมการจัดเรียง */
    justify-content: flex-end; /* << จัดทุกอย่างให้ชิดขวาของคอลัมน์ */
    align-items: baseline;  /* << จัดให้เส้นฐานของตัวเลขและ LAK ตรงกัน */
    gap: 5px;               /* << สร้างช่องว่างระหว่างตัวเลขกับ LAK */
}

/* ทำให้ <output> และ LAK ที่ตามมาอยู่ใน flex container */
td.cart_total .cart_total_price * {
    display: inline;
}


/* --- [FIX 2] ปรับปรุง Layout กล่องสรุปยอดให้สมบูรณ์ --- */
.total_area ul li span,
.total_area ul li .grand-total-price {
    display: inline-flex;  /* << ทำให้การจัดตำแหน่งภายในดีขึ้น */
    align-items: baseline;
    gap: 5px; /* สร้างช่องว่างระหว่างตัวเลขกับ LAK ในกล่องสรุป */
}

.total_area ul li:last-child {
    padding-top: 15px !important; /* เพิ่มช่องว่างเหนือราคารวมสุดท้าย */
    padding-bottom: 10px !important;
}

/*************************
*******checkout CSS******
**************************/

.step-one {
    margin-bottom: -10px
}

.register-req,
.step-one .heading {
    background: none repeat scroll 0 0 #F0F0E9;
    color: #363432;
    font-size: 20px;
    margin-bottom: 35px;
    padding: 10px 25px;
    font-family: 'Roboto', sans-serif;
}

.checkout-options {
    padding-left: 20px
}

.checkout-options h3 {
    color: #363432;
    font-size: 20px;
    margin-bottom: 0;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
}

.checkout-options p {
    color: #434343;
    font-weight: 300;
    margin-bottom: 25px;
}

.checkout-options .nav li {
    float: left;
    margin-right: 45px;
    color: #696763;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

.checkout-options .nav label {
    font-weight: normal;
}

.checkout-options .nav li a {
    color: #FE980F;
    font-size: 18px;
    font-weight: normal;
    padding: 0
}

.checkout-options .nav li a:hover {
    background: inherit;
}

.checkout-options .nav i {
    margin-right: 10px;
    border-radius: 50%;
    padding: 5px;
    background: #FE980F;
    color: #fff;
    font-size: 14px;
    padding: 2px 3px;
}

.register-req {
    font-size: 14px;
    font-weight: 300;
    padding: 15px 20px;
    margin-top: 35px;
}

.register-req p {
    margin-bottom: 0
}

.shopper-info p,
.bill-to p,
.order-message p {
    color: #696763;
    font-size: 20px;
    font-weight: 300
}

.shopper-info .btn-primary {
    background: #FE980F;
    border: 0 none;
    border-radius: 0;
    margin-right: 15px;
    margin-top: 20px;
}

.form-two,
.form-one {
    float: left;
    width: 47%
}

.shopper-info>form>input,
.form-two>form>select,
.form-two>form>input,
.form-one>form>input {
    background: #F0F0E9;
    border: 0 none;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    font-weight: 300
}

.form-two>form>select {
    padding: 10px 5px
}

.form-two {
    margin-left: 5%
}

.order-message textarea {
    font-size: 12px;
    height: 335px;
    margin-bottom: 20px;
    padding: 15px 20px;
}

.order-message label {
    font-weight: 300;
    color: #696763;
    font-family: 'Roboto', sans-serif;
    margin-left: 10px;
    font-size: 14px
}

.review-payment h2 {
    color: #696763;
    font-size: 20px;
    font-weight: 300;
    margin-top: 45px;
    margin-bottom: 20px
}

.payment-options {
    margin-bottom: 125px;
    margin-top: -25px
}

.payment-options span label {
    color: #696763;
    font-size: 14px;
    font-weight: 300;
    margin-right: 30px;
}

#cart_items .cart_info .table.table-condensed.total-result {
    margin-bottom: 10px;
    margin-top: 35px;
    color: #696763
}

#cart_items .cart_info .table.table-condensed.total-result tr {
    border-bottom: 0
}

#cart_items .cart_info .table.table-condensed.total-result span {
    color: #FE980F;
    font-weight: 700;
    font-size: 16px
}

#cart_items .cart_info .table.table-condensed.total-result .shipping-cost {
    border-bottom: 1px solid #F7F7F0;
}


.cart_product img {
    /* --- คำสั่งที่สำคัญที่สุด --- */
    width: 90px !important;       /* กำหนดความกว้างสูงสุดที่ 90px */
    height: auto !important;      /* ให้ความสูงปรับตามอัตโนมัติเพื่อไม่ให้รูปเพี้ยน */

    /* --- โค้ดเสริมเพื่อความสวยงาม --- */
    border-radius: 5px;           /* ทำให้ขอบรูปมนเล็กน้อย */
    border: 1px solid #e6e6e6;    /* เพิ่มเส้นขอบบางๆ */
    object-fit: cover;            /* ทำให้รูปพอดีกับกรอบ แม้สัดส่วนจะไม่ตรง */
}






/*************************
*******Blog CSS******
**************************/

.blog-post-area .single-blog-post h3 {
    color: #696763;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 17px;
}

.single-blog-post>a {}

.blog-post-area .single-blog-post a img {
    border: 1px solid #F7F7F0;
    width: 100%;
    margin-bottom: 30px
}

.blog-post-area .single-blog-post p {
    color: #363432
}

.blog-post-area .post-meta {
    display: block;
    margin-bottom: 25px;
    overflow: hidden;
}

.blog-post-area .post-meta ul {
    padding: 0;
    display: inline;
}

.blog-post-area .post-meta ul li {
    background: #F0F0E9;
    float: left;
    margin-right: 10px;
    padding: 0 5px;
    font-size: 11px;
    color: #393b3b;
    position: relative;
}

.blog-post-area .post-meta ul li i {
    background: #FE980F;
    color: #FFFFFF;
    margin-left: -4px;
    margin-right: 7px;
    padding: 4px 7px;
}

.sinlge-post-meta li i:after,
.blog-post-area .post-meta ul li i:after {
    content: "";
    position: absolute;
    width: auto;
    height: auto;
    border-color: transparent transparent transparent #FE980F;
    border-width: 4px;
    border-style: solid;
    top: 6px;
    left: 24px
}

.blog-post-area .post-meta ul span {
    float: right;
    color: #FE980F
}

.post-meta span {
    float: right;
}

.post-meta span i {
    color: #FE980F
}

.blog-post-area .single-blog-post .btn-primary {
    background: #FE980F;
    border: medium none;
    border-radius: 0;
    color: #FFFFFF;
    margin-top: 17px;
}

.pagination-area {
    margin-bottom: 45px;
    margin-top: 45px
}

.pagination-area .pagination li a {
    background: #F0F0E9;
    border: 0 none;
    border-radius: 0;
    color: #696763;
    margin-right: 5px;
    padding: 4px 12px;
}

.pagination-area .pagination li a:hover,
.pagination-area .pagination li .active {
    background: #FE980F;
    color: #fff
}


/*************************
*******Blog Single CSS******
**************************/

.pager-area {
    overflow: hidden;
}

.pager-area .pager li a {
    background: #F0F0E9;
    border: 0 none;
    border-radius: 0;
    color: #696763;
    font-size: 12px;
    font-weight: 700;
    padding: 4px;
    text-transform: uppercase;
    width: 57px;
}

.pager-area .pager li a:hover {
    background: #FE980F;
    color: #fff
}

.rating-area {
    border: 1px solid #F7F7F0;
    direction: block;
    overflow: hidden;
}

.rating-area ul li {
    float: left;
    padding: 5px;
    font-size: 12px
}

.rating-area .ratings {
    float: left;
    padding-left: 0;
    margin-bottom: 0
}

.rating-area .ratings li i {
    color: #CCCCCC
}

.rating-area .rate-this {
    color: #363432;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.rating-area .ratings .color,
.rating-area .color {
    color: #FE980F
}

.rating-area .tag {
    float: right;
    margin-bottom: 0;
    margin-right: 10px;
}

.rating-area .tag li {
    padding: 5px 2px;
}

.rating-area .tag li span {
    color: #363432;
}

.socials-share {
    margin-bottom: 30px;
    margin-top: 18px;
}

.commnets .media-object {
    margin-right: 15px;
    width: 100%;
}

.commnets {
    border: 1px solid #F7F7F0;
    padding: 18px 18px 18px 0;
    margin-bottom: 50px
}

.commnets .pull-left {
    margin-right: 22px
}

.commnets p,
.response-area p,
.replay-box p {
    font-size: 12px
}

.media-heading {
    color: #363432;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px
}

.blog-socials {
    margin-bottom: -9px;
    margin-top: 14px;
}

.blog-socials ul {
    padding-left: 0;
    overflow: hidden;
    float: left;
}

.blog-socials .btn.btn-primary {
    margin-top: 0;
}

.blog-socials ul li {
    float: left;
    height: 17px;
    margin-right: 5px;
    text-align: center;
    width: 17px;
}

.blog-socials ul li a {
    color: #393B3B;
    display: block;
    font-size: 10px;
    padding: 1px;
    background: #F0F0E9;
}

.blog-socials ul li a:hover {
    color: #fff;
    background: #FE980F
}

.media-list .btn-primary,
.commnets .btn-primary {
    background: #FC9A11;
    border: 0 none;
    border-radius: 0;
    color: #FFFFFF;
    float: left;
    font-size: 10px;
    padding: 1px 7px;
    text-transform: uppercase;
}

.response-area h2 {
    color: #363432;
    font-size: 20px;
    font-weight: 700;
}

.response-area .media {
    border: 1px solid #F7F7F0;
    padding: 18px 18px 18px 0;
    margin-bottom: 27px
}

.response-area .media img {
    height: 102px;
    width: 100%;
}

.response-area .media .pull-left {
    margin-right: 25px
}

.response-area .second-media {
    margin-left: 5%;
    width: 95%;
}

.sinlge-post-meta {
    overflow: hidden;
    padding-left: 0;
    margin-bottom: 15px
}

.sinlge-post-meta li {
    background: #F0F0E9;
    color: #363432;
    float: left;
    font-size: 10px;
    font-weight: 700;
    margin-right: 10px;
    padding: 0 10px 0 0;
    position: relative;
    text-transform: uppercase;
}

.sinlge-post-meta li i {
    background: #FE980F;
    color: #FFFFFF;
    margin-right: 10px;
    padding: 8px 10px;
}

.sinlge-post-meta li i:after {
    top: 7px;
    border-width: 6px;
    left: 27px;
}

.replay-box {
    margin-bottom: 107px;
    margin-top: 55px;
}

.replay-box h2 {
    font-weight: 700;
    font-size: 20px;
    color: #363432;
    margin-top: 0;
    margin-bottom: 45px
}

.replay-box label {
    background: #FE980F;
    color: #FFFFFF;
    margin-bottom: 15px;
    padding: 3px 15px;
    float: left;
    font-weight: 400;
}

.replay-box span {
    color: #FE980F;
    float: right;
    font-weight: 700;
    margin-top: 21px;
}

.replay-box form input {
    border: 1px solid #F7F7F0;
    color: #ADB2B2;
    font-size: 12px;
    margin-bottom: 22px;
    padding: 8px;
    width: 100%;
}

.replay-box form input:hover,
.text-area textarea:hover {
    border: 1px solid #FE980F;
}

.text-area {
    margin-top: 66px
}

.text-area textarea {
    background: transparent;
    border: 1px solid#F7F7F0
}

.btn.btn-primary {
    background: #ff0000;
    border: 0 none;
    border-radius: 5px;

}

.blank-arrow {
    position: relative;
}

.blank-arrow label:after {
    content: "";
    position: absolute;
    width: auto;
    height: auto;
    border-style: solid;
    border-width: 8px;
    border-color: #FE980F transparent transparent transparent;
    top: 25px;
    left: 5px
}


/*************************
******* Contact CSS ********
**************************/

.contact-map {
    width: 100%;
    height: 385px;
    margin-bottom: 70px
}

.contact-info .heading,
.contact-form .heading {
    text-transform: capitalize;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

#contact-page .form-control::-moz-placeholder {
    color: #8D8D8D;
}

#contact-page .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #696763;
    height: 46px;
    padding: 6px 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 4px;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
}

#contact-page #message {
    height: 160px;
    resize: none;
}

#main-contact-form .btn-primary {
    margin-bottom: 15px;
    margin-top: 20px;
}

#contact-page .form-control:focus,
#contact-page .form-control:hover {
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
    border-color: #FDB45E;
}

#contact-page .contact-info {
    padding: 0 20px;
}

#contact-page .contact-info address {
    margin-bottom: 40px;
    margin-top: -5px;
}

#contact-page .contact-info p {
    margin-bottom: 0;
    color: #696763;
    font-size: 16px;
    line-height: 25px;
}

.social-networks {
    overflow: hidden;
    text-align: center;
}

.social-networks ul {
    margin-top: -5px;
    padding: 0;
    display: inline-block;
}

.social-networks ul li {
    float: left;
    text-decoration: none;
    list-style: none;
    margin-right: 20px;
}

.social-networks ul li:last-child {
    margin-right: 0;
}

.social-networks ul li a {
    color: #999;
    font-size: 25px;
}

.contact-info .social-networks ul li a i {
    background: none;
}

.contact-info .social-networks ul li a:hover {
    color: #FE980F;
}
/* --- 2. Apply the custom font to elements --- */

/* Style for the main logo in the header */
.logo a {
    font-family: 'Phetsarath OT', sans-serif; 
    color: #FE980F; 
    font-size: 35px; 
}

/* 
  Style for ALL text elements (h1, h2, and p) in the homepage slider.
  This is the final, correct rule.
*/
#slider-carousel .item h1,
#slider-carousel .item h2,
#slider-carousel .item p {
    font-family: 'Phetsarath OT', sans-serif; 
}

/* =========================================
   CUSTOM STYLES FOR CATEGORY MODAL
   ========================================= */

.floating-contact-bar {
    position: fixed;
    top: 700px;      /* << กำหนดตำแหน่งจากด้านบนเป็นค่าที่แน่นอน (ปรับได้) */
    left: 0;
    z-index: 998;    /* << ลด z-index ลงเล็กน้อย ให้อยู่ใต้เมนูหลัก */
    
    /* 
     * --- ปิดการใช้งาน transform ที่เป็นต้นตอของปัญหาทั้งหมด ---
     * เราไม่จำเป็นต้องใช้มันแล้ว เพราะเรากำหนดตำแหน่งด้วย top/left แทน
    */
    transform: none !important; 
}

/* 
 * โค้ดตกแต่งส่วนที่เหลือของ .floating-contact-bar
 * คัดลอกมาได้เลย ไม่ต้องเปลี่ยนแปลง
*/
.floating-contact-bar .contact-item {
    display: flex;
    align-items: center;
    height: 55px;
    width: 55px;
    margin-bottom: 10px;
    background-color: #FE980F;
    color: #FFFFFF;
    border-radius: 0 50px 50px 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    transition: width 0.35s ease-in-out;
}
.floating-contact-bar .contact-item:hover {
    width: 250px;
}
.floating-contact-bar .contact-item i {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    font-size: 22px;
}
.floating-contact-bar .contact-item .contact-text {
    padding-left: 10px;
    padding-right: 20px;
    font-size: 16px;
    font-weight: 500;
}
.floating-contact-bar .contact-item.email {
    background-color: #FE980F;
}
.floating-contact-bar .contact-item.email:hover {
    width: 520px;
}


/* 
 * --- PART 2: The Sticky Header (Mobile Only) ---
 * ทำให้ "เมนูแดง" Freeze และจัดระเบียบ Body อย่างถูกต้อง
*/

#testimonial-page .bg {
    padding: 10px 10px;
    background-color: #ffffff; /* เปลี่ยนพื้นหลังเป็นสีขาวสะอาดตา */
    border-radius: 8px; /* เพิ่มความโค้งมนเล็กน้อย */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* เพิ่มเงาเบาๆ ให้ดูมีมิติ */
    max-width: 900px; /* จำกัดความกว้างสูงสุดเพื่อให้ layout ดูดีบนจอใหญ่ */
    margin: 10px auto; /* จัดให้อยู่กึ่งกลางหน้าจอ */
}

/* หัวข้อหลัก เช่น "ຄຳຕິຊົມຈາກລູກຄ້າ" */
#testimonial-page .title {
    font-size: 2.2rem; /* ปรับขนาดฟอนต์ให้ใหญ่ขึ้น */
    font-weight: 600; /* ทำให้ตัวหนาขึ้นเล็กน้อย */
    color: #333; /* สีเทาเข้ม อ่านง่าย */
    margin-bottom: 25px; /* เพิ่มระยะห่างด้านล่าง */
    position: relative;
    padding-bottom: 15px; /* เพิ่มระยะห่างสำหรับเส้นใต้ */
}

/* เส้นขีดสั้นๆ ใต้หัวข้อ */
#testimonial-page .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* ความยาวเส้น */
    height: 3px; /* ความหนาเส้น */
    background-color: #FE980F; /* ใช้สีส้มเพื่อให้เข้ากับธีม (หรือสีแดง #E94560) */
}


/* ========================================================================
   [2] TESTIMONIAL DISPLAY STYLES - ส่วนแสดงความคิดเห็น
   ======================================================================== */

.testimonial-list {
    margin-bottom: 20px;
}

/* กล่องของแต่ละความคิดเห็น */
.testimonial-item {
    background-color: #f9f9f9; /* พื้นหลังสีเทาอ่อน */
    border-left: 5px solid #FE980F; /* แถบสีด้านซ้ายเพื่อเน้น */
    padding: 5px 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px); /* เพิ่ม animation ตอน hover */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ข้อความ Comment */
.testimonial-item blockquote p {
    font-size: 1.9rem;
    color: #555;
    line-height: 1.7; /* เพิ่มความสูงระหว่างบรรทัดให้อ่านง่าย */
    margin: 0;
}

/* ไอคอนฟันหนู */
.testimonial-item .fa-quote-left {
    color: #FE980F;
    font-size: 1.4rem;
    margin-right: 10px;
}

/* ชื่อผู้เขียน */
.testimonial-author p {
    text-align: right;
    font-style: italic;
    font-weight: 500;
    color: #333;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ข้อความกรณีไม่มี Comment */
.no-testimonials {
    font-size: 26px;
    padding:10px;
    text-align: center;
    color: #888;
}

 ======================================================= */

/* 1. กำหนดให้เมนูหลักเป็นตัวอ้างอิงตำแหน่ง */
.shop-menu {
  position: relative;
}

/* 2. ซ่อน Dropdown ของตะกร้าเป็นค่าเริ่มต้น และจัดตำแหน่ง */
.shop-menu .mini-cart-dropdown {
  display: none; /* << คำสั่งสำคัญที่สุด: ซ่อนไว้ก่อน */
  position: absolute; /* << ทำให้ลอยอยู่เหนือเนื้อหาอื่น */
  top: 100%;      /* << ให้อยู่ด้านล่างของเมนูหลัก */
  right: 0;         /* << ให้ชิดขวา */
  width: 300px;     /* << กำหนดความกว้างของ Dropdown */
  background: #ffffff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9999;  /* << ให้อยู่ชั้นบนสุดเสมอ */
  padding: 15px;
}

/* 3. ทำให้ Dropdown แสดงขึ้นมาเมื่อเอาเมาส์ไปชี้ */
.shop-menu:hover .mini-cart-dropdown {
  display: block; /* << เปลี่ยนเป็น block เพื่อให้แสดงผล */
}

/* 4. [สำคัญมาก] ย่อขนาดรูปภาพสินค้าใน Dropdown */
.shop-menu .mini-cart-items img {
  width: 60px;  /* << กำหนดขนาดรูปให้เล็กพอดี */
  height: auto;
  margin-right: 10px;
}

/* 5. จัดสไตล์รายการสินค้าในตะกร้าเล็กน้อย */
.shop-menu .mini-cart-items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-menu .mini-cart-items li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
/* --- 1. สไตล์สำหรับแถบพื้นที่โลโก้ทั้งหมด --- */
div.brands-area-fullwidth {
    padding:10px 20px;
    background-color: #f7f7f7;
    border-top: 10px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 30px;    
	margin-top: 40px;
}

/* --- 2. สไตล์สำหรับกรอบของแต่ละโลโก้ (Item) [แก้ไขตรงนี้] --- */
.brand-carousel .item {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    
    /* ใช้ Flexbox จัดโลโก้ให้อยู่กึ่งกลาง */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    height: 85px;
    width: 120px;
}

.brand-carousel .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- 3. สไตล์สำหรับรูปภาพโลโก้ --- */
.brand-carousel .item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- 4. เอฟเฟกต์เมื่อเมาส์ชี้ที่โลโก้ --- */
.brand-carousel .item:hover img {
    opacity: 1;
}

/* --- 4. เอฟเฟกต์เมื่อเมาส์ชี้ที่โลโก้ --- */
.brand-carousel .item:hover img {
    opacity: 1; /* ทำให้โลโก้กลับมาทึบแสง 100% */
}

@media (max-width: 768px) {

    /* 1. เปลี่ยนสีพื้นหลังของเมนูที่เปิดออกมา */
    .navbar-collapse {
        background-color: #222222; /* สีเทาเข้มเกือบดำ ดูทันสมัย */
        border: none; /* เอาเส้นขอบที่ไม่จำเป็นออก */
        padding: 10px 0; /* เพิ่มระยะห่างบน-ล่างเล็กน้อย */
    }

    /* 2. ทำให้ Link ในเมนูเป็นสีขาว จะได้อ่านง่ายบนพื้นหลังสีเข้ม */
    .navbar-collapse .nav.navbar-nav > li > a {
        color: #ffffff !important; /* !important เพื่อให้แน่ใจว่ามันจะทำงาน */
        border-bottom: 1px solid #444; /* เพิ่มเส้นคั่นบางๆ ระหว่างเมนู */
    }
    .navbar-collapse .nav.navbar-nav > li:last-child > a {
        border-bottom: none; /* เมนูสุดท้ายไม่ต้องมีเส้นคั่น */
    }


    /* 3. (ทางเลือก) เปลี่ยนสีพื้นหลังเมื่อเอาเมาส์ไปชี้ หรือตอนกด */
    .navbar-collapse .nav.navbar-nav > li > a:hover,
    .navbar-collapse .nav.navbar-nav > li > a:focus {
        background-color: #D9534F; /* กลับไปใช้สีแดงของธีมหลัก */
        color: #ffffff !important;
    }

    /* 4. (ทางเลือก) สไตล์ของ Link ที่กำลัง Active อยู่ */
    .navbar-collapse .nav.navbar-nav > li.active > a {
        background-color: #D9534F;
        color: #ffffff !important;
    }

}

@media (max-width: 768px) {
  .category-menu {
    padding: 10px;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
  }

  .category-menu li {
    border-bottom: 1px solid #ddd;
  }

  .category-menu li a {
    font-size: 18px !important;
    padding: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
  }

  .category-menu li a:hover {
    background-color: #f0f0f0;
    color: #333;
  }
}
.view-product img {
    width: 100%;
    height: auto;

    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.thumbnail-gallery {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: start;
}
.thumbnail-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.thumbnail-img:hover {
    transform: scale(1.1);
    border-color: #FE980F;
}
#main-product-image {
    transition: opacity 0.3s ease-in-out;
}
@media (max-width: 767px) {

    /* 
      1. เพิ่มเส้นคั่นและระยะห่างให้กับ "คอลัมน์หมวดหมู่"
      เราจะเลือกคอลัมน์แรกที่อยู่ในแถวของ modal-body
    */
    #categoryModal .modal-body > .row > div:first-child {
        border-bottom: 1px solid #e0e0e0; /* สร้างเส้นคั่นสีเทาอ่อน */
        padding-bottom: 15px;             /* เพิ่มช่องว่างใต้เมนูหมวดหมู่ */
        margin-bottom: 20px;              /* เพิ่มระยะห่างก่อนจะถึงส่วนสินค้า */
    }

    /* 
      2. (แนะนำ) เพิ่มระยะห่างซ้าย-ขวาให้กับเนื้อหาทั้งหมดในมือถือ
      เพื่อให้ดูไม่ชิดขอบจอเกินไป
    */
    #categoryModal .modal-body .row {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px; /* เพิ่มระยะห่างด้านบนด้วย */
    }

}

.product-item-modal {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-item-modal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.product-item-modal img {
    width: 100%;
    height: 140px; /* ความสูงเริ่มต้นสำหรับจอทั่วไป */
    object-fit: contain;
    padding: 15px;
    transition: height 0.2s ease-in-out; /* เพิ่ม transition ให้ความสูง */
}

.product-item-modal .product-info {
    padding: 0 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-item-modal .product-name {
    font-size: 14px; /* ขนาดฟอนต์เริ่มต้น */
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; 
}

.product-item-modal .product-price {
    font-size: 16px; /* ขนาดฟอนต์เริ่มต้น */
    font-weight: 700;
    color: #2c3e50;
    margin-top: auto; /* ดันราคาไปอยู่ล่างสุด */
}

.logged-in-view .user-avatar {
    font-size: 50px;
    color: #fff;
    background-color: #5cb85c; /* สีเขียวแห่งความสำเร็จ */
    width: 90px;
    height: 90px;
    border-radius: 50%;
    line-height: 90px; /* ทำให้ไอคอนอยู่กลางแนวตั้ง */
    margin: 0 auto 20px auto;
    display: block;
}

/* ข้อความต้อนรับ */
.logged-in-view .welcome-message {
    font-size: 22px;
    font-weight: 300; /* ทำให้ตัวหนังสือดูเบาลง */
    margin-bottom: 5px;
}

.logged-in-view .welcome-message strong {
    font-weight: 600; /* ทำให้ชื่อเด่นขึ้น */
}

/* ข้อความสถานะ */
.logged-in-view .status-message {
    color: #777;
    margin-bottom: 30px;
}

/* กลุ่มปุ่ม (Logout & Close) */
.logged-in-view .button-group .btn {
    margin: 5px;
    min-width: 160px; /* ทำให้ปุ่มมีขนาดเท่ากัน */
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px; /* ทำให้ปุ่มโค้งมนขึ้น */
}

/* === สไตล์สำหรับส่วน "ยังไม่ล็อกอิน" (Login/Signup Form) === */

/* ปรับปรุงปุ่ม Tab (Login/Sign Up) */
#smyModal .nav-pills > li > a {
    border-radius: 5px;
    margin-right: 5px;
}
#smyModal .nav-pills > li.active > a,
#smyModal .nav-pills > li.active > a:hover,
#smyModal .nav-pills > li.active > a:focus {
    background-color: #FE980F; /* สีส้มหลักของเว็บคุณ */
    color: #fff;
}

/* ปรับปรุง Panel */
#smyModal .panel-pup {
    border-radius: 5px;
    border-color: #ffffff;
}
#smyModal .panel-pup .panel-heading {
    background-color: #dbdbdb;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
body, h1, h2 ,h3, h4, h5, h6, p, a, li, button, input, textarea, select {
        font-family: 'Noto Sans Lao', sans-serif; !important;

}

/* เพิ่มโค้ดนี้เข้าไปด้านล่างสุด */
h2 {
   font-family: 'Noto Sans Lao', sans-serif; !important;
    font-size: 18px;
color: #ffcc00;
}

/* ============================================= */
/* ========== Styling for Floating Banner ========== */
/* ============================================= */

/* --- ตัวครอบแบนเนอร์หลัก --- */
#floating-banner {
    position: fixed;            /* ทำให้ลอยอยู่กับที่ */
    right: 20px;                /* ระยะห่างจากขอบขวา */
    top: 190px;                 /* ระยะห่างจากขอบบน */
    width: 250px;               /* ความกว้างของแบนเนอร์ (ปรับได้) */
    z-index: 1000;              /* ทำให้แสดงอยู่เหนือ element อื่นๆ */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

#floating-banner:hover {
    transform: scale(1.02); /* ขยายเล็กน้อยเมื่อเมาส์ชี้ */
}

/* --- รูปภาพแบนเนอร์ --- */
#floating-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* ทำให้มุมของรูปมนตามกรอบ */
}

/* --- ปุ่มปิด [x] --- */
#floating-banner .close-banner-btn {
    position: absolute;         /* จัดตำแหน่งภายในกรอบ #floating-banner */
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;         /* ทำให้เป็นวงกลม */
    text-align: center;
    line-height: 28px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #fff;
    transition: background-color 0.2s;
}

#floating-banner .close-banner-btn:hover {
    background-color: #e60000; /* เปลี่ยนเป็นสีแดงเมื่อเมาส์ชี้ */
}
product-name-custom {
    color: #363432;
    font-size: 14px;
    line-height: 1.4;
    
    /* [แก้ไข] เอาความสูงคงที่และ flex-grow ออก */
    /* height: 58px;  <-- เอาออก */
    /* flex-grow: 1;  <-- เอาออก */
    
    overflow: hidden;
    margin-bottom: 15px; /* สามารถปรับลดค่านี้ได้ ถ้าอยากให้ชิดกว่านี้ */
}

/* --- 2.1) ตัวครอบส่วนล่างสุด (ฉบับแก้ไข) --- */
.product-bottom-details {
    /* จัดวาง "ราคา" และ "กลุ่มไอคอน" ให้อยู่ซ้ายสุด-ขวาสุด */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* ดันให้ element นี้อยู่ล่างสุดของการ์ดเสมอ (ถ้าทำได้) */
    margin-top: auto; 
    
    border-top: 1px solid #f2f2f2;
    padding-top: 10px;
    margin-top: 10px; /* เพิ่มระยะห่างจากชื่อสินค้า */
}

.product-price-custom {
    margin: 0;
    color: #c70039;
    font-size: 18px;
    font-weight: 700;
}

/* ทำให้กลุ่มไอคอนเรียงติดกัน */
.cart-section {
    display: flex;
}

/* สไตล์ของปุ่มไอคอน (View และ Cart) */
.cart-icon-button {
    background: #FE980F;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    font-size: 16px;
    transition: all 0.3s ease;
    
    /* จัดไอคอนให้อยู่กลางปุ่ม */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* [เพิ่ม] สร้างระยะห่างระหว่างไอคอน View และ Cart */
.cart-icon-button.view-details-btn {
    margin-right: 5px; 
}

/* เอฟเฟกต์เมื่อเอาเมาส์ชี้ */
.cart-icon-button:hover {
    background: #e68a0d; /* ทำให้สีเข้มขึ้นเล็กน้อย */
    color: white;
}

/* --- ทำให้แบนเนอร์หายไปในจอขนาดเล็ก (มือถือ) --- */
@media (max-width: 768px) {
    #floating-banner {
        display: none;
    }
}
@media (max-width: 991px) {
    .mainmenu-desktop, .shop-menu-desktop, .header_top { display: none; }
    .navbar-toggle { display: block !important; }
    .navbar-brand.text-logo { font-size: 24px; }
}
@media (min-width: 992px) {
    .navbar-toggle { display: none !important; }
}
@media (min-width: 992px) {
  .modal-dialog.modal-product-details {
    width: 90%; /* กำหนดความกว้างเป็น 90% ของหน้าจอ */
    max-width: 1000px; /* แต่ไม่ให้กว้างเกิน 1000px */
  }
}
.input-label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    display: block;
    /* เพิ่มบรรทัดนี้ลงไป */
    font-family: 'Noto Sans Lao', sans-serif; 
}
