/**
 * Diyara theme — scoped overrides + website runtime utilities.
 */
body.website-theme.diyara {
  /* Reserve for child-specific tweaks without touching vendor CSS. */
}

@keyframes website-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.website-skeleton-line,
.website-skeleton-card {
  background: linear-gradient(90deg,
      rgba(229, 231, 235, 0.45) 25%,
      rgba(243, 244, 246, 0.95) 50%,
      rgba(229, 231, 235, 0.45) 75%);
  background-size: 200% 100%;
  animation: website-skeleton-shimmer 1.25s ease-in-out infinite;
}

.dark .website-skeleton-line,
.dark .website-skeleton-card {
  background: linear-gradient(90deg,
      rgba(31, 41, 55, 0.55) 25%,
      rgba(55, 65, 81, 0.85) 50%,
      rgba(31, 41, 55, 0.55) 75%);
  background-size: 200% 100%;
}

.website-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .website-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .website-skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#app-toast-container {
  pointer-events: none;
}

#app-toast-container>div {
  pointer-events: auto;
}

/* Footer responsive fallback (for browsers lacking MQ4 range syntax like `@media (width >= 64rem)`) */
.website-theme.diyara .diyara-footer-services__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 0.75rem;
}

.website-theme.diyara .diyara-footer-services__item {
  width: 100%;
}

