/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.wd-page-title .entry-title.title {
	font-size: 35px;
}

.woocommerce-account .main-page-wrapper .container {
	max-width:100%;
}

.table-action-wrapper{
    display: flex;
    gap: 10px;
    align-items: center;
}

#main-content{
    margin: 0px !important;
}

.table-striped.moto-products-table tbody tr:nth-of-type(odd) {
    background-color: rgb(199 199 199 / 5%);
}

.b2b-nav-list > .nav-first-level:not(:first-child) {
  margin-bottom: 10px;
}

.moto-thumb-box{
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.moto-thumb-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.moto-thumb-placeholder{
  width: 60%;
  height: 60%;
  border-radius: 10px;
  background: rgba(0,0,0,0.06);
}

.card {
  border-radius: 0px;
  padding: 0px;
}

.card-body {
  background: #ffffff;
  font-size: 15px;
  font-weight: bold;
}

.col-cat:hover .card-body {
  background: #2d86db;
  color: #fff;
}

.moto-products-table-wrap {
  border-radius: 8px;
}

.moto-products-table th {
  font-size: 13px;
  white-space: nowrap;
}

.moto-products-table td {
  font-size: 14px;
}

.moto-col-ref,
.moto-col-part,
.moto-col-unit {
  width: 140px;
  white-space: nowrap;
}

.moto-col-desc {
  min-width: 260px;
}

.moto-product-link {
  text-decoration: none;
  font-weight: 600;
}

.moto-product-link:hover {
  text-decoration: underline;
}

.woocommerce-MyAccount-content,
.wd-content-layout,
.wd-content-container {
  overflow: visible !important;
}

.moto-products-table .add-to-cart-loop > span {
  opacity: 0 !important;
  transform: none !important;
  pointer-events: none;
}

.moto-products-table .wd-add-btn-replace .add-to-cart-loop:before {
  transform: translateY(0) translateZ(0) !important;
  opacity: 1 !important;
}

.moto-products-table .wd-add-btn-replace .add-to-cart-loop {
  padding: 0 !important;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  justify-content: center;
}

.moto-products-table .wd-product.wd-hover-standard .wd-add-btn .add-to-cart-loop span {
  padding: 0 !important;
  min-height: inherit !important;
}

.moto-products-table .add-to-cart-loop > span { display: none !important; }
.moto-products-table .add-to-cart-loop:before {
  transform: translateY(0) translateZ(0) !important;
  opacity: 1 !important;
}
.moto-products-table .add-to-cart-loop {
  padding: 0 !important;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
}

.moto-col-cart .add-to-cart-loop:before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 20px;
  transition: opacity .15s ease, transform .25s ease;
  transform: translateY(100%);
  content: "\f123";
  font-family: "woodmart-font";
  color:#fff;
}

.moto-col-cart a {
  background-color: #2d86db;
}

.moto-col-cart a:hover {
  background-color: #1e6ab1;
}

.moto-col-cart .added_to_cart,
.moto-quick-cart .added_to_cart {
  display: none;
}

.moto-products-table tbody .woocommerce-Price-amount {
  color:#000;
}

.moto-products-table tbody .moto-col-unit {
  font-weight: 400;
}

.moto-col-qty {
  width: 110px;
  text-align: center;
}

.moto-products-table .moto-qty-input {
  width: 55px;
  height: 36px;
  border-radius: 0px;
  padding: 0 10px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.12);
  background: #F3F3F3;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.moto-products-table .moto-qty-input:focus {
  outline: none;
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.moto-products-table .moto-qty-input::-webkit-outer-spin-button,
.moto-products-table .moto-qty-input::-webkit-inner-spin-button {
  opacity: 1 !important;
  -webkit-appearance: inner-spin-button;
}

.moto-products-table .moto-qty-input {
  padding-right: 4px;
  background: #fefefe;
}

.moto-products-table th {
  text-transform: initial;
}

.moto-products-table tbody tr td {
  vertical-align: middle;
}

.moto-products-table tbody .moto-col-part {
  color: #2d86db;
  font-weight: 400;
}

.moto-thumb-box img {
  background: #fff;
}

.backToCat {
  text-transform: initial;
}

.backToCat.animated-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 34px;
  border-radius: 0px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  background: transparent;
  border-bottom: 2px solid #000;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.backToCat.animated-button svg {
  position: absolute;
  width: 22px;
  fill: #000;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}

.backToCat .arr-1 {
  left: 16px;
}

.backToCat .arr-2 {
  right: -25%;
}

.backToCat .text {
  position: relative;
  z-index: 3;
  transform: translateX(12px);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.backToCat .circle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.backToCat:hover {
  color: #212121;
  border-color: transparent;
  border-radius: 0px;
  border-bottom:2px solid #000;
}

.backToCat:hover .arr-1 {
  left: -25%;
}

.backToCat:hover .arr-2 {
  right: 16px;
}

.backToCat:hover .text {
  transform: translateX(-12px);
}

.backToCat:hover svg {
  fill: #212121;
}

.backToCat:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}

.backToCat:active {
  transform: scale(0.96);
}

.js-img-popup { cursor: zoom-in; }

.img-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.img-popup img {
  max-width: 95%;
  max-height: 95%;
}

.img-popup-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.moto-finder-grid-wrapper .card-body {
  background: #f1f1f1;
  color: #000;
}

.moto-finder-grid-wrapper .product-card-link:hover .card-body {
  background: #2D86DB;
}

.moto-finder-grid-wrapper .col-cat:hover .card-body .price .woocommerce-Price-amount, 
.moto-finder-grid-wrapper .col-cat:hover .card-body .product-card-link {
  color: #fff!important;
}

.col-cat .part-desc {
  font-size: 14px;
}

