/*
==============================================
  WP KODA — Category & Tag Page Styles
  
  الموقع: hello-elementor-child/assets/css/wpkoda-category-styles.css
  الإصدار: 1.0
  
  ⚠️ كل التنسيقات معزولة بـ .wpkc-* (لا تؤثر على الموقع)
  ⚠️ Max-width: 1200px
  ⚠️ Responsive: Desktop (4 cols) → Tablet (3) → Mobile (2)
==============================================
*/


/* ═══════════════════════════════════════════
   0. المتغيرات الأساسية
   ═══════════════════════════════════════════ */

.wpkc-page {
  --wpkc-color-text: #4B5563;
  --wpkc-color-heading: #111827;
  --wpkc-color-muted: #9CA3AF;
  --wpkc-color-light: #F8F9FA;
  --wpkc-color-border: #E5E7EB;
  --wpkc-color-border-hover: #D1D5DB;
  --wpkc-color-primary: #2563EB;
  --wpkc-color-primary-hover: #1D4ED8;
  --wpkc-color-success: #059669;
  --wpkc-color-danger: #DC2626;
  --wpkc-color-warning: #D97706;
  --wpkc-color-white: #FFFFFF;
  --wpkc-color-black: #111827;
  
  --wpkc-radius-sm: 6px;
  --wpkc-radius-md: 8px;
  --wpkc-radius-lg: 12px;
  --wpkc-radius-pill: 9999px;
  
  --wpkc-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --wpkc-shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --wpkc-shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  
  --wpkc-font: 'Cairo', system-ui, -apple-system, sans-serif;
}


/* ═══════════════════════════════════════════
   1. الحاوية الرئيسية
   ═══════════════════════════════════════════ */

.wpkc-page {
  font-family: var(--wpkc-font);
  color: var(--wpkc-color-text);
  line-height: 1.7;
  padding: 24px 0 60px;
  background: #fff;
}

.wpkc-page * {
  box-sizing: border-box;
}

.wpkc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ═══════════════════════════════════════════
   2. Breadcrumbs
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-breadcrumbs {
  font-size: 0.85rem;
  color: var(--wpkc-color-muted);
  margin-bottom: 20px;
  padding: 8px 0;
}