@media (min-width: 640px) {
  .website-theme.diyara .diyara-footer-services__item {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .website-theme.diyara .diyara-footer-services__item {
    width: auto;
  }
}

.website-theme.diyara .diyara-footer-menus {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.website-theme.diyara .diyara-footer-menus__col {
  width: 100%;
}

@media (min-width: 1024px) {
  .website-theme.diyara .diyara-footer-menus__col {
    width: 50%;
  }
}

.website-theme.diyara .diyara-footer-menus__menu-item {
  width: 50%;
}

@media (min-width: 768px) {
  .website-theme.diyara .diyara-footer-menus__menu-item {
    width: 25%;
  }
}

.website-theme.diyara .diyara-footer-contact-col,
.website-theme.diyara .diyara-footer-badges-col {
  width: 100%;
}

@media (min-width: 640px) {
  .website-theme.diyara .diyara-footer-contact-col {
    width: 41.6667%;
  }

  .website-theme.diyara .diyara-footer-badges-col {
    width: 58.3333%;
  }
}

/* Shop filter drawer (mobile) — overrides story-player category-sidebar layout */
@media (max-width: 1023px) {
  body.website-theme.diyara {
    --diyara-shop-drawer-top: 4.5rem;
  }

  .shop-filter-backdrop {
    position: fixed;
    inset: 0;
    top: var(--diyara-shop-drawer-top);
    z-index: 28;
    background: rgba(15, 23, 42, 0.45);
  }

  .category-shop-grid .shop-filter-drawer.category-sidebar {
    position: fixed !important;
    top: var(--diyara-shop-drawer-top) !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(20rem, 92vw) !important;
    max-width: 92vw;
    height: auto !important;
    margin: 0 !important;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
    order: unset !important;
    grid-column: unset !important;
    grid-template-columns: unset !important;
    flex-direction: column !important;
    gap: 1rem;
    z-index: 29;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.14);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.25s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .dark .category-shop-grid .shop-filter-drawer.category-sidebar {
    background: var(--color-custom-dark, #1a1f2e);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  }

  .category-shop-grid .shop-filter-drawer.category-sidebar.is-open {
    display: flex !important;
    transform: translate3d(0, 0, 0) !important;
    visibility: visible;
    pointer-events: auto;
  }

  .category-shop-grid .shop-filter-drawer.category-sidebar.hidden:not(.is-open) {
    display: none !important;
  }

  .category-shop-grid .shop-filter-drawer.category-sidebar.is-open.hidden {
    display: flex !important;
  }

  .category-shop-grid {
    display: flex !important;
    flex-direction: column;
  }

  .category-shop-grid .category-main {
    order: 1;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .shop-filter-drawer.category-sidebar {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none;
    height: auto !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto;
    box-shadow: none;
    padding: 0;
  }

  body.website-theme.diyara .category-shop-grid {
    display: grid !important;
    grid-template-columns: 17.25rem minmax(0, 1fr) !important;
    gap: 1rem;
    align-items: start;
  }

  body.website-theme.diyara .category-shop-grid .category-sidebar {
    grid-column: 1;
    display: flex !important;
    flex-direction: column;
    order: unset !important;
    width: auto !important;
  }

  body.website-theme.diyara .category-shop-grid .category-main {
    grid-column: 2;
    order: unset !important;
  }

  .shop-filter-backdrop {
    display: none !important;
  }
}

/* Shop mobile sort bottom sheet */
.shop-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.shop-bottom-sheet.hidden {
  display: none;
}

.shop-bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.shop-bottom-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 1rem 1rem 0 0;
  background: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.dark .shop-bottom-sheet-panel {
  background: var(--color-custom-dark, #1a1f2e);
}

/* Product — mobile sticky buy box */
@media (max-width: 1023px) {
  .product-buy-box-sticky {
    position: sticky;
    bottom: 0;
    z-index: 40;
    margin-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(to top,
        var(--color-custom-light, #f8fafc) 85%,
        transparent);
  }

  .dark .product-buy-box-sticky {
    background: linear-gradient(to top, #0d1117 85%, transparent);
  }

  .product-buy-box-sticky>div {
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }
}

/* Product gallery toolbar (wishlist / compare active states) */
body.website-theme.diyara .product-gallery-toolbar__btn svg {
  color: inherit;
}

body.website-theme.diyara .product-gallery-toolbar__btn:hover {
  background-color: rgb(255 255 255 / 0.9);
}

.dark body.website-theme.diyara .product-gallery-toolbar__btn:hover {
  background-color: rgb(31 36 44);
}

body.website-theme.diyara .product-gallery-toolbar__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 2px;
}

body.website-theme.diyara .product-gallery-toolbar .add-wishlist.is-active,
body.website-theme.diyara .product-gallery-toolbar .add-wishlist.bg-rose-500 {
  background-color: rgb(244 63 94) !important;
  border-color: rgb(244 63 94) !important;
  color: #fff !important;
}

body.website-theme.diyara .product-gallery-toolbar .add-compare.is-active,
body.website-theme.diyara .product-gallery-toolbar .add-compare.bg-amber-500 {
  background-color: rgb(245 158 11) !important;
  border-color: rgb(245 158 11) !important;
  color: #fff !important;
}

body.website-theme.diyara .add-wishlist.is-active,
body.website-theme.diyara .add-wishlist.bg-rose-500 {
  background-color: rgb(244 63 94);
  border-color: rgb(244 63 94);
  color: #fff;
}

body.website-theme.diyara .add-compare.is-active,
body.website-theme.diyara .add-compare.bg-amber-500 {
  background-color: rgb(245 158 11);
  border-color: rgb(245 158 11);
  color: #fff;
}

/* Product info — engagement, meta, shipping */
body.website-theme.diyara .product-engage-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgb(229 231 235);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dark body.website-theme.diyara .product-engage-card {
  border-color: rgb(55 65 81);
  background: rgb(24 27 34);
}

body.website-theme.diyara .product-engage-card--rating {
  border-color: rgb(253 230 138);
  background: linear-gradient(135deg, rgb(255 251 235) 0%, #fff 100%);
}

.dark body.website-theme.diyara .product-engage-card--rating {
  border-color: rgb(245 158 11 / 0.35);
  background: linear-gradient(135deg, rgb(69 45 12 / 0.35) 0%, rgb(24 27 34) 100%);
}

body.website-theme.diyara .product-engage-card--muted {
  background: rgb(249 250 251);
}

.dark body.website-theme.diyara .product-engage-card--muted {
  background: rgb(31 36 44);
}

body.website-theme.diyara a.product-engage-card--link:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, rgb(229 231 235));
  box-shadow: 0 8px 20px rgb(15 23 42 / 0.06);
}

body.website-theme.diyara .product-engage-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgb(243 244 246);
  color: rgb(75 85 99);
}

.dark body.website-theme.diyara .product-engage-card__icon {
  background: rgb(39 46 58);
  color: rgb(209 213 219);
}

body.website-theme.diyara .product-engage-card--rating .product-engage-card__icon {
  background: rgb(254 243 199);
  color: rgb(217 119 6);
}

body.website-theme.diyara .product-engage-card--comments .product-engage-card__icon {
  background: rgb(254 242 242);
  color: rgb(225 29 72);
}

body.website-theme.diyara .product-engage-card--qa .product-engage-card__icon {
  background: rgb(239 246 255);
  color: rgb(37 99 235);
}

body.website-theme.diyara .product-engage-card__title {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgb(107 114 128);
  margin-bottom: 0.15rem;
}

.dark body.website-theme.diyara .product-engage-card__title {
  color: rgb(156 163 175);
}

body.website-theme.diyara .product-engage-card__star {
  color: rgb(209 213 219);
  font-size: 0.85rem;
  line-height: 1;
}

body.website-theme.diyara .product-engage-card__star.is-filled {
  color: rgb(251 191 36);
}

body.website-theme.diyara .product-meta-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgb(229 231 235);
  background: rgb(249 250 251);
}

.dark body.website-theme.diyara .product-meta-chip {
  border-color: rgb(55 65 81);
  background: rgb(31 36 44 / 0.65);
}

body.website-theme.diyara .product-meta-chip__label {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgb(107 114 128);
  letter-spacing: 0.01em;
}

.dark body.website-theme.diyara .product-meta-chip__label {
  color: rgb(156 163 175);
}

body.website-theme.diyara .product-meta-chip__value {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgb(31 41 55);
  line-height: 1.5;
  word-break: break-word;
}

.dark body.website-theme.diyara .product-meta-chip__value {
  color: rgb(243 244 246);
}

body.website-theme.diyara .product-meta-chip__value--ltr {
  direction: ltr;
  text-align: left;
}

body.website-theme.diyara .product-shipping-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgb(167 243 208);
  background: linear-gradient(135deg, rgb(236 253 245) 0%, rgb(209 250 229 / 0.5) 100%);
}

.dark body.website-theme.diyara .product-shipping-banner {
  border-color: rgb(16 185 129 / 0.35);
  background: linear-gradient(135deg, rgb(6 78 59 / 0.35) 0%, rgb(24 27 34) 100%);
}

body.website-theme.diyara .product-shipping-banner--compact {
  padding: 0.75rem;
  align-items: center;
}

body.website-theme.diyara .product-shipping-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgb(167 243 208);
  color: rgb(4 120 87);
}

.dark body.website-theme.diyara .product-shipping-banner__icon {
  background: rgb(16 185 129 / 0.25);
  color: rgb(110 231 183);
}

body.website-theme.diyara .product-shipping-banner__title {
  font-size: 0.82rem;
  font-weight: 900;
  color: rgb(6 95 70);
  margin-bottom: 0.2rem;
}

.dark body.website-theme.diyara .product-shipping-banner__title {
  color: rgb(110 231 183);
}

body.website-theme.diyara .product-shipping-banner__text {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.65;
  color: rgb(4 120 87);
}

.dark body.website-theme.diyara .product-shipping-banner__text {
  color: rgb(167 243 208);
}

/* Product tabs */
body.website-theme.diyara .product-tabs__heading {
  position: relative;
  padding-bottom: 0.75rem;
}

body.website-theme.diyara .product-tabs__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 5.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: var(--color-secondary-500, var(--color-primary));
}

body.website-theme.diyara .product-tabs__summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(229 231 235);
}

