/* Add custom CSS styles below */ 
/* Diyala homepage category cards */
#diyala-home-categories {
  direction: rtl;
  padding: 28px 14px;
  background: #f8f5ef;
  font-family: inherit;
}

#diyala-home-categories * {
  box-sizing: border-box;
}

#diyala-home-categories .diyala-categories-title {
  margin: 0 0 22px;
  color: #050505;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

#diyala-home-categories .diyala-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

#diyala-home-categories .diyala-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

#diyala-home-categories .diyala-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.13);
}

#diyala-home-categories .diyala-category-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #f4ead8;
  border-bottom: 1px solid rgba(212, 175, 55, .45);
}

#diyala-home-categories .diyala-category-content {
  display: flex;
  min-height: 154px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 15px 12px 16px;
  text-align: center;
}

#diyala-home-categories .diyala-category-name {
  margin: 0 0 7px;
  color: #050505;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

#diyala-home-categories .diyala-category-description {
  margin: 0 0 14px;
  color: #353535;
  font-size: 13px;
  line-height: 1.7;
}

#diyala-home-categories .diyala-category-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 24px;
  border: 1px solid #d4af37;
  border-radius: 6px;
  background: #050505;
  color: #d4af37;
  font-size: 15px;
  font-weight: 800;
}

#diyala-home-categories .diyala-category-card:hover .diyala-category-button {
  background: #d4af37;
  color: #050505;
}

@media (max-width: 900px) {
  #diyala-home-categories .diyala-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #diyala-home-categories {
    padding: 22px 9px;
  }

  #diyala-home-categories .diyala-categories-title {
    font-size: 23px;
  }

  #diyala-home-categories .diyala-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #diyala-home-categories .diyala-category-content {
    min-height: 145px;
    padding: 12px 8px;
  }

  #diyala-home-categories .diyala-category-name {
    font-size: 15px;
  }

  #diyala-home-categories .diyala-category-description {
    font-size: 12px;
  }

  #diyala-home-categories .diyala-category-button {
    min-height: 36px;
    padding: 7px 17px;
    font-size: 13px;
  }
}
/* Diyala — category cards and product details */

/* Soft store background */
body:has(salla-products-list),
body:has(.products-grid),
body:has(salla-add-product-button) {
  background-color: #f8f5ef !important;
}

/* Pass the black/gold palette into Salla components */
custom-salla-product-card,
salla-product-card,
salla-products-list,
salla-add-product-button,
.s-product-card-entry,
.product-form {
  --color-primary: #050505 !important;
  --color-primary-dark: #050505 !important;
  --color-primary-light: #1a1a1a !important;
  --color-primary-reverse: #d4af37 !important;
}

/* Product cards */
custom-salla-product-card.s-product-card-entry,
salla-product-card,
.s-product-card-entry,
.product-card,
.product-entry {
  overflow: hidden !important;
  border: 1px solid #d4af37 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

custom-salla-product-card.s-product-card-entry:hover,
salla-product-card:hover,
.s-product-card-entry:hover,
.product-card:hover,
.product-entry:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 11px 25px rgba(0, 0, 0, .13) !important;
}

/* Card image and content */
.s-product-card-image,
.s-product-card-content,
.s-product-card-content-main,
.s-product-card-content-footer {
  background-color: #ffffff !important;
}

.s-product-card-content-title,
.s-product-card-content-title a,
.s-product-card-name,
.s-product-card-name a {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  font-weight: 800 !important;
}

.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-starting-price h4,
.s-product-card-content-sub h4 {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
  font-weight: 900 !important;
}