.wpkc-page .wpkc-breadcrumbs a {
  color: var(--wpkc-color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wpkc-page .wpkc-breadcrumbs a:hover {
  color: var(--wpkc-color-primary);
}


/* ═══════════════════════════════════════════
   3. Hero Section
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-hero {
  background: linear-gradient(135deg, var(--wpkc-color-light) 0%, #EEF2F6 100%);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
}

.wpkc-page .wpkc-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wpkc-page .wpkc-hero-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--wpkc-color-white);
  border-radius: var(--wpkc-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wpkc-shadow-md);
}

.wpkc-page .wpkc-hero-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--wpkc-color-primary);
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.wpkc-page .wpkc-hero-content {
  flex: 1;
  min-width: 0;
}

.wpkc-page .wpkc-hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wpkc-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.wpkc-page .wpkc-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wpkc-color-heading);
  margin: 0 0 14px;
  line-height: 1.3;
}

.wpkc-page .wpkc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wpkc-page .wpkc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wpkc-color-text);
}

.wpkc-page .wpkc-hero-badge .material-symbols-outlined {
  font-size: 16px;
  color: var(--wpkc-color-success);
}


/* ═══════════════════════════════════════════
   4. شريط التصفية الأفقي المتزحلق
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-filter-wrapper {
  position: relative;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpkc-page .wpkc-filter-strip {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.wpkc-page .wpkc-filter-strip::-webkit-scrollbar {
  display: none;
}

.wpkc-page .wpkc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-pill);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--wpkc-color-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wpkc-page .wpkc-filter-pill:hover {
  background: var(--wpkc-color-light);
  border-color: var(--wpkc-color-border-hover);
  color: var(--wpkc-color-heading);
}

.wpkc-page .wpkc-filter-pill.wpkc-active {
  background: var(--wpkc-color-heading);
  border-color: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-filter-pill .material-symbols-outlined {
  font-size: 16px;
}

.wpkc-page .wpkc-filter-count {
  background: var(--wpkc-color-light);
  color: var(--wpkc-color-muted);
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: var(--wpkc-radius-pill);
  font-weight: 600;
}

.wpkc-page .wpkc-filter-pill.wpkc-active .wpkc-filter-count {
  background: rgba(255,255,255,0.2);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-filter-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--wpkc-color-text);
  padding: 0;
}

.wpkc-page .wpkc-filter-arrow:hover {
  background: var(--wpkc-color-heading);
  border-color: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-filter-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wpkc-page .wpkc-filter-arrow .material-symbols-outlined {
  font-size: 20px;
}


/* ═══════════════════════════════════════════
   5. شبكة البطاقات
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-grid-section {
  margin-bottom: 40px;
}

.wpkc-page .wpkc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}


/* ═══════════════════════════════════════════
   6. البطاقات (Cards)
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-card {
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  height: 100%;
}

.wpkc-page .wpkc-card:hover {
  border-color: var(--wpkc-color-border-hover);
  box-shadow: var(--wpkc-shadow-md);
  transform: translateY(-2px);
}

.wpkc-page .wpkc-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.wpkc-page .wpkc-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--wpkc-color-light);
  overflow: hidden;
}

.wpkc-page .wpkc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.wpkc-page .wpkc-card:hover .wpkc-card-img {
  transform: scale(1.04);
}

.wpkc-page .wpkc-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wpkc-color-light);
}

.wpkc-page .wpkc-card-img-placeholder .material-symbols-outlined {
  font-size: 48px;
  color: var(--wpkc-color-muted);
  opacity: 0.4;
}

.wpkc-page .wpkc-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--wpkc-radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.wpkc-page .wpkc-badge-sale {
  background: var(--wpkc-color-danger);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wpkc-page .wpkc-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--wpkc-color-muted);
  margin-bottom: 10px;
}

.wpkc-page .wpkc-card-cat {
  color: var(--wpkc-color-primary);
  font-weight: 600;
}

.wpkc-page .wpkc-card-sep {
  color: var(--wpkc-color-border);
}

.wpkc-page .wpkc-card-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wpkc-page .wpkc-card-time .material-symbols-outlined {
  font-size: 14px;
}

.wpkc-page .wpkc-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--wpkc-color-heading);
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wpkc-page .wpkc-card-title a {
  color: inherit;
  text-decoration: none;
}

.wpkc-page .wpkc-card-title a:hover {
  color: var(--wpkc-color-primary);
}

.wpkc-page .wpkc-card-excerpt {
  font-size: 0.84rem;
  color: var(--wpkc-color-text);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.wpkc-page .wpkc-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.wpkc-page .wpkc-stars {
  --rating: 0;
  display: inline-block;
  font-size: 0.9rem;
  background: linear-gradient(90deg,
    #F59E0B calc(var(--rating) / 5 * 100%),
    #E5E7EB calc(var(--rating) / 5 * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.wpkc-page .wpkc-rating-count {
  color: var(--wpkc-color-muted);
  font-size: 0.74rem;
}

.wpkc-page .wpkc-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wpkc-color-primary);
  margin-bottom: 10px;
}

.wpkc-page .wpkc-card-price ins {
  text-decoration: none;
  color: var(--wpkc-color-primary);
}

.wpkc-page .wpkc-card-price del {
  color: var(--wpkc-color-muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin-left: 6px;
}

.wpkc-page .wpkc-card-footer {
  padding: 0 16px 16px;
}

.wpkc-page .wpkc-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  background: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
  border: none;
  border-radius: var(--wpkc-radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.wpkc-page .wpkc-card-btn:hover {
  background: var(--wpkc-color-primary);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-card-btn .material-symbols-outlined {
  font-size: 16px;
}

.wpkc-page .wpkc-card-btn-text {
  background: transparent;
  color: var(--wpkc-color-primary);
  border: 1px solid var(--wpkc-color-border);
}

.wpkc-page .wpkc-card-btn-text:hover {
  background: var(--wpkc-color-light);
  color: var(--wpkc-color-primary);
  border-color: var(--wpkc-color-primary);
}


/* ═══════════════════════════════════════════
   7. Pagination
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-pagination {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.wpkc-page .wpkc-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.wpkc-page .wpkc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wpkc-color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wpkc-page .wpkc-pagination .page-numbers:hover {
  background: var(--wpkc-color-light);
  border-color: var(--wpkc-color-border-hover);
  color: var(--wpkc-color-heading);
}

.wpkc-page .wpkc-pagination .page-numbers.current {
  background: var(--wpkc-color-heading);
  border-color: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--wpkc-color-muted);
}

.wpkc-page .wpkc-pagination .page-numbers.prev,
.wpkc-page .wpkc-pagination .page-numbers.next {
  gap: 4px;
}

.wpkc-page .wpkc-pagination .material-symbols-outlined {
  font-size: 18px;
}


/* ═══════════════════════════════════════════
   8. Empty State
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--wpkc-color-light);
  border-radius: var(--wpkc-radius-md);
  border: 1px solid var(--wpkc-color-border);
}

.wpkc-page .wpkc-empty-icon {
  font-size: 64px !important;
  color: var(--wpkc-color-muted);
  opacity: 0.5;
  margin-bottom: 12px;
}

.wpkc-page .wpkc-empty h3 {
  font-size: 1.2rem;
  color: var(--wpkc-color-heading);
  margin: 0 0 6px;
}

.wpkc-page .wpkc-empty p {
  color: var(--wpkc-color-muted);
  margin: 0;
}


/* ═══════════════════════════════════════════
   9. وصف الفئة (تحت البطاقات)
   ═══════════════════════════════════════════ */

.wpkc-page .wpkc-description {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--wpkc-color-border);
}

/* TLDR */
.wpkc-page .wpkc-description .wpk-tldr {
  background: var(--wpkc-color-light);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  padding: 20px 18px 16px;
  margin: 0 0 24px;
  position: relative;
  line-height: 1.8;
}

.wpkc-page .wpkc-description .wpk-tldr::before {
  content: '⚡ الإجابة السريعة';
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.6;
}

.wpkc-page .wpkc-description .wpk-tldr p {
  font-size: 0.92rem;
  color: var(--wpkc-color-text);
  margin: 4px 0 6px;
  line-height: 1.8;
}

.wpkc-page .wpkc-description .wpk-tldr p:last-child { margin-bottom: 0; }
.wpkc-page .wpkc-description .wpk-tldr strong { color: var(--wpkc-color-heading); }

/* TOC */
.wpkc-page .wpkc-description .wpk-toc {
  background: var(--wpkc-color-light);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  padding: 18px 20px 16px;
  margin: 24px 0 28px;
}

.wpkc-page .wpkc-description .wpk-toc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--wpkc-color-heading);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wpkc-color-border);
}

