/*
Theme Name: Imbrator Child
Theme URI: https://imbrator.wp-arabi.com
Author: Ayman Hafez
Author URI: https://aymanhafez.net
Description: Imbrator - A professional WordPress theme for electrical devices, computers and mobile phone stores
Version: 1.0.0
Template: imbrator
Text Domain: imbrator
*/

/*
* =============================================
* SPORT SPIRIT - WooCommerce Shop Redesign
* تصميم صفحة المتجر - مستوحى من الموقع الثاني
* =============================================
*/

/* ===== المتغيرات الأساسية ===== */
:root {
  --sport-yellow: #F5C003;
  --sport-yellow-dark: #e0af00;
  --sport-dark: #1a1a1a;
  --sport-gray-bg: #2a2a2a;
  --sport-card-radius: 10px;
  --sport-btn-radius: 8px;
}

/* ===== HERO / BREADCRUMB SECTION ===== */
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb {
  background-color: var(--sport-gray-bg) !important;
  color: #ffffff !important;
  padding: 30px 20px !important;
  margin: 0 0 0 0 !important;
  width: 100%;
  display: block;
  font-size: 14px;
}
.woocommerce-breadcrumb a {
  color: var(--sport-yellow) !important;
  text-decoration: none !important;
}
.woocommerce-breadcrumb a:hover {
  text-decoration: underline !important;
}

/* ===== BANNER "أحدث التقنيات" ===== */
.woocommerce-products-header,
.page-title,
.woocommerce-shop-title {
  background: var(--sport-dark) !important;
  color: #fff !important;
  text-align: center !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  margin-bottom: 24px !important;
  font-size: 18px !important;
}

/* ===== LAYOUT: SIDEBAR + CONTENT ===== */
/* الـ wrapper الرئيسي */
.woocommerce-page #primary.content-area,
.woocommerce #primary.content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.imbrator-wrap {
  padding: 30px 0 !important;
}

/* ===== SHOP TOOLBAR ===== */
.woocommerce-ordering select,
.woocommerce .woocommerce-ordering select {
  border: 1px solid #e0e0e0 !important;
  border-radius: var(--sport-btn-radius) !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: var(--sport-dark) !important;
}

/* ===== PRODUCT GRID ===== */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* ===== بطاقة المنتج ===== */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  background: #ffffff !important;
  border-radius: var(--sport-card-radius) !important;
  border: 1px solid #eeeeee !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  text-align: center !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10) !important;
  transform: translateY(-2px) !important;
}

/* ===== صورة المنتج ===== */
.woocommerce ul.products li.product a img,
ul.products li.product a img,
ul.products li.product img {
  width: 100% !important;
  height: 190px !important;
  object-fit: contain !important;
  padding: 14px !important;
  background: #f9f9f9 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.3s ease !important;
}

ul.products li.product:hover img {
  transform: scale(1.04) !important;
}

/* ===== أزرار الإجراءات (السلة / العين / الرابط) ===== */
ul.products li.product .product-action-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 12px 4px !important;
  background: #f9f9f9 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

ul.products li.product .product-action-buttons a,
ul.products li.product .product-action-buttons button {
  width: 36px !important;
  height: 36px !important;
  background: var(--sport-yellow) !important;
  color: var(--sport-dark) !important;
  border: none !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
}

ul.products li.product .product-action-buttons a:hover,
ul.products li.product .product-action-buttons button:hover {
  background: var(--sport-yellow-dark) !important;
}

/* ===== السعر ===== */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
  display: block !important;
  padding: 10px 12px 4px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--sport-dark) !important;
  margin: 0 !important;
  text-align: center !important;
  order: 1 !important;
}

.woocommerce ul.products li.product .price ins,
ul.products li.product .price ins {
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* ===== اسم المنتج ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 4px 12px 10px !important;
  margin: 0 !important;
  color: var(--sport-dark) !important;
  line-height: 1.4 !important;
  text-align: center !important;
  flex-grow: 1 !important;
}

/* ===== زر "إضافة إلى السلة" ===== */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
ul.products li.product a.button,
ul.products li.product .add_to_cart_button {
  display: block !important;
  width: calc(100% - 24px) !important;
  margin: 0 12px 12px !important;
  background: var(--sport-yellow) !important;
  color: var(--sport-dark) !important;
  border: none !important;
  border-radius: var(--sport-btn-radius) !important;
  padding: 9px 8px !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product a.button:hover,
ul.products li.product .add_to_cart_button:hover {
  background: var(--sport-yellow-dark) !important;
  color: var(--sport-dark) !important;
}

/* ===== SIDEBAR الفئات ===== */
.widget_product_categories .product-categories {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget_product_categories .product-categories li a {
  display: block !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  color: var(--sport-dark) !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  margin-bottom: 4px !important;
}

.widget_product_categories .product-categories li.current-cat > a,
.widget_product_categories .product-categories li a:hover {
  background: var(--sport-yellow) !important;
  color: var(--sport-dark) !important;
  font-weight: 600 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  ul.products li.product a img,
  ul.products li.product img {
    height: 150px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}
