/*
 * core/site.css — کامپوننت‌های مشترک سایت (فقط layouts/app)
 * ترتیب بخش‌ها مهم است؛ جابه‌جا نکنید.
 */

/* ==========================================================================
   Editor content (قبلاً editor-content.css)
   ========================================================================== */

/* =========================================================
   Shared styling for any HTML coming from the admin WYSIWYG
   (TinyMCE) editor — description/content fields on products,
   pages, articles, news, companies, shops, brands, categories,
   faqs, wallets, points, etc.
   Loaded globally (layouts/app.blade.php) so every {!! !!}
   output can just add class="editor-content".
   ========================================================= */

.editor-content {
  line-height: 27px;
  direction: rtl;
  text-align: right;
}
.editor-content p,
.editor-content div,
.editor-content span,
.editor-content li,
.editor-content td,
.editor-content th {
  direction: rtl !important;
  text-align: right !important;
}
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  display: block;
  margin: 30px 0 15px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  position: relative;
  padding-right: 18px;
}
.editor-content h1::before,
.editor-content h2::before,
.editor-content h3::before,
.editor-content h4::before,
.editor-content h5::before,
.editor-content h6::before {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
}
.editor-content p {
  margin-bottom: 25px;
  line-height: 28px;
  font-size: 15px;
}
.editor-content img {
  max-width: 100%;
  display: inline-block;
  margin: 15px 0;
  height: auto;
  border-radius: var(--radius-md);
}
.editor-content blockquote {
  padding: 20px;
  border-right: 5px solid var(--color-primary);
  background: var(--color-gray-50);
  display: inline-block;
  width: auto;
  font-size: 18px;
  line-height: 32px;
}
.editor-content ul,
.editor-content ol {
  margin: 15px 0 25px 0;
  padding-right: 20px !important;
  padding-left: 0 !important;
}
.editor-content li {
  display: block;
  padding: 5px 0;
}
.editor-content li::before {
  content: "\f00c";
  font-family: var(--fa-family-free, "Font Awesome 6 Free");
  font-weight: 900;
  display: inline-block;
  color: var(--color-gray-450);
  margin-left: 8px;
}
.editor-content li:hover::before {
  color: var(--color-primary);
}
.editor-content a {
  color: var(--color-primary);
}
.editor-content a:hover {
  color: var(--color-primary-dark);
}
.editor-content table {
  width: 100%;
  margin: 15px 0 25px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.editor-content table thead th,
.editor-content table th {
  background: var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 10px;
  border: 1px solid var(--color-primary);
}
.editor-content table td {
  vertical-align: middle;
  padding: 12px 10px;
  font-size: 14px;
  border: 1px solid var(--color-primary);
  color: var(--color-dark);
}
.editor-content table tbody tr:hover {
  background-color: var(--color-page-bg);
}
@media screen and (max-width: 767px) {
  .editor-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Components (قبلاً components.css)
   ========================================================================== */



.result-heading-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.qty-stepper {
  display: flex;
  align-items: center;
  background-color: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.qty-stepper-btn {
  width: 39px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-dark);
  border: 0;
  border-radius: 0;
}

.qty-stepper-btn:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-dark);
}

.qty-stepper-btn:disabled {
  color: var(--color-icon-muted);
}

.qty-stepper-input {
  width: 70px;
  height: 38px;
  border: none !important;
  background-color: transparent !important;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
}

.app-page-card {
  --page-accent: var(--color-primary);
  --page-accent-soft: var(--color-primary-soft);
}

.app-page-card .card {
  margin-bottom: 0;
  border-color: var(--color-border);
}

.app-page-card .card-header {
  background-color: var(--page-accent-soft);
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-border);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.app-page-card .card-header .header-name {
  color: var(--color-text-muted);
  font-weight: 400;
}

.app-page-card .card-body {
  padding: 20px;
}

