/*
 Theme Name:   Ishop Theme Child
 Theme URI:    https://saheldehshikh.com
 Description:  Child theme for Ishop Theme – customizations for Sahel Dehshikh
 Author:       Sahel Dehshikh
 Template:     ishop-theme
 Version:      1.0.17
 Text Domain:  ishop-theme-child
*/

/* Category megamenu next to logo (top header) */
.header-top-content__logo-search-box {
  width: 58%;
  gap: 20px;
}

.header-top-content__logo img {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.header-top-content__category {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 320;
}

.header-top-content__category .header-category-off-content__categoty-main {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
}

.header-top-content__category .header-category-off-content__categoty-main-title {
  font-size: 14px;
  font-weight: 700;
  color: #132044;
  padding-top: 0;
}

.header-top-content__category .megaMenu {
  width: min(900px, 70vw);
  right: 0;
  left: auto;
}

/* Lower bar: only main nav remains in this span */
.header-category-off-content__categoty {
  width: auto;
  flex: 1;
}

/* Rounded search, login, cart */
.header-top-content__search-box,
.header-top-content__login,
.header-top-content__shopping-cart {
  border-radius: 999px !important;
  overflow: hidden;
}

/* Product card: cart icon instead of text, round button */
.product-card--actions {
  align-items: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.product-card--actions-price {
  flex: 1 1 auto;
  min-width: 0;
}

.product-card--actions-addtocart {
  flex: 0 0 auto;
  gap: 0;
}

.product-card--actions-addtocart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 42px;
}

.product-card--actions-addtocart-link,
.product-card--actions-addtocart-ajax {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px;
  padding: 0 !important;
  border-radius: 999px !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.product-card--actions-addtocart-link {
  display: inline-flex !important;
}

.product-card--actions-addtocart-ajax {
  display: inline-flex;
}

.product-card--actions-addtocart-ajax[style*="display: none"],
.product-card--actions-addtocart-ajax[style*="display:none"] {
  display: none !important;
}

/* When quantity is open, keep only quantity (not both) */
.product-card--actions-addtocart-wrapper:has(
  .product-card--actions-addtocart-quantity:not([style*="display: none"]):not([style*="display:none"])
) .product-card--actions-addtocart-ajax {
  display: none !important;
}

.product-card--actions-addtocart-quantity {
  border-radius: 999px !important;
  box-sizing: border-box;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 2px !important;
  padding: 6px 2px !important;
  min-height: 40px;
  height: 40px;
}

/* Same compact size everywhere (match miniquantity) */
.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity,
.product-card-wrapper.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity,
.product-card--actions-addtocart-quantity {
  padding: 6px 2px !important;
  gap: 2px !important;
  min-height: 40px !important;
  height: 40px !important;
}

.product-card--actions-addtocart-quantity input,
.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity input,
.product-card-wrapper.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity input {
  font-size: 16px !important;
  width: 28px !important;
}

.product-card--actions-addtocart-quantity button svg,
.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity button svg,
.product-card-wrapper.product-card--actions-addtocart-wrapper--miniquantity .product-card--actions-addtocart-quantity button svg {
  width: 12px !important;
  height: 12px !important;
}

.product-card--actions-addtocart-quantity[style*="display: none"],
.product-card--actions-addtocart-quantity[style*="display:none"] {
  display: none !important;
}

.product-card--actions-addtocart-link::before,
.product-card--actions-addtocart-ajax::before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Cpath d='M7.30078 12.6445L8.42578 13.7695L10.8633 11.5195' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.69156 2.14453L3.97656 4.86703' stroke='%23fff' stroke-width='1.2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.4766 2.14453L14.1916 4.86703' stroke='%23fff' stroke-width='1.2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M1.58594 6.53125C1.58594 5.14375 2.32844 5.03125 3.25094 5.03125H14.9209C15.8434 5.03125 16.5859 5.14375 16.5859 6.53125C16.5859 8.14375 15.8434 8.03125 14.9209 8.03125H3.25094C2.32844 8.03125 1.58594 8.14375 1.58594 6.53125Z' stroke='%23fff' stroke-width='1.2'/%3E%3Cpath d='M2.71094 8.14453L3.76844 14.6245C4.00844 16.0795 4.58594 17.1445 6.73094 17.1445H11.2534C13.5859 17.1445 13.9309 16.1245 14.2009 14.7145L15.4609 8.14453' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hide installment / خرید اعتباری on product cards */
.product-card--actions-installment {
  display: none !important;
}

/* Hide index slider side nav arrows */
.custom-nav-button,
.custom-button-prev,
.custom-button-next,
.index-slider .custom-nav-button,
.elementor-widget-ishop_slider_block .custom-nav-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
