.store-content-section {
    padding: 64px 16px;
}
.store-content-section-single {
    min-height: calc(100vh - 220px);
}
.store-content-container-separate {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
   
}
.store-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 16px;
    row-gap:16px;
    place-items: center;
}
.store-all-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 16px;
    row-gap:16px;
    place-items: center;
}
/* 🏷️ Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap; /* ให้ Chip ขึ้นบรรทัดใหม่เมื่อเต็มพื้นที่ */
    gap: 10px 15px; /* gap: [แนวตั้ง] [แนวนอน] */
}
.disabled-button {
    background-color: #ccc !important;
    pointer-events: none;
    cursor: not-allowed;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-width: calc(152px * 5 + 6px * 4);
    width: 100%;
    gap: 6px;
    place-items: center;
}
@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
.product-container {
    max-width: 1200px; /* ✅ กำหนดขนาดสูงสุดของสินค้า */
    margin: 0 auto; /* ✅ จัดให้อยู่ตรงกลางของหน้า */
    padding: 0 8px;
}
.category-filters a {
    display: ruby;  /* ทำให้แต่ละปุ่มอยู่คนละบรรทัด */
    width: fit-content; /* ให้ขนาดของปุ่มพอดีกับข้อความ */
    padding: 8px 12px;
    border-radius: 20px;
    background: #f1f1f1;
    color: black;
    text-decoration: none;
    text-align: center;
}

.category-filters a.active {
    background: #28a745;
    color: white;
}

@media screen and (min-width: 800px) {
    .store-all-product-grid {
        display: inline-flex;
        grid-template-columns: 1fr;
        column-gap: 16px;
        row-gap:16px;
        place-items: center;
    }
    .category-filters {
        display: flex;
        flex-direction: column;  /* จัดเรียงแนวตั้ง */
        align-items: start;  /* จัดตรงกลาง */
        gap: 10px;  /* เพิ่มระยะห่างระหว่างปุ่ม */
    }
    .store-grid-2 {
        grid-template-columns: 3.5fr 1.5fr;
        align-items: start;
        max-width: 1200px;
        margin: auto;
        gap: 32px;
    }
    .store-all-product-grid-2 {
        grid-template-columns: 1fr 4fr;
        align-items: start;
        max-width: 1200px;
        margin: auto;
        gap: 32px;
        display: grid;
    }
}
.store-left-column {
    gap:24px;
    display:grid;
}

.store-grid-2 > div {
    width: 100%; /* ✅ ขยายเต็มพื้นที่ของ Grid Column */
}
.store-all-product-grid-2 > div {
    width: 100%; /* ✅ ขยายเต็มพื้นที่ของ Grid Column */
}

.store-wrapper{
    display:flex;
    align-items: center;
    flex-direction: column;
    max-width: 800px;  /* ✅ จำกัดขนาดสูงสุด แต่ให้ยืดหยุ่น */
    width: 100%;  /* ✅ ปรับขนาดอัตโนมัติ */
}
.store-progress-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    overflow-x: auto; /* ✅ ทำให้เลื่อนซ้ายขวาได้ถ้าจอเล็ก */
    white-space: nowrap;
}

