/* Add CSS Here */

body, h1, h2, h3, h4, h5, h6, p, a, .section-title .subtitle, span, .theme-btn,
.table_page table thead tr th {
    font-family: Kanit, sans-serif !important;
}

main {
    margin-top: -20px !important;
}

.phone {
    color: #ffffff;
}

.circle-border {
    border: 2px solid #eed8cd !important;
}

.discounted-price, .best-seller-product-items-two .best-seller-product-items-two__details .best-seller-product-items-two__details--price .original-price {
    font-size: calc(var(--text-base) * 0.8);
    --tw-leading: calc(var(--spacing) * 6.5);
    line-height: calc(var(--spacing) * 6.5);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-4);
}

.jewelry-category-section .subtitle {
    margin-top: 50px;
}

.contact-info-area .contact-info-items .content h3 {
    font-size: var(--text-xl);
}

.single-sidebar-widget__shop-widget-categories input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: .5rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: .25rem;
    visibility: visible;
    opacity: inherit;
}

/* เพิ่ม CSS สำหรับสถานะ checked - สีแดงอ่อน */
.single-sidebar-widget__shop-widget-categories input[type=checkbox]:checked {
    background-color: #fee2e2; /* สีแดงอ่อน */
    border-color: #fca5a5; /* เส้นขอบสีแดงอ่อนเข้มขึ้นเล็กน้อย */
}

/* เพิ่มเครื่องหมายถูกสีแดงเมื่อถูกเลือก */
.single-sidebar-widget__shop-widget-categories input[type=checkbox]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-theme-8) !important;
    font-size: 0.75rem;
    font-weight: bold;
}

/* เพิ่มเอฟเฟกต์เมื่อ hover */
.single-sidebar-widget__shop-widget-categories input[type=checkbox]:hover {
    border-color: #fca5a5;
    background-color: #fef7f7; /* สีแดงอ่อนมากเมื่อ hover */
}

/* เปลี่ยนสีข้อความของหมวดหมู่ที่ถูกเลือกเป็นสีแดงอ่อน */
.single-sidebar-widget__shop-widget-categories input[type=checkbox]:checked + span {
    color: var(--color-theme-8) !important;
    font-weight: 500;
}

.main-sidebar-1 .single-sidebar-widget .single-sidebar-widget__shop-widget-categories ul li a:hover,
.single-sidebar-widget__shop-widget-categories span {
    cursor: pointer;
}

.text-theme-1,
.breadcumb-wrapper li:last-child,
.text-orange-500,
.best-seller-product-items-two .best-seller-product-items-two__details .best-seller-product-items-two__details--price .offer-price,
.footer-widgets-wrapper .single-footer-widget .list-area li:hover a.style1, .text-theme, .header-menu a:hover {
    color: var(--color-theme-8) !important;
}

.best-seller-product-items-two .best-seller-product-items-two__badge1,
.back-to-top,
.footer-widgets-wrapper .single-footer-widget .footer-content .footer-input .newsletter-btn,
.footer-widgets-wrapper .single-footer-widget .widget-head h3.style1:before,
:is(.icon-box2 a,.icon-box2 button):hover,
#prev-btn, #next-btn,
.theme-btn, .menu-item .sub-menu-2 ul li a:hover, .hover\:bg-theme-1\/90,
.contact-section-wrapper .contact-info .contact-info__contact,
.blog_card_two .blog_card_two__content {
    background-color: var(--color-theme-8) !important;
}

.menu-item .sub-menu-2 {
    border-top-color: var(--color-theme-8) !important;
}

.border-l-theme {
    border-left-color: var(--color-theme-8) !important;
}

.menu-item .sub-menu-2 ul li a:hover {
    color: var(--color-white) !important;
}

#prev-btn:hover, #next-btn:hover {
    background-color: var(--color-theme-6) !important;
}

input[type=range]::-webkit-slider-thumb {
    border-color: var(--color-theme-8) !important;
}

.snap-center {
    scroll-snap-align: center;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.object-cover {
    -o-object-fit: cover;
    object-fit: cover;
}

.hover\:bg-gray-600 {
    --tw-bg-opacity: 1;
    background-color: var(--color-theme-6) !important;
}

.hover\:bg-gray-600:hover {
    --tw-bg-opacity: 1;
    background-color: var(--color-theme-8) !important;
}

.left-0 {
    left: 0;
}

.z-10 {
    z-index: 10;
}

.top-1\/2 {
    top: 50%;
}

.right-0 {
    right: 0;
}

img.cursor-pointer:hover {
    opacity: .8;
}

.max-w-full {
    max-width: 100%;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.opacity-0 {
    opacity: 0;
}

.bg-black {
    --tw-bg-opacity: 1;
    background-color: rgb(1 7 23 / var(--tw-bg-opacity));
}

.z-50 {
    z-index: 9999;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.fixed {
    position: fixed;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.duration-500 {
    transition-duration: .5s;
}

.duration-300 {
    transition-duration: .3s;
}

.text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 6rem;
    line-height: 2.25rem;
}

.opacity-100 {
    opacity: 1;
}

.w-8 {
    width: 4rem;
}

.h-8 {
    height: 4rem;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
}

.shop-details.style2 .product-big-img {
    padding-top: 0;
}

.shop-details.style2 .product-description, .terms-conditions {
    padding-top: 20px;
    margin-top: 20px;
}

.shop-details.style2 .product-about .credit-cards h6 {
    font-size: var(--text-2xl);
    top: -20px;
}

.product-price .original-price {
    font-size: calc(var(--text-base) * 0.8);
    --tw-leading: calc(var(--spacing) * 6.5);
    line-height: calc(var(--spacing) * 6.5);
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-4);
    text-decoration-line: line-through;
}

.shop-details.style2 .product-about .rating .color-text {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
}

.font-bold {
    font-weight: 700 !important;
}

.menu-item .sub-menu-2 {
    width: 420px;
}

.shop-details.style2 .product-big-img {
    text-align: center;
    background-color: #fff5f4;
    border-radius: 20px;
    justify-content: center;
    display: flex;
}

.h-12 {
    width: 2rem;
}

.w-12 {
    width: 2rem;
}

#cart-drawer span {
    font-size: .9rem;
}

.pb-1 {
    padding-bottom: calc(var(--spacing) * 1);
}

#menu-openDrawer {
    padding-left: calc(var(--spacing) * 5);
}

