﻿
/* Style the container */
.select-container {
    position: relative;
    max-width: 400px;
    font-family: Arial, sans-serif;
}

/* Style the dropdown and search input */
.custom-select {
    display: block;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Style the dropdown options */
.dropdown {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
    display: none;
    z-index: 1000;
}

.dropdown div {
    padding: 10px;
    cursor: pointer;
}

.dropdown div:hover {
    background-color: #f1f1f1;
}


/* Hide the default browser increment and decrement controls */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* hide default */
.goto-filter{
    display:none;
}


/* Mobile styles */
@media only screen and (max-width: 768px) {
    .goto-filter {
        display: block;
    }
}



@media (min-width: 370px) and (max-width: 767.98px) {
    .product-item {
        height: 460px;
    }
}
@media (min-width: 768px) and (max-width: 1399.98px) {
    .product-item {
        height: 340px;
    }
}
@media (min-width: 1400px) and (max-width: 1920.98px) {
    .product-item {
        height: 460px;
    }
}
@media (min-width: 1921px) and (max-width: 3023.98) {
    .product-item {
        height: 580px;
    }
}
@media (min-width: 3024px) {
    .product-item {
        height: 800px;
    }
}

.li-filter {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

/* For Thumbnal image*/
.snake-container {
    position: relative;
    width: 100%;
    max-width: 468px; /*เท่ากับขนาดภาพ*/
}
.snake-label {
    position: absolute;
    bottom: 10px; /* ระยะจากขอบล่าง */
    left: 10px; /* ระยะจากขอบซ้าย */
    font-weight: bold;
    padding: 2px 8px; /* เล็กลงตามภาพ */
    border-radius: 12px;
    font-size: 14px; /* ปรับขนาดเล็กลง */
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1;
}

/* For Raw image*/
.snake-detail-container {
    position: relative;
    width: 100%;
}
.snake-detail-label {
    position: absolute;
    bottom: 10px; /* ระยะจากขอบล่าง */
    left: 10px; /* ระยะจากขอบซ้าย */
    font-weight: bold;
    padding: 2px 8px; /* เล็กลงตามภาพ */
    border-radius: 12px;
    /*font-size: 12px;*/ /* ปรับขนาดเล็กลง */
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1;
}

.snake-image {
    width: 100%;
    height: auto;
    display: block;
}

.sold-style {
    background: rgb(199, 0, 57);
    color: white;
}
.sale-style {
    background: rgb(255, 87, 51);
    color: white;
}
.onhold-style {
    background: rgba(255, 195, 0);
    color: white;
}
.holdback-style {
    background: rgb(171 152 127);
    color: white;
}