:root {
  --primary-color: #1A3A65;
  --secondary-color: #9ECFF3;
  --accent-color: #E53935;
  --green-color: #4CAF50;
  --body-color: #ECECEC;
  --primary-font: "Noto Sans Thai", Sans-serif;
}

.dcmrkt_header_search_bar_btn{ 
    cursor: pointer;
    /*display: flex;*/
    position: absolute;
    /*justify-content: center;*/
    /*align-items: center;*/
    right: 4px;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 1px solid #fff;
    outline: 1px solid #fff;
}
.dcmrkt_header_search_bar_btn:hover{
    background-color: var(--primary-color) !important;
}

#sp-wqv-view-button.sp-wqv-view-button.button{
    display: flex !important;
}

#wqv-quick-view-content{
    padding: 20px;
}

.wqv-product-info{
    padding: 0px !important;
}

/*#wqv-quick-view-content .wqv-product-info a.added_to_cart{
    margin-top: 10px;
}
*/
#wqv-quick-view-content .wqv-product-info .product_title{
    display: block !important;
}

.dcmrkt_header_search_bar_btn svg{
    margin-left: -9px;
    margin-top: -1px;
}
.dcmrkt_header_search_bar_input{
    background-color: #fff !important;
    display: block;
    width: 100%;
    height: 40px;
    padding-left: 1rem !important;
    padding-right: 2.2rem !important;
    font-size: 14px;
    color: #222 !important;
    text-align: left;
    border: none;
    outline: none;
    border-radius: 25px !important;
    font-family: var(--primary-font);
}
.dcmrkt_header_search_bar_container{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

/* Live search css */
/* Results Container */
.dcmrkt_search_results_wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 450px;
    overflow-y: auto;
    display: none; /* Hidden until search */
}

/* Individual Item */
.dcmrkt_search_item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    font-family: var(--primary-font);
}

.dcmrkt_search_item:last-child { border-bottom: none; }
.dcmrkt_search_item:hover { background-color: #f8faff; }

.dcmrkt_search_img img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.dcmrkt_search_details {
    display: flex;
    flex-direction: column;
}

.dcmrkt_search_title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 2px;
    font-family: var(--primary-font);
}

.dcmrkt_search_price {
    font-size: 13px;
    color: #666;
    font-family: var(--primary-font);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 0px;
    font-family: var(--primary-font);
}

/* Cart icon css */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ff2d2d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--primary-font);
}

#my-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
}

#my-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: .3s;
    display: flex;
    flex-direction: column;
}

body.mini-cart-open #my-mini-cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.mini-cart-open #my-mini-cart-drawer {
    right: 0;
}

.mini-cart-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--green-color);
    color: #fff;
}

.mini-cart-header h3{
    margin: 0px;
    font-family: var(--primary-font);
}

.mini-cart-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* ===== MINI CART ITEM LAYOUT ===== */

.mini-cart-content .woocommerce-mini-cart-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 0 !important;
    border-bottom: 1px solid #eee;
    align-items: center;
    font-family: var(--primary-font);
}

/* wrapper that holds image + text */
.mini-cart-content .woocommerce-mini-cart-item > a:not(.remove) {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: #111;
    flex: 1;
    align-items: flex-start;
}

/* ===== BIGGER PRODUCT IMAGE ===== */

.mini-cart-content .woocommerce-mini-cart-item img {
    width: 80px !important;           /* 🔥 increased */
    height: 80px !important;          /* 🔥 increased */
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ===== TEXT WRAPPER ===== */

.mini-cart-content .woocommerce-mini-cart-item a:not(.remove) {
    display: flex;
    flex-direction: column;   /* ⭐ IMPORTANT */
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    font-family: var(--primary-font);
}

.woocommerce a.remove:hover{
    background: black;
}

/* ===== QUANTITY UNDER TITLE ===== */

.mini-cart-content .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 6px;          /* spacing under title */
    font-weight: 500;
    font-family: var(--primary-font);
}

/* ===== SUBTOTAL ===== */

.mini-cart-content .woocommerce-mini-cart__total {
    padding: 18px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    font-family: var(--primary-font);
}

/* ===== BUTTONS ===== */