.col-cat .price .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: bold;
}

.col-cat .price {
  margin-top: 12px;
  margin-bottom: 12px;
}

.col-cat .prod-title {
  margin-bottom: 10px;
  border-bottom: 1px solid #000;
  font-size: 16px;
  padding-bottom: 10px;
}

.add-to-cart-loop,
.ajax_add_to_cart,
.add_to_cart_button {
  position: relative;
}

/* hide text when loading */
.moto-atc-loading {
  pointer-events: none;
}

.moto-atc-loading span,
.moto-atc-loading .button-text,
.moto-atc-loading .wd-add-to-cart-text {
  visibility: hidden;
}

/* spinner */
.moto-atc-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: moto-spin 0.6s linear infinite;
}

@keyframes moto-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.add-to-cart-loop.moto-atc-loading {
  background: #b5b5b5;
}

.moto-col-cart .add-to-cart-loop.moto-atc-loading:before {
  content:unset;
}

.moto-col-stock { width: 110px; text-align: center; }

.moto-stock-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.moto-stock-dot{
  display:inline-block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.moto-stock-dot.stock-red    { background:#dc3545; }
.moto-stock-dot.stock-orange { background:#fd7e14; }
.moto-stock-dot.stock-green  { background:#198754; }

/* Tooltip bubble */
.moto-stock-tip{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
}

/* Small arrow */
.moto-stock-tip::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}

.moto-stock-wrap:hover .moto-stock-tip{
  opacity: 1;
  visibility: visible;
}

.moto-stock span:before {
  content:unset!important;
}

.moto-stock-low span {
  background-color: #FFF5ED!important;
  color: #fd7e14!important;
}

.moto-stock-ok span {
  background-color: #F1F7EB!important;
  color: #198754!important;
}

.moto-stock-out span {
  background-color: #fd7e1414!important;
  color: #dc3545!important;
}

.myapp-single-product {
  max-width: 100%;
}

.myapp-single-product .product-image-summary-inner .product-images {
  display: none;
}

.summary.entry-summary {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  grid-column: auto / span 12;
}

.woocommerce-cart #main-content,
.woocommerce-checkout #main-content {
  margin: 0 auto!important;
}

.cart-content-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single {
  border-radius: 12px;
  min-height: 44px;
}

.woocommerce-checkout .form-row label {
  font-weight: 600;
  margin-bottom: 6px;
}

.woocommerce-checkout #place_order {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
}

.woocommerce form .form-row {
  display: block !important;
  margin: 0 0 14px 0;
}

.woocommerce-checkout .woocommerce-billing-fields {
  margin-top: 0px!important;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

.woocommerce-checkout .checkout-order-review:before,
.woocommerce-checkout .checkout-order-review:after {
  content: unset!important;
}

.woocommerce-checkout .checkout-order-review {
  border-radius: 16px;
}

#main-content {
    margin: 0 auto !important;
}

.myapp-single-product-content .single-product-content .container {
  min-width:100%;
}

.related-and-upsells .product-wrapper img,
.related-and-upsells .wd-product-stock,
.return-to-shop,
.shopping-cart-widget-body .btn.wc-backward {
  display: none;
}

.entry-summary .shop_attributes tr {
  padding-bottom: 15px!important;
  margin-bottom: 15px!important;
  border-bottom: 1px solid #e0dfdf!important;
}

.related-and-upsells .wd-carousel-wrap .wd-carousel-item {
	padding: 45px;
}

.related-and-upsells .product-wrapper .product-element-bottom {
  gap:20px;
}

.entry-summary .summary-inner .product_meta .posted_in a,
.entry-summary .summary-inner .single-breadcrumbs-wrapper a {
  pointer-events: none;
}

.single-product-container-wrapper {
  max-width: 100%; 
  width: 100%; 
  padding-right: 15px; 
  padding-left: 15px; 
  margin-right: auto; 
  margin-left: auto;
}

.wd-my-account-links .wd-my-acc-updates .wd-nav-icon:before{
  font-family: "Font Awesome 6 Free";
  content: "\f0f3";
  font-weight: 600;
}

.wd-my-account-links .wd-my-acc-guarantees_sales .wd-nav-icon:before{
  font-family: "Font Awesome 6 Free";
  content: "\f31c";
  font-weight: 600;
}

.wd-my-account-links .wd-my-acc-genuine-spare-parts .wd-nav-icon:before{
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  content: "\f7d9";
}

/* Κάνε το <a class="save-form-action-btn"> να μοιάζει 1:1 με το button */
a.save-form-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: auto !important;         /* <-- αυτό κόβει το “μπλε bar” */
  text-decoration: none !important;
  line-height: 1.2;
}

/* προαιρετικά, για να μην αλλάζει χρώμα σαν link */
a.save-form-action-btn:visited,
a.save-form-action-btn:hover,
a.save-form-action-btn:focus {
  text-decoration: none !important;
}

.wd-header-nav{
  flex: unset !important;
}

@media (min-width: 992px) {
  .moto-sticky-sidebar {
    position: sticky;
    top: 110px;
    align-self: flex-start;
  }
}

@media (max-width: 991.98px) {
  .moto-sticky-sidebar {
    position: static;
  }
}

/* Sticky My Account sidebar & Order Review */
@media (min-width: 992px) {
  .myapp-account aside {
    position: sticky;
    top: 110px;
    align-self: flex-start;
    height: fit-content;
  }

  .woocommerce-checkout .checkout-order-review {
    position: sticky!important;
    top: 110px;
  }
}

@media (max-width: 769px) {
  .top-bar .username_lastseen {
    justify-content: start;
  }
  aside .sidebar-wrapper .sidebar {
    width: 100%;
  }
}