/* Allameh Karbaschian shop — brand layer
   World: official site allamehkarbaschian.ir (restrained navy, IRANSansX, white air)
   Tokens: برندبوک.md
*/

:root {
  --brand-primary: #26237A;
  --brand-primary-dark: #191665;
  --brand-accent-soft: #6D5DB0;
  --brand-text: rgba(0, 0, 0, 0.87);
  --brand-text-secondary: rgba(0, 0, 0, 0.54);
  --brand-text-muted: rgba(0, 0, 0, 0.47);
  --brand-surface: #ffffff;
  --brand-on-primary: #ffffff;
  --brand-line: rgba(38, 35, 122, 0.12);
  --brand-radius-control: 10px;
  --brand-font: iransansX, Tahoma, sans-serif;
  --brand-space-1: 4px;
  --brand-space-2: 8px;
  --brand-space-3: 12px;
  --brand-space-4: 16px;
  --brand-space-5: 24px;
  --brand-space-6: 40px;
  --brand-measure: 42rem;
}

::selection {
  background: rgba(38, 35, 122, 0.18);
  color: var(--brand-text);
}

#allameh-loadbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#allameh-loadbar b {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #26237a, #6d5db0);
  box-shadow: 0 0 8px rgba(38, 35, 122, 0.45);
  transition: width 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body.allameh-brand-ui,
body {
  font-family: var(--brand-font) !important;
  color: var(--brand-text);
  background: var(--brand-surface);
  font-size: 16px;
  line-height: 1.43;
  font-synthesis: none;
}

body.allameh-brand-ui a {
  color: var(--brand-primary);
}

body.allameh-brand-ui a:hover {
  color: var(--brand-primary-dark);
}

body.allameh-brand-ui :focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Type: never clip Persian glyphs; leading must exceed size          */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .elementor-heading-title,
body.allameh-brand-ui h1,
body.allameh-brand-ui h2,
body.allameh-brand-ui h3,
body.allameh-brand-ui h4 {
  font-family: var(--brand-font) !important;
  line-height: 1.5 !important;
  overflow: visible !important;
  text-wrap: balance;
}

body.allameh-brand-ui .elementor-widget-text-editor,
body.allameh-brand-ui .elementor-widget-text-editor p {
  font-family: var(--brand-font) !important;
  color: var(--brand-text-secondary);
  line-height: 1.7;
}

/* ------------------------------------------------------------------ */
/* Header: do not fight Elementor flex. Identity lockup + quiet nav.  */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .elementor-location-header {
  background: var(--brand-surface) !important;
  box-shadow: 0 1px 0 var(--brand-line);
}