.mini-cart-content .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
}

.mini-cart-content .woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff !important;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: .25s;
    font-family: var(--primary-font);
    font-size: 16px;
}

.mini-cart-content .woocommerce-mini-cart__buttons .button:hover {
    background: #222;
}

.header-menu-btns .elementor-button-icon svg{
    width: 24px !important;
}

.header-menu-btns a span{
    align-items: center;
    padding-top: 3px;
}

.mini-cart-content ul{
    padding-left: 0px;
}

.mini-remove a{
    text-decoration: none;
}

.mini-title{
    color: black;
    text-decoration: none;
}

/* MAIN CONTAINER */
.dcmrkt_mini_cart_container {
    display: flex;
    flex-direction: column;
    max-height: 500px; /* Adjust this value to fit your design */
    height: 100%;
}

/* ITEMS — scrollable area */
.dcmrkt_mini_cart_items_container {
    flex: 1; /* Grows to fill space, pushes totals to bottom */
    overflow-y: auto;
}

/* TOTALS — always visible bottom */
.dcmrkt_mini_cart_totals_container {
    background: #fff; /* Ensures items don't bleed behind it */
    padding-top: 15px;
}

#my-mini-cart-drawer {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.mini-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dcmrkt_mini_cart_items_container,
.mini-cart-content {
    scrollbar-width: thin;
}

.dcmrkt_home_slider .slick-list,
.dcmrkt_home_slider .slick-track {
    height: 385px !important;
}

/*.dcmrkt_cat_container{
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}*/

