/*
 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';
  src: url('inc/assets/icons/icomoon.eot?o4t298');
  src: url('inc/assets/icons/icomoon.eot?o4t298#iefix') format('embedded-opentype'),
    url('inc/assets/icons/icomoon.ttf?o4t298') format('truetype'),
    url('inc/assets/icons/icomoon.woff?o4t298') format('woff'),
    url('inc/assets/icons/icomoon.svg?o4t298#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[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: #666;
  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;
}

.product-tabs-wrapper {
  display: none;
}

/* 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;
}

/* Hide tray-item if the selected product line is bakery */
body.product-line-bakery .trays-item {
  display: none !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;
}