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

@font-face {
  font-family: 'icomoon';
  /* WOFF first (every current browser; TTF was listed first, so browsers took it). EOT / SVG were for IE / old iOS only */
  src: url('inc/assets/icons/icomoon.woff?o4t298') format('woff'),
    url('inc/assets/icons/icomoon.ttf?o4t298') format('truetype');
  font-weight: normal;
  font-style: normal;
  /* Text is not hidden while the icon font loads (6 KB - the icons appear a moment later at most) */
  font-display: swap;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-arrow-left:before {
  content: "\e901";
}

.icon-arrow-right:before {
  content: "\e902";
}

.icon-calendar:before {
  content: "\e903";
}

.icon-check:before {
  content: "\e904";
}

.icon-check-circle:before {
  content: "\e905";
}

.icon-clock:before {
  content: "\e906";
}

.icon-credit-card:before {
  content: "\e907";
}

.icon-gift:before {
  content: "\e908";
}

.icon-globe:before {
  content: "\e909";
}

.icon-heart:before {
  content: "\e90a";
}

.icon-home:before {
  content: "\e90b";
}

.icon-log-in:before {
  content: "\e911";
}

.icon-map:before {
  content: "\e90c";
}

.icon-map-pin:before {
  content: "\e90d";
}

.icon-search:before {
  content: "\e913";
}

.icon-share:before {
  content: "\e90e";
}

.icon-star:before {
  content: "\e90f";
}

.icon-truck:before {
  content: "\e910";
}

.icon-user-plus:before {
  content: "\e912";
}


div.wd-social-icons.wd-style-default {
  --wd-social-color: #411B12;
  font-size: 16px;
}

@-webkit-keyframes upAnddown {
  from {
    transform: translateY(0);
  }

  50% {
    transform: translateY(15px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes upAnddown {
  from {
    transform: translateY(0);
  }

  50% {
    transform: translateY(15px);
  }

  to {
    transform: translateY(0);
  }
}

/* Food Menu Module Styling */
.fm-module {
  max-width: 1200px;
  margin: 40px auto;
  font-family: inherit;
  direction: rtl;
}

.fm-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.fm-tab {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  color: #411B12;
  transition: all 0.3s;
  border-bottom: 3px solid #411B12;
}

/* Floating Reveal Link */
.floating-reveal-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateX(-50px);
  animation: revealFromLeft 0.8s ease-out forwards;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

.floating-reveal-link img {
  max-width: 150px;
  /* Adjust size as needed */
  height: auto;
  display: block;
}

@keyframes revealFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover lift effect for desktop */
@media (min-width: 769px) {
  .floating-reveal-link:hover {
    transform: translateY(-10px);
  }
}

/* Mobile positioning */
@media (max-width: 768px) {
  .floating-reveal-link {
    bottom: 40px;
    left: 15px;
  }

  .floating-reveal-link img {
    max-width: 100px;
  }
}

.fm-tab.active,
.fm-tab:hover {
  color: #411B12;
  border-bottom-color: #411B12;
  background-color: rgba(246, 246, 245, 1);
}

.fm-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin: 20px 0;
}

.fm-item {
  background: rgba(246, 246, 245, 1);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.fm-item:hover {
  transform: translateY(-5px);
}

.fm-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fm-item-title {
  margin: 0;
  font-size: 20px;
  color: #411B12;
}

.fm-item-price {
  font-weight: bold;
  color: #411B12;
}

.fm-item-description {
  font-size: 14px;
  color: #411B12;
  line-height: 1.6;
}

.fm-header-text,
.fm-footer-text {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .fm-items-grid {
    grid-template-columns: 1fr;
  }
}

.scroll-down {
  animation-iteration-count: 5 !important;
  -webkit-animation: upAnddown 1s infinite !important;
  animation: upAnddown 1s infinite !important;
  -webkit-animation-timing-function: ease-in-out !important;
  animation-timing-function: ease-in-out !important;
}


.wd-post-thumb img {
  aspect-ratio: 3/2;
  object-fit: cover;
}

.woocommerce-shipping-totals.shipping th {
  display: none;
}


.page-template-page-welcome #main-content {
  max-width: 100%;
  padding: 0 !important;
}

form.woocommerce-checkout>:is(.customer-details) {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  :is(.woocommerce-checkout>.checkout-order-review) {
    width: 100%;
    max-width: 40% !important;
  }

  form.woocommerce-checkout>:is(.customer-details) {
    max-width: 60% !important;
  }
}

:is(.woocommerce-checkout>.checkout-order-review, .woocommerce-order-pay #order_review) {
  background-color: #f9f7f4;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

:is(.woocommerce-checkout>.checkout-order-review, .woocommerce-order-pay #order_review):before {
  display: none;
}


.checkout-order-review>.woocommerce-checkout-review-order .wd-table-wrapper {
  box-shadow: none;
  background: none;
  border: none;
  padding: 0;
}


/* Custom Round Checkbox */
.custom-round-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 30px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  direction: rtl;
}

.custom-round-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-round-checkbox .checkmark {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
}

.custom-round-checkbox:hover input~.checkmark {
  border-color: var(--wd-primary-color);
}

.custom-round-checkbox input:checked~.checkmark {
  border-color: var(--wd-primary-color);
}

.custom-round-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--wd-primary-color);
}

.custom-round-checkbox input:checked~.checkmark:after {
  display: block;
}

.custom-round-checkbox a {
  color: var(--wd-primary-color);
  text-decoration: underline;
}

/* Custom Radio for WooCommerce Payment Methods */
.woocommerce-form__label-for-checkbox input[type="checkbox"],
#payment ul.payment_methods li input[type="radio"].input-radio {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.woocommerce-form__label-for-checkbox span,
#payment ul.payment_methods li label {
  position: relative;
  padding-right: 30px !important;
  cursor: pointer;
  display: inline-block;
  line-height: 20px;
  font-size: 14px;
  user-select: none;
}