/* Add-to-cart buttons when rendered outside component isolation */
custom-salla-product-card .s-button-element,
salla-product-card .s-button-element,
.s-product-card-entry .s-button-element,
salla-add-product-button .s-button-element,
.s-add-product-button-main .s-button-element,
.product-form .s-button-element {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  border-radius: 7px !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

custom-salla-product-card .s-button-element *,
salla-product-card .s-button-element *,
.s-product-card-entry .s-button-element *,
salla-add-product-button .s-button-element *,
.s-add-product-button-main .s-button-element *,
.product-form .s-button-element * {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
  stroke: currentColor !important;
}

/* Badges */
.s-product-card-promotion-title {
  background: #050505 !important;
  border: 1px solid #d4af37 !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Wishlist */
.s-product-card-wishlist-btn.s-button-element {
  --color-primary: #d4af37 !important;
  --color-primary-reverse: #050505 !important;
  background: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, .65) !important;
  color: #a97816 !important;
}

/* Product details areas */
.product-details,
.product-details__content,
.product-details-body,
.product-form,
.product__description,
.sticky-product-bar {
  background-color: #ffffff !important;
  color: #161616 !important;
}

.product-details h1,
.product-details h2,
.product-details h3,
.product-form label {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

.product-details .price,
.product-details [class*="price"],
.product-form [class*="price"],
salla-product-price {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
  font-weight: 900 !important;
}

/* Hover */
custom-salla-product-card .s-button-element:hover,
salla-product-card .s-button-element:hover,
.s-product-card-entry .s-button-element:hover,
salla-add-product-button .s-button-element:hover,
.s-add-product-button-main .s-button-element:hover,
.product-form .s-button-element:hover {
  --color-primary: #d4af37 !important;
  --color-primary-reverse: #050505 !important;
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

custom-salla-product-card .s-button-element:hover *,
salla-product-card .s-button-element:hover *,
.s-product-card-entry .s-button-element:hover *,
salla-add-product-button .s-button-element:hover *,
.s-add-product-button-main .s-button-element:hover *,
.product-form .s-button-element:hover * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}
/* Exact selector found in Diyala's current Salla theme */
button.s-button-element.s-button-primary-outline,
button.s-button-element.s-button-primary {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  border-radius: 7px !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  box-shadow: none !important;
}

button.s-button-element.s-button-primary-outline .s-button-text,
button.s-button-element.s-button-primary .s-button-text,
button.s-button-element.s-button-primary-outline span,
button.s-button-element.s-button-primary span,
button.s-button-element.s-button-primary-outline i,
button.s-button-element.s-button-primary i,
button.s-button-element.s-button-primary-outline svg,
button.s-button-element.s-button-primary svg {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
  stroke: currentColor !important;
}

button.s-button-element.s-button-primary-outline:hover,
button.s-button-element.s-button-primary:hover {
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  box-shadow: 0 5px 14px rgba(212, 175, 55, .30) !important;
}

button.s-button-element.s-button-primary-outline:hover *,
button.s-button-element.s-button-primary:hover * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}

/* Diyala header & footer — same cart-button gold: #d4af37 */
:root {
  --diyala-black: #050505;
  --diyala-gold: #d4af37;
  --diyala-white: #ffffff;
}

/* Header */
header,
.store-header,
.main-header,
.main-nav-container,
.navbar-brand {
  background-color: var(--diyala-white) !important;
  color: var(--diyala-black) !important;
}

header,
.store-header,
.main-header {
  border-bottom: 1px solid var(--diyala-gold) !important;
}

/* Navigation text */
header a,
header button,
.store-header a,
.main-header a,
.main-nav-container a,
.main-menu a {
  color: var(--diyala-black) !important;
}

header a:hover,
header button:hover,
.store-header a:hover,
.main-header a:hover,
.main-nav-container a:hover,
.main-menu a:hover,
.main-menu .active,
.main-menu .is-active {
  color: var(--diyala-gold) !important;
}

/* Header icons */
header .sicon-menu,
header .sicon-search,
header .sicon-user,
header .sicon-shopping-bag,
header .s-cart-summary-icon,
.store-header .sicon-menu,
.store-header .sicon-search,
.store-header .sicon-user,
.store-header .sicon-shopping-bag {
  color: var(--diyala-gold) !important;
  fill: var(--diyala-gold) !important;
}

/* Announcement bar, if enabled */
.top-navbar,
.announcement-bar,
.s-announcement-bar,
.header-top,
[class*="announcement"] {
  background: var(--diyala-black) !important;
  color: var(--diyala-white) !important;
  border-bottom: 1px solid var(--diyala-gold) !important;
}

.top-navbar a,
.top-navbar strong,
.announcement-bar a,
.announcement-bar strong,
.s-announcement-bar a,
.s-announcement-bar strong,
.header-top a,
.header-top strong,
[class*="announcement"] a,
[class*="announcement"] strong {
  color: var(--diyala-gold) !important;
}

/* Footer */
footer,
.store-footer,
.main-footer,
.footer-is-light,
.footer-container {
  background: var(--diyala-black) !important;
  color: var(--diyala-white) !important;
  border-top: 1px solid var(--diyala-gold) !important;
}

footer h2,
footer h3,
footer h4,
footer .footer-title,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.main-footer h2,
.main-footer h3,
.main-footer h4 {
  color: var(--diyala-gold) !important;
  -webkit-text-fill-color: var(--diyala-gold) !important;
}

footer p,
footer li,
footer span,
footer address,
.store-footer p,
.store-footer li,
.store-footer span,
.main-footer p,
.main-footer li,
.main-footer span {
  color: var(--diyala-white) !important;
  -webkit-text-fill-color: var(--diyala-white) !important;
}

footer a,
.store-footer a,
.main-footer a {
  color: var(--diyala-white) !important;
  -webkit-text-fill-color: var(--diyala-white) !important;
}

footer a:hover,
.store-footer a:hover,
.main-footer a:hover {
  color: var(--diyala-gold) !important;
  -webkit-text-fill-color: var(--diyala-gold) !important;
}

/* Footer icons and separators */
footer i,
footer svg,
.store-footer i,
.store-footer svg,
.main-footer i,
.main-footer svg {
  color: var(--diyala-gold) !important;
}

footer hr,
.store-footer hr,
.main-footer hr,
.copyrights,
.footer-bottom {
  border-color: rgba(212, 175, 55, .45) !important;
}

/* Keep payment and certification images in their original colors */
footer img,
.store-footer img,
.main-footer img {
  filter: none !important;
}


/* Diyala — light ivory background for the store content */
body,
main,
#main-content,
.main-content,
.store-home,
.products-list-wrapper,
.s-products-list-wrapper,
.products-grid,
.products-list,
.category-page,
.product-single,
.product-page {
  background-color: #f8f5ef !important;
  color: #050505 !important;
}

/* Category heading, breadcrumbs and sorting area */
.breadcrumbs,
.breadcrumb,
.s-breadcrumb-wrapper,
[class*="breadcrumb"],
.category-header,
.products-list-title,
.products-list-wrapper > div:first-child {
  background-color: #f8f5ef !important;
  color: #050505 !important;
}

main h1,
main h2,
main h3,
.main-content h1,
.main-content h2,
.main-content h3,
.breadcrumbs a,
.breadcrumb a,
[class*="breadcrumb"] a {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

/* Keep product cards white */
.s-product-card-entry,
custom-salla-product-card,
salla-product-card,
.product-card,
.product-entry,
.s-product-card-image,
.s-product-card-content {
  background-color: #ffffff !important;
}


/* Diyala — header search and language only */

/* Search field: white with the same cart-button gold */
header input[type="search"],
.store-header input[type="search"],
.main-header input[type="search"],
header .s-search-input,
.store-header .s-search-input,
.header-search input,
.search-bar input,
salla-search input {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  box-shadow: none !important;
}

header input[type="search"]::placeholder,
.store-header input[type="search"]::placeholder,
.main-header input[type="search"]::placeholder,
header .s-search-input::placeholder,
.header-search input::placeholder,
.search-bar input::placeholder,
salla-search input::placeholder {
  color: #777777 !important;
  -webkit-text-fill-color: #777777 !important;
  opacity: 1 !important;
}

/* Search icon */
header .sicon-search,
.store-header .sicon-search,
.main-header .sicon-search,
.header-search svg,
.search-bar svg {
  color: #d4af37 !important;
  fill: #d4af37 !important;
}

/* Language/currency button: black and gold */
header .btn--rounded-gray,
.store-header .btn--rounded-gray,
.main-header .btn--rounded-gray,
header [class*="language"],
.store-header [class*="language"],
header [class*="localization"],
.store-header [class*="localization"],
salla-localization-modal .btn--rounded-gray {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  box-shadow: none !important;
}

header .btn--rounded-gray *,
.store-header .btn--rounded-gray *,
.main-header .btn--rounded-gray *,
header [class*="language"] *,
.store-header [class*="language"] *,
header [class*="localization"] *,
.store-header [class*="localization"] * {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
}

header .btn--rounded-gray:hover,
.store-header .btn--rounded-gray:hover,
.main-header .btn--rounded-gray:hover,
header [class*="language"]:hover,
.store-header [class*="language"]:hover,
header [class*="localization"]:hover,
.store-header [class*="localization"]:hover {
  background: #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

header .btn--rounded-gray:hover *,
.store-header .btn--rounded-gray:hover *,
header [class*="language"]:hover *,
header [class*="localization"]:hover * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}


/* Diyala — final footer colors */

/* Footer background, including Twilight's light footer container */
footer,
footer.footer-is-light,
.store-footer,
.store-footer.footer-is-light,
.main-footer,
footer .store-footer__inner,
.store-footer__inner,
footer > div,
.store-footer > div {
  background: #050505 !important;
  background-color: #050505 !important;
  border-color: #d4af37 !important;
}

/* Bold headings and important text: same gold as cart buttons */
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer strong,
footer b,
footer .font-bold,
footer .font-semibold,
footer [class*="title"],
.store-footer h1,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer strong,
.store-footer b {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Regular footer text: warm ivory */
footer p,
footer li,
footer span:not(.font-bold):not(.font-semibold),
footer address,
footer small,
footer label,
footer a,
.store-footer p,
.store-footer li,
.store-footer span:not(.font-bold):not(.font-semibold),
.store-footer address,
.store-footer small,
.store-footer a {
  color: #f8f5ef !important;
  -webkit-text-fill-color: #f8f5ef !important;
}

/* Links become gold on hover */
footer a:hover,
.store-footer a:hover {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Footer icons */
footer i,
footer svg,
.store-footer i,
.store-footer svg {
  color: #d4af37 !important;
  fill: currentColor !important;
}

/* Preserve the original appearance of payment and certification images */
footer img,
.store-footer img {
  background: transparent !important;
  filter: none !important;
}

/* Diyala — replace gray tones with ivory, white, black or gold */

/* Gray backgrounds become warm ivory */
.bg-gray-50,
.bg-gray-100,
.bg-gray-200,
.bg-grey-50,
.bg-grey-100,
.bg-light,
[class*="bg-gray-1"],
[class*="bg-grey-1"],
.product-form textarea,
.product-form input,
.product-form select,
.product__description,
.product-comments,
.product-tabs {
  background-color: #f6ecd9 !important;
}

/* Secondary gray text on light areas becomes black */
main .text-gray-400,
main .text-gray-500,
main .text-gray-600,
main .text-grey-400,
main .text-grey-500,
main .text-grey-600,
.main-content .text-gray-400,
.main-content .text-gray-500,
.main-content .text-gray-600,
.s-product-card-content-subtitle,
.s-product-card-starting-price p,
.product-details .text-gray-400,
.product-details .text-gray-500,
.product-details .text-gray-600 {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

/* Light gray borders become soft gold */
main .border-gray-100,
main .border-gray-200,
main .border-gray-300,
.main-content .border-gray-100,
.main-content .border-gray-200,
.main-content .border-gray-300,
.product-form input,
.product-form select,
.product-form textarea {
  border-color: rgba(212, 175, 55, .65) !important;
}

/* Gray footer text becomes warm ivory */
footer .text-gray-400,
footer .text-gray-500,
footer .text-gray-600,
footer .text-grey-400,
footer .text-grey-500,
footer .text-grey-600,
.store-footer .text-gray-400,
.store-footer .text-gray-500,
.store-footer .text-gray-600 {
  color: #f8f5ef !important;
  -webkit-text-fill-color: #f8f5ef !important;
}

/* Disabled/light controls use ivory instead of gray */
button:disabled,
.s-button-disabled,
[aria-disabled="true"] {
  background-color: #f8f5ef !important;
  color: #050505 !important;
  border-color: #d4af37 !important;
  opacity: .75 !important;
}


body,
main,
#main-content,
.main-content,
.store-home,
.products-list-wrapper,
.s-products-list-wrapper,
.products-grid,
.products-list,
.category-page,
.product-single,
.product-page,
.breadcrumbs,
.breadcrumb,
.s-breadcrumb-wrapper,
.category-header,
.products-list-title {
  background-color: #ffffff !important;
}

/* Diyala — Add note control inside the cart only */
body.cart-index .btn--add-note,
body.cart-index .add-note,
body.cart-index button[class*="note"],
body.cart-index [class*="cart-item"] button:has(.sicon-chat),
body.cart-index [class*="cart-item"] button:has(.sicon-message),
.cart-page .btn--add-note,
.cart-page .add-note,
.cart-page button[class*="note"],
.cart-page [class*="cart-item"] button:has(.sicon-chat),
.cart-page [class*="cart-item"] button:has(.sicon-message),
.cart-item .btn--add-note,
.cart-item .add-note,
.cart-item button[class*="note"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #d4af37 !important;
  border-radius: 7px !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  box-shadow: none !important;
}

body.cart-index .btn--add-note *,
body.cart-index .add-note *,
body.cart-index button[class*="note"] *,
.cart-page .btn--add-note *,
.cart-page .add-note *,
.cart-page button[class*="note"] *,
.cart-item .btn--add-note *,
.cart-item .add-note *,
.cart-item button[class*="note"] * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}

body.cart-index .btn--add-note:hover,
body.cart-index .add-note:hover,
body.cart-index button[class*="note"]:hover,
.cart-page .btn--add-note:hover,
.cart-page .add-note:hover,
.cart-page button[class*="note"]:hover,
.cart-item .btn--add-note:hover,
.cart-item .add-note:hover,
.cart-item button[class*="note"]:hover {
  background: #d4af37 !important;
  color: #050505 !important;
}

/* Diyala homepage category cards */
#diyala-home-categories {
  direction: rtl;
  padding: 28px 14px;
  background: #f8f5ef;
  font-family: inherit;
}

#diyala-home-categories * {
  box-sizing: border-box;
}

#diyala-home-categories .diyala-home-banner {
  display: block;
  overflow: hidden;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #050505;
  line-height: 0;
}

#diyala-home-categories .diyala-home-banner:last-child {
  margin-top: 24px;
  margin-bottom: 0;
}