.dcmrkt_cat_card{
    width: 81px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dcmrkt_cat_card img{
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.dcmrkt_cat_card p{
    font-family: var(--primary-font);
    font-size: 14px;
    color: #000000;
    text-align: center;
    margin: 0;
    padding: 0;
}

.dcmrkt-cat-slider .dcmrkt_cat_card p{
    margin-top: 10px;
}

.dcmrkt_cat_specific_card{
    background: black;
    padding: 10px 5px;
    border-radius: 8px;
    width: 100px;
    text-align: center;
}

.dcmrkt_cat_specific_card p{
    color: #fff;
    margin-top: 5px !important;
}

.dcmrkt_cat_specific_card img{
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
}

/* Ensure the container doesn't hide the slides if they overflow */
.dcmrkt-cat-slider {
    width: 100%;
    display: block;
}

/* Force the track to use Flexbox so all slides stretch to the same height */
.dcmrkt-cat-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

/* Force exact width on your specific cards */
.dcmrkt-cat-slider .dcmrkt_cat_specific_card {
    width: 90px !important; /* Your exact width */
    margin-right: 10px;      /* Optional: space between slides */
    height: auto;            /* Allows flex stretch to work */
    display: flex !important;
    flex-direction: column;
}

/* Ensure cards don't shrink */
/*.splide__slide {
    width: auto;
    display: flex;
    align-items: center;
}*/

/* Remove default list styling from Splide */
/*.splide__list {
    display: flex !important;
    padding: 0;
    margin: 0;
    list-style: none;
}*/

/* Ensure the link inside fills the whole card height */
.dcmrkt_cat_specific_card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
}

.dcmrkt_home_mob_cat_slider h3{
    display: none;
}

.dcmrkt_cat_card a,
.dcmrkt-cp-content a,
.dcmrkt-see-all,
.dcmrkt-select-options-btn{
    text-decoration: none !important;
}

.dcmrkt-custom-product-item{
    width: 190px;
    border-radius: 20px;
    background: #fff;
    padding: 10px;
}

/*.dcmrkt_brand_card {
    width: 50px !important;
    height: 50px !important;
    border-radius: 20px;
    background: #fff;
    padding: 10px;
}*/

.dcmrkt-cp-content a{
    font-size: 14px;
    font-family: var(--font-primary);
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
    margin-bottom: 5px;
}

.dcmrkt-cp-content p{
    font-size: 18px;
    font-family: var(--font-primary);
    color: var(--accent-color);
    font-weight: 700;
}


.dcmrkt-cp-footer{
    display: flex;
    gap: 10px;
}

.dcmrkt-cp-top{
    position: relative;
}

.dcmrkt-cp-footer img{
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dcmrkt_circle_addtocart_btn{
    border-radius: 100%;
    height: 40px;
    width: 40px;
    text-align: center;
    border: none;
    background: var(--green-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0px;
    bottom: 5px;
}

/* Loader overlay for add to cart button */
/*.dcmrkt_circle_addtocart_btn {
    position: relative;
}
*/
.dcmrkt_circle_addtocart_btn .dcmrkt-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top: 2px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    animation: dcmrkt-spin 0.8s linear infinite;
    display: none; /* hidden by default */
}

.dcmrkt-cp-top .added_to_cart {
    display: none !important;
}

@keyframes dcmrkt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dcmrkt_circle_addtocart_btn:hover{
    background: var(--green-color);
}

.dcmrkt-see-all{
    font-family: var(--primary-font);
    font-size: 16px;
    color: #000000;
    display: flex;
    gap: 10px;
}

.dcmrkt_products__seemore{
    width: 22px;
    height: 22px;
    border-radius: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dcmrkt_products__seemore svg{
    width: 14px;
    height: 14px;
}

.dcmrkt-common-prod-slider li{
    list-style: none;
}

.dcmrkt-banner-slider {
    width: 100%;
}


.dcmrkt-banner-slider .slick-dots,
.dcmrkt-common-prod-slider .slick-dots {
    bottom: 1px;
    display: flex !important;
    padding-left: 0px;
    justify-content: center;
}

.dcmrkt-common-prod-slider .slick-dots{
    bottom: -40px;
}

/* kill slick default arrow icons */
.dcmrkt-common-prod-slider .slick-prev:before,
.dcmrkt-common-prod-slider .slick-next:before {
    content: '' !important;
}

.dcmrkt-arrow {
    width: 44px !important;
    height: 44px !important;
    background-color: var(--secondary-color) !important;
    border-radius: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: none !important;
    cursor: pointer;
    z-index: 10;
}

.dcmrkt-arrow svg {
    width: 30px;
    height: 30px;
}

.dcmrkt-arrow:hover {
    background: #9ECFF3;
}

/* positioning */
.dcmrkt-arrow-prev {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.dcmrkt-arrow-next {
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
}

.dcmrkt-banner-slider .slick-dots li button,
.dcmrkt-common-prod-slider .slick-dots li button {
    font-size: 0;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    background: var(--secondary-color);
    border: none;
    padding: 0;
}

.dcmrkt-banner-slider .slick-dots li.slick-active button,
.dcmrkt-common-prod-slider .slick-dots li.slick-active button {
    background: var(--primary-color);
}

.dcmrkt-banner-slider .slick-track,
.dcmrkt-common-prod-slider .slick-track{
    margin-left: 0px;
    margin-right: 0px;
}

.dcmrkt-banner-slider .slick-track li,
.dcmrkt-common-prod-slider .slick-track li{
    width: 210px !important;
}

.dcmrkt-banner-slider .slick-dots li button:before,
.dcmrkt-common-prod-slider .slick-dots li button:before{
    opacity: 0 !important;
}

.dcmrkt-wishlist-prod-btn{
    padding: 10px 20px; 
    display: flex;
    align-items: center;
    border-radius: 10px;
    font-family: var(--primary-font);
    font-size: 14px;
    background: var(--secondary-color);
    color: #fff;
    margin-top: 10px;
    font-weight: 700;
}

.dcmrkt-wishlist-prod-btn .tinvwl_add_to_wishlist-text{
    margin-left: 5px;
}

.dcmrkt-wishlist-prod-btn:hover{
    color: #fff;
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before, .woocommerce ul.products li.product a.tinvwl-button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart:before, .woocommerce-page ul.products li.product a.tinvwl-button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button:before, a.wishlist_products_counter.top_wishlist-heart:before, span.wishlist_products_counter.top_wishlist-heart:before, a.sidr-class-wishlist_products_counter.sidr-class-top_wishlist-heart:before{
    margin-right: 0px !important;
    font-size: 24px !important;
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before, .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before{
    color: #fff;
}

.dcmrkt_wishlist_loop_icon_container,
.dcmrkt_after_shop_loop_item_container .sp-wqv-view-button{
    position: absolute !important;
    right: 0 !important;
    bottom: 50px !important;
    background: var(--secondary-color) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 100% !important;
}

.dcmrkt_after_shop_loop_item_container .sp-wqv-view-button{
    bottom: 95px !important;
    color: #fff !important;
    background: var(--primary-color) !important;
    margin-left: 0px !important;
}

.dcmrkt_after_shop_loop_item_container .sp-wqv-view-button i{
    margin-right: 0px !important;
}

.dcmrkt-cp-top img {
    width: 168px;
    height: 168px;
    object-fit: contain; /* prevents stretching */
    display: block;
    margin: 0 auto;
}

.dcmrkt-cp-bottom{
    padding-top: 20px;
}

.mini-remove a.remove{
    display: block !important;
    height: 30px !important;
    color: #fff !important;
    width: 30px !important;
    font-size: 24px !important;
    padding-top: 3px !important;
    font-family: var(--primary-font) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 100% !important;
    background-color: var(--accent-color);
}

.mini-remove a.remove:hover{
    color: #fff !important;
    background-color: var(--accent-color) !important;
}

.dcmrkt-select-options-btn {
    display: flex;
    width: 100%;
    display: block;
    position: absolute;
    bottom: 6px;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--green-color);
    color: #fff;
}

.dcmrkt-select-options-btn:hover{
    color: #fff;
}

ul.psfw-social-icons{
    margin: 0px !important;
}

.dcmrkt_coupon_card,
.dcmrkt_brand_card,
.dcmrkt_coupon_card_slider {
  background: #fff;
  width: 100%;
  border: 1px dashed #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.dcmrkt_coupon_card_slider{
    width: 190px;
}

.dcmrkt-deals-page-wrapper .dcmrkt-custom-product-item{
    width: 100%;
}

.dcmrkt_brand_card{
    border: 1px solid #ddd;
}

.dcmrkt_brand_card a img{
    width: 190px !important;
}

.dcmrkt-cp-top{
    position: relative;
}

.dcmrkt-all-brands-container{
    display: flex;
    justify-content: space-between;
}

.dcmrkt-prod-discount-badge{
    width: 50px;
    padding: 5px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    position: absolute;
    top: 5px;
    left: -10px;
    font-family: var(--primary-font);
    color: #fff;
    background: var(--accent-color);
}

.dcmrkt_brand_card {
  width: 100px;
}

.dcmrkt-common-prod-slider .dcmrkt_coupon_card,
.dcmrkt_brand_card, .dcmrkt_coupon_card_slider {
  margin-right: 20px;
}

.dcmrkt_coupon_code {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dcmrkt_coupon_discount {
  color: #e63946;
  font-weight: 600;
}

#dcmrkt-ajax-loader{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dcmrkt-loader-spinner{
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: dcmrktSpin 0.8s linear infinite;
}

@keyframes dcmrktSpin{
    to{ transform: rotate(360deg); }
}

.dcmrkt-timer-container { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-weight: bold; 
}
.timer-box { 
    background-color: var(--accent-color); 
    color: white; 
    padding: 5px 10px; 
    border-radius: 4px; 
    min-width: 45px; 
    text-align: center; 
    font-size: 16px; 
}
.timer-separator { 
    font-weight: bold; 
    font-size: 18px; 
    color: #333; 
}

.dcmrkt-related-products-slider-wrapper{
    padding-top: 50px;
    font-family: var(--primary-font);
    margin-bottom:40px;
}

.dcmrkt-related-header{
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    margin-bottom:10px;
    gap: 10px;
    flex-wrap: wrap;
}

.dcmrkt-brands-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-top: 20px;
}
.dcmrkt-brand-item img { 
    width: 104px; 
    height: 104px; 
    object-fit: cover; 
    border: 1px solid #eee; 
    border-radius: 10px;
    padding: 5px;
}

.dcmrkt-deals-page-wrapper ul,
.dcmrkt-coupon-container{
    padding-left: 0px;
    display: grid;
    /*grid-template-columns: repeat(5, 190px);*/
    /*justify-content: space-between;*/
    /*row-gap: 30px;*/
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.dcmrkt_cat_container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 30px;
}

.dcmrkt-deals-page-wrapper ul li{
    list-style: none;
}

ul.products li.product .tinvwl_add_to_wishlist_button{
    margin-top: 0px;
}

.dcmrkt-category-header{
    display:flex; 
    justify-content:space-between; 
    align-items:center; 
    margin-bottom:10px;
}

#dcmrkt_header_overlay{
    position: fixed;
    inset: 0;
    top: 171px;
    background-color: rgba(0,0,0,.5);
    z-index: 9998;
    display: none;
}
body.dcmrkt-menu-open{
    overflow: hidden;
}

/* Changes css for mega menu */
.dcmrkt-menu-wrapper { 
    position: relative; 
    width: 280px; 
    font-family: var(--primary-font); 
}

/* The container for each level */
.dcmrkt-menu-level {
    position: absolute;
    top: 173px;
    left: 110px; 
    width: 280px;
    max-height: 280px;
    background: #fff;
    border: 1px solid #eee;
    z-index: 9999;
    display: none;
    box-sizing: border-box;
    /* Do not use overflow here */
}

.logged-in .dcmrkt-menu-level {
    top: 141px;
}

/* The actual list that scrolls - Static positioning is key to breakout */
.dcmrkt-menu-level ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    max-height: 278px; 
    overflow-y: auto; 
    overflow-x: hidden;
    position: static; 
}

/* The sub-menus - Corrected alignment and breakout logic */
.dcmrkt-level-2, .dcmrkt-level-3, .dcmrkt-level-4 {
    /* Since the parent LI is static, 100% left refers to the .dcmrkt-menu-level width */
    left: 100% !important; 
    top: -1px !important;
    height: calc(100% + 2px);
    z-index: 10000;
    position: absolute;
    overflow: visible !important;
}

.dcmrkt-menu-level.active { display: block; }

.dcmrkt-menu-level li {
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: static; /* This allows sub-menus to ignore the UL scrollbar */
}

.dcmrkt-mega-menu-item-link {
    padding: 10px;
    text-decoration: none !important;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.dcmrkt-menu-level li:hover { background: #f5f5f5; }

.dcmrkt-left-side-mega-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dcmrkt-mega-menu-cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.dcmrkt-mega-menu-cat-name {
    margin-bottom: 0px;
    margin-top: 0px;
}

.dcmrkt-menu-level li img { 
    width: 24px; 
    height: 24px; 
    object-fit: cover; 
    flex-shrink: 0;
}

#dcmrkt_header_overlay {
    position: fixed;
    inset: 0;
    top: 173px;
    background-color: rgba(0,0,0,.5);
    z-index: 9998;
    display: none;
}

body.dcmrkt-menu-open { 
    overflow: hidden; 
}

.dcmrkt-mega-menu-cat-name{
    margin-bottom: 0px;
}

.dcmrkt-card-title-two{
    margin-bottom: 0px;
    margin-top: 0px !important;
    padding: 0px !important;
}

.dcmrkt-card-date,
.dcmrkt-card-excerpt{
    color: #000000;
    padding: 15px 0px;
}

.dcmrkt-taxonomy-title{
    text-align: center;
}

.dcmrkt-search-card-two{
    text-align: left !important;
}

.header_wishlist_counter a{
    padding: 0px 15px;
    font-size: 16px;
    font-family: 'Noto Sans Thai';
    font-weight: 700;
    color: #fff !important;
    display: flex;
    gap: 5px;
}


/* ================= OVERLAY ================= */
.dcmrkt-drawer-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}
.dcmrkt-drawer-overlay.active{
    opacity: 1;
    visibility: visible;
}

/* ================= DRAWER ================= */
.dcmrkt-drawer{
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 90%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}
.dcmrkt-drawer.active{
    transform: translateX(0);
}

/* ================= HEADER ================= */
.dcmrkt-drawer-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0px 16px;
    border-bottom:1px solid #eee;
    font-family: var(--primary-font);
}
.dcmrkt-drawer-close,
.mini-cart-close{
    cursor:pointer;
    font-size:22px;
    color: #fff;
    font-family: var(--primary-font);
}

/* ================= BODY ================= */
.dcmrkt-drawer-body{
    overflow-y:auto;
    flex:1;
    font-family: var(--primary-font);
}

/* ================= MENU STYLE (MATCH MEGA) ================= */

.dcmrkt-mobile-menu,
.dcmrkt-mobile-menu ul{
    list-style:none;
    margin:0;
    padding:0;
}

.dcmrkt-mobile-menu li{
    border-bottom:1px solid #eee;
}

/* main row */
.dcmrkt-mobile-menu a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 14px;
    text-decoration:none !important;
    color:#000 !important;
    font-size:14px;
}