/* ✅ Responsive: ปรับขนาดสำหรับมือถือ */
@media screen and (max-width: 768px) {
    .store-progress-step {
        min-width: 50px;
        font-size: 12px;
    }

    .store-progress-step .fa-solid {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .store-progress {
        height: 2px;
    }
}

.store-progress {
    position: absolute;
    top: 50%; /* ✅ จัดเส้นตรงกลาง */
    left: 5%; /* ✅ เริ่มเส้นจากขอบของไอคอนแรก */
    height: 3px;
    background-color: #809D3C;
    z-index: 1;
    width: calc(90% - 40px); /* ✅ ทำให้เส้นจบที่ขอบของไอคอนสุดท้าย */
    transform: translateY(-50%); /* ✅ จัดตำแหน่งให้ตรงกลาง */
    transition: width 0.5s ease-in-out;
}
/* ✅ กำหนด progress bar ตามสถานะ */
.store-progress-container[data-status="Processing"] .store-progress { width: 10%; }
.store-progress-container[data-status="Pending"] .store-progress { width: 20%; }
.store-progress-container[data-status="Paid"] .store-progress { width: 40%; }
.store-progress-container[data-status="Verified"] .store-progress { width: 60%; }
.store-progress-container[data-status="Shipping"] .store-progress { width: 80%; }
.store-progress-container[data-status="Delivered"] .store-progress { width: 100%; }

/* ✅ เส้น progress สีเขียว */
.store-progress-container .active ~ .store-progress {
    background-color: #809D3C;
}
/* ✅ ปรับให้ไอคอนที่ Active เปลี่ยนเป็นสีเขียว */
.store-progress-step.active .fa-solid {
    color: #809D3C;
    border-color: #809D3C;
}
/* ✅ ปรับให้ไอคอนทั้งหมดอยู่ระดับเดียวกัน */
.store-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.store-progress-step .fa-solid {
    color: grey;
    border: 2px solid grey;
    height: 40px; /* ✅ ลดขนาด icon */
    width: 40px;
    border-radius: 50%;
    font-size: 1rem;
    background-color: white;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container {
    display: flex;
    flex-direction: column; /* จัดเรียงแนวตั้ง */
    align-items: center; /* จัดให้เนื้อหาอยู่ตรงกลางในแนวแกน X */
    width: 100%;
    gap: 10px; /* เพิ่มระยะห่างระหว่าง <img> กับ <h2> */
}

.qr-container h2 {
    align-self: flex-end; /* จัดให้ <h2> อยู่ชิดขวา */
}
.store-cart-list {
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.store-summary-order {
    min-width: 294px;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}
.store-container-list-order {
    background: white;
    width:100%;
}
.store-container-all-card {
    background: white;
    border-radius: 6px;
}
.store-card-item-in-cart {
    gap: 18px;
    padding: 6px 8px;
    width: 100%;
    background: white;
    border-radius: 6px;
    display: flex;

}
.store-card-summary-order {
    padding: 6px 8px;
    width: 100%;
    background: white;
    border-radius: 6px;
    display: column;
    
}
@media screen and (max-width: 799px) {
    .store-all-product-grid-2 {
      display: block; /* หรือ flex-direction: column; */
      padding: 0 0px;
    }
  
    .store-summary-order {
      width: 100%;
      max-width: 100%;
      margin-bottom: 16px;
    }
  
    .product-container {
      width: 100%;
      
    }
  }
.store-qr-code-image {
    padding: 6px 8px;
    width: 100%;
    background: white;
    border-radius: 6px;
    display: column;
}
.store-qr-code-img {
    padding: 6px 8px;
    width: 100%;
    background: white;
    border-radius: 6px;
    display: column;
}
.store-row-summary-order {
    display:flex;
    width: 100%;
    justify-content: space-between;
    
}
.store-name-desc-div {
    margin-left: 10px;
}
.store-product-images {
    height: 80px;
    width: 80px;
    object-fit: contain;
}
.store-card-product-name {
    align-items: start;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50; /* สีเทาเข้ม */
    margin-bottom: 2px;
}
.store-name-desc-div p {
    font-size: 12px;
    margin: 0 0;
}
.star p {
    margin: 0 0;
    font-size: 12px;
    color: #A6B0BF;
}
.store-img-and-name {
    display: flex;
    width:300px;
}
.store-add-remove-delete-icon {
    display: flex;
    gap: 4px;
}
.store-unit-price {
    width: 112px;
    display: flex;
    align-items: center;  /* ✅ จัดให้อยู่กึ่งกลางแนวตั้ง (Y) */
    justify-content: center; /* ✅ จัดให้อยู่กึ่งกลางแนวนอน (X) */
    text-align: center;
}
.store-checkout-unit-price {
    width: 140px;
    display: flex;
    align-items: center;  /* ✅ จัดให้อยู่กึ่งกลางแนวตั้ง (Y) */
    justify-content: center; /* ✅ จัดให้อยู่กึ่งกลางแนวนอน (X) */
    text-align: center;
}
.store-checkout-unit-price {
    width: 160px;
    display: flex;
    align-items: center;  /* ✅ จัดให้อยู่กึ่งกลางแนวตั้ง (Y) */
    justify-content: center; /* ✅ จัดให้อยู่กึ่งกลางแนวนอน (X) */
    text-align: center;
}
.store-icon-delete {
    display:flex;
    align-items: center;
    color: #D92D20;
}
.store-container-icon-delete i {
    font-size: 20px; /* ✅ ปรับขนาดไอคอนเป็น 24px */
    color: #ff0000; /* 🎨 เปลี่ยนสีไอคอนเป็นสีแดง */
    cursor: pointer; /* 🔥 เปลี่ยนเป็นรูปมือเมื่อ hover */
}
.store-container-icon-delete {
    background: #F8E5E5;
    padding: 6px 6px;
    border: none;
    border-radius: 4px;
}
.store-unit-price p {
    font-size: 14px;
    margin: 0 0;
}
.store-flex-spacer {
    flex-grow: 1; /* ✅ ให้พื้นที่คั่นขยายออกเต็มที่ */
}

/* ✅ Layout เมื่อหน้าจอเล็กลง */
@media screen and (max-width: 600px) {
    .store-card-item-in-cart {
        gap: 4px;
        flex-direction: column; /* ✅ เรียงแนวตั้งเมื่อจอเล็ก */
        align-items: flex-start;
    }

    .store-flex-spacer {
        display: none; /* ❌ ซ่อนตัวดันเมื่อเป็นแนวตั้ง */
    }

    .store-unit-price {
        width: 100%; /* ✅ ทำให้ราคาขยายเต็มความกว้าง */
        justify-content: left;
    }
}
.hidden {
    display: none;  /* ซ่อนองค์ประกอบ */
}

.store-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-qty {
    width: 50px;
    height: 40px;
    font-size: 18px;

    
    text-align: center; /* จัดให้อยู่ตรงกลางแนวนอน */
    vertical-align: middle; /* จัดให้อยู่ตรงกลางแนวตั้ง */
    
    padding: 0;
    margin: 0;
    
    display: flex;
    align-items: center; /* ใช้ flexbox จัดให้อยู่กลาง */
    justify-content: center; /* ใช้ flexbox จัดให้อยู่กลาง */
    
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

/* ✅ ซ่อนลูกศรเพิ่ม-ลดของ Safari และ Chrome */
.item-qty::-webkit-inner-spin-button,
.item-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* CSS */
.button-29 {
  margin-top: 16px;
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #809D3C 0, #A9C46C 100%);
  border: 0;
  border-radius: 6px;
  box-shadow:   rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  width: 100%;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
}

.button-29:focus {
  box-shadow: #5D8736 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #5D8736 0 -3px 0 inset;
}

.button-29:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #5D8736 0 -3px 0 inset;
  transform: translateY(-2px);
}

.button-29:active {
  box-shadow: #5D8736 0 3px 7px inset;
  transform: translateY(2px);
}

.store-address-options {
    display:grid;
    gap: 8px;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.store-address-label {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 300;
    background-color: white;
}
.store-address-label:hover {
    background-color: #e0e0e0;
}

.store-address-label input {
    display: none; /* ✅ ซ่อน radio ปกติ */
}
.store-address-label input:checked + .custom-radio {
    background-color: #28a745;
    border-color: #28a745;
}

.store-address-label input:checked + .custom-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.store-address-label:has(input:checked) {
    border-color: #28a745;
    background-color: #e9f5e9;
}
.store-address-detail p {
    margin: 0 0;
}
.store-address-detail {
    display: column;
}
.upload-container {
    text-align: center;
    margin: 20px;
}

.upload-button,
.submit-button {
    width: 100%;
    max-width: 320px; /* ✅ เท่ากับรูปภาพหรือปุ่มลบ */
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    display: block;
    margin: 12px auto 0 auto;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-button {
    background-color: #007bff;
    color: white;
    border: none;
}

.submit-button {
    background-color: #28a745;
    color: white;
    border: none;
}

.submit-button.disabled-button {
    background-color: #ccc;
    cursor: not-allowed;
}

input[type="file"] {
    display: none; /* ซ่อน input file */
}

.image-preview {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;  /* ✅ จัดให้อยู่กึ่งกลางแนวนอน */
    gap: 12px;
    max-width: 320px;
  
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.delete-button {
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
}


/* 🔘 ปุ่มเลือกรูป */
#selectFileButton {
    background-color: #007bff;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin: 8px;
}
#selectFileButton:hover {
    background-color: #0056b3;
}

/* ✅ ปุ่มอัปโหลด */
#uploadButton {
    background-color: #28a745;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    margin: 8px;
}
#uploadButton:hover:enabled {
    background-color: #1e7e34;
}

/* ❌ ปุ่มอัปโหลด (ปิดอยู่) */
#uploadButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ❌ ปุ่มลบใน preview และของ slip */
.delete-button,
button[onclick="deleteImage()"] {
    background-color: #dc3545;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    border: none;
    cursor: pointer;

}
.delete-button:hover,
button[onclick="deleteImage()"]:hover {
    background-color: #a71d2a;
}
.full-width {
    width: 100%;
    display: block;
    margin-top: 10px;
    padding: 10px 0;
}
.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 320px;
    width: 100%;
    margin: auto;
}
.image-wrapper img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.image-wrapper .delete-button {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    box-sizing: border-box;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  @media screen and (max-width: 480px) {
    .social-buttons {
      flex-direction: column;
      align-items: flex-start;
    }
  }