#diyala-home-categories .diyala-home-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#diyala-home-categories .diyala-categories-title {
  margin: 0 0 22px;
  color: #050505;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

#diyala-home-categories .diyala-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

#diyala-home-categories .diyala-category-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

#diyala-home-categories .diyala-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.13);
}

#diyala-home-categories .diyala-category-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #f4ead8;
  border-bottom: 1px solid rgba(212, 175, 55, .45);
}

#diyala-home-categories .diyala-category-content {
  display: flex;
  min-height: 154px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 15px 12px 16px;
  text-align: center;
}

#diyala-home-categories .diyala-category-name {
  margin: 0 0 7px;
  color: #050505;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

#diyala-home-categories .diyala-category-description {
  margin: 0 0 14px;
  color: #353535;
  font-size: 13px;
  line-height: 1.7;
}

#diyala-home-categories .diyala-category-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 24px;
  border: 1px solid #d4af37;
  border-radius: 6px;
  background: #050505;
  color: #d4af37;
  font-size: 15px;
  font-weight: 800;
}

#diyala-home-categories .diyala-category-card:hover .diyala-category-button {
  background: #d4af37;
  color: #050505;
}

@media (max-width: 900px) {
  #diyala-home-categories .diyala-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #diyala-home-categories {
    padding: 22px 9px;
  }

  #diyala-home-categories .diyala-categories-title {
    font-size: 23px;
  }

  #diyala-home-categories .diyala-home-banner {
    margin-bottom: 22px;
    border-radius: 6px;
  }

  #diyala-home-categories .diyala-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #diyala-home-categories .diyala-category-content {
    min-height: 145px;
    padding: 12px 8px;
  }

  #diyala-home-categories .diyala-category-name {
    font-size: 15px;
  }

  #diyala-home-categories .diyala-category-description {
    font-size: 12px;
  }

  #diyala-home-categories .diyala-category-button {
    min-height: 36px;
    padding: 7px 17px;
    font-size: 13px;
  }
}

