/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* Shipping method styling */
.woocommerce-mini-cart__shipping {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.woocommerce-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-shipping-methods li {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.woocommerce-shipping-methods li > label {
  margin-bottom: 0px !important;
}

.woocommerce-shipping-methods li:hover {
    border-color: var(--wd-primary-color, #333);
    background: #f5f5f5;
}

.woocommerce-shipping-methods input[type="radio"] {
    margin-right: 8px;
}

/* Loading state */
.wd-loading-dimmed {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.wd-loading-dimmed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--wd-primary-color, #333);
    border-radius: 50%;
    animation: wd-spin 0.8s linear infinite;
    z-index: 10;
}

/* Error message */
.wd-shipping-error {
    padding: 8px 12px;
    margin: 10px 0;
    background: #ffebe8;
    border: 1px solid #ffc7c3;
    color: #d63638;
    border-radius: 3px;
    font-size: 13px;
}

@keyframes wd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.woocommerce-mini-cart__shipping.shipping-method-selector {
    margin: 0px !important;
    padding: 0px !important;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    background-color: white !important;
}




























.wd-empty-mini-cart:before {
display: none !important;
}
.cart-widget-side .wd-empty-mini-cart {
    margin-top: 0px !important; 
    padding-inline: 0px !important; 
}
.wd-empty-mini-cart.test h2{
  display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.cart-widget-side .wd-scroll-content::-webkit-scrollbar {
    display: none !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
.cart-widget-side .wd-scroll-content {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
    overflow-y: auto !important; /* Keep functional, but invisible */
    overflow-x: hidden !important;
}
/*.thdi_slider_menu{
  display: flex; justify-content: space-between;
}

.thdi_slider_menu div,
.thdi_slider_menu p,
.thdi_slider_menu a{
  margin: 0px !important;
  padding: 0px !important;
}


.thdi_slider_menu p{
  font-size: 13px; line-height:18px;
}
.thdi_slider_menu a{
  font-size: 12px; line-height:17px;
}*/
.thdi_slider_menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.thdi_slider_menu p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

.tbi-view-all {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tbi-view-all:hover {
    color: #000; /* Or your theme primary color */
    text-decoration: underline;
}

/* Arrow Animation */
.tbi-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tbi-view-all:hover .tbi-arrow {
    transform: translateX(5px);
}



.cart-widget-side {
  width: 100%;
  max-width: 500px;
}

.cart-widget-side .wd-heading {
  justify-content: space-between !important;
  padding: 0 30px !important;
  height: 70px;

}

.cart-widget-side .wd-heading .title {
  text-align: center;
}

.cart-widget-side .wd-heading .cart-icon {
  width: 30px;
  height: 30px;
}

.cart-widget-side .wd-heading .cart-icon svg {
  width: 30px;
  height: 30px;
}

.cart-widget-side .widget_shopping_cart .widget_shopping_cart_content {
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
}

span.wd-min-cart-header-banner-content {
    color: white;
}
.wd-min-cart-header-banner {
/*  background: linear-gradient(to right, #c2c1bd 0%, #d1c9c7 50%, #b6b3b0 100%);*/
  background: linear-gradient(to right, #1e4691 0%, #133066 50%, #0c1f42 100%);
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.wd-min-cart-header-banner-content {}

.wd-min-cart-header-banner-image {
  height: 86px;
  width: fit-content;
}

.wd-min-cart-header-banner-image img {
  height: 100%;
  width: 100%;
}

.wd-min-cart-header-banner-content p {
  margin: 0;
}

.wd-min-cart-header-banner-content {
  max-width: 300px;
}

.wd-min-cart-header-banner-heading {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.wd-min-cart-header-banner-text {
  font-size: 12px;
  line-height: 1.3;
}

.cart-widget-side .widget_shopping_cart>.widgettitle {
  display: none !important;
}

.cart-widget-side .mini_cart_item {
  padding: 0px !important;
  column-gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.wkc-mini-cart-item-image {
  width: 120px;
  height: 120px;
}

.wkc-mini-cart-item-image a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.wkc-mini-cart-item-image a img {
  width: 100%;
  min-width: unset !important;
  max-width: unset !important;
  height: 100%;
  object-fit: cover;
}

.wkc-mini-cart-item-info {
  width: calc(100% - (120px + 30px));
}

.wkc-mini-cart-item-info .cart-info {
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 120px;
}

.wkc-mini-cart-item-info .wd-entities-title {
  font-size: 12px;
  margin-bottom: 5.4px;
  text-wrap-mode: nowrap;
  width: 100%;
  overflow: hidden;
}

.wkc-mini-cart-item-info .woocommerce-Price-amount {
  font-size: 14px !important;
  color: #595959 !important;
  font-weight: 400 !important;
}

.cart-widget-side .wd-mini-cart-item-bottom {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 20px;
}

.cart-widget-side .wd-mini-cart-item-bottom .remove {
  position: unset !important;
  font-size: 10px !important;
  width: 100% !important;
  max-width: 36px;
}

.cart-widget-side .wd-mini-cart-item-bottom .remove::after {
  content: unset !important;
}

.cart-widget-side .wd-mini-cart-item-bottom .quantity {
  width: 100%;
  border: 1px solid #ccc;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  margin: 0 !important;
}

.cart-widget-side .wd-mini-cart-item-bottom .quantity>.btn {
  border: 0 !important;
  border-radius: 0;
  padding: 2px 14px 3px !important;
  width: 38px;
}

.cart-widget-side .wd-mini-cart-item-bottom .quantity>.btn:hover {
  background-color: transparent !important;
}

.cart-widget-side .wd-mini-cart-item-bottom .quantity>.qty {
  width: 100%;
  height: 100%;
  text-align: center;
  border: 0 !important;
  padding: 4px 0 !important;
}


.cart-widget-side .shopping-cart-widget-footer>p {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cart-widget-side .woocommerce-mini-cart .mini_cart_item:not(:last-child) {
  margin-bottom: 20px !important;
}

.cart-widget-side .woocommerce-mini-cart .mini_cart_item:hover {
  background-color: transparent !important;
}

.cart-widget-side .woocommerce-mini-cart__buttons>a:not(.checkout) {
  display: none !important;
}

.cart-widget-side .woocommerce-mini-cart__buttons>a.checkout {
  color: #fff !important;
  background-color: #000 !important;
  font-size: 14.4px !important;
}

.wk-min-cart-store-timing {
  font-size: 12px;
  color: #1c1c1c;
  margin-bottom: 0;
}

.wk-min-cart-store-special-note {
  font-size: 14px;
  color: #595959;
  margin-bottom: 0;
}

.cart-widget-side .woocommerce-mini-cart__total {
  font-size: 14px !important;
  color: #595959 !important;
}

.cart-widget-side .woocommerce-mini-cart__total strong,
.cart-widget-side .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-weight: 400 !important;
}



.tbi-slider-wrapper {
  margin-top: 40px;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.tbi-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.tbi-header {
  text-align: center;
  margin-bottom: 30px;
}

.tbi-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.tbi-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  background: transparent;
/*  padding: 0px 20px;*/
  border-radius: 12px;
}

.tbi-slider {
  display: flex;
  user-select: none;
  transition: transform 0.2s ease-out;
  will-change: transform;
  gap: 20px;
}

.tbi-slider.dragging {
  cursor: grabbing;
  transition: none;
}

/* Card Design Changes */
.tbi-product-card {
  flex: 0 0 auto;
  width: 220px;
  background-color: white;
  border-radius: 8px;
  padding: 0;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tbi-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tbi-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-grow: 1;
}

.tbi-product-image {
  position: relative;
  height: 180px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tbi-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.tbi-product-card:hover .tbi-product-image img {
  transform: scale(1.05);
}

/* Add to Cart Icon & Animation */
.tbi-add-cart-btn {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.tbi-product-card:hover .tbi-add-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.tbi-add-cart-btn:hover {
  background: #f0f0f0;
  transform: scale(1.1) !important;
}

.tbi-add-cart-btn.adding {
  background: #333973;
  color: white;
}

.tbi-add-cart-btn.added {
  background: #333973;
  color: white;
}

.tbi-add-cart-btn i {
  font-size: 18px;
}

/* Content Styling based on Image */
.tbi-card-content {
  padding: 20px;
  text-align: left;
  border-top: 1px solid #f0f0f0;
}

.tbi-product-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #1a1a1a;
  line-height: 1.3;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tbi-product-price {
  font-size: 18px;
  font-weight: 600;
  color: #444;
  margin: 0;
}

/* Navigation Arrows */
.tbi-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  border: none;
  font-size: 18px;
  color: #333;
}

.tbi-slider-nav:hover {
  background: #f0f0f0;
}

.tbi-slider-nav.prev {
  left: 10px;
}

.tbi-slider-nav.next {
  right: 10px;
}

@media (max-width: 768px) {
  .tbi-product-card {
    width: 250px;
  }

  .tbi-slider-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .tbi-product-card {
    width: 220px;
  }

  .tbi-slider-container {
    padding: 30px 10px;
  }
}

.cart-widget-side .cart-item-image:after {
  content: unset !important;
  position: unset !important;
}

.cart-widget-side .woocommerce-mini-cart-item:after {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  opacity: 0;
  transition: opacity .6s ease;
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-left-color: var(--color-gray-900);
  border-radius: 50%;
  vertical-align: middle;
  animation: wd-rotate 450ms infinite linear var(--wd-anim-state, paused);
}

.cart-widget-side .woocommerce-mini-cart-item.wd-loading:after {
  opacity: 1;
  --wd-anim-state: running;
}

.cart-widget-side .woocommerce-mini-cart-item.wd-loading {
  opacity: 0.2 !important;
}

.cart-widget-side .wd-loading .cart-item-image img {
  opacity: 1 !important;
}

.cart-widget-side .woocommerce-mini-cart-item {
  border-bottom: 0px !important;
}


/* Ensure the container doesn't block the drag */
#tbiSliderWrapper {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    touch-action: pan-y; /* Crucial: Allows vertical scrolling but horizontal dragging */
}

#tbiProductSlider {
    display: flex;
    transition: transform 0.2s ease-out; /* Smooth transition for buttons */
    will-change: transform;
    user-select: none; /* Prevents text highlighting while dragging */
}

#tbiProductSlider.dragging {
    transition: none; /* Disables transition during manual mouse drag for 1:1 movement */
    cursor: grabbing;
}

/* Ensure images don't get 'stuck' to the mouse ghost */
.tbi-product-card img {
    pointer-events: none;
}