/*
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; }
}