/* Diyala — category cards and product details */

/* Soft store background */
body:has(salla-products-list),
body:has(.products-grid),
body:has(salla-add-product-button) {
  background-color: #f8f5ef !important;
}

/* Pass the black/gold palette into Salla components */
custom-salla-product-card,
salla-product-card,
salla-products-list,
salla-add-product-button,
.s-product-card-entry,
.product-form {
  --color-primary: #050505 !important;
  --color-primary-dark: #050505 !important;
  --color-primary-light: #1a1a1a !important;
  --color-primary-reverse: #d4af37 !important;
}

/* Product cards */
custom-salla-product-card.s-product-card-entry,
salla-product-card,
.s-product-card-entry,
.product-card,
.product-entry {
  overflow: hidden !important;
  border: 1px solid #d4af37 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

custom-salla-product-card.s-product-card-entry:hover,
salla-product-card:hover,
.s-product-card-entry:hover,
.product-card:hover,
.product-entry:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 11px 25px rgba(0, 0, 0, .13) !important;
}

/* Card image and content */
.s-product-card-image,
.s-product-card-content,
.s-product-card-content-main,
.s-product-card-content-footer {
  background-color: #ffffff !important;
}

.s-product-card-content-title,
.s-product-card-content-title a,
.s-product-card-name,
.s-product-card-name a {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  font-weight: 800 !important;
}

.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-starting-price h4,
.s-product-card-content-sub h4 {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
  font-weight: 900 !important;
}