.woocommerce-form__label-for-checkbox span:before,
#payment ul.payment_methods li label:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"]:checked+span:before,
#payment ul.payment_methods li input[type="radio"].input-radio:checked+label:before {
  border-color: var(--wd-primary-color);
}


.woocommerce-form__label-for-checkbox span:after,
#payment ul.payment_methods li label:after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  right: 5px;
  /* (20px circle - 10px dot) / 2 */
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--wd-primary-color);
}

.woocommerce-form__label-for-checkbox input[type="checkbox"]:checked+span:after,
#payment ul.payment_methods li input[type="radio"].input-radio:checked+label:after {
  display: block;
}

#payment ul.payment_methods li:hover label:before {
  border-color: var(--wd-primary-color);
}

:is(div.woocommerce-info) {
  border: 1px solid #CCE3FD;
}

.mobile-delivery-btn>a:before,
.delivery-btn:before {
  content: "\e903";
  font-family: "icomoon" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  font-size: 20px;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-smoothing: grayscale;
}

.mobile-delivery-btn>a:before {
  font-size: 13px;
}

.mobile-delivery-btn>a {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Delivery Button Summary Display */
.delivery-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;

}

.delivery-btn-type {
  font-size: 0.8em;
  opacity: 0.9;
  margin-bottom: 2px;
}

.delivery-btn-datetime {
  font-size: 1.05em;
  font-weight: bold;
}

.woocommerce-product-details__short-description {
  font-size: 18px;
}

