/* Add custom CSS styles below */ 
/* LORD Roastery — Matjar / Salla, v1.1.0
 * ألصق في خانة CSS دون وسوم style.
 * احذف سطر import واسم Tajawal من --lord-font للاحتفاظ بخط المتجر الحالي.
 */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap");

body.matjar-theme {
  --lord-paper: #fbf7ee;
  --lord-card: #fffdf7;
  --lord-sage: #849083;
  --lord-ink: #34483d;
  --lord-line: #dce1d8;
  --lord-radius: 20px;
  --lord-product-price-size: 30px;
  --lord-font: "Tajawal", "Amazon-Ember", system-ui, sans-serif;
  font-family: var(--lord-font) !important;
  background-color: var(--lord-paper);
}
body.matjar-theme :is(button, input, select, textarea) {
  font-family: var(--lord-font);
}
/* لا نستخدم * حتى تبقى خطوط أيقونات سلة ورمز الريال سليمة. */
body.matjar-theme #main-nav,
body.matjar-theme #main-nav > .inner {
  background-color: var(--lord-paper) !important;
  color: var(--lord-ink) !important;
}
body.matjar-theme .short-menu-items {
  column-gap: clamp(8px, 1vw, 18px) !important;
  align-items: center;
  flex-wrap: nowrap;
}
body.matjar-theme .short-menu-items > .main-menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lord-ink);
  text-underline-offset: 7px;
  transition: color 180ms ease;
}
body.matjar-theme .short-menu-items > .main-menu-item > a:hover {
  text-decoration: underline;
}
/* إبقاء الشعار وزر قائمة الجوال، ومنع تزاحم روابط الرأس. */
@media (max-width: 1199px) {
  body.matjar-theme .short-menu-items > li.main-menu-item { display: none !important; }
}
body.matjar-theme #storemenu-panel {
  background-color: var(--lord-paper);
  color: var(--lord-ink);
}
body.matjar-theme #aside-main-menu .main-menu-item > a {
  min-height: 48px;
  padding-block: 12px;
  border-radius: 10px;
  line-height: 1.65;
  font-weight: 500;
}
body.matjar-theme #aside-main-menu .main-menu-item > a:hover {
  background-color: #e9ede5;
  color: var(--lord-ink);
}
body.matjar-theme .lord-ui-menu-duplicate { display: none !important; }
body.matjar-theme custom-salla-product-card.product-entry {
  border: 1px solid var(--lord-line);
  border-radius: var(--lord-radius);
  background-color: var(--lord-card);
  box-shadow: 0 4px 16px rgb(52 72 61 / 4%);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
body.matjar-theme .product-entry__image-wrap {
  display: block;
  overflow: hidden;
  border-radius: var(--lord-radius) var(--lord-radius) 0 0;
}
body.matjar-theme .product-entry__image-main img {
  object-fit: contain !important;
  object-position: center;
  transition: transform 360ms ease;
}
body.matjar-theme .product-entry__content {
  padding: 16px 12px 18px;
}
body.matjar-theme .product-entry__title {
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  min-height: 3.4em;
  font-weight: 700;
  color: var(--lord-ink);
}
body.matjar-theme .product-entry__title a { color: inherit; }
body.matjar-theme .product-entry .price-wrapper { gap: 10px; }
body.matjar-theme .product-entry .total-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--lord-ink);
}
body.matjar-theme :is(.before-price, .regular-price) {
  color: #667060;
  font-size: 14px;
}
body.matjar-theme .lord-ui-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0;
}
body.matjar-theme [id^="product-"] :is(h4.sale-price, .sale-price.normal-price) {
  font-size: var(--lord-product-price-size);
  font-weight: 800;
  line-height: 1.5;
  color: var(--lord-ink);
}
body.matjar-theme [id^="product-"] h1 {
  line-height: 1.65;
  color: var(--lord-ink);
}
/* تمييز المجموع عندما يوجد صف إجمالي واضح داخل الثيم. */
body.matjar-theme .lord-ui-total-value {
  color: var(--lord-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.5;
}
body.matjar-theme .s-cart-summary-total {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
body.matjar-theme .product-entry salla-add-product-button button,
body.matjar-theme [id^="product-"] salla-add-product-button button {
  border-radius: 12px;
}
body.matjar-theme .product-entry salla-add-product-button button:not(:disabled) {
  background-color: var(--lord-ink);
  border-color: var(--lord-ink);
  color: #fff6dd;
}
body.matjar-theme .details-slider .swiper-slide img { object-fit: contain !important; }
body.matjar-theme :is(.quicklinks-item, .product-entry__title a, button):focus-visible {
  outline: 2px solid var(--lord-ink);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.matjar-theme custom-salla-product-card.product-entry:hover {
    transform: translateY(-4px);
    border-color: var(--lord-sage);
    box-shadow: 0 12px 26px rgb(52 72 61 / 11%);
  }
  body.matjar-theme custom-salla-product-card.product-entry:hover .product-entry__image-main img {
    transform: scale(1.025);
  }
}
@media (max-width: 600px) {
  body.matjar-theme .product-entry__content { padding: 12px 8px 14px; }
  body.matjar-theme .product-entry .total-price { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  body.matjar-theme custom-salla-product-card.product-entry,
  body.matjar-theme .product-entry__image-main img { transition: none !important; }
}