.dcmrkt-mobile-menu a:hover{
    background:#f5f5f5;
}

/* arrow */
.dcmrkt-sub-toggle{
    margin-left:auto;
    transition:.25s ease;
    font-size:18px;
}

/* rotate when open */
.menu-item-open > a .dcmrkt-sub-toggle{
    transform:rotate(90deg);
}

/* ================= SUBMENU ================= */

.dcmrkt-mobile-menu .sub-menu{
    display:none;
    background:#fafafa;
}

.dcmrkt-mobile-menu .menu-item-open > .sub-menu{
    display:block;
}

/* indent submenu */
.dcmrkt-mobile-menu .sub-menu a{
    padding-left:28px;
}

/* ================= BODY LOCK ================= */
body.dcmrkt-drawer-open{
    overflow:hidden;
}

.dcmrkt-drawer-logo a{
    display: block;
    margin-bottom: -7px;
    margin-left: -12px;
}

.dcmrkt-drawer-header img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.dcmrkt-drawer-header{
    background: var(--green-color);
}

.dcmrkt-related-header h3,
.dcmrkt-category-header h3{
    font-size: 22px;
    margin: 0px;
}

.dcmrkt-deals-header{
    display:flex; justify-content:space-between; align-items:center; margin-bottom:30px;
    flex-wrap: wrap;
}