.app-page-card .card-text {
  color: var(--color-text-soft);
  line-height: 2;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   4) Content Hero Image
   جایگزین: .page-hero-img (page-show.css) — عکس هدر وسط‌چین یک صفحه
   --------------------------------------------------------- */
.content-hero-img {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

.content-hero-img img {
  max-height: 320px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------
   5) FAQ Accordion
   جایگزین: .page-faq-section-title / .page-faq-accordion (page-show.css)
   قبلاً فقط برای صفحات ثابت تعریف شده بود، ولی همین مارک‌آپ FAQ در
   صفحه‌ی محصول (products/show.blade.php) و صفحه‌ی جستجو/دسته‌بندی
   (livewire/frontend/search/index.blade.php) هم استفاده می‌شد بدون
   این‌که page-show.css اونجا لود بشه — یعنی اونجاها اصلاً استایل
   نمی‌گرفت. عمومی کردنش این باگ رو هم حل می‌کنه.
   --------------------------------------------------------- */
.faq-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px !important;
}

.faq-section-title i {
  color: var(--color-primary);
}

.faq-accordion .accordion-item {
  border: none;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  padding: 18px 22px;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-body {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-muted);
  background: var(--color-page-bg);
  padding: 18px 22px;
}

/* ---------------------------------------------------------
   6) Feature Card (آیکون/عکس + عنوان + توضیح)
   جایگزین: .page-items-box (page-show.css)
   --------------------------------------------------------- */
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 17px;
  color: var(--color-text);
  margin: 0 !important;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 !important;
}

/* ---------------------------------------------------------
   7) Social Link Card
   جایگزین: .page-social-card / .page-social-icon / .page-social-title
   (page-show.css)
   --------------------------------------------------------- */
.social-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.social-link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.social-link-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-page-bg);
  transition: background 0.25s ease;
}

.social-link-card:hover .social-link-icon {
  background: color-mix(in srgb, var(--color-white) 20%, transparent);
}

.social-link-icon img {
  max-width: 32px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.social-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.25s ease;
}

.social-link-card:hover .social-link-title {
  color: var(--color-white);
}

/* ---------------------------------------------------------
   8) Surface Card (کارت سفید عمومی — فرم‌ها، بلوک‌های محتوا)
   جایگزین: .page-contact-card (page-show.css)
   --------------------------------------------------------- */
.surface-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.5rem;
  height: 100%;
}

/* ---------------------------------------------------------
   10) Shared utilities (font-size / spacing / brand-color helpers)
   جایگزین: .font-14 / .font-15 / .font-16 / .font-20 / .font-26 / .py-20 /
   .main-color-one-* / .main-color-three-bg که قبلاً فقط توی product.css
   تعریف شده بودن، ولی روی صفحات حساب کاربری (sidebar, index, tickets,
   comments, points, wallets, orders) هم استفاده می‌شدن — چون اون صفحات
   product.css رو لود نمی‌کردن، این کلاس‌ها روشون کاملاً بی‌اثر بودن.
   حالا سراسری‌ان تا هرجای دیگه هم قابل استفاده باشن.
   --------------------------------------------------------- */
.font-14 {
  font-size: 14px;
}

.font-15 {
  font-size: 15px;
}

.font-16 {
  font-size: 16px;
}

.font-20 {
  font-size: 20px;
}

.font-26 {
  font-size: 22px;
  font-weight: 700;
}

.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.main-color-one-color {
  color: var(--color-primary);
}

/* ---------------------------------------------------------
   11) Address Card
   جایگزین: کارت آدرس که هم توی account/address (مدیریت آدرس‌ها، منوی
   ویرایش/حذف) و هم توی frontend/addresses (انتخاب آدرس تحویل موقع
   تسویه‌حساب، دکمه‌های ویرایش/انتخاب) لازمه — از طریق
   resources/views/components/address-card.blade.php رندر می‌شه.
   قبلاً توی account.css بود، ولی چون این فایل سراسری لود می‌شه
   (layouts/app.blade.php) و account.css فقط توی لایه‌ی اکانت، اومد
   اینجا تا صفحه‌ی frontend/addresses مجبور نباشه کل account.css
   (استایل‌های داشبورد/سایدبار/جدول‌های اکانت) رو لود کنه.
   --------------------------------------------------------- */