.dark body.website-theme.diyara .product-tabs__summary-item {
  background: rgb(17 20 26 / 0.6);
  border-color: rgb(55 65 81);
}

body.website-theme.diyara .product-tabs__tab--active,
body.website-theme.diyara .product-tabs__tab.bg-primary\/10 {
  background-color: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
  color: var(--color-primary) !important;
}

body.website-theme.diyara .product-tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  background: rgb(229 231 235);
  color: rgb(55 65 81);
}

body.website-theme.diyara .product-tabs__tab--active .product-tabs__badge,
body.website-theme.diyara .product-tabs__tab.bg-primary\/10 .product-tabs__badge {
  background: color-mix(in srgb, var(--color-primary) 20%, white);
  color: var(--color-primary);
}

.dark body.website-theme.diyara .product-tabs__badge {
  background: rgb(55 65 81);
  color: rgb(229 231 235);
}

body.website-theme.diyara .product-specs-table__row:last-child .product-specs-table__label,
body.website-theme.diyara .product-specs-table__row:last-child .product-specs-table__value {
  border-bottom: none;
}

#productGalleryTwo.product-gallery-loading {
  opacity: 0.55;
  pointer-events: none;
}

#productGalleryTwo.product-gallery-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(90deg,
      rgba(229, 231, 235, 0.35) 25%,
      rgba(243, 244, 246, 0.9) 50%,
      rgba(229, 231, 235, 0.35) 75%);
  background-size: 200% 100%;
  animation: website-skeleton-shimmer 1.25s ease-in-out infinite;
  border-radius: 0.75rem;
}