.wpkc-page .wpkc-description .wpk-toc ol,
.wpkc-page .wpkc-description .wpk-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.wpkc-page .wpkc-description .wpk-toc li {
  counter-increment: toc-counter;
  padding: 6px 0;
  padding-right: 30px;
  position: relative;
}

.wpkc-page .wpkc-description .wpk-toc li::before {
  content: counter(toc-counter);
  position: absolute;
  right: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: var(--wpkc-color-white);
  color: var(--wpkc-color-primary);
  border: 1px solid var(--wpkc-color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.wpkc-page .wpkc-description .wpk-toc a {
  color: var(--wpkc-color-text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.wpkc-page .wpkc-description .wpk-toc a:hover {
  color: var(--wpkc-color-primary);
}

/* Headings */
.wpkc-page .wpkc-description h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wpkc-color-heading);
  margin: 36px 0 14px;
  line-height: 1.4;
}

.wpkc-page .wpkc-description h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wpkc-color-heading);
  margin: 24px 0 10px;
  line-height: 1.4;
}

.wpkc-page .wpkc-description p {
  color: var(--wpkc-color-text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 14px;
}

.wpkc-page .wpkc-description a {
  color: var(--wpkc-color-primary);
  text-decoration: none;
}

.wpkc-page .wpkc-description a:hover { text-decoration: underline; }

/* Tables */
.wpkc-page .wpkc-description .wpk-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
}