.account-address-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 54px 18px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-white);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.account-address-card:last-child {
  margin-bottom: 0;
}

.account-address-card:hover {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-black) 7%, transparent);
  border-color: var(--color-primary-soft);
}

.account-address-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 15px;
}

.account-address-card__body {
  flex: 1;
  min-width: 0;
}

.account-address-card__text {
  margin: 0 0 10px;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.account-address-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-address-card__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.account-address-card__meta-item .fa {
  color: var(--color-primary);
  width: 14px;
  text-align: center;
}

.account-address-card__actions {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
}

.account-address-card__menu-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.account-address-card__menu-btn:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.account-address-card__menu {
  display: none;
  position: absolute;
  top: 36px;
  inset-inline-end: 0;
  min-width: 130px;
  padding: 6px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-black) 12%, transparent);
  z-index: 5;
}

.account-address-card__menu.is-open {
  display: block;
}

.account-address-card__menu a,
.account-address-card__menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 13px;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
}

.account-address-card__menu a:hover,
.account-address-card__menu button:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  text-decoration: none;
}

.account-address-card__menu form {
  margin: 0;
}

.account-address-card__menu button {
  color: var(--color-sale);
}

.account-address-card__menu button:hover {
  background: color-mix(in srgb, var(--color-danger) 8%, transparent);
  color: var(--color-sale);
}

/* Variant used by frontend/addresses (checkout address picker), where the
   actions are visible Edit/Select buttons rather than a hidden corner menu. */
.account-address-card--stacked {
  padding: 18px;
}

.account-address-card__actions--footer {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}


.title-section-inner {
  border-bottom: 3px solid var(--color-gray-300);
  padding-bottom: 10px;
  position: relative;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.title-section-inner span {
  position: relative;
  font-size: 18px;
}


/* .title-section-inner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  display: block;
  background: linear-gradient(90deg, #0B6E8C, #E3342F);
  height: 4px;
  border-radius: 4px;
  width: 60px;
} */




/* ---------------------------------------------------------
   13) Content Box
   جایگزین: باکس سفید ساده با سایه/رادیوس، هم توی صفحات اکانت
   (sidebar/index) هم توی صفحه‌ی محصول استفاده می‌شه. قبلاً custom.css.
   --------------------------------------------------------- */
.content-box:nth-last-child(1) {
  margin-bottom: 0;
}

.content-box {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  padding: 20px 0px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.img-profile-panel {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px color-mix(in srgb, var(--color-black) 10%, transparent), 0 2px 4px -2px color-mix(in srgb, var(--color-black) 10%, transparent);
}

/* ---------------------------------------------------------
   14) Sweet Box
   جایگزین: کارت‌های اطلاعاتی صفحات about-us / contact-us / خانه.
   قبلاً custom.css.
   --------------------------------------------------------- */
.sweet-box {
  background: var(--color-white);
  min-height: 180px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all .25s ease;
}

.sweet-box img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  object-fit: contain;
}

.sweet-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.sweet-shadow {
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   15) Header Account Dropdown (logged-in state)
   جایگزین: منوی اکانت هدر برای کاربر لاگین‌کرده — روی همه‌ی صفحات
   هست (resources/views/layouts/header.blade.php). قبلاً custom.css.
   --------------------------------------------------------- */

.hdd-menu-account {
  width: min(260px, calc(100vw - 32px));
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 14px !important;
  background: var(--color-white);
}

.hdd-menu-account .hu-account-top,
.hdd-menu-account .hu-account-top>div {
  min-width: 0;
}

.hdd-menu-account li {
  display: block;
  margin-right: 0;
}

.hdd-menu-account .hu-account-avatar {
  width: 42px;
  height: 42px;
}

.hdd-menu-account .hu-account-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-dark);
}