/* Add-to-cart buttons when rendered outside component isolation */
custom-salla-product-card .s-button-element,
salla-product-card .s-button-element,
.s-product-card-entry .s-button-element,
salla-add-product-button .s-button-element,
.s-add-product-button-main .s-button-element,
.product-form .s-button-element {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  border-radius: 7px !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

custom-salla-product-card .s-button-element *,
salla-product-card .s-button-element *,
.s-product-card-entry .s-button-element *,
salla-add-product-button .s-button-element *,
.s-add-product-button-main .s-button-element *,
.product-form .s-button-element * {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
  stroke: currentColor !important;
}

/* Badges */
.s-product-card-promotion-title {
  background: #050505 !important;
  border: 1px solid #d4af37 !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Wishlist */
.s-product-card-wishlist-btn.s-button-element {
  --color-primary: #d4af37 !important;
  --color-primary-reverse: #050505 !important;
  background: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, .65) !important;
  color: #a97816 !important;
}

/* Product details areas */
.product-details,
.product-details__content,
.product-details-body,
.product-form,
.product__description,
.sticky-product-bar {
  background-color: #ffffff !important;
  color: #161616 !important;
}

.product-details h1,
.product-details h2,
.product-details h3,
.product-form label {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

.product-details .price,
.product-details [class*="price"],
.product-form [class*="price"],
salla-product-price {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
  font-weight: 900 !important;
}

/* Hover */
custom-salla-product-card .s-button-element:hover,
salla-product-card .s-button-element:hover,
.s-product-card-entry .s-button-element:hover,
salla-add-product-button .s-button-element:hover,
.s-add-product-button-main .s-button-element:hover,
.product-form .s-button-element:hover {
  --color-primary: #d4af37 !important;
  --color-primary-reverse: #050505 !important;
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

custom-salla-product-card .s-button-element:hover *,
salla-product-card .s-button-element:hover *,
.s-product-card-entry .s-button-element:hover *,
salla-add-product-button .s-button-element:hover *,
.s-add-product-button-main .s-button-element:hover *,
.product-form .s-button-element:hover * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}

/* Exact selector found in Diyala's current Salla theme */
button.s-button-element.s-button-primary-outline,
button.s-button-element.s-button-primary {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  border-radius: 7px !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  box-shadow: none !important;
}

button.s-button-element.s-button-primary-outline .s-button-text,
button.s-button-element.s-button-primary .s-button-text,
button.s-button-element.s-button-primary-outline span,
button.s-button-element.s-button-primary span,
button.s-button-element.s-button-primary-outline i,
button.s-button-element.s-button-primary i,
button.s-button-element.s-button-primary-outline svg,
button.s-button-element.s-button-primary svg {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
  stroke: currentColor !important;
}

button.s-button-element.s-button-primary-outline:hover,
button.s-button-element.s-button-primary:hover {
  background: #d4af37 !important;
  background-color: #d4af37 !important;
  border-color: #d4af37 !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  box-shadow: 0 5px 14px rgba(212, 175, 55, .30) !important;
}

button.s-button-element.s-button-primary-outline:hover *,
button.s-button-element.s-button-primary:hover * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
}


/* Diyala — moving golden shine for banners, categories and products */

#diyala-home-categories .diyala-home-banner,
#diyala-home-categories .diyala-category-card,
custom-salla-product-card.s-product-card-entry,
salla-product-card,
.s-product-card-entry,
.product-card,
.product-entry {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

#diyala-home-categories .diyala-home-banner::after,
#diyala-home-categories .diyala-category-card::after,
custom-salla-product-card.s-product-card-entry::after,
salla-product-card::after,
.s-product-card-entry::after,
.product-card::after,
.product-entry::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: -35%;
  left: -65%;
  width: 28%;
  height: 170%;
  pointer-events: none !important;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, .08) 20%,
    rgba(255, 235, 164, .38) 42%,
    rgba(255, 255, 255, .82) 50%,
    rgba(212, 175, 55, .34) 62%,
    transparent 100%
  );
  animation: diyala-golden-shine 5.2s ease-in-out infinite;
}

/* Stagger cards so the shine does not cross all cards simultaneously */
#diyala-home-categories .diyala-category-card:nth-child(2n)::after,
.s-product-card-entry:nth-child(2n)::after,
.product-card:nth-child(2n)::after,
.product-entry:nth-child(2n)::after {
  animation-delay: .7s;
}

#diyala-home-categories .diyala-category-card:nth-child(3n)::after,
.s-product-card-entry:nth-child(3n)::after,
.product-card:nth-child(3n)::after,
.product-entry:nth-child(3n)::after {
  animation-delay: 1.4s;
}

#diyala-home-categories .diyala-home-banner:last-child::after {
  animation-delay: 1s;
}

@keyframes diyala-golden-shine {
  0%, 26% {
    left: -65%;
    opacity: 0;
  }

  34% {
    opacity: .85;
  }

  58% {
    left: 135%;
    opacity: .72;
  }

  66%, 100% {
    left: 135%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #diyala-home-categories .diyala-home-banner::after,
  #diyala-home-categories .diyala-category-card::after,
  custom-salla-product-card.s-product-card-entry::after,
  salla-product-card::after,
  .s-product-card-entry::after,
  .product-card::after,
  .product-entry::after {
    animation: none !important;
  }
}

/* Diyala — restore product-page palette */
body:has(salla-add-product-button),
body:has(.product-form),
.product-page,
.product-single,
.product-details,
.product-details-body,
.product-form,
.product__description {
  background-color: #ffffff !important;
  color: #050505 !important;
}

/* Pass the palette to Salla's product button component */
salla-add-product-button,
.s-add-product-button-main,
.product-form {
  --color-primary: #050505 !important;
  --color-primary-dark: #050505 !important;
  --color-primary-light: #1a1a1a !important;
  --color-primary-reverse: #d4af37 !important;
}

/* Product add-to-cart button */
salla-add-product-button button,
salla-add-product-button .s-button-element,
.s-add-product-button-main button,
.s-add-product-button-main .s-button-element,
.product-form button.s-button-element.s-button-primary,
.product-form button[type="submit"] {
  background: #050505 !important;
  background-color: #050505 !important;
  border: 1px solid #d4af37 !important;
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  border-radius: 7px !important;
}

salla-add-product-button button *,
salla-add-product-button .s-button-element *,
.s-add-product-button-main button *,
.s-add-product-button-main .s-button-element *,
.product-form button.s-button-element.s-button-primary * {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  fill: #d4af37 !important;
  stroke: currentColor !important;
}

/* Price and selected product details */
.product-details .price,
.product-details [class*="price"],
.product-form [class*="price"],
salla-product-price {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
  font-weight: 900 !important;
}

/* Product tabs and inputs */
.product-details input,
.product-details select,
.product-form input,
.product-form select,
.product-tabs button,
[class*="product"] [role="tab"] {
  background-color: #ffffff !important;
  border-color: #d4af37 !important;
  color: #050505 !important;
}

/* Slow the existing shine from 5.2s to 10s */
#diyala-home-categories .diyala-home-banner::after,
#diyala-home-categories .diyala-category-card::after,
custom-salla-product-card.s-product-card-entry::after,
salla-product-card::after,
.s-product-card-entry::after,
.product-card::after,
.product-entry::after {
  animation-duration: 10s !important;
}

/* One-card crop test */
#diyala-one-card-test {
  direction: rtl;
  width: min(290px, calc(100% - 24px));
  margin: 28px auto;
  overflow: hidden;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #ffffff;
  color: #050505;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

#diyala-one-card-test .diyala-test-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1.72;
  overflow: hidden;
  background: #f8f5ef;
  border-bottom: 1px solid #d4af37;
}