.wpkc-page .wpkc-description .wpk-table table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  border: 1px solid var(--wpkc-color-border);
  border-radius: 8px;
  overflow: hidden;
}

.wpkc-page .wpkc-description .wpk-table thead {
  background: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-description .wpk-table th {
  padding: 11px 13px;
  text-align: right;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.wpkc-page .wpkc-description .wpk-table td {
  padding: 10px 13px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--wpkc-color-text);
}

.wpkc-page .wpkc-description .wpk-table tbody tr:last-child td { border-bottom: none; }
.wpkc-page .wpkc-description .wpk-table tbody tr:hover { background: var(--wpkc-color-light); }

.wpkc-page .wpkc-description .wpk-yes { color: var(--wpkc-color-success); font-weight: 700; }
.wpkc-page .wpkc-description .wpk-no { color: var(--wpkc-color-danger); font-weight: 700; }
.wpkc-page .wpkc-description .wpk-warn { color: var(--wpkc-color-warning); font-weight: 700; }

/* Boxes */
.wpkc-page .wpkc-description .wpk-box {
  padding: 14px 16px;
  border-radius: var(--wpkc-radius-md);
  margin: 16px 0;
  font-size: 0.88rem;
  line-height: 1.7;
}

.wpkc-page .wpkc-description .wpk-box.wpk-tip {
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(37,99,235,0.12);
}

.wpkc-page .wpkc-description .wpk-box.wpk-warning {
  background: rgba(217,119,6,0.05);
  border: 1px solid rgba(217,119,6,0.15);
}

.wpkc-page .wpkc-description .wpk-box.wpk-success {
  background: rgba(5,150,105,0.04);
  border: 1px solid rgba(5,150,105,0.12);
}

.wpkc-page .wpkc-description .wpk-box strong { color: var(--wpkc-color-heading); }

/* Features */
.wpkc-page .wpkc-description ul.wpk-features {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
}

.wpkc-page .wpkc-description ul.wpk-features li {
  padding: 7px 0;
  padding-right: 26px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.7;
  border-bottom: 1px solid #F3F4F6;
}

.wpkc-page .wpkc-description ul.wpk-features li:last-child { border-bottom: none; }

.wpkc-page .wpkc-description ul.wpk-features li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 7px;
  color: var(--wpkc-color-success);
  font-weight: 700;
}

.wpkc-page .wpkc-description ul.wpk-features li strong { color: var(--wpkc-color-heading); }

/* Choice Cards */
.wpkc-page .wpkc-description .wpk-choice {
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  padding: 14px 16px;
  margin: 10px 0;
  transition: border-color 0.15s ease;
}

.wpkc-page .wpkc-description .wpk-choice:hover {
  border-color: var(--wpkc-color-border-hover);
}

.wpkc-page .wpkc-description .wpk-choice h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--wpkc-color-heading);
  margin: 0 0 4px;
}

.wpkc-page .wpkc-description .wpk-choice p {
  font-size: 0.86rem;
  color: var(--wpkc-color-muted);
  margin: 0;
}

.wpkc-page .wpkc-description .wpk-choice p strong { color: var(--wpkc-color-heading); }

/* Product Cards in description */
.wpkc-page .wpkc-description .wpk-product {
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  padding: 18px;
  margin: 16px 0 18px;
  position: relative;
}

.wpkc-page .wpkc-description .wpk-product.wpk-featured {
  background: var(--wpkc-color-light);
}

.wpkc-page .wpkc-description .wpk-product.wpk-featured::after {
  content: '⭐ الأفضل';
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--wpkc-color-heading);
  color: var(--wpkc-color-white);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

.wpkc-page .wpkc-description .wpk-product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wpkc-color-heading);
  margin-bottom: 6px;
}

.wpkc-page .wpkc-description .wpk-product-desc {
  font-size: 0.88rem;
  color: var(--wpkc-color-muted);
  margin-bottom: 12px;
}