.hdd-menu-account .hu-account-link {
  font-size: 12px;
  color: var(--color-primary);
}

.hdd-menu-account .hu-account-menu li+li {
  border-top: 1px solid var(--color-border);
}

.hdd-menu-account .hu-account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  border-radius: 8px;
  direction: rtl;
  text-align: right;
}

.hdd-menu-account .hu-account-menu a i {
  width: 18px;
  color: var(--color-primary);
  text-align: center;
}

.hdd-menu-account .hu-account-menu a:hover {
  background: var(--color-surface-soft);
}

.hdd-menu-account .hu-account-menu-logout a,
.hdd-menu-account .hu-account-menu-logout a i {
  color: var(--color-sale);
}

/* ---------------------------------------------------------
   16) Mini Cart Dropdown (header basket)
   جایگزین: منوی کوچک سبد خرید بالای هدر — روی همه‌ی صفحات هست
   (resources/views/layouts/header.blade.php +
   resources/views/livewire/frontend/header/shopping-cart.blade.php).
   قبلاً هیچ استایلی نداشت (فقط مارک‌آپ خام بوت‌استرپ dropdown-menu).
   --------------------------------------------------------- */
.basket .dropdown-menu {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: min(360px, 92vw);
  margin-top: 14px !important;
}

.mini-cart {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-line);
}

.mini-cart-products-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}

.mini-cart-products {
  max-height: 340px;
  overflow-y: auto;
}

.mini-cart-products::-webkit-scrollbar {
  width: 5px;
}

.mini-cart-products::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: var(--radius-pill);
}

.mini-cart-product {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
}

.mini-cart-product:last-child {
  border-bottom: none;
}

.mini-cart-product-thumbnail img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
}

.mini-cart-product-detail {
  flex: 1;
  min-width: 0;
  padding-inline-start: 20px;
}

.mini-cart-product-brand a {
  font-size: 11.5px;
  color: var(--color-text-muted) !important;
  text-decoration: none;
}

.mini-cart-product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text) !important;
  text-decoration: none;
}

.mini-cart-purchase-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.mini-cart-product-meta span {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-gray-100);
  border-radius: var(--radius-pill);
}

.mini-cart-product-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  white-space: nowrap;
}

.mini-cart-product-price del {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-gray-500);
  text-decoration: line-through;
}

.mini-cart-product-price .currency {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.mini-cart-product-remove {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-gray-500);
  font-size: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.mini-cart-product-remove:hover {
  background: color-mix(in srgb, var(--color-danger) 10%, transparent);
  color: var(--color-sale);
}

.mini-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 16px;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.mini-cart-empty i {
  font-size: 28px;
  color: var(--color-gray-300);
}

.mini-cart-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-gray-100);
  border-top: 1px solid var(--color-line);
}

.mini-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-cart-total-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.mini-cart-total-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.mini-cart-footer .btn-block {
  justify-content: center;
}

.mini-cart-total-value .currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .basket .dropdown-menu {
    width: 92vw;
  }
}


.consult-widget {
  position: fixed;
  left: 25px;
  bottom: 25px;
  z-index: 9999;
  direction: rtl;
}

.consult-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 25px;
  cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-black) 18%, transparent);
  transition: .3s;
}

.consult-toggle:hover {
  transform: translateY(-5px);
  background: var(--color-text-soft);
}

.consult-box {
  width: 330px;
  background: var(--color-white);
  border-radius: 20px;
  padding: 20px;
  position: absolute;
  bottom: 80px;
  left: 0;
  box-shadow: 0 15px 45px color-mix(in srgb, var(--color-black) 15%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: .35s;
}

.consult-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.consult-close {
  position: absolute;
  left: 15px;
  top: 12px;
  border: none;
  background: none;
  font-size: 22px;
  color: var(--color-gray-600);
  cursor: pointer;
}

.consult-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.consult-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--color-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.consult-header h4 {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 17px;
  font-weight: 800;
}

.consult-header p {
  margin: 5px 0 0;
  color: var(--color-slate-500);
  font-size: 12px;
}

.consult-text {
  color: var(--color-gray-750);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 18px;
}

.consult-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.consult-actions a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--color-blue-100);
  transition: .3s;
}

