/*
Theme Name: Tajer Pro
Theme URI: https://wordpress.org/themes/tajer-pro/
Author: Halim Meziani & Phonix
Author URI: https://wordpress.org/
Description: The ultimate high-conversion e-commerce theme designed specifically for the Algerian market. Features 1-page checkout, advanced phone validation, floating WhatsApp integration, dynamic Wilaya shipping calculations, and seamless WooCommerce support.
Tags: e-commerce, woocommerce, algeria, high-conversion, fast-checkout
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tajer-pro
This theme, like WordPress, is licensed under the GPL.
*/
































/* === Footer Styling === */
.site-footer {
  background-color: #fff;
  color: #222;
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 60px 5%;
  border-bottom: 1px solid #eee;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #8b0095;
  margin-top: 8px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #8b0095;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: 130px;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  font-weight: 600;
}

/* === Footer Bottom === */
.footer-bottom {
  background-color: #f6f6f6;
  padding: 15px 5%;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: #333;
}

.footer-bottom p {
  margin: 0;
  text-align: center;

}

/* === Responsive === */
@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column h4::after {
    margin: 8px auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* === End Footer Styling === */

/* ==========================================================================
   TAJER PRO - MODERN UI/UX ADDITIONS
   ========================================================================== */

/* Header Actions (Account & Cart) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: 20px; /* Space from search bar in RTL */
}

