/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ========== Header ========== */
@media (min-width: 1440px) {
  .e-con {
    --container-max-width: 90vw !important;
  }
}

.header-addtocart-btn .elementor-icon-box-content p {
  position: absolute;
  top: -5%;
  right: -5%;
  background-color: var(--e-global-color-primary);
  width: 10px;
  height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 9px 8px 9px;
  border-radius: 50%;
  scale: .85;
}

.header-category-menu svg {
  transform: translateY(-2px);
}

.header-drop-down-container {
  width: 18vw !important;
}

.header-category-menu #e-n-menu-title-2131 {
  width: 18vw !important;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

/* تنظیم زمان انیمیشن برای آف‌کَنَواس */
.elementor-widget-off-canvas {
  --e-off-canvas-animation-duration: 500ms !important;
}

/* ========== Home ========== */

.home-hero-slider-arrow .elementor-swiper-button {
  background-color: #FFFFFF33;
  padding: 5px;
  border-radius: 8px;
  scale: .3;
  opacity: 0;
  transition: 0.3s;
}
.home-hero-slider-arrow:hover .elementor-swiper-button {
  opacity: 1;
  scale: 0.9;
}

.hutus-title-line::before {
  content: "";
  width: 3px;
  height: 30px;
  background-color: #FF2D37;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-55%);
}
.hutus-title-line::after {
  content: "";
  width: 3px;
  height: 30px;
  background-color: #000;
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-55%);
}

.home-slides-prev-title
  .swiper-slide-inner
  .swiper-slide-contents
  .elementor-slide-heading::before {
  content: var(--slide-title-content);
  display: block;
  font-size: 18px;
  color: white;
  margin-bottom: 25px; /* فاصله از تایتل اصلی */
  font-weight: 300 !important;
}

html, body {
  font-feature-settings: "numr" !important;
  max-width: 100%;
  overflow-x: hidden;
}

.home-cat-img {
  transition: all 0.4s !important;
}
.home-cat-img img {
  transition: all 0.4s !important;
}
.home-cat-img:hover img {
  border: 1px solid #FF2D37 !important;
  transition: 0.4s !important;
}

.home-products-carousel .elementor-swiper-button-next {
  padding-left: 5px !important;
}
.home-products-carousel .elementor-swiper-button-prev {
  padding-right: 5px !important;
}

.product-cart-price {
  height: 35px;
  display: flex;
  align-items: center;
}
.product-cart-price .price-sale {
  font-size: 13px;
  font-weight: 300;
}
.product-cart-price .price-sale .amount,
.product-cart-price .price-no-sale .amount {
  font-size: 20px;
  font-weight: 600;
}
.product-cart-price .price-no-sale {
  font-size: 13px !important;
  font-weight: 300 !important;
}
.product-cart-price .price-regular {
  opacity: 0.7;
  font-weight: 200 !important;
}

.product-cart-btns-container {
  position: absolute;
  bottom: -30px;
  z-index: 999;
  opacity: 0;
  transition: 0.5s;
}
.product-cart-container:hover .product-cart-btns-container {
  bottom: 0 !important;
  opacity: 1;
}

.product-cart-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-feature-iconbox .elementor-icon-box-icon {
  border: 1.5px solid #FF2D3C;
  padding: 15px;
  border-radius: 50%;
  transition: 0.2s;
}
.home-feature-iconbox:hover .elementor-icon-box-icon {
  background-color: #FF2D3C;
}
.home-feature-iconbox:hover .elementor-icon-box-icon svg path {
  stroke: white;
}