.consult-actions a:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-primary);
}

.consult-action-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-action-icon i {
  font-size: 30px;
}

.consult-action-icon.call {
  background: var(--color-blue-50);
}

.consult-action-icon.call i {
  color: var(--color-primary);
}

.consult-action-icon.whatsapp {
  background: var(--color-success-soft);
}

.consult-action-icon.whatsapp i {
  color: var(--color-social-whatsapp);
}

.consult-action-icon.telegram {
  background: var(--color-blue-50);
}

.consult-action-icon.telegram i {
  color: var(--color-social-telegram);
}

.consult-actions strong {
  display: block;
  color: var(--color-text-soft);
  font-size: 14px;
  margin-bottom: 3px;
}

.consult-actions span {
  display: block;
  color: var(--color-slate-500);
  font-size: 12px;
}

@media (max-width: 576px) {
  .consult-widget {
    left: 15px;
    bottom: 75px;
  }

  .consult-icon i {
    font-size: 26px;
    color: var(--color-primary);
  }

  .consult-actions a i {
    width: 28px;
    font-size: 22px;
    color: var(--color-primary);
    text-align: center;
  }

  .consult-actions a:hover i {
    color: var(--color-accent);
  }

  .consult-box {
    width: calc(100vw - 30px);
    left: -0px;
  }

  .consult-toggle {
    width: 55px;
    height: 55px;
  }
}

/* Reuses the existing wishlist button component; repositions it to the card design's "heart" spot. */
.product-card .wishlist {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ---- Checkout steps (cart → address → order details → payment) ---- */
.checkout-steps {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px 12px 14px;
  margin: 16px 0;
}

.checkout-steps__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-steps__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

/* connector line to the previous step (RTL: previous step sits on the right) */
.checkout-steps__item + .checkout-steps__item::before {
  content: "";
  position: absolute;
  top: 19px;
  right: calc(-50% + 26px);
  left: calc(50% + 26px);
  height: 3px;
  border-radius: 3px;
  background: var(--color-line);
}

.checkout-steps__item--done + .checkout-steps__item::before {
  background: var(--color-primary);
}

.checkout-steps__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
}

a.checkout-steps__link:hover .checkout-steps__icon {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.checkout-steps__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  background: var(--color-surface-soft);
  font-size: 15px;
  transition: box-shadow .2s ease;
}