@media (min-width: 1025px) {
  body.allameh-brand-ui .elementor-location-header .elementor-hidden-desktop {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.allameh-brand-ui .elementor-location-header .elementor-hidden-tablet {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.allameh-brand-ui .elementor-location-header .elementor-hidden-mobile {
    display: none !important;
  }
}

/* Desktop header only. Do not un-hide tablet/mobile chrome. */
body.allameh-brand-ui .elementor-element-1e2c19f {
  --flex-direction: row;
  --align-items: center;
  --justify-content: space-between;
  --flex-wrap: nowrap;
  box-shadow: none !important;
}

body.allameh-brand-ui .elementor-element-1e2c19f > .e-con-inner {
  --flex-direction: row;
  --align-items: center;
  --justify-content: space-between;
  --flex-wrap: nowrap;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding-inline: 20px;
}

body.allameh-brand-ui .elementor-element-1e2c19f > .e-con-inner > .e-con {
  display: flex;
  flex-direction: row;
  align-items: center;
}

body.allameh-brand-ui .elementor-element-ff796b8 {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

body.allameh-brand-ui .elementor-location-header .elementor-widget-theme-site-logo {
  width: auto !important;
  max-width: none !important;
}

body.allameh-brand-ui .elementor-location-header .elementor-widget-theme-site-logo a,
body.allameh-brand-ui .allameh-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  text-decoration: none !important;
  color: inherit;
}

body.allameh-brand-ui .elementor-location-header .elementor-widget-theme-site-logo img:not(.allameh-logo__type) {
  height: 40px !important;
  width: auto !important;
  max-width: 52px !important;
}

body.allameh-brand-ui .allameh-logo__type {
  height: 22px !important;
  width: auto !important;
  max-width: 132px !important;
}

body.allameh-brand-ui .allameh-logo__badge {
  display: none !important;
}

body.allameh-brand-ui .elementor-location-header .elementor-nav-menu--main .elementor-item {
  color: var(--brand-text-secondary) !important;
  font-family: var(--brand-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

@media (min-width: 1025px) and (max-width: 1320px) {
  body.allameh-brand-ui .elementor-location-header .elementor-nav-menu--main .elementor-item {
    font-size: 13px !important;
    padding: 10px 9px !important;
  }
}

body.allameh-brand-ui .elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
body.allameh-brand-ui .elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
body.allameh-brand-ui .elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted {
  color: var(--brand-primary) !important;
}

/* Cart entry: a quiet, proportioned icon that navigates to the cart page. */
body.allameh-brand-ui .elementor-menu-cart__toggle {
  display: inline-flex;
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--brand-primary) !important;
  box-shadow: none !important;
  border: 1px solid var(--brand-line) !important;
  border-radius: var(--brand-radius-control) !important;
  padding: 0 !important;
  min-width: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button:hover,
body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button:focus {
  background: rgba(38, 35, 122, 0.06) !important;
  border-color: rgba(38, 35, 122, 0.28) !important;
  color: var(--brand-primary) !important;
  box-shadow: none !important;
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-icon {
  color: var(--brand-primary) !important;
  font-size: 19px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: static !important; /* qty badge anchors to the 44px button */
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-icon svg {
  width: 19px !important;
  height: 19px !important;
  fill: var(--brand-primary) !important;
}

body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-icon-qty {
  position: absolute !important;
  top: -7px !important;
  inset-inline-start: -7px !important;
  inset-inline-end: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-width: 19px !important;
  width: auto !important;
  height: 19px !important;
  padding: 0 5px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background-color: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: 2px solid var(--brand-surface) !important;
}

/* Empty cart: no badge at all */
body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-icon-qty[data-counter="0"],
body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button-icon-qty:empty {
  display: none !important;
}

/* The Elementor side-drawer must never appear; the icon goes to /cart. */
body.allameh-brand-ui .elementor-menu-cart__main,
body.allameh-brand-ui .elementor-menu-cart__close-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* No «مشاهده سبد خرید» link — the stepper communicates state instead. */
body.allameh-brand-ui a.added_to_cart {
  display: none !important;
}

/* Card add button: compact «افزودن» with a bag-plus icon */
body.allameh-brand-ui ul.products li.product a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

body.allameh-brand-ui ul.products li.product a.add_to_cart_button::before {
  content: '';
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M12 10v6'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M12 10v6'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Quantity stepper replaces the button once the product is in the cart */
body.allameh-brand-ui a.add_to_cart_button.allameh-off,
body.allameh-brand-ui ul.products li.product a.add_to_cart_button.allameh-off,
body.allameh-brand-ui ul.products li.product a.button.allameh-off {
  display: none !important;
}

body.allameh-brand-ui .allameh-qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 64%;
  margin-inline: auto;
  border: 1px solid rgba(38, 35, 122, 0.3);
  border-radius: var(--brand-radius-control);
  background: var(--brand-surface);
  padding: 3px;
}

body.allameh-brand-ui .allameh-qty.is-on {
  display: inline-flex;
}

body.allameh-brand-ui .allameh-qty__btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(38, 35, 122, 0.07);
  color: var(--brand-primary);
  font-size: 17px;
  font-family: var(--brand-font);
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

body.allameh-brand-ui .allameh-qty__btn:hover {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

body.allameh-brand-ui .allameh-qty__n {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-primary);
}

body.allameh-brand-ui a.add_to_cart_button.added::after {
  content: none !important;
}

body.allameh-brand-ui a.add_to_cart_button.loading {
  opacity: 0.7;
}

body.allameh-brand-ui.single-product div.product form.cart .quantity,
body.allameh-brand-ui.single-product form.cart .quantity,
body.allameh-brand-ui.single-product .elementor-add-to-cart .quantity,
body.allameh-brand-ui.single-product .single_add_to_cart_button.allameh-off {
  display: none !important;
}

body.allameh-brand-ui.single-product div.product form.cart .allameh-qty,
body.allameh-brand-ui.single-product form.cart .allameh-qty {
  min-width: 168px;
  margin-inline: 0;
}

body.allameh-brand-ui.single-product .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.allameh-brand-ui .woocommerce-message:has(.wc-forward),
body.allameh-brand-ui .woocommerce-message:has(.added_to_cart),
body.allameh-brand-ui .woocommerce-message[hidden],
body.allameh-brand-ui .woocommerce-notices-wrapper[hidden],
body.allameh-brand-ui .wc-block-components-notice-banner.is-success[hidden] {
  display: none !important;
}

@keyframes allameh-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes allameh-toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

body.allameh-brand-ui .allameh-toast {
  position: fixed;
  top: 108px;
  inset-inline: 16px;
  z-index: 100050;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

body.allameh-brand-ui .allameh-toast[hidden] {
  display: none !important;
}

body.allameh-brand-ui .allameh-toast__card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  padding: 12px 14px;
  background: var(--brand-surface);
  border: 1px solid rgba(38, 35, 122, 0.1);
  border-radius: var(--brand-radius-control);
  box-shadow: 0 14px 36px rgba(25, 22, 101, 0.16);
  border-inline-start: 3px solid var(--brand-primary);
  transform-origin: top center;
}

body.allameh-brand-ui .allameh-toast.is-in .allameh-toast__card {
  animation: allameh-toast-in 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
}

body.allameh-brand-ui .allameh-toast.is-out .allameh-toast__card {
  animation: allameh-toast-out 0.28s cubic-bezier(0.32, 0.72, 0, 1) both;
}

body.allameh-brand-ui .allameh-toast__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(38, 35, 122, 0.08);
  color: var(--brand-primary);
}

body.allameh-brand-ui .allameh-toast__ico svg {
  display: block;
  width: 16px;
  height: 16px;
}

body.allameh-brand-ui .allameh-toast__copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.allameh-brand-ui .allameh-toast__title {
  margin: 0;
  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.4;
}

body.allameh-brand-ui .allameh-toast__name {
  margin: 2px 0 0;
  font-family: var(--brand-font);
  font-size: 12.5px;
  color: var(--brand-text-secondary);
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.allameh-brand-ui .allameh-toast__name[hidden] {
  display: none;
}

body.allameh-brand-ui .allameh-toast__go {
  flex: 0 0 auto;
  font-family: var(--brand-font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-primary) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Home: measure, padding, navy titles. No flex-shrink tricks.        */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .elementor-236 .elementor-element-da0c64d,
body.allameh-brand-ui .elementor-236 .elementor-element-feaaf21 {
  padding-inline: clamp(1.25rem, 5vw, 3rem) !important;
  padding-block-start: var(--brand-space-6) !important;
}

body.allameh-brand-ui .elementor-236 .elementor-element-da0c64d {
  padding-block-end: var(--brand-space-4) !important;
}

body.allameh-brand-ui .elementor-236 .elementor-element-feaaf21 {
  padding-block-end: var(--brand-space-3) !important;
}

body.allameh-brand-ui .elementor-236 .elementor-widget-heading .elementor-heading-title {
  color: var(--brand-primary) !important;
  text-align: center;
  max-width: 100%;
}

body.allameh-brand-ui .elementor-236 .elementor-element-5a67965 .elementor-heading-title {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  font-weight: 700 !important;
}

body.allameh-brand-ui .elementor-236 .elementor-element-1c15d44 .elementor-heading-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important;
  font-weight: 700 !important;
}

body.allameh-brand-ui .elementor-236 .elementor-widget-text-editor {
  max-width: var(--brand-measure);
  margin-inline: auto;
  text-align: center;
}

body.allameh-brand-ui .elementor-236 .elementor-element-9fd7456 .elementor-heading-title {
  color: var(--brand-text-secondary) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* Commerce actions — WooCommerce only, never .elementor-button       */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .woocommerce a.button.alt,
body.allameh-brand-ui .woocommerce button.button.alt,
body.allameh-brand-ui .woocommerce input.button.alt,
body.allameh-brand-ui .woocommerce #respond input#submit.alt,
body.allameh-brand-ui .single_add_to_cart_button,
body.allameh-brand-ui ul.products li.product a.button,
body.allameh-brand-ui ul.products li.product a.add_to_cart_button,
body.allameh-brand-ui .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.allameh-brand-ui .woocommerce-checkout #place_order,
body.allameh-brand-ui .woocommerce-form-login button.button,
body.allameh-brand-ui .woocommerce-form-register button.button,
body.allameh-brand-ui .woocommerce-MyAccount-content button.button {
  background-color: var(--brand-primary) !important;
  background-image: none !important;
  color: var(--brand-on-primary) !important;
  border: 0 !important;
  border-radius: var(--brand-radius-control) !important;
  font-family: var(--brand-font) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  padding: 12px 22px !important;
  box-shadow: 0 1px 3px rgba(38, 35, 122, 0.18) !important;
  text-decoration: none !important;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

body.allameh-brand-ui .woocommerce a.button.alt:hover,
body.allameh-brand-ui .woocommerce button.button.alt:hover,
body.allameh-brand-ui .single_add_to_cart_button:hover,
body.allameh-brand-ui ul.products li.product a.button:hover,
body.allameh-brand-ui .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.allameh-brand-ui .woocommerce-checkout #place_order:hover {
  background-color: var(--brand-primary-dark) !important;
  color: var(--brand-on-primary) !important;
  box-shadow: 0 2px 8px rgba(38, 35, 122, 0.22) !important;
}

body.allameh-brand-ui .woocommerce a.button:not(.alt):not(.add_to_cart_button):not(.checkout-button),
body.allameh-brand-ui .woocommerce button.button:not(.alt):not(.single_add_to_cart_button) {
  background: transparent !important;
  color: var(--brand-primary) !important;
  border: 1px solid var(--brand-line) !important;
  border-radius: var(--brand-radius-control) !important;
  box-shadow: none !important;
  font-family: var(--brand-font) !important;
  font-size: 13px !important;
}

/* ------------------------------------------------------------------ */
/* Catalog cards — scoped WITHOUT .woocommerce ancestor so they apply */
/* on the /shop/ archive too (there .woocommerce sits on <body>).     */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui ul.products li.product {
  position: relative;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  box-shadow: 0 1px 2px rgba(25, 22, 101, 0.05);
  padding: 14px 12px 18px !important;
  text-align: center;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

body.allameh-brand-ui ul.products li.product:hover,
body.allameh-brand-ui ul.products li.product:focus-within {
  transform: translateY(-4px);
  border-color: rgba(38, 35, 122, 0.28);
  box-shadow: 0 12px 28px rgba(25, 22, 101, 0.14);
}

body.allameh-brand-ui ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  border-radius: var(--brand-radius-control);
  overflow: hidden;
}

body.allameh-brand-ui ul.products li.product a img,
body.allameh-brand-ui ul.products li.product img {
  border-radius: var(--brand-radius-control);
  background: #f6f6f9;
  object-fit: contain;
  transition: transform 0.3s ease;
}

body.allameh-brand-ui ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.04);
}

body.allameh-brand-ui ul.products li.product .woocommerce-loop-product__title {
  color: var(--brand-text) !important;
  font-family: var(--brand-font) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin-block: 8px 4px !important;
  transition: color 0.18s ease;
}

body.allameh-brand-ui ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--brand-primary) !important;
}

body.allameh-brand-ui ul.products li.product .price {
  color: var(--brand-primary) !important;
  font-family: var(--brand-font) !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  display: block;
}

body.allameh-brand-ui ul.products li.product .price .woocommerce-Price-currencySymbol {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--brand-text-muted);
}

body.allameh-brand-ui ul.products li.product a.button,
body.allameh-brand-ui ul.products li.product a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto !important;
  min-width: 64%;
}

body.allameh-brand-ui nav.woocommerce-pagination ul,
body.allameh-brand-ui nav.woocommerce-pagination ul li {
  border: 0 !important;
}

body.allameh-brand-ui nav.woocommerce-pagination ul li a,
body.allameh-brand-ui nav.woocommerce-pagination ul li span {
  border-radius: var(--brand-radius-control) !important;
  font-family: var(--brand-font) !important;
  border: 1px solid var(--brand-line) !important;
  margin: 0 3px !important;
  padding: 10px 14px !important;
  color: var(--brand-text-secondary) !important;
  background: var(--brand-surface) !important;
}

body.allameh-brand-ui nav.woocommerce-pagination ul li a:hover {
  color: var(--brand-primary) !important;
  border-color: rgba(38, 35, 122, 0.3) !important;
}

body.allameh-brand-ui nav.woocommerce-pagination ul li span.current {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: var(--brand-on-primary) !important;
}

/* Archive chrome: page title, sort select, result count */
body.allameh-brand-ui.woocommerce-shop h1.entry-title,
body.allameh-brand-ui.post-type-archive-product h1 {
  color: var(--brand-primary);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  font-weight: 700;
}

body.allameh-brand-ui .woocommerce-ordering select,
body.allameh-brand-ui select.orderby {
  border: 1px solid var(--brand-line) !important;
  border-radius: var(--brand-radius-control) !important;
  padding: 10px 14px !important;
  font-family: var(--brand-font) !important;
  font-size: 13px !important;
  color: var(--brand-text-secondary) !important;
  background-color: var(--brand-surface) !important;
  cursor: pointer;
}

body.allameh-brand-ui .woocommerce-result-count {
  color: var(--brand-text-muted) !important;
  font-family: var(--brand-font) !important;
  font-size: 13px !important;
}

/* ------------------------------------------------------------------ */
/* Product, cart, checkout, account                                   */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .woocommerce div.product .product_title {
  color: var(--brand-text);
  font-family: var(--brand-font) !important;
  line-height: 1.5 !important;
}

body.allameh-brand-ui .woocommerce div.product p.price,
body.allameh-brand-ui .woocommerce div.product span.price {
  color: var(--brand-primary) !important;
  font-weight: 700;
  font-size: 1.4rem;
}

body.allameh-brand-ui .woocommerce div.product p.price .woocommerce-Price-currencySymbol {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--brand-text-muted);
}