.wpkc-page .wpkc-description .wpk-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.wpkc-page .wpkc-description .wpk-product-tags span {
  background: #F3F4F6;
  color: var(--wpkc-color-text);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 500;
}

.wpkc-page .wpkc-description .wpk-product-who {
  background: #F3F4F6;
  padding: 10px 12px;
  border-radius: var(--wpkc-radius-md);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.wpkc-page .wpkc-description .wpk-product-who strong { color: var(--wpkc-color-heading); }

.wpkc-page .wpkc-description .wpk-product-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* CTAs */
.wpkc-page .wpkc-description a.wpk-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wpkc-color-primary);
  color: var(--wpkc-color-white) !important;
  padding: 9px 20px;
  border-radius: var(--wpkc-radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.wpkc-page .wpkc-description a.wpk-cta:hover {
  background: var(--wpkc-color-primary-hover);
  text-decoration: none !important;
}

.wpkc-page .wpkc-description a.wpk-cta.wpk-cta-outline {
  background: transparent;
  color: var(--wpkc-color-text) !important;
  border: 1px solid var(--wpkc-color-border);
}

.wpkc-page .wpkc-description a.wpk-cta.wpk-cta-outline:hover {
  background: var(--wpkc-color-light);
  border-color: var(--wpkc-color-border-hover);
}

.wpkc-page .wpkc-description a.wpk-cta-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--wpkc-color-primary);
  color: var(--wpkc-color-white) !important;
  padding: 14px 28px;
  border-radius: var(--wpkc-radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
  width: 100%;
  max-width: 420px;
  margin: 14px auto 0;
}

.wpkc-page .wpkc-description a.wpk-cta-lg:hover {
  background: var(--wpkc-color-primary-hover);
}

/* Conclusion */
.wpkc-page .wpkc-description .wpk-conclusion {
  background: var(--wpkc-color-light);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  padding: 22px 20px;
  margin: 36px 0 24px;
}

.wpkc-page .wpkc-description .wpk-conclusion h2 {
  margin-top: 0;
  padding-bottom: 0;
}

.wpkc-page .wpkc-description .wpk-conclusion ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.wpkc-page .wpkc-description .wpk-conclusion ul li {
  padding: 5px 0;
  padding-right: 24px;
  position: relative;
  font-size: 0.9rem;
}

.wpkc-page .wpkc-description .wpk-conclusion ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 5px;
  color: var(--wpkc-color-success);
  font-weight: 700;
}

/* FAQ Accordion */
.wpkc-page .wpkc-description .wpk-faq { margin: 28px 0; }

.wpkc-page .wpkc-description .wpk-faq-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wpkc-color-heading);
  margin-bottom: 16px;
}

.wpkc-page .wpkc-description .wpk-faq-item {
  background: var(--wpkc-color-white);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.wpkc-page .wpkc-description .wpk-faq-item:hover {
  border-color: var(--wpkc-color-border-hover);
}

.wpkc-page .wpkc-description .wpk-faq-question {
  padding: 14px 18px 14px 50px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--wpkc-color-heading);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  line-height: 1.5;
  user-select: none;
}

.wpkc-page .wpkc-description .wpk-faq-question:hover {
  background: var(--wpkc-color-light);
}

.wpkc-page .wpkc-description .wpk-faq-question::after {
  content: '+';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wpkc-color-text);
  transition: all 0.2s ease;
}

.wpkc-page .wpkc-description .wpk-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  font-size: 0.88rem;
  color: var(--wpkc-color-text);
  line-height: 1.8;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.wpkc-page .wpkc-description .wpk-faq-item.wpk-open { border-color: var(--wpkc-color-primary); }
.wpkc-page .wpkc-description .wpk-faq-item.wpk-open .wpk-faq-question { background: var(--wpkc-color-light); }

.wpkc-page .wpkc-description .wpk-faq-item.wpk-open .wpk-faq-question::after {
  content: '−';
  background: var(--wpkc-color-primary);
  color: var(--wpkc-color-white);
}