.dcmrkt-shop-layout{
    display:flex;
    gap:24px;
    padding-bottom: 40px;
}

body .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-submit-button{
    color: #fff !important;
}

.dcmrkt-shop-sidebar{
    width:260px;
    flex-shrink:0;
    max-height: 450px;
    overflow-y: scroll;
    scrollbar-width: thin;
    border-right:1px solid #eee;
    padding-right:15px;
}

/*.woocommerce nav.woocommerce-pagination ul li{
    border-color: #eee !important;
}*/
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a{
    padding: 12px 15px !important;
    margin-right: 10px;
    color: #000000 !important;
    border-radius: 4px;
}
.woocommerce nav.woocommerce-pagination ul li a{
    border: 1px solid #ddd !important;
}
.woocommerce nav.woocommerce-pagination ul{
    border: unset !important;
}
.woocommerce nav.woocommerce-pagination ul li{
    border-right: unset !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.woocommerce-products-header__title{
    margin-top: 0px !important;
    /*padding-top: 30px;*/
    margin-bottom: 30px;
}

.dcmrkt-shop-products .dcmrkt-custom-product-item{
    width: 250px;
}

.dcmrkt-shop-products{
    flex:1;
    min-width:0;
}

.dcmrkt-tax-list{
    list-style:none;
    margin:0;
    padding:0;
}

.dcmrkt-tax-list li{
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
    justify-content: space-between;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dcmrkt-tax-list li a{
    display:block;
    padding: 10px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: #fff !important;
    width: 100%;
    background: var(--primary-color);
}

.dcmrkt-tax-item img{
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.dcmrkt-tax-left{
    display: flex;
    gap: 10px;
    align-items: center;
}

.dcmrkt-tax-arrow{
    display: flex;
    align-items: center;
}

.dcmrkt-tax-list li.active a{
    background: var(--green-color);
    color: #fff;
    font-weight:600;
}

.dcmrkt-tax-list li a:hover{
    background: var(--secondary-color);
}

.dcmrkt_after_shop_loop_item_container .add_to_cart_button{
    display: none !important;
}

select.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 10px 45px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;

    /* SVG arrow (white) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

select.orderby::-ms-expand {
    display: none;
}

.tax-product_tag .content-area,
.tax-product_cat .content-area,
.post-type-archive .content-area,
.tax-product_brand .content-area{
    background-color: var(--body-color);
    font-family: var(--primary-font) !important;
}

.post-type-archive .dcmrkt-shop-sidebar{
    max-height: 100%;
    overflow-y: unset;
}

.dcmrkt-shop-sidebar .widget_wpc_filters_widget{
    background: #FAFAFA;
    border-radius: 10px;
    padding: 15px;
}

/*.wpc-filter-pa_colors input[type="radio"],
.wpc-filter-pa_sizes input[type="radio"]{
    display: none;
}
*/

/*.dcmrkt-shop-products .woocommerce-result-count{
    display: none;
}*/

.dcmrkt-shop-sidebar .widget_wpc_filters_widget a{
    color: #000000 !important;
}

/* Container aspect ratio (e.g., 3:1 for wide banners) */
.dcmrkt-banner-slider {
    width: 100%;
}

.dcmrkt-banner-item img {
    width: 100%;
    /*border-radius: 20px;*/
    height: auto; /* Keeps the natural aspect ratio */
    display: block;
    object-fit: contain; /* Prevents edge-cutting */
}

.dcmrkt-banner-item a {
    /*border-radius: 20px;*/
    display: block;
    overflow: hidden;
}

.dcmrkt_cat_specific_card p{
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: block;
}

/* On Mobile, if the image is too short, we can increase the scale */


@media (max-width: 1200px){
    .tax-product_tag .site-main,
    .tax-product_cat .site-main,
    .post-type-archive .site-main,
    .tax-product_brand .site-main{
        max-width: 100% !important;
        padding: 0px 20px;
    }
}

@media (max-width: 1100px) and (min-width: 951px) {
    .dcmrkt-shop-products .dcmrkt-custom-product-item{
        width: 210px;
    }
}

@media (max-width: 1024px){
    .dcmrkt_search_results_wrapper{
        width: 60vw;
    }
    .dcmrkt-menu-level{
        width: 180px;
        left: 20px;
    }
    .dcmrkt-arrow-prev{
        left: -10px;
    }
    .dcmrkt-arrow-next{
        right: -10px;
    }
    .tax-product_tag .site-main,
    .tax-product_cat .site-main,
    .post-type-archive .site-main,
    .tax-product_brand .site-main{
        max-width: 100% !important;
        padding: 0px 20px;
    }
}

@media (max-width: 950px) and (min-width: 768px) {
    .dcmrkt-shop-products .dcmrkt-custom-product-item{
        width: 140px;
    }
}

@media (min-width: 768px){
    .dskrt_pos_sticky {
      position: sticky !important;
      top: 10px;
      align-self: flex-start !important;
    }
}

@media (max-width: 782px){
    .logged-in .dcmrkt-menu-level{
        top: 127px;
    }
}

@media (max-width: 767px){
    .dcmrkt-related-header h3,
    .dcmrkt-category-header h3{
        font-size: 22px;
    }
    .dcmrkt-brands-grid{
        gap: 10px;
    }
    .tax-product_tag .site-main,
    .tax-product_cat .site-main,
    .post-type-archive .site-main,
    .tax-product_brand .site-main{
        max-width: 100% !important;
        padding: 0px 10px;
    }
    .dcmrkt-shop-layout{
        flex-direction: column;
    }
    .dcmrkt-shop-sidebar{
        width: 100%;
    }
    .header_wishlist_counter a{
        padding: 0px 12px 0px 5px;
    }
    .dcmrkt-shop-sidebar{
        padding-right: 0px;
    }
    .wpc-open-close-filters-button{
        margin-bottom: 0px !important;
    }
    .wpc-filters-widget-content{
        padding-top: 20px;
    }

    .dcmrkt_cat_container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .woocommerce-products-header__title{
        padding-top: 20px;
    }
}

@media (max-width: 500px){
    .dcmrkt-shop-products .dcmrkt-custom-product-item{
        width: 160px;
    }
}

.dcmrkt-shop-products .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt:before, .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt:before{
    left: 40% !important;
    top: 40% !important;
}

.wpc-filter-chip a span{
    line-height: 20px;
}