.checkout-steps__label {
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.checkout-steps__item--done .checkout-steps__link {
  color: var(--color-primary);
}

.checkout-steps__item--done .checkout-steps__icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.checkout-steps__item--current .checkout-steps__link {
  color: var(--color-text);
  font-weight: 700;
}

.checkout-steps__item--current .checkout-steps__icon {
  background: var(--color-white);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

@media (max-width: 575.98px) {
  .checkout-steps {
    padding: 14px 6px 10px;
  }

  .checkout-steps__icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .checkout-steps__item + .checkout-steps__item::before {
    top: 16px;
    right: calc(-50% + 22px);
    left: calc(50% + 22px);
  }

  .checkout-steps__label {
    font-size: 11px;
  }
}

/* ==========================================================================
   Navigate skeleton (قبلاً navigate-skeleton.css)
   ========================================================================== */

/* ==========================================================================
   wire:navigate loading skeletons
   -----------------------------------------------------------------------
   Shown inside #page-content while a wire:navigate visit is in flight, and
   over Livewire regions that are refetching (see .is-loading below), so the
   user sees the shape of what is about to change. Header/footer stay put.

   The templates reuse the real layout classes (.container, .pl-layout,
   .product-grid, .article-grid, .product-card ...). Only the *contents* are
   replaced by .sk blocks, so the skeleton can never drift away from the real
   grid. Do not add a parallel grid system here.

   Injected/removed by js/navigate-skeleton.js.
   ========================================================================== */


/* @persist wraps its region in a plain <div x-persist>. That wrapper would
   become the containing block for .main-header's position:sticky and the header
   would stop sticking, so take the wrapper out of the box tree entirely. */
[x-persist] {
  display: contents;
}

/* Hide the outgoing page content, keep only the skeleton in flow. The second
   selector covers a page that narrowed the swap to one of its own elements with
   data-skeleton-region, so everything outside that element stays on screen. */
#page-content.is-navigating > *:not(#navigate-skeleton),
[data-skeleton-region].is-navigating > *:not(#navigate-skeleton) {
  display: none !important;
}

#navigate-skeleton {
  animation: sk-fade-in .18s ease-out both;
}

@keyframes sk-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Building blocks ---- */

.sk {
  background-color: var(--color-skeleton);
  background-image: linear-gradient(90deg, var(--color-skeleton) 25%, var(--color-skeleton-highlight) 37%, var(--color-skeleton) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  display: block;
}

@keyframes sk-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.sk-line {
  height: 12px;
  margin-bottom: 10px;
}

.sk-line:last-child { margin-bottom: 0; }

.sk-line.is-title  { height: 22px; }
.sk-line.is-lg     { height: 16px; }
.sk-line.is-sm     { height: 9px; }
.sk-w-25  { width: 25%; }
.sk-w-40  { width: 40%; }
.sk-w-50  { width: 50%; }
.sk-w-60  { width: 60%; }
.sk-w-75  { width: 75%; }
.sk-w-90  { width: 90%; }

.sk-box    { border-radius: var(--radius-md); }
.sk-circle { border-radius: 50%; }

/* Livewire only ships a default `display:none` for single-modifier wire:loading
   attributes, so combined ones must be hidden here or they flash before boot. */
[wire\:loading\.grid\.delay\.short][wire\:loading\.grid\.delay\.short] {
  display: none;
}

/* ---- Neutralise the real components when they stand in as placeholders ---- */

.product-card.is-skeleton,
.article-card.is-skeleton {
  pointer-events: none;
}

.product-card.is-skeleton:hover,
.article-card.is-skeleton:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-line);
}

.article-card.is-skeleton .article-card-img {
  border-radius: 0;
}

/* ---- Filler layout, only for regions with no real class to borrow ---- */

.sk-pad {
  padding-top: 24px;
  padding-bottom: 40px;
}

.sk-flex {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sk-col   { flex: 1 1 320px; min-width: 0; }
.sk-aside { flex: 0 0 270px; }

.sk-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.sk-tiles {
  display: grid;
  gap: var(--skeleton-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sk-stack > * + * { margin-top: 12px; }

.sk-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-chip {
  height: 32px;
  width: 84px;
  border-radius: var(--radius-pill);
}

/* Announced by screen readers, invisible to everyone else. */
.sk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Three-dot "still loading" hint ---- */

.sk-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 26px 0 10px;
}

.sk-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: .35;
  animation: sk-dot 1.1s infinite ease-in-out both;
}

.sk-dots i:nth-child(1) { animation-delay: -.24s; }
.sk-dots i:nth-child(2) { animation-delay: -.12s; }

@keyframes sk-dot {
  0%, 80%, 100% { transform: scale(.7); opacity: .3; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* ---- Slow / failed navigation fallback ---- */

.sk-stalled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 0 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.sk-stalled button {
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
  .sk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-aside { display: none; }
}

@media (max-width: 575px) {
  .sk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-pad   { padding-top: 16px; padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk,
  .sk-dots i,
  #navigate-skeleton { animation: none; }
  .sk { background-image: none; }
}

/* ==========================================================================
   Static pages (قبلاً page-show.css)
   ========================================================================== */

.page-content-body {
  margin-top: 28px;
}
.page-contact-textarea {
  min-height: 280px;
  resize: vertical;
}
.page-contact-map {
  border: 0;
}