/* Saved pages (wishlist / compare) */
body.website-theme.diyara .website-saved-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgb(229 231 235);
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
}

.dark body.website-theme.diyara .website-saved-product-card {
  border-color: rgb(55 65 81);
  background: rgb(26 31 46);
}

body.website-theme.diyara .website-saved-product-card_media img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  border-radius: 0.75rem;
  background: rgb(249 250 251);
}

body.website-theme.diyara .website-saved-product-card_title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}

body.website-theme.diyara .website-saved-product-card_actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

body.website-theme.diyara .website-saved-product-card_primary-btn,
body.website-theme.diyara .website-saved-product-card_remove {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

body.website-theme.diyara .website-saved-product-card_primary-btn {
  background: var(--color-primary, #3b82f6);
  color: #fff;
}

body.website-theme.diyara .diyara-compare-table-wrap {
  margin-bottom: 1rem;
}

body.website-theme.diyara .diyara-compare-table td,
body.website-theme.diyara .diyara-compare-table th {
  vertical-align: middle;
}

/* Comments */
body.website-theme.diyara .diyara-comments-section .diyara-rating-star.is-active,
body.website-theme.diyara .diyara-rating-star.border-amber-300 {
  border-color: rgb(251 191 36);
  background: rgb(255 251 235);
  color: rgb(251 191 36);
}

/* Dashboard mobile drawer */
.diyara-dashboard-drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
}

.diyara-dashboard-drawer.hidden {
  display: none;
}

.diyara-dashboard-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.diyara-dashboard-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(100%, 20rem);
  overflow-y: auto;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.dark .diyara-dashboard-drawer-panel {
  background: var(--color-custom-dark, #1a1f2e);
}

.diyara-dashboard-field:focus-visible {
  outline: 2px solid var(--color-primary, #3b82f6);
  outline-offset: 2px;
}

/* Blog — diara/blog-single.html (.prose-content) */
.prose-content,
.diyara-page-content {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4,
.prose-content h5,
.prose-content h6,
.diyara-page-content h1,
.diyara-page-content h2,
.diyara-page-content h3 {
  color: rgb(17 24 39);
  font-weight: 700;
  line-height: 1.6;
  margin: 1.5rem 0 0.75rem;
}

.dark .prose-content h1,
.dark .prose-content h2,
.dark .prose-content h3,
.dark .prose-content h4,
.dark .prose-content h5,
.dark .prose-content h6,
.dark .diyara-page-content h1,
.dark .diyara-page-content h2,
.dark .diyara-page-content h3 {
  color: rgb(255 255 255);
}

.prose-content h2.text-center,
.prose-content h3 {
  margin-top: 2.5rem;
}

.prose-content p,
.prose-content ul,
.prose-content ol,
.prose-content blockquote,
.prose-content table,
.diyara-page-content p,
.diyara-page-content ul,
.diyara-page-content ol {
  margin: 0.85rem 0;
}

.prose-content ul,
.prose-content ol,
.diyara-page-content ul,
.diyara-page-content ol {
  padding-inline-start: 1.5rem;
}

.prose-content ul.list-inside {
  list-style-position: inside;
}

.prose-content a,
.diyara-page-content a {
  color: var(--color-primary, #3b82f6);
}

.prose-content img,
.prose-content video,
.prose-content iframe,
.diyara-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.prose-content pre,
.prose-content code,
.diyara-page-content pre,
.diyara-page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
}

.prose-content pre,
.diyara-page-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgb(15 23 42);
  color: rgb(226 232 240);
  -webkit-overflow-scrolling: touch;
}

.prose-content table,
.diyara-page-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.blog-news-item .shadow-box {
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.06);
}

section.py-5 .category-pagination {
  margin-top: 1.25rem;
}

@media (max-width: 1023px) {
  .prose-content {
    font-size: 0.875rem;
    line-height: 2.25rem;
  }
}

/* Mobile overflow / touch targets */
@media (max-width: 1023px) {
  .container {
    max-width: 100%;
    overflow-x: clip;
  }

  #searchResultsDesktop,
  #searchResults,
  .diyara-dashboard-drawer-panel {
    max-height: min(70vh, calc(100dvh - 4rem));
  }

  .tab-btn,
  .add-to-cart-btn,
  .diyara-dashboard-menu-open {
    min-height: 44px;
  }
}

/* Checkout / modals safe area */
#LoginModal .modal-content,
.shop-bottom-sheet-panel {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
}

/* Product page — HTML layout (diara/product.html) */
#product-details-bottom {
  width: 100%;
}

#product-details-bottom .product-details-layout {
  width: 100%;
}

