.btn-cart {
    display: flex;
    align-items: center;
}

.btn-cart i {
    font-size: 1.5rem;
}

.badge {
    font-size: 0.8rem;
    margin-left: 5px;
}

.shop-content, .View1 {
    text-align: left;
    margin-top: 1px;
}
.shop-content button, .card_4-content button {
    margin: 0 10px;
}

.shop-content {
    padding: 20px;
    color: white;
}

.shop-content h3 {
    margin: 0;
    font-size: 18px;
    color: #333333;
}

.shop-content p {
    margin: 10px 0;
    font-size: 14px;
    color: #ffffff;
}

.shop-content button {
    padding: 10px 46px;
    border: none;
    background-color: #007bff;
    color: #ffffff;
    font-size: 17px;
    border-radius: 19px;
    cursor: pointer;
}

.shop-content button:hover {
    background-color: #0056b3;
}

.shop-content ul li {
    text-align: left;
}

/* .imagepo {
    
} */
.imagepo img {
    text-align: center; 
}

.image-container {
    display: inline-block; /* ทำให้รูปอยู่ในลักษณะ block และสามารถจัดตำแหน่งได้ */
    position: relative; /* ตั้งค่าให้ภาพมีตำแหน่งเป็น relative เพื่อให้สามารถใช้ top, bottom, left, right ได้ */
    top: 100px;
    right: 424px;
    width: 400px;
    height: 400px;
    border: 0 solid #ccc;
}

div.name_product {
    position: relative;
    bottom: 350px;
    left: 300px;
}

div.product_features {
    position: relative;
    bottom: 219px;
    left: 296px;
    width: 455px;
    height: 224px;
    padding: 10px;
    border: 2px solid #ccc;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fffefe;
    text-align: left;
}

div.update-data {
    position: relative;
    bottom: 126px;
    left: 264px;
    font-size: -16px;
}

div.update_product {
    position: relative;
    bottom: 110px;
    left: 280px;
    width: 402px;
    height: 224px;
    padding: 10px;
    border: 1px solid #ccc;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fffefe;
    overflow: auto;
    text-align: left;
}

/* เช็คขนาดของกรอบและปรับข้อมูลภายใน */
div.update_product > * {
    width: 100%; /* ปรับขนาดขององค์ประกอบภายในให้เท่ากับความกว้างของกรอบ */
    box-sizing: border-box; /* คำนวณขนาดภายในรวมถึง padding และ border */
    margin: 0; /* เพิ่ม margin: 0; เพื่อลบขอบตารางของ li */
    word-wrap: break-word; /* ทำให้ข้อความที่ยาวเกินขนาดของ div สามารถขึ้นบรรทัดใหม่ได้ */
}

/* ซ่อน scrollbar เมื่อไม่ได้ใช้งาน */
div.update_product::-webkit-scrollbar {
    display: none; /* ซ่อน scrollbar */
}

/* ติดตาม */
div.update_product::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* รับมือ */
div.update_product::-webkit-scrollbar-thumb {
    background: #888; 
}

    /* จัดการเมื่อโฮเวอร์ */
div.update_product::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

div.anm_name {
    position: absolute;
    bottom: 340px;
    right: 30px;
    font-size: 39px;
}

div.name_feature {
    position: relative;
    bottom: 38px;
    left: 144px;
}

div.feature_list {
    position: relative;
    /* top: 190px; */
    left: 280px;
    width: 402px;
    height: 224px;
    padding: 10px;
    border: 1px solid #ccc;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fffefe;
    overflow: auto; /* เพิ่ม scrollbar เมื่อเนื้อหามีขนาดใหญ่เกินกว่าขนาดของ div */
    text-align: left;
}

/* เช็คขนาดของกรอบและปรับข้อมูลภายใน */
div.feature_list > * {
    width: 100%; /* ปรับขนาดขององค์ประกอบภายในให้เท่ากับความกว้างของกรอบ */
    box-sizing: border-box; /* คำนวณขนาดภายในรวมถึง padding และ border */
    margin: 0; /* เพิ่ม margin: 0; เพื่อลบขอบตารางของ li */
    word-wrap: break-word; /* ทำให้ข้อความที่ยาวเกินขนาดของ div สามารถขึ้นบรรทัดใหม่ได้ */
}

/* ซ่อน scrollbar เมื่อไม่ได้ใช้งาน */
div.feature_list::-webkit-scrollbar {
    display: none; /* ซ่อน scrollbar */
}

