/*
Theme Name: RAZZIINE
Theme URI: https://razziine.com
Author: RAZZIINE Team
Author URI: https://razziine.com
Description: قالب متجر إلكتروني عصري متوافق مع WooCommerce مع دعم كامل للغة العربية واتجاه RTL
Version: 1.0.0
Requires at least: 6.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: razziine
Tags: e-commerce, rtl-language-support, custom-menu, custom-logo, featured-images, woocommerce
*/

:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #1e3a8a;
  --color-accent: #fbbf24;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-background: #ffffff;
  --color-surface: #f9fafb;
  --font-arabic: "Cairo", "Tajawal", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-arabic);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

/* Header Styles */
.site-header {
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.header-search {
  flex: 1;
  max-width: 500px;
}

.search-form {
  position: relative;
  display: flex;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-submit {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.cart-count {
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Navigation Styles */
.main-navigation {
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.nav-dropdown {
  position: relative;
}

.dropdown-icon {
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #60d5f5;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #60d5f5;
}

.hero-cta {
  display: inline-block;
  background-color: var(--color-accent);
  color: #1f2937;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.hero-image {
  position: relative;
  height: 400px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Promo Marquee */
.promo-marquee {
  background-color: var(--color-accent);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  padding: 0 3rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #1f2937;
  display: inline-block;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Category Grid */
.category-section {
  padding: 3rem 0;
  background-color: var(--color-surface);
}

.category-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-image-wrapper {
  width: 100%;
  height: 150px;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.category-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: #1f2937;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-text {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* WooCommerce Overrides */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.woocommerce ul.products li.product {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .button {
  background-color: var(--color-primary);
  color: white;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--color-primary-dark);
}
