/*
Theme Name: Tijara Global
Theme URI: https://tijaraglobal.org
Author: Haroon Khalil
Author URI: https://tijaraglobal.org
Description: A modern e-commerce WordPress theme for Tijara Global LLC - wholesale products across health & fitness, beauty, kitchen, and food categories.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tijara-global
Domain Path: /languages
*/

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
  --primary-color: #0f0f3d;
  --secondary-color: #2563eb;
  --tertiary-color: #f3f3f5;
  --success-color: #16a34a;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
  --radius: 0.625rem;
}

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1d4ed8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-branding .logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.site-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.main-navigation {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-navigation a {
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--secondary-color);
}

.cta-button {
  background-color: var(--secondary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 2rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-text p {
  color: #dbeafe;
  font-size: 1.125rem;
}

.hero-image {
  display: none;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}

/* ============================================
   SECTIONS & SPACING
   ============================================ */

section {
  padding: 5rem 0;
}

section.bg-light {
  background-color: #f9fafb;
}

/* About Section */
.about-section .section-intro {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 3rem;
}

.about-section .section-intro h2 {
  margin-bottom: 1.5rem;
}

.about-section .section-intro p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section .section-intro {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  overflow: hidden;
}

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

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

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-content p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background-color: #dcfce7;
  color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.benefit-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.875rem;
}

/* ============================================
   MARKETPLACES SECTION
   ============================================ */

.marketplaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.marketplace-card {
  background: white;
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.marketplace-card:hover {
  box-shadow: var(--shadow-lg);
}

.marketplace-icon {
  width: 3rem;
  height: 3rem;
  color: var(--secondary-color);
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.marketplace-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.marketplace-card p {
  font-size: 0.875rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
}

.contact-section h2 {
  color: white;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-section > .container > p {
  text-align: center;
  color: #dbeafe;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.contact-item h4 {
  color: white;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: #dbeafe;
  font-size: 0.875rem;
  margin: 0;
}

.contact-button-wrapper {
  text-align: center;
}

.contact-button-wrapper .cta-button {
  background-color: white;
  color: var(--secondary-color);
  padding: 1rem 2rem;
  font-size: 1rem;
}

.contact-button-wrapper .cta-button:hover {
  background-color: #f9fafb;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .main-navigation.active {
    display: flex;
  }

  .cta-button.hidden-mobile {
    display: none;
  }

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

  .hero-image {
    display: block;
  }

  section {
    padding: 2rem 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.5rem;
  }

  .main-navigation {
    gap: 0.75rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .products-grid,
  .features-grid,
  .benefits-grid,
  .marketplaces-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.max-w-4xl {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