body.allameh-brand-ui .woocommerce div.product div.images img {
  border-radius: var(--brand-radius-control);
}

body.allameh-brand-ui .woocommerce div.product div.images .woocommerce-product-gallery__image {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  overflow: hidden;
  background: #f6f6f9;
}

body.allameh-brand-ui .woocommerce div.product .flex-control-thumbs li {
  padding: 4px;
}

body.allameh-brand-ui .woocommerce div.product .flex-control-thumbs li img {
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  opacity: 0.65;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

body.allameh-brand-ui .woocommerce div.product .flex-control-thumbs li img.flex-active,
body.allameh-brand-ui .woocommerce div.product .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: var(--brand-primary);
}

/* PDP tabs: quiet underline pattern instead of boxed default */
body.allameh-brand-ui .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--brand-line) !important;
  overflow: visible !important;
}

body.allameh-brand-ui .woocommerce-tabs ul.tabs::before,
body.allameh-brand-ui .woocommerce-tabs ul.tabs::after,
body.allameh-brand-ui .woocommerce-tabs ul.tabs li::before,
body.allameh-brand-ui .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.allameh-brand-ui .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.allameh-brand-ui .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 12px 18px !important;
  font-family: var(--brand-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--brand-text-secondary) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px;
  background: transparent !important;
}