.header-action-icon {
  position: relative;
  color: #333;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.header-action-icon:hover {
  color: var(--main-color, #7B2EDE);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff2b5e;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Clean Footer Adjustments */
.tajer-pro-footer {
  background-color: #111;
  color: #fff;
}

.tajer-pro-footer .footer-column h4 {
  color: #fff;
}

.tajer-pro-footer .footer-column ul li a {
  color: #bbb;
}

.tajer-pro-footer .footer-column ul li a:hover {
  color: var(--main-color, #7B2EDE);
  padding-right: 5px; /* RTL nudge */
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-icons a:hover {
  background-color: var(--main-color, #7B2EDE);
  transform: translateY(-3px);
}

.tajer-pro-footer .footer-bottom {
  background-color: #0a0a0a;
  color: #888;
  border-top: 1px solid #222;
}

/* 1-Page Checkout Styling Enhancements */
.tajer-sticky-summary {
  position: sticky;
  top: 100px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tajer-focused-field input, 
.tajer-focused-field select, 
.tajer-focused-field textarea {
  border-color: var(--main-color, #7B2EDE) !important;
  box-shadow: 0 0 0 2px rgba(123, 46, 222, 0.2) !important;
}

/* Modern Inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--main-color, #7B2EDE);
}
/* Fix for Search Bar Rectangle */
.search-input { border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; }

/* ==========================================================================
   TAJER PRO - REDESIGNED HEADER MATCHING REFERENCE
   ========================================================================== */

.tajer-custom-header {
  background: #ffffff;
  font-family: 'Tajawal', 'Cairo', sans-serif;
  direction: rtl;
}

/* TOP TIER */
.tajer-header-top {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.header-top-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 55px; /* Adjust based on your logo */
  width: auto;
}

/* SEARCH */
.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 30px;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-form .search-input {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
}

.search-form .search-btn {
  background-color: var(--main-color, #4f2ed4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 2px;
}
.search-form .search-btn:hover {
  background-color: #3e22ad;
}

/* TOP LEFT ACTIONS */
.header-top-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.call-now-text {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.phone-number {
  font-size: 16px;
  font-weight: 800;
  color: #222;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
}

.contact-icon {
  color: var(--main-color, #4f2ed4);
  font-size: 20px;
}

.shop-now-btn {
  background-color: var(--main-color, #4f2ed4);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.shop-now-btn:hover {
  background-color: #3e22ad;
  color: #fff;
}

/* BOTTOM TIER */
.tajer-header-bottom {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fdfdfd;
}

.header-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* CATEGORIES BUTTON */
.categories-btn {
  background-color: #f5f5f5;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}

.categories-btn i {
  color: var(--main-color, #4f2ed4);
}

/* NAVIGATION */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--main-color, #4f2ed4);
}

/* ICONS LEFT */
.header-icons-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icons-left .header-action-icon {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.header-icons-left .header-action-icon:hover {
  color: var(--main-color, #4f2ed4);
}

.header-icons-left .icon-wrapper {
  position: relative;
  background-color: #f8f8f8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.header-icons-left .action-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background-color: var(--main-color, #4f2ed4);
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* MOBILE HANDLING */
.mobile-top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-search-trigger, .mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.mobile-search-bar {
  padding: 15px;
  background: #fff;
  border-top: 1px solid #eee;
  display: none;
}

.mobile-search-bar.active {
  display: block;
}

.mobile-search-bar form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.mobile-search-bar input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  outline: none;
}

.mobile-search-bar button {
  background: var(--main-color, #4f2ed4);
  color: #fff;
  border: none;
  padding: 0 15px;
}

@media (max-width: 991px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}
@media (min-width: 992px) {
  .desktop-only { display: flex !important; }
  .header-search.desktop-only { display: block !important; }
  .mobile-only { display: none !important; }
}


/* ==========================================================================
   TAJER PRO - EXACT MATCH IMAGE OVERRIDES
   ========================================================================== */

:root {
  /* --main-color and --main-color-hover are set dynamically from the dashboard
     via tajer_custom_styles() in functions.php — do NOT hardcode them here */
  --bg-color: #f9f9f9;
}

body {
  background-color: var(--bg-color);
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

/* Unified Header */
.tajer-header-unified {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.tajer-header-unified .header-logo img {
  height: 60px;
  width: auto;
}

.tajer-header-unified .header-search {
  flex: 0 1 400px;
}

.tajer-header-unified .search-form {
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 4px;
}

.tajer-header-unified .search-form .search-btn {
  background: var(--main-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tajer-header-unified .search-form .search-btn:hover {
  background: var(--main-color-hover);
  color: #fff;
}

.tajer-header-unified .main-nav ul {
  gap: 25px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tajer-header-unified .main-nav a {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}
.tajer-header-unified .main-nav li.current-menu-item a,
.tajer-header-unified .main-nav a:hover,
.tajer-header-unified .main-nav a.active {
  color: var(--main-color);
}

.tajer-header-unified .header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions .account-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 700;
}
.header-actions .account-link i {
  font-size: 20px;
  margin-bottom: 4px;
}

.header-actions .cart-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  position: relative;
}
.header-actions .cart-link i {
  font-size: 20px;
  margin-bottom: 4px;
}

.header-actions .cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--main-color);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Shop Layout Structure */
.shop-layout {
  display: flex;
  gap: 30px;
  padding: 40px 5%;
  flex-direction: row; /* Sidebar left, content right in RTL visual */
}

/* Sidebar Overrides */
.tajer-shop-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.sidebar-widget {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
  border: none;
}

.sidebar-widget .widget-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: none;
}

.category-list li {
  margin-bottom: 15px;
}
.category-list li a {
  display: flex;
  align-items: center;
  color: #555;
  font-size: 15px;
  font-weight: 600;
}
.category-list li.active a, .category-list li a:hover {
  color: var(--main-color);
}
.category-list li a i {
  margin-left: 10px; /* RTL space */
  color: #aaa;
  width: 20px;
  text-align: center;
}
.category-list li.active a i {
  color: var(--main-color);
}
.category-list li a .count {
  margin-right: auto; /* Push to left in RTL */
  color: var(--main-color);
  font-weight: 700;
}

/* Price Slider Visual Fix */
.price-slider-container .price-track {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  margin: 10px 0 20px;
  position: relative;
}
.price-slider-container .price-track .price-fill {
  position: absolute;
  height: 100%;
  background: var(--main-color);
  left: 0;
  right: 0;
  border-radius: 3px;
}
.price-slider-container .price-track .price-handle {
  width: 14px;
  height: 14px;
  background: var(--main-color);
  border-radius: 50%;
  position: absolute;
  top: -4px;
}

.price-inputs {
  display: flex;
  justify-content: space-between;
}
.price-inputs input {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 6px;
  text-align: center;
}

/* Main Content Head */
.shop-main-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.shop-main-head-text h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 5px 0;
  color: #222;
}

.shop-main-head-text p {
  color: #666;
  margin: 0;
  font-size: 15px;
}

.shop-sort-wrap select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  outline: none;
}

/* Product Cards Grid */
.woocommerce ul.products.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.woocommerce ul.products li.product:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  font-weight: 800;
  color: #222;
  margin: 15px 0 5px 0;
}

.woocommerce ul.products li.product .price {
  color: #222;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  display: block;
}
.woocommerce ul.products li.product .price del {
  color: #999;
  font-weight: normal;
  font-size: 14px;
  margin-left: 5px; /* RTL space */
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--main-color); /* Highlight sale price */
}

/* Add to Cart Button Override */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  background: var(--main-color) !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 10px 0 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-align: center !important;
  transition: 0.3s !important;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--main-color-hover) !important;
  color: #fff !important;
}

/* Badges */
.tajer-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff0e6;
  color: var(--main-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  z-index: 2;
}

/* Trust Footer */
.trust-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 30px 5%;
  margin-top: 60px;
}
.trust-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.trust-item i {
  font-size: 28px;
  color: #555;
}
.trust-item-text {
  text-align: right; /* RTL */
}
.trust-item-text h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}
.trust-item-text p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.footer-bottom-simple {
  background: #f9f9f9;
  padding: 15px 5%;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}
