:root {
  --primary-color: #521B27;   /* عنابي فاخر */
  --secondary-color: #C49A6C; /* ذهبي شامبين */
  --bg-color: #F3EAD8;        /* كريمي / بيج */
  --text-color: #2b1a1f;
}

/* خلفية الصفحة والخطوط العامة */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bg-inherit {
    background: linear-gradient(135deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);
}

/* سكرول ناعم */
html {
  scroll-behavior: smooth;
}

.bg-inherit {
    background: linear-gradient(135deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);
}
/* الهيدر وتوسيط الشعار */
.site-header .container,
header .container,
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center; /* الشعار في المنتصف */
  gap: 24px;
  background: linear-gradient(135deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);

}


.site-header .container > *,
header .container > *,
.navbar .container > * {
  flex: 0 0 auto;
}


/* شعار المتجر */
.site-header .logo img,
header .logo img {
  max-height: 56px;
}

@media (max-width: 768px) {
  .site-header .logo img,
  header .logo img {
    max-height: 46px;
  }
}

/* خلفية شريط الهيدر */
header, .navbar, .site-header {
  background: linear-gradient(135deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);
  color: #fff;
}

header a, .navbar a, .site-header a {
  color: #fff !important;
}

header a:hover, .navbar a:hover, .site-header a:hover {
  color: #F3EAD8 !important;
}

/* أزرار عامة */
button, .btn, .button, .salla-btn {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: 1px solid var(--secondary-color) !important;
  padding-inline: 20px !important;
  padding-block: 10px !important;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover, .btn:hover, .button:hover, .salla-btn:hover {
  background-color: #3c141d !important;
  box-shadow: 0 8px 18px rgba(82, 27, 39, 0.35);
  transform: translateY(-2px);
}

/* تخطيط صفحة التصنيف: منتجات + فلتر يمين */
.category-page,
.collection-page,
.products-page-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px; /* محتوى + فلتر */
  gap: 28px;
}

/* عمود الفلتر */
.sidebar,
.filters-sidebar {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(196,154,108,0.35);
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.sidebar h3,
.filters-sidebar h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #521B27;
  margin-bottom: 10px;
}

.sidebar label,
.filters-sidebar label,
.sidebar .filter-item,
.filters-sidebar .filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #3f3438;
}

.sidebar input[type="checkbox"],
.sidebar input[type="radio"],
.filters-sidebar input[type="checkbox"],
.filters-sidebar input[type="radio"] {
  accent-color: #521B27;
}

/* عنوان القسم والفلتر الأعلى */
.category-header,
.collection-header,
.page-title {
  text-align: center;
  margin-bottom: 18px;
}

.category-header h1,
.collection-header h1,
.page-title h1 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 800;
}

.category-header .description,
.collection-header .description {
  color: #6a5258;
  font-size: 0.95rem;
}

/* شريط الفلترة والترتيب */
.filters-bar,
.sort-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background-color: #f7f1e5;
  border-radius: 14px;
}

/* شبكة المنتجات مثل متاجر الشنط */
.products-grid,
.products-list,
.products-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width: 992px) {
  .category-page,
  .collection-page,
  .products-page-wrapper {
    grid-template-columns: 1fr;
  }
  .products-grid,
  .products-list,
  .products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .products-grid,
  .products-list,
  .products-container {
    grid-template-columns: 1fr;
  }
}

/* بطاقة المنتج */
.product-card,
.product-item,
.product-box {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196,154,108,0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
  padding-bottom: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover,
.product-item:hover,
.product-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(82,27,39,0.18);
  border-color: #C49A6C;
}

/* صورة المنتج – أنيميشن */
.product-card .product-image,
.product-item .product-image,
.product-box .product-image {
  position: relative;
  overflow: hidden;
}

.product-card img,
.product-item img,
.product-box img {
  width: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card:hover img,
.product-item:hover img,
.product-box:hover img {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.08);
}

/* طبقة ذهبية خفيفة عند الهوفر */
.product-card::after,
.product-item::after,
.product-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(196,154,108,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.product-card:hover::after,
.product-item:hover::after,
.product-box:hover::after {
  opacity: 1;
}

/* عنوان المنتج والسعر */
.product-card .product-title,
.product-item .product-title,
.product-box .product-title {
  margin: 10px 12px 4px;
  font-weight: 600;
  color: #521B27;
  font-size: 0.95rem;
  min-height: 40px;
}

.product-card .price-wrapper,
.product-item .price-wrapper,
.product-box .price-wrapper {
  margin: 0 12px 4px;
}

.product-card .price,
.product-item .price,
.product-box .price {
  color: #C49A6C;
  font-size: 1.05rem;
  font-weight: 800;
}

.product-card .old-price,
.product-item .old-price,
.product-box .old-price {
  color: #b0a1a5;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.product-card .discount,
.product-item .discount,
.product-box .discount {
  color: #c0392b;
  font-weight: 700;
  font-size: 0.9rem;
}

/* زر إضافة للسلة كشريط سفلي */
.product-card .add-to-cart,
.product-item .add-to-cart,
.product-box .add-to-cart {
  display: block;
  width: 100%;
  border-radius: 0 0 14px 14px;
  background-color: #f6f2eb;
  color: #521B27;
  text-align: center;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid rgba(196,154,108,0.35);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card .add-to-cart:hover,
.product-item .add-to-cart:hover,
.product-box .add-to-cart:hover {
  background-color: #521B27;
  color: #fff;
}

/* شارة التخفيض أو الجديد */
.badge, .label, .product-badge {
  background: var(--secondary-color) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
}

/* أنيميشن دخول الأقسام */
.section-animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-animated.visible {
  opacity: 1;
  transform: translateY(0);
}

/* رسالة الترحيب (Popup) */
.rw-welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rw-welcome-modal {
  background: #ffffff;
  border-radius: 22px;
  max-width: 420px;
  width: 90%;
  padding: 24px 22px 20px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(196, 154, 108, 0.5);
  position: relative;
  overflow: hidden;
}

.rw-welcome-modal::before {
  content: "";
  position: absolute;
  inset-inline: -40px;
  top: -60px;
  height: 140px;
  background: radial-gradient(circle at top, #C49A6C 0, transparent 60%);
  opacity: 0.3;
}

.rw-welcome-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.rw-welcome-subtitle {
  font-size: 0.95rem;
  color: #5b454a;
  margin-bottom: 16px;
}

.rw-welcome-highlight {
  color: var(--secondary-color);
  font-weight: 700;
}

.rw-welcome-btn {
  margin-top: 8px;
}

/* زر إغلاق دائري */
.rw-welcome-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rw-welcome-close span {
  font-size: 16px;
  color: #5b454a;
}
.brand-item {
    flex: 0 0 auto !important;
    width: 160px !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%) !important;
    padding: 0 !important;
}
/* التأكد أن الصور تملأ الإطار */
.brand-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
.bg-gray-100
Specificity: (0,1,0)
 {
     --tw-bg-opacity: 1; 
     background-color: #f3f4f6; 
    background: linear-gradient(135deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);
 }
.bg-center {
    background-position: 0%;
}

.bg-cover {
    background-size: block;
}
.container
Specificity: (0,1,0)
 {
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
}
.s-block {
    margin-top: 0.5rem;
}
.bg-gray-100{
      background: linear-gradient(45deg, #521B27 0%, #3c141d 50%, #C49A6C 100%);
}


.s-block__display-all {
    align-items: center;
    display: inline-flex;
    font-size: .875rem;
    font-weight: 700;
    gap: .5rem;
    line-height: 1.25rem;
    opacity: .8;
    color: #fff;
}