body.allameh-brand-ui .woocommerce-tabs ul.tabs li.active a {
  color: var(--brand-primary) !important;
  font-weight: 700 !important;
  border-bottom-color: var(--brand-primary) !important;
}

body.allameh-brand-ui .woocommerce-tabs .panel h2:first-of-type {
  font-size: 1.1rem !important;
  color: var(--brand-primary);
}

body.allameh-brand-ui .allameh-specs {
  width: 100% !important;
  max-width: var(--brand-measure);
  border-collapse: collapse !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 15px;
  line-height: 1.75;
}

body.allameh-brand-ui .allameh-specs caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.allameh-brand-ui .allameh-specs th,
body.allameh-brand-ui .allameh-specs td {
  border: 0 !important;
  border-bottom: 1px solid var(--brand-line) !important;
  background: transparent !important;
  padding: 12px 0 !important;
  text-align: start !important;
  vertical-align: top;
}

body.allameh-brand-ui .allameh-specs th {
  width: 9rem;
  padding-inline-end: 24px !important;
  font-weight: 700;
  color: var(--brand-primary);
}

body.allameh-brand-ui .allameh-specs td {
  color: var(--brand-text);
}

body.allameh-brand-ui .allameh-specs [dir="ltr"] {
  font-variant-numeric: tabular-nums;
}

