* {
    direction: ltr;
    text-align: left;
}

.image-upload-box {
    border: 1px solid #bdc0c4;
    height: 120px;
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.image-upload-box:hover {
    border-color: #bdc0c4;
}

.image-upload-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 10px;
}

.upload-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    padding: 0.25rem 0.75rem;
    transition: opacity 0.3s;
    white-space: nowrap;
    font-size: 0.85rem;
}

.image-upload-box {
    position: relative;
    width: 100%;
    border: 1px dashed #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

/* แก้ไขส่วน CSS */
.preview-img {
    max-width: 100%;
    max-height: 200px;
    /* ลบ display: none ออก */
}

/* เพิ่มคลาสสำหรับรูปภาพที่ถูกซ่อน */
.preview-img.d-none {
    display: none !important;
}

/* รูปภาพที่แสดงอยู่แล้ว */
.preview-img:not(.d-none) {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(228, 78, 78, 0.85);
    border: none;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
    z-index: 10;
    display: none;
    /* ซ่อนไว้เริ่มต้น (ไม่ต้อง !important) */
}

.image-upload-box.has-image .remove-btn {
    display: block !important;
}

.bg-brown {
    background-color: #9c6b4f !important;
}

.bg-orange {
    background-color: #c2641e !important;
}

.slider-container {
    max-width: 250px;
    margin: auto;
    border-radius: 10px;
}

.slider-track {
    transition: transform 0.3s ease;
}

.slide-img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
}

.dot.active {
    background-color: gray;
}

.blue-font {
    color: #0e1f4a;
}

/* ภาพพืันหลัง */
.bg-custom {
    /* background-color: #e6d3f8; */
    position: relative;
    min-height: 100vh;
}

.bg-custom::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/img/product/pettag_more_1.jpg") center center /
        cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.bg-custom > * {
    position: relative;
    z-index: 1;
}

.font-orange {
    color: #f34100;
}

.line-responsive {
    line-height: 40px;
}

.otp-inputs input {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-right: 5px;
}