/* Sellers row — desktop horizontal bar (lg:grid-cols-10 not in compiled Tailwind) */
@media (min-width: 1024px) {
  #product-sellers .product-sellers-row {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
  }

  #product-sellers .product-sellers__cell--vendor {
    grid-column: span 2;
  }

  #product-sellers .product-sellers__cell--delivery {
    grid-column: span 2;
  }

  #product-sellers .product-sellers__cell--warranty {
    grid-column: span 2;
  }

  #product-sellers .product-sellers__cell--price {
    grid-column: span 2;
  }

  #product-sellers .product-sellers__cell--action {
    grid-column: span 2;
  }
}

#product-sellers .product-sellers-row>* {
  min-width: 0;
}

.product-specs-grid>span:nth-child(4n + 1),
.product-specs-grid>span:nth-child(4n + 2) {
  background-color: rgb(229 231 235);
}

.dark .product-specs-grid>span:nth-child(4n + 1),
.dark .product-specs-grid>span:nth-child(4n + 2) {
  background-color: rgb(30 35 42);
}

.product-tab-panels .product-tab-panel.hidden,
.product-tab-panels .product-tab-panel[hidden] {
  display: none !important;
}

.product-related-scroll {
  max-width: 100%;
}

.category-products--related {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  min-width: 100%;
  border-radius: 0.55rem;
  overflow: visible;
}

.category-products--related .cat-product {
  width: 11.5rem;
  flex: 0 0 11.5rem;
}

@media (min-width: 768px) {
  .category-products--related .cat-product {
    width: 12.5rem;
    flex: 0 0 12.5rem;
  }
}

.product-purchase-stack .product-purchase-price-row {
  min-height: 2.75rem;
}

.product-engagement-slider {
  line-height: 1.25;
}

#proAction .product-buy-box-panel {
  margin-top: 0;
}

@media (max-width: 1279px) {
  body.website-theme.diyara .product-page-hero {
    overflow-x: clip;
  }

  body.website-theme.diyara .product-page-gallery,
  body.website-theme.diyara .product-info {
    margin-top: 0;
    padding-bottom: 1rem;
  }

  /* Mobile: no fixed buy bar — purchase UI lives in #product-buy-box in page flow */
  #proAction.product-sticky-action {
    display: none !important;
  }

  body.website-theme.diyara .product-info__header h1 {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  body.website-theme.diyara .product-info__engagement {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    gap: 0.5rem;
  }

  body.website-theme.diyara .product-info__engagement::-webkit-scrollbar {
    display: none;
  }

  body.website-theme.diyara .product-info__engagement>* {
    flex: 0 0 min(72vw, 11.25rem);
    scroll-snap-align: start;
    min-width: 0;
  }

  body.website-theme.diyara .product-info__engagement .product-engage-card {
    min-height: 3.75rem;
    padding: 0.65rem 0.75rem;
  }

  body.website-theme.diyara .product-info__meta,
  body.website-theme.diyara .product-info .grid.grid-cols-1.sm\:grid-cols-2 {
    gap: 0.5rem;
  }

  body.website-theme.diyara #product-sellers .grid>* {
    min-width: 0;
  }
}

