/*
Theme Name: Segma Commerce
Theme URI: https://segma.tn
Author: Segma
Author URI: https://segma.tn
Description: ثيم تجارة إلكترونية خفيف وسريع مُحسَّن للغة العربية ومتوافق مع WooCommerce
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
Text Domain: segma-commerce
Tags: woocommerce, arabic, rtl, ecommerce, lightweight
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --clr-primary:       #FF5100;
  --clr-primary-dark:  #e04800;
  --clr-primary-light: #ff6a1a;
  --clr-topbar:        #FF5100;
  --clr-text:          #1a1a1a;
  --clr-text-muted:    #777;
  --clr-price-old:     #aaa;
  --clr-price-new:     #FF5100;
  --clr-bg:            #f5f5f5;
  --clr-white:         #ffffff;
  --clr-border:        #e8e8e8;
  --clr-badge-bg:      #FF5100;
  --clr-badge-text:    #ffffff;
  --clr-star:          #f5a623;

  --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-size-base: 14px;
  --font-size-sm:   12px;
  --font-size-lg:   16px;
  --font-size-xl:   20px;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --radius-full: 50%;

  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(255,81,0,0.18);

  --transition: 0.2s ease;

  --container-max: 1200px;
  --header-h: 60px;
  --topbar-h: 36px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.segma-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  text-align: center;
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--clr-text);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: 3px; }