body.allameh-brand-ui .woocommerce .woocommerce-breadcrumb {
  color: var(--brand-text-secondary);
  font-size: 13px;
  margin-bottom: var(--brand-space-4);
}

body.allameh-brand-ui .woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--brand-space-3);
  margin-top: var(--brand-space-4);
}

body.allameh-brand-ui .woocommerce div.product form.cart .quantity .qty {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  padding: 10px;
  min-width: 64px;
  font-family: var(--brand-font);
}

body.allameh-brand-ui .woocommerce form .form-row input.input-text,
body.allameh-brand-ui .woocommerce form .form-row textarea,
body.allameh-brand-ui .woocommerce form .form-row select,
body.allameh-brand-ui .woocommerce-page form .input-text,
body.allameh-brand-ui #customer_login .input-text,
body.allameh-brand-ui .woocommerce-MyAccount-content input.input-text,
body.allameh-brand-ui .woocommerce-MyAccount-content select,
body.allameh-brand-ui .woocommerce-cart table.cart td.actions .coupon .input-text {
  border: 1px solid var(--brand-line) !important;
  border-radius: var(--brand-radius-control) !important;
  padding: 10px 12px !important;
  font-family: var(--brand-font) !important;
  color: var(--brand-text) !important;
  background: #fff !important;
}

body.allameh-brand-ui .woocommerce form .form-row input.input-text:focus,
body.allameh-brand-ui .woocommerce form .form-row textarea:focus,
body.allameh-brand-ui .woocommerce form .form-row select:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 1px 0 0 var(--brand-primary), 0 0 0 3px rgba(38, 35, 122, 0.12) !important;
}

body.allameh-brand-ui .woocommerce-checkout #order_review {
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control) !important;
  padding: 20px;
  background: #fafafc;
  overflow: hidden;
}

body.allameh-brand-ui.woocommerce-cart .cart-collaterals .cart_totals {
  border: 0;
  border-radius: 0 !important;
  padding: 0;
  background: transparent;
  overflow: visible;
}

body.allameh-brand-ui .woocommerce-cart table.cart th,
body.allameh-brand-ui .woocommerce-checkout table.shop_table th,
body.allameh-brand-ui .woocommerce-checkout .woocommerce-billing-fields h3,
body.allameh-brand-ui .woocommerce-checkout #order_review_heading,
body.allameh-brand-ui .woocommerce-cart .cart_totals h2 {
  color: var(--brand-primary);
  font-family: var(--brand-font) !important;
}

