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

/* -------------------------------------------------------------------------
   Child overrides only.
   Parent Woodmart CSS is loaded via functions.php (wp_enqueue_style parent-style).
   Do not copy parent style.css into this file.
   ------------------------------------------------------------------------- */

/* Login / register title */
#customer_login .u-column1.col-1 h2 {
  font-size: 0;
  position: relative;
  height: 30px;
}

#customer_login .u-column1.col-1 h2::before {
  content: "ورود یا ثبت نام";
  font-size: 22px;
  color: #222;
  font-weight: 600;
  text-align: center;
  display: block;
}

.required::before {
  content: "(الزامی)";
  font-size: 11px;
  font-weight: bold;
  margin-right: 5px;
}

.required,
#billing_address_1_field label {
  font-size: 0 !important;
}

#billing_first_name_field { order: 1; }
#billing_last_name_field { order: 2; }
#billing_state_field { order: 3; }
#billing_city_field { order: 4; }
#billing_address_1_field { order: 5; }
#billing_postcode_field { order: 6; }
#billing_phone_field { order: 7; }

#billing_address_1_field label::before {
  content: "آدرس کامل";
  font-size: 14px;
}

.custom_wrap_checkout {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

#shipping_method label {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 35px;
}

#shipping_method li {
  position: relative;
}

#shipping_method input {
  position: absolute;
  right: 5px;
  top: 20px;
}

.custom_alert {
  background: #fff6f6;
  padding: 15px;
  border: 1px dashed red;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  color: #000;
}

.woocommerce-billing-fields > #tabdeliver {
  margin: 24px -20px -40px -20px;
  border-top: 15px solid #f6f6f6;
  padding: 20px;
}

.zamanersal {
  color: #000;
  font-size: 17px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#place_order {
  width: 100%;
  min-height: 44px;
  min-width: 160px;
}

#place_order::after {
  content: "تسویه حساب";
}

#smsir-login-app-1 div input::placeholder {
  font-size: 0;
}

[id*="smsir-login-app"] div:has(input)::before {
  content: "شماره موبایل را وارد کنید...";
  font-size: 14px;
  position: absolute;
  top: 12px;
  right: 20px;
}

[id*="smsir-login-app"] div:has(input:focus)::before {
  display: none;
}

/* Mini cart / side panel */
.cart-widget-side .wd-product-detail.wd-product-sku {
  display: none !important;
}

.wd-side-hidden.wd-right {
  right: auto !important;
  left: 0 !important;
  transform: translate3d(100%, 0, 0);
}

/* Header / logo / search */
.wd-logo img {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  max-height: 10rem !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 800px;
}

.site-logo.whb-r62e4dnxrjdd10lgjrov {
  width: 40%;
  padding: 15px;
}

.wd-header-cats .menu-opener-icon:not(.custom-icon):after {
  font-size: 18px;
  content: "\f15a";
  font-family: "woodmart-font";
}

.wd-header-cats .menu-opener {
  position: relative;
  z-index: 300;
  display: flex;
  align-items: center;
  max-width: 320px;
  color: #333;
  line-height: 1;
  transition: all 0.25s ease;
  top: -10px !important;
}

.whb-flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 15px;
}

.whb-column.whb-col-mobile.whb-column_mobile1.whb-hidden-lg {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  justify-items: center;
  padding: 0;
}

.wd-search-form.wd-header-search-form-mobile.wd-display-full-screen-2.whb-02gpbfmjijs8kkw305jy {
  padding: 0;
  border-radius: 12px !important;
}

/* Product / page tweaks */
p {
  text-align: justify !important;
}

.single-product .wd-page-content {
  background-color: #fff !important;
  background-image: none;
}

.wd-timer-days,
.wd-timer-sec {
  display: none !important;
}

.product-labels .onsale::before,
.onsale.product-label::before {
  content: "" !important;
}

.wd-action-btn.wd-style-text > a:before {
  display: none;
}

.wd-nav-mobile > li,
.wd-nav-mobile > li > ul li {
  flex-direction: row-reverse;
}

.wd-nav-mobile > li > a,
.wd-nav-mobile > li > ul li > a {
  flex-direction: row-reverse;
  gap: 10px;
}

/* Gravity Forms */
input#gform_submit_button_1 {
  height: 10px !important;
}

#gform_confirmation_message_1 {
  font-size: 0;
}

#gform_confirmation_message_1::after {
  font-size: 16px;
  content: "با تشکر از تکمیل این فرم. اطلاعات شما دریافت و ثبت شد – در صورت نیاز به اطلاعات بیشتر با شما تماس خواهیم گرفت.";
  direction: rtl;
  display: block;
}

/* Dashboard / account page noise */
.dashboard .wd-sidebar.sidebar-container,
#ninishop-dashboard .wd-sidebar,
body.page-template-dashboard .wd-sidebar,
.widget_categories,
.woodmart-recent-posts,
.widget_recent_comments {
  display: none !important;
}

article#post-10737 {
  width: 100rem !important;
}

/* Elementor / Digits / payments */
.elementor-1239 .elementor-element.elementor-element-1ad6cc9 > .elementor-widget-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  display: none;
}

.elementor-button-text {
  font-size: 0;
}

.elementor-button-text::after {
  content: "بازگشت";
  font-size: 14px;
}

dig_form {
  width: 70% !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 10px !important;
}

.woocommerce-checkout form .payment_methods label img,
.woocommerce-account form .payment_methods label img {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 32px;
  width: auto;
  margin-left: 8px;
}

@media (max-width: 991px) {
  #customer_login .u-column1.col-1 h2::before {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  #chaty-widget-0 .chaty-widget {
    bottom: 60px !important;
  }
}

@media (max-width: 767px) {
  #slider-413 .wd-slide {
    min-height: 340px !important;
  }
}

@media (max-width: 480px) {
  form.searchform.wd-style-default {
    top: 15px;
    border-radius: 13px;
  }

  input.s {
    border-radius: 10px !important;
    font-size: 10px;
  }

  .wd-nav-arrows.wd-slider-arrows.wd-custom-style.wd-style-1.wd-pos-sep {
    display: none;
  }

  .site-logo.whb-r62e4dnxrjdd10lgjrov {
    padding: 5px !important;
  }
}