/* Image is taller than its frame, so the baked-in lower title strip is cropped */
#diyala-one-card-test .diyala-test-image {
  display: block;
  width: 100%;
  height: 121%;
  object-fit: cover;
  object-position: center top;
}

#diyala-one-card-test .diyala-test-content {
  padding: 16px 12px;
}

#diyala-one-card-test h3 {
  margin: 0 0 7px;
  color: #050505;
  font-size: 20px;
  font-weight: 900;
}

#diyala-one-card-test p {
  margin: 0 0 15px;
  color: #050505;
  font-size: 14px;
}

#diyala-one-card-test .diyala-test-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 1px solid #d4af37;
  border-radius: 6px;
  background: #050505;
  color: #d4af37;
  font-weight: 800;
}

/* Diyala clean homepage v2 */
#diyala-clean-home {
  direction: rtl;
  padding: 22px 14px 34px;
  background: #ffffff;
  font-family: inherit;
}

#diyala-clean-home * { box-sizing: border-box; }

#diyala-clean-home .diyala-wrap {
  width: min(1180px, 100%);
  margin: auto;
}

#diyala-clean-home .diyala-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #050505;
  line-height: 0;
  isolation: isolate;
}

#diyala-clean-home .diyala-banner img {
  display: block;
  width: 100%;
  height: auto;
}

#diyala-clean-home .diyala-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 20px;
  color: #050505;
  font-size: 28px;
  font-weight: 900;
}

#diyala-clean-home .diyala-title::before,
#diyala-clean-home .diyala-title::after {
  content: "";
  width: 80px;
  height: 1px;
  background: #d4af37;
}

#diyala-clean-home .diyala-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#diyala-clean-home .diyala-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: #ffffff;
  color: #050505;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

#diyala-clean-home .diyala-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 27px rgba(0, 0, 0, .13);
}

#diyala-clean-home .diyala-image-frame {
  width: 100%;
  aspect-ratio: 3 / 1.72;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #d4af37;
}

/* Crop the baked-in title but preserve the small golden category icon */
#diyala-clean-home .diyala-image {
  display: block;
  width: 100%;
  height: 121%;
  object-fit: cover;
  object-position: center top;
}

#diyala-clean-home .diyala-content {
  display: flex;
  min-height: 156px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  text-align: center;
}

#diyala-clean-home .diyala-card-title {
  margin: 0 0 7px;
  color: #050505;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

#diyala-clean-home .diyala-description {
  margin: 0 0 15px;
  color: #050505;
  font-size: 13px;
  line-height: 1.7;
}

#diyala-clean-home .diyala-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 24px;
  border: 1px solid #d4af37;
  border-radius: 6px;
  background: #050505;
  color: #d4af37;
  font-size: 15px;
  font-weight: 800;
}

#diyala-clean-home .diyala-card:hover .diyala-button {
  background: #d4af37;
  color: #050505;
}

#diyala-clean-home .diyala-bottom-banner { margin-top: 24px; }

#diyala-clean-home .diyala-banner::after,
#diyala-clean-home .diyala-card::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: -35%;
  left: -65%;
  width: 26%;
  height: 170%;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.12), rgba(255,255,255,.78), rgba(212,175,55,.30), transparent);
  animation: diyalaCleanShine 10s ease-in-out infinite;
}

#diyala-clean-home .diyala-card:nth-child(2n)::after { animation-delay: .8s; }
#diyala-clean-home .diyala-card:nth-child(3n)::after { animation-delay: 1.6s; }
#diyala-clean-home .diyala-bottom-banner::after { animation-delay: 1.2s; }

@keyframes diyalaCleanShine {
  0%, 30% { left: -65%; opacity: 0; }
  37% { opacity: .82; }
  58% { left: 135%; opacity: .68; }
  66%, 100% { left: 135%; opacity: 0; }
}

@media (max-width: 900px) {
  #diyala-clean-home .diyala-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  #diyala-clean-home { padding: 12px 9px 26px; }
  #diyala-clean-home .diyala-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #diyala-clean-home .diyala-title { margin: 22px 0 16px; gap: 9px; font-size: 23px; }
  #diyala-clean-home .diyala-title::before,
  #diyala-clean-home .diyala-title::after { width: 35px; }
  #diyala-clean-home .diyala-content { min-height: 146px; padding: 12px 8px; }
  #diyala-clean-home .diyala-card-title { font-size: 15px; }
  #diyala-clean-home .diyala-description { font-size: 12px; }
  #diyala-clean-home .diyala-button { min-height: 36px; padding: 7px 17px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #diyala-clean-home .diyala-banner::after,
  #diyala-clean-home .diyala-card::after { animation: none; }
}