body.allameh-brand-ui .woocommerce-checkout #payment {
  background: #f7f7fa !important;
  border-radius: var(--brand-radius-control);
}

body.allameh-brand-ui .woocommerce-info,
body.allameh-brand-ui .woocommerce-message {
  border-top: 0 !important;
  background: rgba(38, 35, 122, 0.05) !important;
  color: var(--brand-text) !important;
  border-radius: var(--brand-radius-control);
  font-family: var(--brand-font) !important;
}

body.allameh-brand-ui .woocommerce-info::before,
body.allameh-brand-ui .woocommerce-message::before {
  color: var(--brand-primary) !important;
}

body.allameh-brand-ui .woocommerce-info a,
body.allameh-brand-ui .woocommerce-message a {
  color: var(--brand-primary) !important;
}

body.allameh-brand-ui .woocommerce-error {
  border-top-color: #9b2c2c !important;
}

body.allameh-brand-ui .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  overflow: hidden;
}

body.allameh-brand-ui .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  color: var(--brand-text) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 35, 122, 0.08);
}

body.allameh-brand-ui .woocommerce-MyAccount-navigation ul li.is-active a,
body.allameh-brand-ui .woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(38, 35, 122, 0.06);
  color: var(--brand-primary) !important;
}


/* Cart/checkout/thank-you styles live in allameh-brand-ui-checkout.css */

body.allameh-brand-ui .elementor-location-footer,
body.allameh-brand-ui [data-elementor-type="footer"],
body.allameh-brand-ui footer.site-footer {
  display: none !important;
}

body.allameh-brand-ui .allameh-foot {
  margin-top: 0;
  font-family: var(--brand-font);
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  position: relative;
  z-index: 1;
}

body.allameh-brand-ui .allameh-foot a:focus-visible {
  outline-color: var(--brand-on-primary);
}

body.allameh-brand-ui .allameh-foot__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}

body.allameh-brand-ui .allameh-foot__quote {
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: center;
}

body.allameh-brand-ui .allameh-foot__quote-text {
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  max-width: 28em;
  text-wrap: balance;
}

body.allameh-brand-ui .allameh-foot__quote-text::before {
  content: "«";
  margin-left: 6px;
  opacity: 0.7;
}

body.allameh-brand-ui .allameh-foot__quote-text::after {
  content: "»";
  margin-right: 6px;
  opacity: 0.7;
}

body.allameh-brand-ui .allameh-foot__quote-by {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

body.allameh-brand-ui .allameh-foot__rule {
  width: 40px;
  height: 1px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.25);
}

body.allameh-brand-ui .allameh-foot__body {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

body.allameh-brand-ui .allameh-foot__compact {
  display: none;
}

body.allameh-brand-ui .allameh-foot__mark {
  display: block;
  height: 38px;
  width: auto;
  margin: 0 0 14px;
  filter: brightness(0) invert(1);
}

body.allameh-brand-ui .allameh-foot__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-on-primary);
  line-height: 1.6;
}

body.allameh-brand-ui .allameh-foot__lead {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  max-width: 28em;
}

body.allameh-brand-ui .allameh-foot__heading {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

body.allameh-brand-ui .allameh-foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.allameh-brand-ui .allameh-foot__list a,
body.allameh-brand-ui .allameh-foot__list a:visited {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.6;
}

body.allameh-brand-ui .allameh-foot__list a:hover {
  color: var(--brand-on-primary) !important;
}

body.allameh-brand-ui .allameh-foot__list a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}

body.allameh-brand-ui .allameh-foot__social {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.allameh-brand-ui .allameh-foot__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--brand-radius-control);
  color: var(--brand-on-primary) !important;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

body.allameh-brand-ui .allameh-foot__social a:hover {
  background: var(--brand-on-primary);
  border-color: var(--brand-on-primary);
  color: var(--brand-primary) !important;
}

body.allameh-brand-ui .allameh-foot__social svg {
  display: block;
}

body.allameh-brand-ui .allameh-foot__legal {
  margin: 0;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--brand-primary-dark);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.allameh-brand-ui .skip-link,
body.allameh-brand-ui a.skip-link {
  background: var(--brand-primary);
  color: var(--brand-on-primary) !important;
}

