/*
 Theme Name:   Kadence Child
 Theme URI:    https://www.kadencewp.com/
 Description:  Child theme for Kadence
 Author:       Your Name
 Template:     kadence
 Version:      1.1.0
*/

/* ===========================
   Global Styles & Utilities
   =========================== */
:root {
  --shadow-primary: 0 4px 8px 0 #00000010;
  --swiper-navigation-size: 24px !important;
}

body {
  line-height: 1.6;
}

.text-balance {
  text-wrap: balance;
}

@media (max-width: 768px) {
  .kb-row-layout-id974_e794e3-b9 > .kt-row-column-wrap {
    min-height: 210px !important;
  }
}

/* ===========================
   Categories Grid on Homepage
   =========================== */
.home-products-categories-container ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 !important;
  margin: 0;
  align-items: center;
}

.home-products-categories-container li {
  text-align: center;
  width: 600px;
  max-width: 100%;
  margin: 0 !important;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease-in-out;
}

.home-products-categories-container li:hover {
  transform: translateY(-5px);
}

.wc-block-product-categories-list--has-images
  .wc-block-product-categories-list-item__image {
  all: initial !important;
}

.home-products-categories-container li img {
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.home-products-categories-container
  li
  .wc-block-product-categories-list-item__name {
  display: none;
  /* background: var(--global-palette2);
  color: var(--global-palette8);
  font-weight: 900;
  margin: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  padding: 0.75rem;
  width: 93%;
  border-radius: 4rem 0 0 0;
  border: 2px solid var(--global-palette7);
  border-inline-start: none;
  border-block-end: none;
  transition: all 0.3s ease; */
}

/* ===========================
   Swiper Slider Controls
   =========================== */
.swiper .swiper-wrapper {
  padding-block: 1.5rem;
}

.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-color: var(--global-palette-7);
  --swiper-theme-color: var(--global-palette-7);
  color: var(--global-palette7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

/* ===========================
   Category Block (Homepage Sections)
   =========================== */
.category-block {
  padding-block: 1.5rem;
  margin-inline: -16px;
}

.custom-home-categories .category-block .products-grid {
  list-style: none;
  padding-inline: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* ===========================
   Section Titles
   =========================== */
.section-title {
  font-weight: 900;
  margin: 0 auto 2rem !important;
  width: fit-content;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1.7rem;
  text-align: center;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  background-color: var(--global-palette5);
}

.section-title::before {
  width: min(130px, 90%);
  height: 5px;
  border-radius: 5rem;
  translate: -50% 0;
}

.section-title::after {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  translate: -50% calc(50% - 2.5px);
}

.woocommerce ul.products {
  gap: 16px !important;
}

@media (max-width: 767px) {
  .woocommerce ul.products {
    gap: 6px !important;
  }
}

/* ===========================
   Product Card Styles
   =========================== */
.woocommerce .products li.product,
.products-slides li.product {
  box-shadow: 0 5px 5px 2px #00000010 !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  position: relative;
  border: 1px solid #cfcfcf;
}

.woocommerce .products li.product *,
.products-slides li.product * {
  user-select: none;
}

.woocommerce .products li.product-details,
.products-slides li.product-details {
  padding: 1.5rem 1rem !important;
}

/* ===========================
   Product Badges & Labels
   =========================== */
.woocommerce .products li.product .product-brand,
.products-slides li.product .product-brand {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 14px;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--global-palette1);
  color: var(--global-palette9);
}

.woocommerce .products li.product .woocommerce-loop-product__title,
.products-slides li.product .woocommerce-loop-product__title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--global-palette1);
  min-height: 2lh;
}

.woocommerce .products .product .price,
.products-slides .product .price {
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.4;
}

.woocommerce .products li.product span.onsale,
.products-slides li.product span.onsale {
  background: red;
  color: white;
  font-weight: 900;
  border-radius: 0.4rem;
  display: block;
  width: fit-content;
  margin-right: auto;
  padding: 0.2rem 0.5rem;
  direction: ltr;
  font-size: 1rem;
}

.woocommerce .products li.product .price del,
.products-slides li.product .price del {
  color: red;
  font-size: 1.1rem;
  width: 100%;
}

/* ===========================
   Product Actions (Cart + Wishlist)
   =========================== */
.woocommerce .products li.product .product-action-wrap,
.products-slides li.product .product-action-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.woocommerce .products li.product .add_to_cart_button,
.products-slides li.product .add_to_cart_button {
  background-color: var(--global-palette1);
  color: var(--global-palette8);
  font-weight: 600;
  flex-grow: 1;
  margin-inline: 0 !important;
  text-align: center;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
}

.add_to_cart_button:hover {
  background-color: var(--global-palette1);
  filter: brightness(160%);
  transform: scale(1.03);
}

.woocommerce .products li.product .tinvwl-woocommerce_after_shop_loop_item,
.products-slides li.product .tinvwl-woocommerce_after_shop_loop_item {
  order: -1;
  height: 100%;
  display: flex;
  align-items: center;
}

.woocommerce
  .products
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button,
.products-slides
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button {
  margin-top: 0;
}

.woocommerce
  .products
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button
  span,
.products-slides
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button
  span {
  display: none;
}

.woocommerce
  .products
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button::before,
.products-slides
  li.product
  .tinv-wishlist.tinvwl-after-add-to-cart
  .tinvwl_add_to_wishlist_button::before {
  margin: 0px !important;
  font-size: 40px !important;
  font-weight: 500;
}

.woocommerce .products li.product .product-action-wrap,
.products-slides li.product .product-action-wrap {
  padding-top: 6px;
}

@media (max-width: 768px) {
  .woocommerce .products li.product,
  .products-slides li.product {
    .product-brand {
      font-size: 10px;
    }

    .product-details {
      padding: 0.7rem !important;
    }

    span.onsale,
    span.onsale,
    .price del,
    .price del {
      font-size: 14px !important;
    }

    .woocommerce-loop-product__title {
      font-size: 14px;
    }

    .product-action-wrap > * {
      font-size: 11px !important;
      flex-wrap: wrap-reverse;
      margin-top: 0;
    }

    .product-action-wrap .tinvwl_add_to_wishlist_button::before {
      font-size: 24px !important;
    }
  }
}

@media (max-width: 767px) {
  .custom-home-categories .category-block .products-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 0.5rem; /* أصغر مسافة بين المنتجات */
  }

  .product {
    border-radius: 0.5rem !important;
  }

  .woocommerce-loop-product__title {
    font-size: 0.95rem; /* أصغر شوي */
  }

  .product .price {
    font-size: 1rem; /* أصغر شوي */
  }

  .product .price del {
    font-size: 0.85rem;
  }

  .product .product-brand {
    font-size: 12px;
    padding: 0.2rem 0.4rem;
  }

  .product span.onsale {
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
  }

  .add_to_cart_button {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .product-details {
    padding: 1rem 0.75rem !important;
  }
}

/* ==============================
   Fixed Bottom Navbar (Mobile)
   ============================== */
.mobile-bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-navbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-navbar a svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  color: var(--global-palette1); /* Accent color */
  transition: color 0.3s ease, transform 0.2s ease;
}

.mobile-bottom-navbar a span {
  font-size: 11px;
  font-weight: 600;
}

.mobile-bottom-navbar a.active svg,
.mobile-bottom-navbar a:hover svg {
  color: var(--global-palette2);
  transform: scale(1.1);
}

/* Hide on desktop/tablet */
@media (min-width: 1025px) {
  .mobile-bottom-navbar {
    display: none;
  }
}
