/*
* Zahya Store - Main Stylesheet
* Version: 1.0
*/

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
:root {
  /* Default Light Theme Colors */
  --primary-color: #6366F1;
  --primary-hover: #4F46E5;
  --secondary-color: #475569;
  --accent-color: #F59E0B;
  --text-color: #1E293B;
  --text-muted: #64748B;
  --bg-color: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-dark: #F1F5F9;
  --border-color: #E2E8F0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  
  /* Transitions */
  --transition-speed: 0.3s;
  
  /* Other Variables */
  --header-height: 70px;
  --footer-bg: #1E293B;
  --footer-text: #E2E8F0;
  --section-padding: 80px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-hover);
}

.section-padding {
  padding: var(--section-padding) 0;
}

.section-bg {
  background-color: var(--bg-light);
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Buttons */
.btn {
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn var(--transition-speed) ease-out;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Header & Navigation - Based on Example
--------------------------------------------------------------*/
.main-header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: var(--header-height);
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  height: var(--header-height);
  padding: 0;
}

/* Brand Style - Zahya Premium */
.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.brand-icon-container {
  width: 40px;
  height: 40px;
  background-color: #6f42c1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.brand-icon {
  color: white;
  font-size: 20px;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 1px;
}

.brand-tag {
  font-size: 11px;
  background-color: #6f42c1;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Mobile Toggle Button */
.navbar-toggler {
  border: none;
  padding: 0;
  color: var(--text-color);
  font-size: 20px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Navigation Links */
.navbar-nav .nav-link {
  padding: 25px 20px;
  font-weight: 500;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
  position: relative;
  font-size: 15px;
}

.navbar-nav .nav-link .nav-icon {
  margin-right: 7px;
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover {
  color: #6f42c1;
}

.navbar-nav .nav-link:hover .nav-icon {
  color: #6f42c1;
}

.navbar-nav .nav-link.active {
  color: #6f42c1;
}

.navbar-nav .nav-link.active .nav-icon {
  color: #6f42c1;
}

.navbar-nav .nav-link.active:after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: #6f42c1;
}

/* Right Side Navigation */
.nav-right {
  display: flex;
  align-items: center;
}

.nav-right .nav-link {
  font-weight: 500;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
  padding: 8px 12px;
}

.theme-toggle-link {
  color: var(--text-color);
  font-size: 16px;
  margin-right: 10px;
}

.login-btn, .register-btn {
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.login-btn {
  background-color: #6f42c1;
  color: white !important;
  padding: 8px 15px !important;
  box-shadow: 0 2px 5px rgba(111, 66, 193, 0.3);
  border-radius: 6px;
}

.login-btn:hover {
  background-color: #5d35a5;
  color: white !important;
}

/* Theme Toggle Button in Navbar - Improved */
#themeToggle,
#themeToggleMobile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  background-color: #6f42c1;
  font-size: 17px;
}

.theme-toggle-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
  margin-right: 8px;
}

#themeToggleMobile {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

#themeToggle:hover,
#themeToggleMobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(111, 66, 193, 0.35);
}

#themeToggle:active,
#themeToggleMobile:active {
  transform: translateY(1px);
}

.theme-light .dark-icon {
  display: inline-block;
}

.theme-light .light-icon {
  display: none;
}

.theme-dark .dark-icon {
  display: none;
}

.theme-dark .light-icon {
  display: inline-block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 66, 193, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(111, 66, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(111, 66, 193, 0);
  }
}

/* User Dropdown */
.user-dropdown {
  /* min-width: 260px; */
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-user-info {
  padding: 15px;
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: #6f42c1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dropdown-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 20px;
  font-weight: 600;
}

.dropdown-user-name {
  margin-bottom: 2px;
  font-size: 16px;
}

.dropdown-user-email {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown .dropdown-item {
  padding: 12px 20px;
}

.dropdown-admin {
  color: #6f42c1;
  font-weight: 600;
}

/* Dropdown Styles - Enhanced */
.dropdown-menu {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  margin-top: 5px;
  min-width: 200px;
  background-color: var(--bg-color);
  border-top: 3px solid #6f42c1;
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 20px;
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
  font-weight: 500;
  position: relative;
  border-left: 3px solid transparent;
}

.dropdown-item i {
  color: #6f42c1;
  width: 20px;
  text-align: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(111, 66, 193, 0.06);
  color: #6f42c1;
  border-left: 3px solid #6f42c1;
  padding-left: 23px;
}

.dropdown-item.active {
  background-color: rgba(111, 66, 193, 0.08);
  color: #6f42c1;
  border-left: 3px solid #6f42c1;
}

.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid var(--border-color);
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: 2px;
  border-top: 0.3em solid;
  transition: transform 0.2s ease;
}

.navbar-nav .dropdown-toggle:hover::after {
  transform: translateY(2px);
}

.navbar-nav .show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  padding: 120px 0;
  background: linear-gradient(to right, var(--bg-color) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-muted);
}

.hero-buttons {
  margin-bottom: 30px;
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/*--------------------------------------------------------------
# Product Cards
--------------------------------------------------------------*/
.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  height: 100%;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  height: 200px;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-new {
  background-color: var(--primary-color);
  color: #fff;
}

.badge-sale {
  background-color: var(--accent-color);
  color: #fff;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.product-category {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.product-price-container {
  margin-bottom: 15px;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.product-price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 16px;
  margin-right: 10px;
}

.product-actions {
  margin-top: 15px;
}

/*--------------------------------------------------------------
# Service Cards
--------------------------------------------------------------*/
.service-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 28px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-block;
}

.service-link i {
  margin-left: 5px;
  transition: transform var(--transition-speed) ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  text-align: center;
  margin: 10px 0;
}

.testimonial-content {
  position: relative;
  padding: 0 20px 20px;
}

.testimonial-content:before {
  content: '❝';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 60px;
  color: rgba(var(--primary-color-rgb), 0.1);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info {
  text-align: left;
}

.testimonial-info h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.testimonial-info p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.5;
}

.carousel-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  color: var(--text-color);
  opacity: 0.8;
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
  background-image: none;
}

.carousel-control-prev-icon:after,
.carousel-control-next-icon:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 18px;
  color: var(--text-color);
}

.carousel-control-prev-icon:after {
  content: "\f053";
}

.carousel-control-next-icon:after {
  content: "\f054";
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  margin-top: 30px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.main-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.footer-top {
  padding: 80px 0 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget-title {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-about-text {
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--footer-text);
  font-size: 16px;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text);
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
  padding-left: 5px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  height: 45px;
  border-radius: 6px 0 0 6px;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
  height: 45px;
  border-radius: 0 6px 6px 0;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  margin: 0;
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: var(--footer-text);
  opacity: 0.7;
  font-size: 14px;
}

.footer-bottom-links a:hover {
  color: #fff;
  opacity: 1;
}

/*--------------------------------------------------------------
# Theme Toggle
--------------------------------------------------------------*/
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.btn-theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) ease;
}

.btn-theme-toggle:hover {
  transform: scale(1.1);
}

.theme-light .dark-icon {
  display: block;
}

.theme-light .light-icon {
  display: none;
}

.theme-dark .dark-icon {
  display: none;
}

.theme-dark .light-icon {
  display: block;
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    padding: 10px 15px;
  }
  
  .navbar-nav .nav-link.active:after {
    bottom: 7px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .hero-image {
    margin-top: 30px;
  }
  
  .footer-widget-title {
    margin-top: 20px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  
  .footer-top {
    padding: 50px 0 20px;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 40px 0;
  }
  
  .cta-section {
    padding: 50px 0;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .btn-theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}