/* ------------------------------------------------------------------ */
/* Mobile: a deliberate small-screen experience, not squeezed desktop */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  body.allameh-purchase-flow .allameh-foot,
  body.allameh-purchase-flow .elementor-location-footer,
  body.allameh-purchase-flow [data-elementor-type="footer"],
  body.allameh-purchase-flow footer.site-footer {
    display: none !important;
  }

  body.allameh-brand-ui .elementor-location-header .elementor-widget-theme-site-logo img:not(.allameh-logo__type) {
    height: 32px !important;
    max-width: 42px !important;
  }

  body.allameh-brand-ui .allameh-logo__type {
    height: 18px !important;
    max-width: 96px !important;
  }

  body.allameh-brand-ui .elementor-menu-cart__toggle .elementor-button {
    width: 40px !important;
    height: 40px !important;
  }

  /* Catalog: true 2-up product grid with touch-sized actions */
  body.allameh-brand-ui ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 24px !important;
  }

  body.allameh-brand-ui ul.products::before,
  body.allameh-brand-ui ul.products::after {
    display: none !important;
  }

  body.allameh-brand-ui ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 10px 10px 14px !important;
    display: flex;
    flex-direction: column;
  }

  body.allameh-brand-ui ul.products li.product:hover {
    transform: none; /* no lift on touch */
  }

  body.allameh-brand-ui ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
    min-height: 2.6em;
  }

  body.allameh-brand-ui ul.products li.product .price {
    font-size: 0.85rem;
    margin-top: auto;
  }

  body.allameh-brand-ui ul.products li.product a.button,
  body.allameh-brand-ui ul.products li.product a.add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    min-width: 0;
    padding: 12px 10px !important;
  }

  body.allameh-brand-ui .allameh-qty {
    width: 100%;
    min-width: 0;
  }

  /* PDP: purchase action pinned to the thumb zone */
  body.allameh-brand-ui.single-product div.product form.cart {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 980;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--brand-surface);
    box-shadow: 0 -2px 14px rgba(25, 22, 101, 0.14);
    border-top: 1px solid var(--brand-line);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  body.allameh-brand-ui.single-product div.product form.cart .quantity .qty {
    display: none;
  }

  body.allameh-brand-ui.single-product div.product form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    padding: 13px 16px !important;
    font-size: 14px !important;
  }

  body.allameh-brand-ui.single-product div.product form.cart .allameh-qty.is-on {
    width: 100%;
    min-width: 0;
  }

  body.allameh-brand-ui .allameh-toast {
    top: 104px;
  }

  body.allameh-brand-ui.single-product .site-main,
  body.allameh-brand-ui.single-product #content {
    padding-bottom: 92px;
  }

  /* Cart: stacked rows read as cards */
  body.allameh-brand-ui .woocommerce-cart table.cart td {
    font-size: 13.5px;
  }

  body.allameh-brand-ui .woocommerce-cart table.cart td.product-name a,
  body.allameh-brand-ui .woocommerce-page table.cart td.product-name a {
    color: var(--brand-primary) !important;
    font-weight: 700;
    text-decoration: none;
  }

  body.allameh-brand-ui .woocommerce-checkout form .form-row input.input-text,
  body.allameh-brand-ui .woocommerce-checkout form .form-row select {
    min-height: 46px;
    font-size: 15px !important;
  }

  body.allameh-brand-ui .allameh-thankyou {
    padding: 28px 16px;
  }

  body.allameh-brand-ui .allameh-recs {
    margin-inline: 12px;
    padding: 4px 0 20px;
  }

  body.allameh-brand-ui .allameh-flow-dock,
  body.allameh-brand-ui.woocommerce-cart .wc-proceed-to-checkout {
    display: block;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 100020;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(25, 22, 101, 0.1);
    border-top: 1px solid var(--brand-line);
  }

  body.allameh-brand-ui .allameh-flow-dock .allameh-flow-cta,
  body.allameh-brand-ui .allameh-flow-dock #allameh-to-payment,
  body.allameh-brand-ui .allameh-flow-dock #allameh-place-clone,
  body.allameh-brand-ui.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: var(--brand-radius-control) !important;
    padding: 14px 18px !important;
    box-shadow: none;
  }

  body.allameh-brand-ui.woocommerce-cart,
  body.allameh-msc--info,
  body.allameh-msc--pay {
    padding-bottom: 92px;
  }

  body.allameh-msc--pay #order_review .form-row.place-order {
    display: none !important;
  }

  body.allameh-brand-ui #allameh-place-clone[hidden],
  body.allameh-brand-ui .allameh-flow-dock[hidden] {
    display: none !important;
  }

  body.allameh-msc--pay .allameh-pay-trust {
    display: none;
  }

  body.allameh-brand-ui .allameh-foot__inner {
    padding: 32px 20px 24px;
  }

  body.allameh-brand-ui .allameh-foot__quote-text {
    font-size: 15.5px;
    max-width: 22em;
    line-height: 1.9;
  }

  body.allameh-brand-ui .allameh-foot__rule {
    margin-top: 24px;
  }

  body.allameh-brand-ui .allameh-foot__body {
    display: none;
  }

  body.allameh-brand-ui .allameh-foot__compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    text-align: center;
  }

  body.allameh-brand-ui .allameh-foot__compact .allameh-foot__mark {
    height: 32px;
    margin: 0;
  }

  body.allameh-brand-ui .allameh-foot__compact .allameh-foot__social {
    margin: 0;
    justify-content: center;
  }

  body.allameh-brand-ui .allameh-foot__phone,
  body.allameh-brand-ui .allameh-foot__phone:visited,
  body.allameh-brand-ui .allameh-foot__site,
  body.allameh-brand-ui .allameh-foot__site:visited {
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none !important;
    font-size: 14.5px;
    line-height: 1.6;
  }

  body.allameh-brand-ui .allameh-foot__site {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  body.allameh-brand-ui .allameh-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  body.allameh-brand-ui .allameh-chip span {
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------ */
/* Cart & checkout: same measure as the homepage, not full-bleed      */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui.woocommerce-cart .woocommerce,
body.allameh-brand-ui.woocommerce-checkout .woocommerce {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  box-sizing: border-box;
  width: 100%;
}

body.home.allameh-brand-ui .woocommerce-pagination,
body.home.allameh-brand-ui .woocommerce-result-count {
  display: none !important;
}

body.home.allameh-brand-ui ul.products li.product[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Homepage catalog: search + audience chips                          */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .allameh-catalog {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
}

body.allameh-brand-ui .allameh-find {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

body.allameh-brand-ui .allameh-find__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  padding: 12px 16px;
  font-family: var(--brand-font);
  font-size: 14px;
  color: var(--brand-text);
  background: var(--brand-surface);
}

body.allameh-brand-ui .allameh-find__input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(38, 35, 122, 0.12);
}

body.allameh-brand-ui .allameh-find__box {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 40;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-control);
  box-shadow: 0 10px 28px rgba(25, 22, 101, 0.14);
  padding: 6px;
  max-height: 320px;
  overflow: auto;
}

body.allameh-brand-ui .allameh-find__hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none !important;
  color: var(--brand-text) !important;
  border-radius: 8px;
}