.home-comments-col::before {
  content: "";
  width: 100vw;
  height: 320px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("https://hutus-piston.com/wp-content/uploads/2025/10/Rolls-Royce-La-Rose-Noire-Droptail.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -999;
  filter: grayscale(40%);
}

.home-blog-cart-title .elementor-heading-title,
.home-blog-cart-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-blog-cart-read-more .elementor-icon-list-text {
  order: 1 !important;
}
.home-blog-cart-read-more .elementor-icon-list-icon {
  order: 2 !important;
}

.home-brands-carousel .swiper-slide-image {
  filter: grayscale(1);
  height: 100px;
  object-fit: contain;
  opacity: .8;
  transition: 0.3s;
}
.home-brands-carousel .swiper-slide-image:hover {
  filter: grayscale(0) !important;
  opacity: 1 !important;
}

/* ========== Shop ========== */
.shop-sord-filter .jet-sorting-select {
  appearance: none !important;
}
.shop-sord-filter .jet-sorting-select:focus {
  outline: none !important;
  box-shadow: none !important;
}
.shop-sord-filter::after {
  content: "";
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 0;
  transform: translate(5px, -50%);
  background-image: url("https://hutus-piston.com/wp-content/uploads/2025/10/down-2-svgrepo-com-1.svg");
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .6;
}

/* ========== Single Product ========== */
.single-product-add-tocart-element .input-text.qty {
  border: 1px solid #00000033;
  border-radius: 10px;
}
.single-product-add-tocart-element .input-text.qty:focus {
  border: 1px solid #00000033;
  outline: none;
  box-shadow: none;
}

.single-product-add-tocart-element .value,
.single-product-add-tocart-element .label {
  background-color: transparent;
  padding: 0;
}
.single-product-add-tocart-element .label {
  padding: 7px;
}

.single-product-add-tocart-element .value select {
  border: 1px solid #00000033;
  border-radius: 10px;
}
.single-product-add-tocart-element .value select:focus {
  outline: none;
  border: 1px solid #00000033;
}

.single-product-add-tocart-element .price {
  color: black !important;
}
.single-product-add-tocart-element .reset_variations {
  color: #FF2D37 !important;
}
.single-product-add-tocart-element .reset_variations:hover {
  color: black !important;
}

.single-product-attribute .woocommerce-product-attributes tbody tr {
  display: flex;
  padding: 5px 0;
  gap: 10px;
}
.single-product-attribute .woocommerce-product-attributes tbody th {
  background-color: #000000 !important;
  border: none;
  width: 20% !important;
  border-radius: 10px;
  font-weight: 500;
  padding: 15px;
  color: white;
}
.single-product-attribute
  .woocommerce-product-attributes
  tbody
  tr:nth-child(even)
  th {
  background-color: #252525 !important;
}

.single-product-attribute .woocommerce-product-attributes tbody td {
  border: none;
  font-style: normal;
  border-radius: 10px;
  width: 80% !important;
  text-align: center;
  padding: 7px;
  font-feature-settings: "numr";
  background-color: #00000007 !important;
}
.single-product-attribute
  .woocommerce-product-attributes
  tbody
  tr:nth-child(even)
  td {
  background-color: #00000010 !important;
}

.single-product-color .stars span a {
  color: #e0bb00 !important;
}
.single-product-color #comment,
.single-product-color #email,
.single-product-color #author {
  border-radius: 10px;
  border: 1px solid #00000044;
}
.single-product-color #comment:focus,
.single-product-color #email:focus,
.single-product-color #author:focus {
  outline: none;
  box-shadow: none;
}
.single-product-color #submit {
  background-color: black !important;
  color: white !important;
  border-radius: 10px !important;
  width: 100px;
}

/* ========== Checkout ========== */
.name-family-checkout-field {
  width: 100% !important;
}
.checkout-ostan-field {
  width: 48% !important;
}
.checkout-ostan-field .select2-selection {
  height: 53px !important;
}
.city-ostan-field {
  width: 48% !important;
}
.form-row-wide {
  width: 100%;
}
.woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 0;
  justify-content: space-between;
}

/* ========== My Account ========== */

/* ========== Responsive (max-width: 768px) ========== */
@media (max-width: 768px) {
  /* Header */
  .header-drop-down-container {
    width: 52.5vw !important;
  }
  
  /* Home */
  .home-slides-prev-title
    .swiper-slide-inner
    .swiper-slide-contents
    .elementor-slide-heading::before {
    font-size: 14px !important;
  }
  .hutus-title-line::before {
    right: -10px !important;
  }
  .hutus-title-line::after {
    right: -13px !important;
  }
  .product-cart-btns-container {
    position: relative !important;
    bottom: 0 !important;
    z-index: 999 !important;
    opacity: 1 !important;
  }

  .home-feature-iconbox .elementor-icon-box-icon {
    border-radius: 50%;
    max-width: 80px !important;
  }
  
  /* My Account */
  .account-mobile-tab .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row;
    overflow-x: scroll;
    max-width: 100vw;
  }
  .account-mobile-tab .woocommerce-MyAccount-navigation ul li a {
    min-width: 135px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1024px) {
    body.admin-bar .dialog-type-lightbox {
        position: fixed !important;
    }
}