/* ติดตาม */
div.feature_list::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* รับมือ */
div.feature_list::-webkit-scrollbar-thumb {
    background: #888; 
}

    /* จัดการเมื่อโฮเวอร์ */
div.feature_list::-webkit-scrollbar-thumb:hover {
    background: #555; 
}
  
div.system_product {
    position: relative;
    bottom: 760px;
    right: 377px;
    width: max-content;
    text-align: start;
    display: inline-table;
}

.system-text {
    /* position: absolute;
    bottom: 28px;
    right: 209px;
    height: 8px; */
    scrollbar-color: transparent transparent;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/

.portfolio-details {
    padding-top: 40px;
  }
  
  .portfolio-details .portfolio-details-slider img {
    width: 43% /* กำหนดความกว้างของรูปภาพ */ /* กำหนดความกว้างของรูปภาพ */
  }
  
  .portfolio-details .portfolio-details-slider .swiper-pagination {
    margin-top: 20px;
    position: relative;
  }
  
  .portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 1;
    border: 1px solid #5846f9;
  }
  
  .portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
    background-color: #5846f9;
  }
  
  .portfolio-details .portfolio-info {
    padding: 30px;
    box-shadow: 0px 0 30px rgba(44, 73, 100, 0.08);
  }
  
  .portfolio-details .portfolio-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .portfolio-details .portfolio-info ul {
    list-style: none;
    padding: 0;
    font-size: 22px;
  }
  
  .portfolio-details .portfolio-info ul li+li {
    margin-top: 12px;
  }
  
  .portfolio-details .portfolio-description {
    padding-top: 30px;
  }
  
  .portfolio-details .portfolio-description h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  
  .portfolio-details .portfolio-description p {
    padding: 0;
  }
  
/* ============================== pop up ============================== */
#my-button {
/*     position: relative;
    bottom: 174px;
    left: 201px; */
    padding: 16px 50px 21px;
    border-radius: 16px;
    font-size: 24px;
    width: 267px;
    height: 64px;
    background-color: #55f01eb3;
    color: #fff;
}

#popup {
    position: absolute;
    left: 51%;
    color: #fff;
    transform: translate(-50%, -50%);
    background-color: #000000c9;
    border-radius: 5px;
    box-shadow: 2px 4px 20px rgb(0 255 144);
    visibility: hidden;
    width: 509px;
    height: 335px;
}

.blur-background {
    filter: blur(12px); /* เบลอพื้นหลัง */
    pointer-events: none; /* ป้องกันการคลิกทุกอย่างใน popup */
    overflow: hidden;
}

.blur-exempt {
    filter: none; /* ยกเว้นการเบลอภาพพื้นหลัง */
}

@keyframes popupmove {
    from { top: 100px; opacity: 0; }
    to { top: 50%; opacity: 1; }
}

#popup.visible {
    visibility: visible;
    animation: popupmove 1.2s forwards; /* เรียกใช้ animation ที่สร้างขึ้น */
}

#popup.visible {
    visibility: visibble;
    animation: popupmove 1.2s forwards; /* เรียกใช้ animation ที่สร้างขึ้น */
    pointer-events: auto; /* อนุญาตให้คลิกได้เมื่อ popup ปรากฏ */
}

#confirm-button,
#cancel-button {
    background-color: #26c514;
    color: #fff;
    padding: 10px 29px;
    border-radius: 15px;
    margin-top: 42px;
    margin-left: 29px;
    min-width: auto;
    font-size: 24px;
}
  
#cancel-button {
    background-color: #ff0000;
}

.color-text {
    position: relative; /* ตั้งค่าให้ภาพมีตำแหน่งเป็น relative เพื่อให้สามารถใช้ top, bottom, left, right ได้ */
    left: 35px;
    margin-top: 22px;
    font-size: 22px;
}

.main-text {
    position: relative; /* ตั้งค่าให้ภาพมีตำแหน่งเป็น relative เพื่อให้สามารถใช้ top, bottom, left, right ได้ */
    left: 113px;
    color: #ffffff;
    top: 11px;
    /* margin-top: 46px; */
    font-size: 28px;
}

.text-check {
    position: relative; /* ตั้งค่าให้ภาพมีตำแหน่งเป็น relative เพื่อให้สามารถใช้ top, bottom, left, right ได้ */
    left: 43px;
    color: #ff0000;
    top: 28px;
    /* margin-top: 30px; */
    font-size: 20px;
}

/* ป้องกันการเลือกข้อความ */
.prevent-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

