/* ==========================================================================
   الطراز الأصيل — التصميم الجديد
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --bg: #F9F7F2;
  --bg-card: #FFFFFF;
  --primary: #C5A059;
  --primary-light: #D9BC82;
  --primary-dark: #8B6F3E;
  --secondary: #3D4F3A;
  --secondary-light: #5A7A55;
  --accent: #A85D4E;
  --text: #2C2C2C;
  --text-light: #8A8A8A;
  --text-muted: #B0B0B0;
  --border: #EBE8E0;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);

  --admin-bg: #1E2229;
  --admin-card: #272C36;
  --admin-text: #E8E4DC;
  --admin-border: #3A404D;
  --admin-accent: #C5A059;

  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

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

/* ===== Header ===== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  display: block;
  height: 72px;
  width: auto;
}

.logo-img-mobile { display: none; }

.logo-icon {
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(197,160,89,0.3);
}

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(197,160,89,0.3);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #3D4F3A 0%, #2C3A2A 50%, #1E261D 100%);
  color: #fff;
  padding: 5rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C5A059' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-light);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(197,160,89,0.4);
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(197,160,89,0.5);
}

/* ===== Category Hero ===== */
.cat-hero {
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  margin-bottom: 2rem;
}

.cat-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.cat-hero p {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===== Homepage Sections ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.seo-intro {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.9;
  text-align: center;
}
.home-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--primary);
  transition: var(--transition);
}

.section-more:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Static Content Pages (about / delivery-payment) ===== */
.static-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

.static-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 1.5rem;
}

.static-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.static-hero p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.9;
}

.static-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  margin-bottom: 1.5rem;
}

.static-block h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.static-block p, .static-block li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.9;
}

.static-block ul {
  padding-inline-start: 1.3rem;
  margin-top: 0.5rem;
}

.static-block li { margin-bottom: 0.5rem; }

.static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.static-card {
  text-align: center;
  padding: 1.2rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.static-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

.static-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.static-card p { color: var(--text-light); font-size: 0.88rem; }

.static-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.15rem;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(197, 160, 89, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 0.6rem;
}

.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.87rem;
  line-height: 1.75;
}

.blog-card-meta {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.article-meta {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: -0.6rem;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 1.4rem 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p, .article-body li {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.article-body ul, .article-body ol {
  padding-inline-start: 1.3rem;
  margin-bottom: 0.8rem;
}

.article-tags {
  margin-top: 1rem;
}

.article-tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-inline-end: 6px;
  margin-bottom: 6px;
}

.article-related {
  margin-top: 0.4rem;
}

.article-related a {
  color: var(--primary-dark);
  font-weight: 700;
}

.faq-item { margin-bottom: 1.1rem; }
.faq-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.faq-item p { color: var(--text-light); }

.footer-links {
  margin-top: 6px;
  font-size: 0.8rem;
}
.footer-links a { color: var(--primary-light); }
.footer-links span { opacity: 0.4; margin: 0 6px; }

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* معاينة الصفحة الرئيسية: بطاقات مصغّرة (صورة + اسم فقط) بنفس أسلوب سالفورد */
.cat-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.thumb-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.thumb-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.thumb-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-title {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-gallery {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--bg);
}

.gallery-track {
  direction: ltr;
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--primary);
  border-color: transparent;
}

.gallery-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 9px;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--primary-dark);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: var(--transition);
}

.product-gallery:hover .gallery-arrow { opacity: 1; }

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

@media (hover: none) {
  .gallery-arrow { display: none; }
}

.product-body { padding: 1.2rem; }

.product-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(197,160,89,0.12);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--whatsapp);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.05);
}

/* ===== Bottom Bar ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}

.bottom-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}

.bottom-bar-whatsapp { background: var(--whatsapp); }
.bottom-bar-call { background: var(--secondary); }

.bottom-bar-whatsapp:hover { background: var(--whatsapp-hover); }
.bottom-bar-call:hover { background: var(--secondary-light); }

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 60px;
  font-size: 0.9rem;
}

.footer a { color: var(--primary-light); }

/* ===== Admin Page ===== */
.admin-body {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-header {
  background: #181B21;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
}

.admin-header h1 {
  font-size: 1.2rem;
  color: var(--admin-accent);
  font-weight: 800;
}

.back-link {
  color: var(--admin-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.admin-card h2 {
  font-size: 1.15rem;
  color: var(--admin-accent);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  background: #1E2229;
  color: var(--admin-text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

.form-group textarea { min-height: 80px; resize: vertical; }

.image-previews-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--admin-border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: #EF4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--admin-accent);
  color: #1E2229;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  background: var(--admin-accent);
  color: #1E2229;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: #D4B06A;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover { border-color: var(--admin-accent); color: var(--admin-accent); }

.btn-danger {
  background: #EF4444;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-inline-end: 4px;
  transition: var(--transition);
}

.btn-danger:hover { background: #DC2626; }

.btn-edit {
  background: #3B82F6;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edit:hover { background: #2563EB; }

/* Admin Table */
.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.admin-table-search {
  max-width: 260px;
  padding: 8px 14px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  background: #1E2229;
  color: var(--admin-text);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  background: #181B21;
  color: var(--admin-accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.admin-table tr:hover { background: rgba(255,255,255,0.02); }

.admin-table td { font-size: 0.9rem; }

.admin-thumb-grid {
  display: flex;
  gap: 4px;
  align-items: center;
}

.admin-thumb-grid img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
}

/* Login Overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,34,41,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  padding: 2.5rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  text-align: center;
}

.login-box h2 { color: var(--admin-accent); margin-bottom: 0.5rem; font-weight: 900; }
.login-box p { color: var(--admin-text); opacity: 0.7; font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-hint { font-size: 0.75rem; opacity: 0.5; margin-top: 1rem; }

/* Toast */
.toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--secondary);
  color: var(--primary-light);
  border: 1px solid var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  font-size: 0.95rem;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   صفحة تفاصيل المنتج (product/*.html)
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 1rem 0 1.5rem;
}
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 500; }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.product-gallery-detail { aspect-ratio: 1 / 1; border-radius: 12px; }
.product-body-detail { padding: 0.5rem 0; display: flex; flex-direction: column; }
.product-name-detail { font-size: 1.6rem; margin: 0.5rem 0; }
.product-desc-detail { font-size: 1rem; line-height: 1.9; color: var(--text); flex-grow: 1; }
.product-footer-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-footer-detail .product-price { font-size: 1.4rem; }
.product-name-link { text-decoration: none; color: inherit; }
.related-products { margin-top: 1rem; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; padding: 1rem; gap: 1.2rem; }
  .product-name-detail { font-size: 1.3rem; }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.8rem; padding: 0.8rem 1rem; }
  .logo-img-full { display: none; }
  .logo-img-mobile { display: block; height: 96px; }
  .nav-links { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .nav-links a { padding: 6px 12px; font-size: 0.8rem; }
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
  .container { padding: 1rem; }
  .admin-table { display: block; overflow-x: auto; }
  .form-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