@media (min-width: 1280px) {
  body.website-theme.diyara {
    --diyara-product-sticky-top: 5.75rem;
  }

  #product-details-bottom .product-details-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }

  #product-details-bottom .product-tabs {
    grid-column: 1 / span 3;
    min-width: 0;
  }

  #proAction.product-sticky-action {
    display: block !important;
    grid-column: 4 / span 1;
    min-width: 0;
  }

  #proAction.product-sticky-action .product-sticky-action__panel {
    position: sticky !important;
    top: var(--diyara-product-sticky-top);
    z-index: 15;
    inset-inline: auto;
    bottom: auto;
    padding: 0;
    pointer-events: auto;
    background: transparent;
  }

  body.website-theme.diyara #product-details-bottom .product-tabs__nav {
    top: var(--diyara-product-sticky-top);
    z-index: 12;
  }

  #proAction.product-sticky-action .product-sticky-action__close {
    display: none !important;
  }
}

#topBar.hide-scrollbar {
  scrollbar-width: none;
}

#topBar.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ——— Cart page (html/cart.html shell) ——— */
.diyara-cart-summary--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.diyara-cart-summary-loading:not(.hidden) {
  display: flex;
}

.diyara-cart-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--color-primary, #f97316);
  animation: diyara-cart-spin 0.7s linear infinite;
}

@keyframes diyara-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

#cart-items .qty-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

#cart-items .qty-input::-webkit-outer-spin-button,
#cart-items .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.diyara-cart-item-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: rgb(249 250 251);
  padding: 0.35rem;
}

.dark .diyara-cart-item-media {
  background-color: #111827;
}

.diyara-cart-item-image {
  width: 100%;
  height: 100%;
  max-height: 7rem;
}

@media (min-width: 640px) {
  .diyara-cart-item-media {
    width: 6.5rem;
    height: 6.5rem;
  }

  .diyara-cart-item-image {
    max-height: 6rem;
  }
}

@media (max-width: 639px) {

  #cart-page .cart-item .qty-box button,
  #cart-page .cart-item .remove-item {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ——— Header live search dropdown ——— */
.diyara-search-dropdown {
  z-index: 50;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(229 231 235);
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.dark .diyara-search-dropdown {
  border-color: rgb(55 65 81);
  background: var(--color-custom-dark, #1a1f2e);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.diyara-search-dropdown:not(.hidden) {
  display: block;
}

.diyara-search-panel {
  display: flex;
  max-height: min(75vh, 32rem);
  flex-direction: column;
  font-size: 0.875rem;
}

.diyara-search-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgb(243 244 246);
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgb(249 250 251) 0%, #fff 100%);
}

.dark .diyara-search-panel__head {
  border-color: rgb(55 65 81);
  background: linear-gradient(180deg, rgb(17 24 39) 0%, rgb(26 31 46) 100%);
}

.diyara-search-panel__head-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgb(107 114 128);
}

.dark .diyara-search-panel__head-label {
  color: rgb(156 163 175);
}

.diyara-search-panel__head-query {
  margin-top: 0.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgb(17 24 39);
  line-height: 1.4;
}

.dark .diyara-search-panel__head-query {
  color: rgb(243 244 246);
}

.diyara-search-panel__count {
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(var(--color-primary-rgb, 249 115 22) / 0.12);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-primary, #f97316);
  white-space: nowrap;
}

.diyara-search-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.75rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.diyara-search-section+.diyara-search-section {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgb(229 231 235);
}

.dark .diyara-search-section+.diyara-search-section {
  border-color: rgb(55 65 81);
}

.diyara-search-section__title {
  margin-bottom: 0.5rem;
  padding-inline: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgb(107 114 128);
}

.dark .diyara-search-section__title {
  color: rgb(156 163 175);
}

.diyara-search-hits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.diyara-search-hit__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  border: 1px solid rgb(243 244 246);
  background: rgb(249 250 251);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.dark .diyara-search-hit__link {
  border-color: rgb(55 65 81);
  background: rgb(17 24 39);
}

.diyara-search-hit__link:hover,
.diyara-search-hit__link.diyara-search-hit__link--active {
  border-color: rgb(var(--color-primary-rgb, 249 115 22) / 0.35);
  background: rgb(var(--color-primary-rgb, 249 115 22) / 0.06);
  box-shadow: 0 4px 14px rgb(var(--color-primary-rgb, 249 115 22) / 0.12);
}

.diyara-search-hit__media {
  display: inline-flex;
  width: 4.25rem;
  height: 4.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #fff;
}

.dark .diyara-search-hit__media {
  background: rgb(13 17 23);
}

.diyara-search-hit__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.diyara-search-hit__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.diyara-search-hit__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  color: rgb(17 24 39);
}

