/* Custom CSS to enhance the Loras Boutique website */

/* Global improvements */
:root {
  --primary-color: #FF6B8B;  /* Pink primary color */
  --primary-darker: #FF4D73;
  --secondary-color: #8C52FF;  /* Purple secondary color */
  --secondary-darker: #7840FF;
  --accent-color: #F9F3F5;  /* Light pink accent */
  --text-color: #333333;
  --light-gray: #F8F9FA;
  --border-color: #E9ECEF;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #FF5252;
  --info-color: #2196F3;
}

/* Apply smooth scrolling for a more modern feel */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

/* Add box shadows to product cards for depth */
.card, .product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* Enhance buttons styling */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
  border-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(255, 107, 139, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-color));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 107, 139, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-darker));
  border-color: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(140, 82, 255, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-darker), var(--secondary-color));
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(140, 82, 255, 0.4);
}

/* Improve text readability */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Enhanced hero section */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  z-index: 1;
}

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

/* Improved product card layout */
.product-card {
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  height: 100%;
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.product-badge.sale {
  background-color: var(--danger-color);
  color: white;
}

.product-badge.new {
  background-color: var(--info-color);
  color: white;
}

.product-badge.featured {
  background-color: var(--success-color);
  color: white;
}

.product-details {
  padding: 15px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.product-title:hover {
  color: var(--primary-color);
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.product-price .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

/* Quick view modal styling */
.quick-view-modal {
  backdrop-filter: blur(5px);
}

.quick-view-content {
  border-radius: 15px;
  overflow: hidden;
}

/* Enhanced category cards */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 250px;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: white;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(var(--primary-color-rgb), 0.8), rgba(0,0,0,0));
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* Cart styling */
.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  padding: 0 15px;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-wrapper {
    height: 60vh;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .product-image-container {
    height: 200px;
  }
}

/* Form styling improvements */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 139, 0.25);
}

/* Footer enhancements */
footer {
  background-color: #343a40;
  color: white;
  padding: 40px 0;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

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

.footer-link {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Social media icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 1s ease;
}

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

/* Wishlist icon styling */
.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.wishlist-icon:hover {
  transform: scale(1.1);
}

.wishlist-icon.active i {
  color: var(--danger-color);
}

/* Custom animations for loading */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 107, 139, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Improvements for mobile navigation */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-items {
  padding: 15px;
}

.mobile-menu-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.mobile-menu-overlay.open {
  display: block;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  padding: 15px 20px;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-right: 5px solid var(--success-color);
}

.toast.error {
  border-right: 5px solid var(--danger-color);
}

.toast.info {
  border-right: 5px solid var(--info-color);
}

.toast.warning {
  border-right: 5px solid var(--warning-color);
}

/* RTL specific improvements */
html[dir="rtl"] .footer-heading::after {
  right: 0;
  left: auto;
}

html[dir="rtl"] .product-badge {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .wishlist-icon {
  right: auto;
  left: 10px;
}

/* Add image galleries with transitions */
.gallery-container {
  position: relative;
  overflow: hidden;
}

.gallery-image {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.gallery-image.active {
  opacity: 1;
  position: relative;
}

.gallery-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.gallery-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transition: background-color 0.3s ease;
}

.gallery-indicator.active {
  background-color: white;
}

/* Add a nice style for quantity input */
.quantity-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  max-width: 120px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: var(--light-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.quantity-input {
  width: 40px;
  height: 30px;
  border: none;
  text-align: center;
} 