/* Diyala — light styling for Salla product slider sections */
section:has(salla-products-slider),
section:has(.s-products-slider),
.s-block--products-slider,
.s-products-slider-wrapper,
[class*="products-slider"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #050505 !important;
  border-color: #d4af37 !important;
}

section:has(salla-products-slider) h2,
section:has(salla-products-slider) h3,
section:has(.s-products-slider) h2,
section:has(.s-products-slider) h3,
.s-block--products-slider h2,
.s-block--products-slider h3,
.s-products-slider-wrapper h2,
.s-products-slider-wrapper h3,
[class*="products-slider"] h2,
[class*="products-slider"] h3 {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  font-weight: 900 !important;
}

section:has(salla-products-slider) a:not(.s-product-card-content-title),
section:has(.s-products-slider) a:not(.s-product-card-content-title),
.s-block--products-slider > a,
.s-products-slider-wrapper > a {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
}

/* Add a subtle gold separator around the section heading area */
section:has(salla-products-slider) [class*="title"],
section:has(.s-products-slider) [class*="title"],
.s-block--products-slider [class*="title"],
.s-products-slider-wrapper [class*="title"] {
  border-color: rgba(212, 175, 55, .55) !important;
}


/* Diyala — target product sections by their actual card contents */
main section:has(custom-salla-product-card),
main section:has(salla-product-card),
main section:has(.s-product-card-entry),
main [class*="s-block"]:has(custom-salla-product-card),
main [class*="s-block"]:has(.s-product-card-entry),
.main-content section:has(custom-salla-product-card),
.main-content section:has(.s-product-card-entry) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #050505 !important;
  border-color: #d4af37 !important;
}

main section:has(custom-salla-product-card) h2,
main section:has(custom-salla-product-card) h3,
main section:has(.s-product-card-entry) h2,
main section:has(.s-product-card-entry) h3,
main [class*="s-block"]:has(.s-product-card-entry) h2,
main [class*="s-block"]:has(.s-product-card-entry) h3 {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  font-weight: 900 !important;
}

main section:has(custom-salla-product-card) > div,
main section:has(salla-product-card) > div,
main section:has(.s-product-card-entry) > div,
main [class*="s-block"]:has(.s-product-card-entry) > div {
  background-color: #ffffff !important;
  color: #050505 !important;
}

main section:has(custom-salla-product-card) a[class*="more"],
main section:has(.s-product-card-entry) a[class*="more"],
main section:has(custom-salla-product-card) [class*="show-all"],
main section:has(.s-product-card-entry) [class*="show-all"] {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
}

/* Diyala — smaller horizontal second homepage banner */
#diyala-clean-home .diyala-bottom-banner {
  width: 100% !important;
  height: clamp(190px, 21vw, 260px) !important;
  margin-top: 24px !important;
  overflow: hidden !important;
}

#diyala-clean-home .diyala-bottom-banner img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 640px) {
  #diyala-clean-home .diyala-bottom-banner {
    height: 150px !important;
    margin-top: 16px !important;
  }
}

/* Diyala — responsive desktop/mobile second banner */
#diyala-clean-home .diyala-bottom-banner {
  width: 100% !important;
  height: clamp(190px, 21vw, 260px) !important;
  margin-top: 24px !important;
  overflow: hidden !important;
}

#diyala-clean-home .diyala-bottom-banner picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#diyala-clean-home .diyala-bottom-banner picture img,
#diyala-clean-home .diyala-bottom-banner > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 640px) {
  #diyala-clean-home .diyala-bottom-banner {
    height: 150px !important;
    margin-top: 16px !important;
  }
}

/* Diyala — keep Order Again, but remove its black background */
.diyala-order-again-light,
.diyala-order-again-light > div,
.diyala-order-again-light [class*="wrapper"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #050505 !important;
  border-color: #d4af37 !important;
}

.diyala-order-again-light h1,
.diyala-order-again-light h2,
.diyala-order-again-light h3,
.diyala-order-again-light h4 {
  display: block !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  font-weight: 900 !important;
}

.diyala-order-again-light a:not(.s-product-card-content-title) {
  color: #a97816 !important;
  -webkit-text-fill-color: #a97816 !important;
}

/* Diyala: one light gold frame around the native Salla reviews section */
.diyala-native-reviews-frame {
  position: relative !important;
  isolation: isolate !important;
  border: 1px solid rgba(212, 175, 55, .55) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, .16) !important;
}

@property --diyala-review-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.diyala-native-reviews-frame::before {
  content: "" !important;
  position: absolute !important;
  z-index: 50 !important;
  inset: 0 !important;
  padding: 3px !important;
  border-radius: 12px !important;
  pointer-events: none !important;
  background: conic-gradient(
    from var(--diyala-review-angle),
    #5b3900 0deg,
    #d4af37 55deg,
    #fff8c7 82deg,
    #ffffff 92deg,
    #fff8c7 102deg,
    #d4af37 130deg,
    #5b3900 185deg,
    #d4af37 250deg,
    #fff2a0 275deg,
    #d4af37 300deg,
    #5b3900 360deg
  ) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask-composite: exclude !important;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, .9)) !important;
  animation: diyalaReviewsBorderSpin 4s linear infinite !important;
}

