/* Store Home Template CSS - جميع الكلاسات المخصصة */

/* ===== متغيرات القالب ===== */
:root {
  --template-primary: #3b82f6;
  --template-secondary: #64748b;
  --template-accent: #f59e0b;
  --template-success: #10b981;
  --template-error: #ef4444;
  --template-info: #06b6d4;
}

/* ===== Store Home Page Container ===== */
.store-home-page {
  background: #f8fafc;
  min-height: 100vh;
}

/* ===== Image Placeholder ===== */
.image-placeholder {
  background: #f8fafc;
  color: #9ca3af;
  border: 2px dashed #d1d5db;
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, var(--template-primary), #1e40af);
  position: relative;
}

.hero-background {
  position: relative;
}

.hero-overlay {
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(30, 64, 175, 0.5));
  backdrop-filter: blur(1px);
}

.hero-content {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-button {
  background: linear-gradient(135deg, var(--template-accent), #ea580c);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  transition: all 0.3s ease;
  border: none;
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.hero-video,
.hero-background-image {
  filter: brightness(0.7);
}

/* ===== Section Styles ===== */
.products-section {
  background: #ffffff;
}

.categories-section {
  background: #ffffff;
}

.custom-section {
  background: #f8fafc;
}

.banner-section {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.testimonials-section {
  background: #ffffff;
}

.store-sections {
  position: relative;
}

.section-title {
  color: var(--template-primary);
  position: relative;
}

.section-title-underline {
  background: linear-gradient(90deg, var(--template-primary), var(--template-accent));
}

/* ===== Product Cards ===== */
.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  border-color: var(--template-primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-5px);
}

.product-image-container {
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

.product-image {
  transition: transform 0.3s ease;
}

.product-name {
  color: #1f2937;
  transition: color 0.2s ease;
}

.product-name:hover {
  color: var(--template-primary);
}

.product-price {
  color: var(--template-primary);
  font-weight: 700;
}

.discount-price {
  color: var(--template-success);
  font-weight: 700;
}

.original-price {
  color: #9ca3af;
}

.product-price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-button {
  background: linear-gradient(135deg, var(--template-primary), #1e40af);
  color: white;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
  border: none;
}

.cart-button:hover {
  background: linear-gradient(135deg, var(--template-accent), #ea580c);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.cart-button-disabled {
  background: #9ca3af;
  color: white;
  cursor: not-allowed;
}

.buy-now-button {
  background: linear-gradient(135deg, var(--template-accent), #ea580c);
  color: white;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
  border: none;
}

.buy-now-button:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.view-product-button {
  background: transparent;
  color: var(--template-primary);
  border: 2px solid var(--template-primary);
  transition: all 0.2s ease;
}

.view-product-button:hover {
  background: var(--template-primary);
  color: white;
  transform: translateY(-1px);
}

/* ===== Category Cards ===== */
.category-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.category-card:hover {
  border-color: var(--template-primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
}

.category-image-container {
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

.category-image {
  transition: transform 0.3s ease;
}

.category-placeholder {
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-name {
  color: #1f2937;
}

.category-button {
  background: linear-gradient(135deg, var(--template-primary), #1e40af);
  color: white;
  transition: all 0.2s ease;
  border: none;
}

.category-button:hover {
  background: linear-gradient(135deg, var(--template-accent), #ea580c);
  transform: translateY(-2px);
}

/* ===== Custom Content ===== */
.custom-content {
  color: #374151;
}

.custom-html-content {
  color: #374151;
}

.custom-html-content h1,
.custom-html-content h2,
.custom-html-content h3,
.custom-html-content h4,
.custom-html-content h5,
.custom-html-content h6 {
  color: var(--template-primary);
}

.custom-html-content a {
  color: var(--template-accent);
  transition: color 0.2s ease;
}

.custom-html-content a:hover {
  color: var(--template-primary);
}

.custom-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.custom-item-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.custom-item-title {
  color: #1f2937;
}

.custom-item-content {
  color: #6b7280;
}

.custom-item-link {
  background: var(--template-primary);
  color: white;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.custom-item-link:hover {
  background: var(--template-accent);
}

.custom-item-image {
  transition: transform 0.3s ease;
}

.custom-item-card:hover .custom-item-image {
  transform: scale(1.05);
}

/* ===== Banner Section ===== */
.banner-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.banner-item-card:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.banner-content {
  color: #374151;
}

.banner-title {
  color: #1f2937;
}

.banner-description {
  color: #6b7280;
}

.banner-link {
  background: linear-gradient(135deg, var(--template-primary), #1e40af);
  color: white;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.banner-link:hover {
  background: linear-gradient(135deg, var(--template-accent), #ea580c);
  transform: translateY(-2px);
}

.banner-image {
  transition: transform 0.3s ease;
}

.banner-item-card:hover .banner-image {
  transform: scale(1.03);
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
  transform: translateY(-3px);
}

.testimonial-content {
  color: #374151;
}

.testimonial-avatar {
  border: 2px solid var(--template-primary);
}

.testimonial-avatar-placeholder {
  background: #e5e7eb;
  color: #9ca3af;
}

.testimonial-author-name {
  color: #1f2937;
}

.testimonial-author-position {
  color: #6b7280;
}

/* ===== Toast Notifications ===== */
.toast-container {
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
}

.toast-success {
  background: linear-gradient(135deg, var(--template-success), #059669);
  color: white;
}

.toast-error {
  background: linear-gradient(135deg, var(--template-error), #dc2626);
  color: white;
}

.toast-info {
  background: linear-gradient(135deg, var(--template-info), #0891b2);
  color: white;
}

.toast-message {
  font-weight: 500;
}

.toast-close {
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ===== Landing Page ===== */
.landing-page {
  background: #ffffff;
}

.landing-page-content {
  color: #374151;
}

.landing-page-content h1,
.landing-page-content h2,
.landing-page-content h3,
.landing-page-content h4,
.landing-page-content h5,
.landing-page-content h6 {
  color: var(--template-primary);
}

.landing-page-content a {
  color: var(--template-accent);
  transition: color 0.2s ease;
}

.landing-page-content a:hover {
  color: var(--template-primary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .product-card:hover,
  .category-card:hover,
  .banner-item-card:hover {
    transform: translateY(-2px);
  }
  
  .hero-button:hover,
  .cart-button:hover,
  .buy-now-button:hover,
  .view-product-button:hover,
  .category-button:hover {
    transform: translateY(-1px);
  }
}

/* ===== Mobile Grid Control ===== */
@media (max-width: 639px) {
  .products-section .grid,
  .categories-section .grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}