.w-16 {
    width: 8rem;
}

.h-16 {
    height: 8rem;
}

.w-96 {
    width: 24rem;
}

.top-full {
    top: 100%;
}

:is(input,textarea):focus {
    --tw-ring-color: #ffa31a !important;
}

.bg-white\/90 {
    background-color: #ffffffe6;
}

.border-gray-200 {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.rounded-xl {
    border-radius: .75rem;
}

.z-1 {
    z-index: 99999;
}

.overflow-y-auto {
    overflow-y: auto;
}

.max-h-96 {
    max-height: 24rem;
}

header {
    position: relative; /* สถานะปกติ */
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease; /* transition ที่ลื่นไหล */
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* ตัวอย่างเงา */
}


/* Toast Section Styles */

.toast {
    position: fixed;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.toast-top {
    top: 1rem;
    z-index: 99999;
    right: 0
}

.toast-bottom {
    bottom: 1rem;
}

.toast-start {
    left: 1rem;
}

.toast-end {
    right: 1rem;
}

.alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fefce8;
    color: #a16207;
    border: 1px solid #fef08a;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* End Toast Section Styles */

button.btn {
    padding-inline: unset;
}

.actions button.btn {
    padding-inline: calc(var(--spacing) * 7);
}

#cart-drawer a:hover {
    color: #2b3440;
}

.theme-btn.style6:before {
    background: var(--color-theme);
}

.register-wrapper .auth-contact-info-area .contact-content .contact-form-items .form-clt input, .register-wrapper .auth-contact-info-area .contact-content .contact-form-items .form-clt textarea,
.login-wrapper .auth-contact-info-area .contact-content .contact-form-items .form-clt input, .login-wrapper .auth-contact-info-area .contact-content .contact-form-items .form-clt textarea {
    background-color: white;
}

.text-base-100 {
    color: white;
}

a:hover, .text-base-100:hover, .text-gray-dark:hover {
    color: var(--color-theme-8);
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

[type=text], input:where(:not([type])), [type=email], [type=url], [type=password], [type=number], [type=date], [type=datetime-local], [type=month], [type=search], [type=tel], [type=time], [type=week], [multiple], textarea, select {
    appearance: none;
    border-color: oklch(.551 .027 264.364);
    --tw-shadow: 0 0 #0000;
    background-color: #fff;
    border-width: 1px;
    border-radius: 0;
    padding: .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

button:disabled {
    cursor: not-allowed;
}

.woocommerce-Price-amount.amount {
    font-size: 1rem;
}

.right-10 {
    right: 200px;
    margin-top: 20px;
}

.file-selector-button {
    font-size: 0.875rem;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 9999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-selector-button::file-selector-button {
    margin-right: 1rem;         /* mr-4 */
    padding: 0.5rem 1rem;       /* py-2 px-4 */
    border: 0;                  /* border-0 */
    border-radius: 9999px;      /* rounded-full */
    font-size: 1.2rem;        /* text-sm */
    font-weight: 600;           /* font-semibold */
    background-color: #dbeafe;  /* bg-blue-50 */
    color: #1d4ed8;             /* text-blue-700 */
    cursor: pointer;
    transition: background-color 0.2s;
}

.file-selector-button:hover::file-selector-button {
    background-color: #9cb6d8;  /* hover:bg-blue-100 */
}

.payment_upload_slip label {
    font-size: 1.2rem; /* text-sm */
}

.input-group-inline {
    display: flex;
    align-items: center;
    gap: 12px; /* ช่องว่างระหว่าง label กับ input */
    margin-bottom: 1rem;
}

.text-red-800 {
    color: var(--color-theme-5);
}

.text-green-800 {
    color: #166534 !important;
}

.text-gray-600 {
    color: #d6ac00 !important;
}

.order_history h2.font-semibold {
    color: var(--color-theme-5);
}

.mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
}

.usage h2.text-lg {
    color: var(--color-theme-8);
}

.blog_card_two .blog_card_two__content a:hover{
    color: var(--color-theme-6) !important;
}


/* Sub-Category */

.sub-category {
    display: block!important;
}

/* End Sub-Category */

.best-seller-product-items-two__details {
    text-align: center;
}

.sub_description .color-text {
    color: #ffb22c;
}

.best-seller-product-items-two .best-seller-product-items-two__content {
    display: block;
}

.upline {
    position: fixed;
    bottom: 2px;
    right: 5px;
    z-index: 9999999999999999999;
}

.upline img {
    border-radius: 5px;
}


/* Responsive styles */

@media (min-width: 1024px) {

    /* CSS rules for desktop layouts */
    .hero-5 .hero-content {
        padding-top: 100px;
    }

}

@media (max-width: 1023px) {

    .product-about {
        margin-top: 50px;
    }

}

@media (max-width: 550px) {

    .h-8 {
        height: 2.5rem;
    }

    .w-8 {
        width: 2.5rem;
    }

    .search-wrapper .right-0 {
        right: -94px;
    }

    .w-96 {
        width: 20rem;
    }

    h2 {
        font-size: var(--text-2xl);
    }

}