.wpkc-page .wpkc-description .wpk-faq-item.wpk-open .wpk-faq-answer {
  max-height: 800px;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--wpkc-color-border);
}

/* Related */
.wpkc-page .wpkc-description .wpk-related { margin: 32px 0; }

.wpkc-page .wpkc-description .wpk-related h2 {
  margin-bottom: 14px;
}

.wpkc-page .wpkc-description .wpk-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--wpkc-color-light);
  border: 1px solid var(--wpkc-color-border);
  border-radius: var(--wpkc-radius-md);
  overflow: hidden;
}

.wpkc-page .wpkc-description .wpk-related ul li {
  padding: 12px 18px;
  border-bottom: 1px solid var(--wpkc-color-border);
  margin: 0;
}

.wpkc-page .wpkc-description .wpk-related ul li:last-child { border-bottom: none; }
.wpkc-page .wpkc-description .wpk-related ul li::before { content: none; }

.wpkc-page .wpkc-description .wpk-related ul li a {
  color: var(--wpkc-color-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
  transition: color 0.15s ease;
}

.wpkc-page .wpkc-description .wpk-related ul li a:hover {
  color: var(--wpkc-color-primary);
}


/* ═══════════════════════════════════════════
   10. Tablet Responsive (768px - 1024px)
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .wpkc-page .wpkc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}


/* ═══════════════════════════════════════════
   11. Mobile Responsive (< 768px)
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .wpkc-page {
    padding: 16px 0 40px;
  }
  
  .wpkc-page .wpkc-container {
    padding: 0 14px;
  }
  
  /* Hero Mobile */
  .wpkc-page .wpkc-hero {
    padding: 22px 18px;
  }
  
  .wpkc-page .wpkc-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .wpkc-page .wpkc-hero-icon {
    width: 52px;
    height: 52px;
  }
  
  .wpkc-page .wpkc-hero-icon .material-symbols-outlined {
    font-size: 28px;
  }
  
  .wpkc-page .wpkc-hero-title {
    font-size: 1.4rem;
  }
  
  /* Filter Mobile - إخفاء الأسهم على الموبايل */
  .wpkc-page .wpkc-filter-arrow {
    display: none;
  }
  
  .wpkc-page .wpkc-filter-strip {
    padding: 4px 0;
  }
  
  .wpkc-page .wpkc-filter-pill {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  
  /* Grid Mobile - عمودين */
  .wpkc-page .wpkc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .wpkc-page .wpkc-card-body {
    padding: 12px;
  }
  
  .wpkc-page .wpkc-card-title {
    font-size: 0.9rem;
  }
  
  .wpkc-page .wpkc-card-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  
  .wpkc-page .wpkc-card-footer {
    padding: 0 12px 12px;
  }
  
  .wpkc-page .wpkc-card-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  /* Pagination Mobile */
  .wpkc-page .wpkc-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    font-size: 0.82rem;
    padding: 0 9px;
  }
  
  /* Description Mobile */
  .wpkc-page .wpkc-description h2 {
    font-size: 1.2rem;
  }
  
  .wpkc-page .wpkc-description h3 {
    font-size: 1rem;
  }
  
  .wpkc-page .wpkc-description .wpk-table table {
    min-width: 480px;
  }
  
  .wpkc-page .wpkc-description .wpk-product-buttons a.wpk-cta {
    width: 100%;
    justify-content: center;
  }
  
  .wpkc-page .wpkc-description .wpk-faq-question {
    font-size: 0.88rem;
    padding: 12px 14px 12px 44px;
  }
}


/* ═══════════════════════════════════════════
   12. Very Small Mobile (< 380px)
   ═══════════════════════════════════════════ */

@media (max-width: 380px) {
  .wpkc-page .wpkc-hero-title {
    font-size: 1.25rem;
  }
  
  .wpkc-page .wpkc-card-title {
    font-size: 0.86rem;
  }
  
  .wpkc-page .wpkc-card-price {
    font-size: 0.9rem;
  }
}


/* ═══════════════════════════════════════════
   انتهى الملف
   ═══════════════════════════════════════════ */