.dark .diyara-search-hit__title {
  color: rgb(243 244 246);
}

.diyara-search-hit__price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary, #f97316);
}

.diyara-search-hit__price small {
  margin-inline-start: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgb(107 114 128);
}

.diyara-search-hit__arrow {
  display: inline-flex;
  color: rgb(156 163 175);
}

.diyara-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.diyara-search-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgb(229 231 235);
  background: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(55 65 81);
  transition: border-color 0.15s, background-color 0.15s;
}

.dark .diyara-search-chip {
  border-color: rgb(55 65 81);
  background: rgb(17 24 39);
  color: rgb(229 231 235);
}

.diyara-search-chip:hover,
.diyara-search-chip.diyara-search-chip--active {
  border-color: var(--color-primary, #f97316);
  background: rgb(var(--color-primary-rgb, 249 115 22) / 0.08);
}

.diyara-search-chip__badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgb(107 114 128);
}

.diyara-search-panel__foot {
  border-top: 1px solid rgb(243 244 246);
  padding: 0.65rem 0.75rem 0.75rem;
  background: rgb(249 250 251);
}

.dark .diyara-search-panel__foot {
  border-color: rgb(55 65 81);
  background: rgb(17 24 39);
}

.diyara-search-panel__cta {
  display: inline-flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  background: var(--color-primary, #f97316);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  transition: background-color 0.15s;
}

.diyara-search-panel__cta:hover,
.diyara-search-panel__cta.diyara-search-panel__cta--active {
  background: var(--color-primary-600, #ea580c);
}

.diyara-search-panel__empty {
  padding: 2rem 1.25rem;
  text-align: center;
}

.diyara-search-panel__empty-icon {
  display: inline-flex;
  margin: 0 auto 0.75rem;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(243 244 246);
  color: rgb(156 163 175);
}

.dark .diyara-search-panel__empty-icon {
  background: rgb(31 41 55);
}

.diyara-search-panel__empty-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: rgb(17 24 39);
}

.dark .diyara-search-panel__empty-title {
  color: rgb(243 244 246);
}

.diyara-search-panel__empty-text {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgb(107 114 128);
}

@media (min-width: 1024px) {
  .diyara-search-hit__media {
    width: 3.75rem;
    height: 3.75rem;
  }

  .diyara-search-hit__link {
    min-height: 3.75rem;
  }
}

@media (max-width: 639px) {
  .diyara-search-dropdown {
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  }

  .diyara-search-hit__media {
    width: 4.75rem;
    height: 4.75rem;
  }

  .diyara-search-hit__link {
    min-height: 4.75rem;
    padding: 0.65rem 0.75rem;
  }

  .diyara-search-hit__title {
    font-size: 0.88rem;
  }
}

/* TorobPay badge — lower z-index to avoid overlapping header/cart */
.torobpay-product-badge,
.torobpay-product-badge-inner {
  z-index: 5 !important;
}