 /* الألوان والخطوط والمتغيرات */
:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --secondary: #06b6d4;
  --accent-wa: #25d366;
  --accent-wa-hover: #1eb857;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* شريط الإعلان */
.top-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #ffffff;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* الترويسة */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-box {
  flex: 1;
  max-width: 420px;
}

.search-box input {
  width: 100%;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  outline: none;
  background-color: #f1f5f9;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.btn-primary-sm {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary-sm:hover {
  background-color: var(--primary-hover);
}

/* البانر الترحيبي */
.hero-section {
  padding: 60px 0;
  background: radial-gradient(circle at top right, #e0f2fe, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.hero-text {
  max-width: 650px;
}

.badge {
  display: inline-block;
  background-color: #ccfbf1;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-text h2 span {
  color: var(--primary);
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-main {
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.btn-main:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: #f0fdfa;
}

/* المنتجات */
.main-content {
  padding: 55px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-head h3 {
  font-size: 1.6rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
 .category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* حاوية الصورة وعرضها بدقة */
.product-img-wrap {
  height: 200px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 118, 110, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-whatsapp {
  background-color: var(--accent-wa);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background-color: var(--accent-wa-hover);
}

.no-results {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hidden {
  display: none !important;
}

/* التذييل */
.site-footer {
  padding: 24px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* التجاوب للجوال */
@media (max-width: 768px) {
  .header-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .btn-primary-sm {
    text-align: center;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}