@keyframes diyalaReviewsBorderSpin {
  to { --diyala-review-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .diyala-native-reviews-frame::before {
    animation: none !important;
  }
}

/* Product questions and comments: warm beige instead of platform gray */
body.product-index main section:has(textarea),
body.product-index main [class*="comment"]:has(textarea),
body.product-index main [class*="question"]:has(textarea),
.product-page section:has(textarea),
.product-single section:has(textarea),
.product-comments,
.product-questions,
[class*="questions-and-answers"] {
  background-color: #f6ecd9 !important;
  background-image: none !important;
}

body.product-index main textarea,
.product-page textarea,
.product-single textarea,
.product-comments textarea,
.product-questions textarea {
  background-color: #ffffff !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  border-color: rgba(212, 175, 55, .72) !important;
}

/* Unified store borders: every existing border uses Diyala gold */
body *:not(.tawk-min-container):not([class*="tawk"]) {
  border-color: #d4af37 !important;
}

/* Prices and quantity controls: solid black */
main [class*="price"],
main [class*="price"] *,
.s-product-card-price,
.s-product-card-price *,
.product-price,
.product-price *,
.sale-price,
.regular-price,
.old-price,
.total-price,
.cart-item-price,
.cart-item-price *,
.cart-summary [class*="total"],
.cart-summary [class*="total"] * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}

main [class*="quantity"],
main [class*="quantity"] *,
main [class*="qty"],
main [class*="qty"] *,
salla-quantity-input,
salla-quantity-input *,
.s-quantity-input,
.s-quantity-input *,
input[type="number"] {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  fill: #050505 !important;
  stroke: #050505 !important;
}

/* Discounted/current sale price only: red */
main .sale-price,
main .special-price,
main .discount-price,
main .discounted-price,
main [class*="sale-price"],
main [class*="special-price"],
main [class*="discount-price"],
main [class*="discounted-price"],
main [class*="price-sale"],
.s-product-card-sale-price,
.s-product-card-sale-price * {
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
}

/* "Notify me when available" button: white text and icon */
salla-notify-product-availability button,
salla-notify-product-availability button *,
salla-product-availability button,
salla-product-availability button *,
button[class*="notify"],
button[class*="notify"] *,
[class*="notify-availability"] button,
[class*="notify-availability"] button *,
button[aria-label*="أعلمني"],
button[aria-label*="أعلمني"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

button.diyala-notify-white,
button.diyala-notify-white *,
a.diyala-notify-white,
a.diyala-notify-white *,
.s-button-element.diyala-notify-white,
.s-button-element.diyala-notify-white * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

custom-salla-product-card.s-product-card-out-of-stock
salla-product-availability.s-product-availability-wrap
button.s-button-element.s-button-primary.diyala-notify-white,
custom-salla-product-card.s-product-card-out-of-stock
salla-product-availability.s-product-availability-wrap
button.s-button-element.s-button-primary.diyala-notify-white .s-button-text,
custom-salla-product-card.s-product-card-out-of-stock
salla-product-availability.s-product-availability-wrap
button.s-button-element.s-button-primary.diyala-notify-white .s-button-text span,
salla-add-product-button[product-status="out-and-notify"]
salla-product-availability
button.s-button-element.s-button-primary,
salla-add-product-button[product-status="out-and-notify"]
salla-product-availability
button.s-button-element.s-button-primary * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

@media (max-width: 640px) {
  .diyala-native-reviews-frame {
    margin-right: 9px !important;
    margin-left: 9px !important;
    padding: 12px !important;
  }
}

/* Shine only on hover: banners, category cards and product cards */
#diyala-clean-home .diyala-banner::after,
#diyala-clean-home .diyala-card::after,
#diyala-home-categories .diyala-home-banner::after,
#diyala-home-categories .diyala-category-card::after,
custom-salla-product-card.s-product-card-entry::after,
salla-product-card::after,
.s-product-card-entry::after,
.product-card::after,
.product-entry::after {
  left: -65%;
  opacity: 0;
  animation: none !important;
}

#diyala-clean-home .diyala-banner:hover::after,
#diyala-clean-home .diyala-card:hover::after,
#diyala-home-categories .diyala-home-banner:hover::after,
#diyala-home-categories .diyala-category-card:hover::after,
custom-salla-product-card.s-product-card-entry:hover::after,
salla-product-card:hover::after,
.s-product-card-entry:hover::after,
.product-card:hover::after,
.product-entry:hover::after {
  animation: diyalaHoverGoldenShine 1.15s ease-out 1 !important;
}

@keyframes diyalaHoverGoldenShine {
  0% {
    left: -65%;
    opacity: 0;
  }
  16% {
    opacity: .95;
  }
  72% {
    left: 135%;
    opacity: .78;
  }
  100% {
    left: 135%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #diyala-clean-home .diyala-banner:hover::after,
  #diyala-clean-home .diyala-card:hover::after,
  #diyala-home-categories .diyala-home-banner:hover::after,
  #diyala-home-categories .diyala-category-card:hover::after,
  custom-salla-product-card.s-product-card-entry:hover::after,
  salla-product-card:hover::after,
  .s-product-card-entry:hover::after,
  .product-card:hover::after,
  .product-entry:hover::after {
    animation: none !important;
  }
}

/* السعر بعد التخفيض: أحمر */
.s-product-card-sale-price > h4,
.s-product-card-sale-price > h4 *,
.s-product-card-sale-price h4 .sicon-sar {
  color: #c1121f !important;
  -webkit-text-fill-color: #c1121f !important;
}

/* السعر القديم: أسود ومشطوب */
.s-product-card-sale-price > span,
.s-product-card-sale-price > span * {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  text-decoration: line-through !important;
}

.diyala-card {
  position: relative !important;
}

.diyala-coming-soon {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 20 !important;
  padding: 7px 15px !important;
  background: #c1121f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid #fff !important;
  border-radius: 18px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.28) !important;
}