.dnd-store-closed-bar {
  background: #fff4e5;
  color: #92400e;
  border-bottom: 1px solid #fcd9a8;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  line-height: 1.7;
}

.add-to-cart-row--closed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /*width: 100%;*/
}

.add-to-cart-row--closed .btn-add-to-cart[disabled] {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
}

.store-closed-notice {
  margin: 0;
  font-size: 0.8rem;
  color: #92400e;
  line-height: 1.7;
}

/************************** Mobile (0px+) ***************************/
.mobile-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 500;
  direction: ltr;
}

/*** shared mobile header shell ***/
.header-home,
.header-shop,
.header-product,
.header-checkout,
.header-blog {
  background: #fff;
  border-bottom: 1px solid #eceef1;
}

.mst-mobile-header__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/*** back button ***/
.mst-mobile-header__back {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #1f2430;
  cursor: pointer;
  -webkit-appearance: none;
appearance: none;
-webkit-tap-highlight-color: transparent;
}

.mst-mobile-header__back svg,
.mst-icon-btn svg {
  display: block;
}

/*** reusable outlined square icon button (product header: menu / cart) ***/
.mst-icon-btn {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #eceef1;
  border-radius: 12px;
  background: #fff;
  color: #1f2430;
  -webkit-appearance: none;
appearance: none;
-webkit-tap-highlight-color: transparent;
}

.mst-icon-btn .mst-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  margin: 0;
}

.mst-icon-btn .mst-cart-count {
  top: -6px !important;
  inset-inline-end: -6px !important;
}

/*** search trigger (button styled as a search field) ***/
.mst-search-trigger {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border-radius: 5px;
  background: #f5f5f7;
  color: #888;
  border: none;
  cursor: pointer;
  font-size: 13px;
  direction: rtl;
}

.mst-search-trigger svg {
  flex-shrink: 0;
}

.mst-search-trigger__text {
  color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-image: url(https://new.sanjaghshop.com/wp-content/themes/dandiran-template/assets/images/icons/imagee.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 150px;
    width: 150px;
    min-height: 30px;
}

/* home header: brand variant */
.mst-search-trigger--brand {
  gap: 6px;
}

.mst-search-trigger__brand-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.mst-search-trigger__brand-name {
  font-weight: 600;
  color: #333;
}

/*** shop / archive / flashsale / search-results header ***/
.mst-mobile-header__search-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

/*** single product header ***/
.header-product .mst-mobile-header__inner {
  justify-content: space-between;
}

.header-product__logo {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  position: absolute;
  width: 100%;
  margin-right: -12px;
  margin-left: -12px;
  z-index: 0;
}

.mobile-header button,
.mobile-header .header-product__actions {
  z-index: 1;
}

.header-product__logo .site-logo img {
  max-height: 30px;
  width: auto;
}

.header-product__actions {
  flex-shrink: 0;
  display: flex;
}

.mst-mobile-header__menu {
  position: relative;
}

.mst-mobile-header__menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 600;
}

/*** cart / checkout header ***/
.mst-mobile-header__title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1f2430;
}

.mst-mobile-header__spacer {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

/*************************** Tablet styles ***************************/
@media (min-width: 768px) {
}

/*************************** laptop styles ***************************/
@media (min-width: 992px) {
  .header-product__logo {
    position: unset;
    width: unset;
    margin-right: unset;
  }
  .mobile-header {
    display: none;
  }
  #main {
    padding-top: 25px;
  }

  .desktop-header {
    width: 100%;
    background-color: #fff;
    /* box-shadow: var(--header-box-shadow); */
  }

  .desktop-bottem-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 32px;
  }

  .desktop-menu-parent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    padding-right: 30px;
    height: 30px;
  }

  .header-search-parent {
    flex-basis: 45%;
  }

  /***my account component***/
  .header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
  }

  .header-account__icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-account__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
  }

  /*** cart / wishlist / account — flat icon style, no border/shadow (desktop header) ***/
  .desktop-header .mst-cart,
  .desktop-header .header-wishlist,
  .desktop-header .header-account {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    height: auto;
  }

  .desktop-header .mst-cart,
  .desktop-header .header-wishlist {
    width: 32px;
    height: 32px;
  }
  /****notifications component*****/
  .header-notifications {
    position: relative;
  }

  .header-notifications__toggle {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .header-notifications__icon {
    display: flex;
  }

  .header-notifications__badge {
    position: absolute;
    top: 8px;
    left: 8px;

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #ef4444;
  }

  .header-notifications__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    width: 320px;
    max-height: 400px;

    overflow-y: auto;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    z-index: 9999;
  }

  .header-notifications__header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
  }

  .header-notifications__body {
    padding: 16px;
  }

  .header-notifications__empty {
    text-align: center;
    color: #888;
  }

  /*** mega menu component header ***/
  .header-megamenu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .header-a-menu {
    text-decoration: none;
    color: #333;
    font-size: 14px;
  }

  .hr-desktop-head-menu {
    height: 100%;
    width: 1px;
    color: #f0f0f0;
    background-color: #aaa;
    border-radius: 5px;
  }

  /*** cart component header ***/

  /*** search component ***/
  .mst-search-trigger {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-radius: 12px;
    background: #f5f5f7;
    color: #888;
    border: none;
    cursor: pointer;
    direction: rtl;
  }

  .mst-search-trigger__placeholder {
    color: #999;
  }
  /***search modal***/
  .mst-search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
  }

  .mst-search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .mst-search-modal__content {
    position: relative;
    width: min(1280px, 95%);
    height: 85vh;

    margin: 40px auto;

    background: #fff;
    border-radius: 20px;

    overflow: auto;
  }

  .mst-search-modal__header {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 24px;
  }

  .mst-search-modal__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
  }
}

/*************************** desktop styles ***************************/
@media (min-width: 1200px) {
}

/* ==========================================================================
   Default Mobile Header (Header پیش‌فرض موبایل)
   ========================================================================== */

.mst-mobile-header--default {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  z-index: 1000;
  padding: 0 16px;
  box-sizing: border-box;
}

/* دکمه بک - همیشه سمت چپ فیزیکی صفحه */
.mst-mobile-header--default .mst-mobile-header__start {
  justify-self: left;
}

/* لوگو - دقیقاً در مرکز */
.mst-mobile-header--default .mst-mobile-header__center {
  justify-self: center;
}

/* بخش راست (خالی یا آیکون‌های احتمالی در آینده) - همیشه سمت راست فیزیکی */
.mst-mobile-header--default .mst-mobile-header__end {
  justify-self: right;
}

.mst-mobile-header--default .site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #101010;
}

.mst-mobile-header--default .site-logo img {
  max-height: 32px;
  width: 130px;
  object-fit: contain;
}

.mst-mobile-header--default .site-logo__text {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

/*.mst-mobile-header__back {*/
/*  background: transparent;*/
/*  border: none;*/
/*  padding: 8px;*/
/*  margin: -8px;*/
/*  cursor: pointer;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  border-radius: 50%;*/
/*  transition: background-color 0.2s ease;*/
/*}*/

.mst-mobile-header__back:active {
  background-color: #f5f5f5;
}

.header-account__icon--has-avatar {
  overflow: hidden;
  border-radius: 50%;
}

.header-account__avatar-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  display: block;
}