/* Buttons sharing space on desktop */
.single-product .summary .single_add_to_cart_button,
.single-product .summary .wd-buy-now-btn {
  flex: 1;
  margin: 0 !important;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

/* Buy Now Button Style */
.single-product .wd-buy-now-btn {
  background-color: #fff !important;
  color: var(--wd-primary-color) !important;
  border: 2px solid var(--wd-primary-color) !important;
  transition: all 0.3s ease;
}

.single-product .wd-buy-now-btn:hover {
  background-color: var(--wd-primary-color) !important;
  color: #fff !important;
}

/* Mobile Styling */
@media (max-width: 768px) {

  .single-product .summary .single_add_to_cart_button,
  .single-product .summary .wd-buy-now-btn {
    width: 100%;
    flex: none;
  }

  .related-and-upsells {
    margin-top: 60px;
  }

  .wd-header-my-account.wd-tools-element .wd-tools-text {
    font-size: 12px;
  }
}

.related-and-upsells :is(.gram-price-suffix, .weight-suffix) {
  display: none !important;
}

/* Simple product size label: "גודל:" + swatch on one line (inc/class-priority-frontend.php) */
.woocommerce-variation-size-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Same look as a Woodmart text swatch (style 2, round) - it's outside a .wd-swatches container */
.woocommerce-variation-size.wd-swatch {
  --color-gray-900: #242424;
  --wd-swatch-brd-color: var(--color-gray-900);
  --wd-swatch-size: 35px;
  --wd-swatch-text-size: 16px;
  --wd-swatch-inn-sp: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  min-height: 1em;
  width: auto;
  height: auto;
  color: var(--color-gray-900);
  vertical-align: middle;
  text-align: center;
  font-weight: 600;
  font-size: var(--wd-swatch-size);
  line-height: 1;
  border-radius: 1em;
  box-shadow: 0 0 0 var(--brd-width, 1px) var(--wd-swatch-brd-color) inset;
  transition: all .25s ease;
}

.woocommerce-variation-size.wd-swatch .wd-swatch-text {
  padding: 0 calc(var(--wd-swatch-size) / 5);
  font-size: calc(var(--wd-swatch-text-size) - 2px);
}

/* Hide tray-item if the selected product line is bakery */
body.product-line-bakery .trays-item {
  display: none !important;
}

/* Single product - frozen / note badges under the title (inc/product-display-rules.php) */
.biscotti-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.biscotti-frozen-badge,
.biscotti-note-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.biscotti-frozen-badge {
  background-color: #e6f2fb;
  color: #1f6fb2;
}

.biscotti-note-badge {
  background-color: rgb(65, 27, 18);
  color: #fff;
}

/* Frozen + general note labels - product cards (inc/product-display-rules.php) */
.product-labels .product-label.frozen,
.product-labels .product-label.note {
  min-width: 0;
  min-height: 0;
  padding: 4px 12px;
  border-radius: 20px !important;
  line-height: 1.4;
  white-space: nowrap;
}

.product-labels .product-label.frozen {
  background-color: #3b8fd4;
  color: #fff;
}

.product-labels .product-label.note {
  background-color: rgb(65, 27, 18) !important;
  color: #fff !important;
}

/* Header My Account Styling */
.wd-header-my-account.wd-tools-element .wd-tools-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.2;
  padding-inline-start: 5px;
}

.header-user-name {
  font-weight: 700;
  font-size: 13px;
  display: block;
}

.header-user-points {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
  display: block;
}

footer .widget {
  padding-bottom: 0;
  border: 0;
}

.woocommerce-checkout-review-order-table tr.cart_item {
  border-bottom: 0;
}

:is(.woocommerce-checkout>.checkout-order-review, .woocommerce-order-pay #order_review):after {
  display: none;
}

/* My Account Dashboard Redesign */
.biscotti-dashboard-greeting {
  margin-bottom: 30px;
}

.biscotti-dashboard-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.biscotti-dashboard-block {
  flex: 1 1 calc(50% - 10px);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-width: 280px;
}