body.allameh-brand-ui .allameh-find__hit:hover {
  background: rgba(38, 35, 122, 0.06);
}

body.allameh-brand-ui .allameh-find__hit img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f6f6f9;
  border-radius: 6px;
  flex: 0 0 auto;
}

body.allameh-brand-ui .allameh-find__hit span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.allameh-brand-ui .allameh-find__hit b {
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-primary);
}

body.allameh-brand-ui .allameh-find__hit i {
  font-style: normal;
  font-size: 12px;
  color: var(--brand-text-muted);
}

body.allameh-brand-ui .allameh-find__empty {
  margin: 0;
  padding: 12px;
  text-align: center;
  color: var(--brand-text-muted);
  font-size: 13px;
}

body.allameh-brand-ui .allameh-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

body.allameh-brand-ui .allameh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-surface);
  color: var(--brand-text-secondary);
  font-family: var(--brand-font);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.allameh-brand-ui .allameh-chip svg {
  flex: 0 0 auto;
}

body.allameh-brand-ui .allameh-chip:hover,
body.allameh-brand-ui .allameh-chip.is-on {
  color: var(--brand-primary);
  border-color: rgba(38, 35, 122, 0.35);
  background: rgba(38, 35, 122, 0.06);
}

body.allameh-brand-ui .allameh-chip.is-on {
  font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Mobile navigation drawer                                           */
/* ------------------------------------------------------------------ */

body.allameh-brand-ui .allameh-mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 320px);
  z-index: 100040;
  background: var(--brand-surface);
  box-shadow: -8px 0 28px rgba(25, 22, 101, 0.16);
  padding: 20px 20px 32px;
  overflow: auto;
  font-family: var(--brand-font);
}

body.allameh-brand-ui .allameh-mnav__veil {
  position: fixed;
  inset: 0;
  z-index: 100030;
  background: rgba(25, 22, 101, 0.45);
}

body.allameh-brand-ui .allameh-mnav[hidden],
body.allameh-brand-ui .allameh-mnav__veil[hidden] {
  display: none !important;
}

body.allameh-mnav-on {
  overflow: hidden;
}

body.allameh-brand-ui .allameh-mnav__close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.allameh-brand-ui .allameh-mnav__title {
  margin: 8px 0 18px;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

body.allameh-brand-ui .allameh-mnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.allameh-brand-ui .allameh-mnav__list li {
  border-bottom: 1px solid var(--brand-line);
}

body.allameh-brand-ui .allameh-mnav__list a {
  display: block;
  padding: 14px 4px;
  color: var(--brand-text) !important;
  text-decoration: none !important;
  font-size: 15px;
}

body.allameh-brand-ui .allameh-mnav__list a:hover {
  color: var(--brand-primary) !important;
}