.biscotti-dashboard-block h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.biscotti-dashboard-block.club-points .points-value {
  font-size: 32px;
  font-weight: bold;
  color: var(--wd-primary-color, #411B12);
}

.biscotti-dashboard-block.quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.biscotti-dashboard-block.quick-links ul li {
  margin-bottom: 10px;
}

.biscotti-dashboard-block.quick-links ul li:last-child {
  margin-bottom: 0;
}

.biscotti-dashboard-block.quick-links ul li a {
  color: var(--wd-primary-color, #411B12);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.biscotti-dashboard-block.quick-links ul li a:hover {
  opacity: 0.8;
}

.biscotti-dashboard-recent-orders h3 {
  margin-bottom: 20px;
}

.wd-builder-off .wd-nav-my-acc {
  --wd-col-lg: 4;
  --nav-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .wd-my-account-sidebar {
    display: none;
  }
}

.woocommerce-checkout>.customer-details .woocommerce-billing-fields {
  margin-top: 0 !important;
}


.woocommerce-billing-fields__field-wrapper {
  margin-top: 20px;
}

form.woocommerce-checkout>:is(.customer-details, .woocommerce-NoticeGroup)>*:is(.checkout-email-field, wc-order-attribution-inputs) {
  margin-bottom: 0;
}

.wd-product .wd-product-thumb img {
  aspect-ratio: 3/2.5;
  object-fit: contain;
}

.wd-nav-product-cat:not(.wd-nav-mobile)>li>a {
  color: var(--wd-primary-color);
  font-size: 18px;
}

/* Sticky Category Strip */
#biscotti-sticky-cat-strip {
  display: none;
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 333;
  text-align: center;
  padding: 5px 15px;
  transition: top 0.3s ease;
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--brdcolor-gray-300);
}

#biscotti-sticky-cat-strip .current-cat-name {
  font-weight: bold;
  font-size: 22px;
  color: #333;
}

.biscotti-call-center-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 400;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  #biscotti-sticky-cat-strip .current-cat-name {
    font-size: 18px;
  }
}

.variations .wd-swatch.wd-disabled {
  display: none !important;
}


@media (min-width: 769px) {
    .wd-sticky-btn-on {
  padding-bottom: 0 !important;
    }
}

/* Category banner (ACF desktop / mobile) */
.biscotti-shop-banner {
	margin-bottom: 20px;
	text-align: center;
}

.biscotti-shop-banner__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Header sub-menu links in the primary color */
.wd-sub-menu li > a {
	color: var(--wd-primary-color, #411B12) !important;
}

.product-tabs-wrapper{
  border-top: 0 !important;
}

/* Order-pay page: order summary as a card grid */
.woocommerce-order-pay ul.order_details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

/* WooCommerce clearfix pseudo elements would become empty grid cells */
.woocommerce-order-pay ul.order_details::before,
.woocommerce-order-pay ul.order_details::after {
  display: none;
}

.woocommerce-order-pay ul.order_details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  float: none;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background-color: #f9f7f4;
  font-size: 13px;
  line-height: 1.4;
  color: #777;
  text-transform: none;
}

.woocommerce-order-pay ul.order_details li strong {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--wd-primary-color, #411B12);
  text-transform: none;
}

@media (max-width: 768px) {
  .woocommerce-order-pay ul.order_details {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* "Return to shop" button on top of single product / cart / checkout (inc/back-to-shop.php) */
.biscotti-back-to-shop {
  width: 100%;
  margin: 0 0 20px;
  text-align: start;
}

.biscotti-back-to-shop .biscotti-back-to-shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 22px;
  border: 1px solid var(--wd-primary-color);
  border-radius: 42px;
  background-color: transparent;
  color: var(--wd-primary-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.biscotti-back-to-shop .biscotti-back-to-shop-link:hover {
  background-color: var(--wd-primary-color);
  color: #fff;
}

/* Side cart "empty cart" button (inc/side-cart.php) */
.cart-widget-side .wd-heading .biscotti-empty-cart-btn {
  min-height: 32px;
  padding: 5px 16px;
  border: 1px solid var(--wd-primary-color);
  border-radius: 42px;
  background: transparent;
  box-shadow: none;
  color: var(--wd-primary-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-widget-side .wd-heading .biscotti-empty-cart-btn:hover {
  background-color: var(--wd-primary-color);
  color: #fff;
}

.cart-widget-side .wd-heading .biscotti-empty-cart-btn.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Nothing to empty */
.cart-widget-side:has(.woocommerce-mini-cart__empty-message) .biscotti-empty-cart-btn {
  display: none;
}