/* Sticky Bottom Menu Styles */
        .sticky-bottom-menu {
          position: fixed;
          bottom: 0;
          left: 0;
          right: 0;
          /* شیشه‌ای مات و درخشان، هماهنگ با .sh-bar در هدر */
          background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 100%);
          border-top: 1px solid rgba(255, 255, 255, 0.7);
          box-shadow: 0 -6px 26px rgba(17, 24, 39, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.6);
          border-radius: 18px 18px 0 0; /* قرینهٔ گردیِ گوشه‌های هدر (آنجا 0 0 16px 16px) */
          overflow: visible; /* تا کرهٔ دکمهٔ فروشنده بتواند از بالای نوار بیرون بزند */
          display: flex;
          justify-content: space-around;
          align-items: stretch;
          padding: 0;
          z-index: 9998;
          direction: rtl;
          /* بلور قوی‌تر + لایهٔ مجزای GPU برای جلوگیری از لرزش هنگام اسکرول */
          backdrop-filter: blur(18px) saturate(180%);
          -webkit-backdrop-filter: blur(18px) saturate(180%);
          transform: translate3d(0, 0, 0);
          -webkit-transform: translate3d(0, 0, 0);
          will-change: transform;
          backface-visibility: hidden;
          -webkit-backface-visibility: hidden;
        }

        .bottom-menu-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          text-decoration: none;
          color: #5BC2E7;
          padding: 10px 4px 12px;
          position: relative;
          flex: 1;
          min-width: 0;
          border-top: 2px solid transparent;
          transition: color 0.2s ease, border-color 0.2s ease;
          -webkit-tap-highlight-color: transparent;
        }

        .bottom-menu-item:active {
          opacity: 0.7;
        }

        .bottom-menu-item.active {
          color: #E76BA3;
        }

        .bottom-menu-item.active .bottom-menu-icon svg {
          stroke: #E76BA3;
        }

        .bottom-menu-item--cart.active .bottom-menu-icon {
          background: linear-gradient(135deg, #E76BA3 0%, #f08bba 100%);
          box-shadow: 0 4px 14px rgba(231, 107, 163, 0.35);
        }

        .bottom-menu-item--cart.active .bottom-menu-icon svg {
          stroke: #fff;
          filter: none;
        }

        .bottom-menu-icon {
          position: relative;
          margin-bottom: 5px;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 38px;
          height: 38px;
          border-radius: 12px;
          transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .bottom-menu-item--cart .bottom-menu-icon {
          background: linear-gradient(135deg, #5BC2E7 0%, #3DB4DD 100%);
          box-shadow: 0 4px 14px rgba(91, 194, 231, 0.3);
          width: 44px;
          height: 44px;
          border-radius: 14px;
          margin-top: -6px;
        }

        .bottom-menu-item--cart .bottom-menu-icon svg {
          stroke: #fff;
          width: 22px;
          height: 22px;
        }

        .bottom-menu-item:not(.active):hover {
          color: #E76BA3;
        }

        .bottom-menu-item:not(.active):hover .bottom-menu-icon {
          background: rgba(231, 107, 163, 0.09);
          transform: translateY(-2px);
        }

        .bottom-menu-item--cart:not(.active):hover .bottom-menu-icon {
          background: linear-gradient(135deg, #E76BA3 0%, #f08bba 100%);
          box-shadow: 0 4px 14px rgba(231, 107, 163, 0.35);
        }

        .bottom-menu-item.active .bottom-menu-icon {
          transform: translateY(-1px);
        }

        .bottom-menu-icon svg {
          width: 22px;
          height: 22px;
          transition: stroke 0.2s ease;
        }

        .bottom-menu-text {
          font-size: 10px;
          font-weight: 600;
          display: block;
          letter-spacing: 0.01em;
          text-align: center;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          max-width: 100%;
        }

        .bottom-menu-item--cart .bottom-menu-text {
          margin-top: 2px;
        }

        .cart-badge,
        .wishlist-badge {
          position: absolute;
          top: 0;
          right: calc(50% - 18px);
          background: #ef4444;
          color: white;
          border-radius: 10px;
          padding: 2px 6px;
          font-size: 10px;
          font-weight: 700;
          min-width: 18px;
          text-align: center;
          line-height: 1.4;
          display: none;
          border: 1.5px solid white;
          box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
        }

        .cart-badge:not(:empty),
        .wishlist-badge:not(:empty) {
          display: block;
        }

        .wishlist-badge {
          background: #c44569;
          box-shadow: 0 2px 6px rgba(196, 69, 105, 0.35);
        }

        .bottom-menu-item.active svg {
          stroke: #E76BA3;
        }

        .product-price{
            direction: rtl !important;
        }
        .product-current-price{
            direction: rtl !important;
        }
        @keyframes badgeIn {
          0% { transform: scale(0.5); opacity: 0; }
          70% { transform: scale(1.2); }
          100% { transform: scale(1); opacity: 1; }
        }

        .cart-badge:not(:empty),
        .wishlist-badge:not(:empty) {
          animation: badgeIn 0.3s ease forwards;
        }

        /* Cookie popup z-index fix - ensure it appears above sticky bottom menu */
        .eu-cookie-compliance-banner {
          z-index: 10000 !important;
          position: fixed !important;
          bottom: 90px !important;           /* Higher than sticky bottom menu */
          left: 10px !important;
          right: 10px !important;
          margin: 0 auto !important;
          max-width: 500px !important;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
          border-radius: 12px !important;
        }

        .eu-cookie-compliance-banner.eu-cookie-compliance-banner-info {
          background: white !important;
          border: 1px solid #e5e7eb !important;
        }

        /* Additional cookie popup styling for better mobile experience */
        @media (max-width: 1023px) {
          .eu-cookie-compliance-banner {
            bottom: 90px !important;
            left: 8px !important;
            right: 8px !important;
            border-radius: 12px !important;
          }
        }

        @media (min-width: 1024px) {
          .eu-cookie-compliance-banner {
            bottom: 20px !important;
          }
        }

        /* Hide on desktop screens */
        @media (min-width: 1024px) {
          .sticky-bottom-menu {
            display: none;
          }
        }

        /* Ensure content doesn't get hidden behind the menu */
        @media (max-width: 1023px) {
          body {
            padding-bottom: 80px;
          }
        }

        /* Safe area support for iOS notch */
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
          .sticky-bottom-menu {
            padding-bottom: env(safe-area-inset-bottom);
          }
          @media (max-width: 1023px) {
            body {
              padding-bottom: calc(80px + env(safe-area-inset-bottom));
            }
          }
        }

        /* ═══════════ دکمهٔ ویژه: «مشاور ارشد» (پشتیبانی) ═══════════ */
        /* ریست دکمه تا مثل بقیهٔ آیتم‌های منو رفتار کند */
        .bottom-menu-item--seller {
          background: none;
          border: 0;
          border-top: 2px solid transparent;
          font: inherit;
          cursor: pointer;
          padding: 8px 3px 10px;
        }

        /* کرهٔ گرادیانیِ برجسته که از بالای نوار بیرون می‌زند */
        .seller-orb {
          position: relative;
          width: 66px;
          height: 66px;
          margin-top: -32px;
          margin-bottom: 6px;
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          border: 4px solid transparent;
          background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, #FF4FA3 0%, #FF9BD0 24%, #FF62B7 52%, #28B8F2 76%, #FF4FA3 100%) border-box;
          background-size: auto, 240% 240%;
          background-position: 0 0, 0% 50%;
          box-shadow:
            0 4px 12px rgba(237, 78, 150, 0.32),
            0 2px 7px rgba(46, 167, 224, 0.25),
            inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
            inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
          transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease;
          animation: sellerRingPulse 2.2s ease-in-out infinite;
          z-index: 2;
        }

        /* خود رینگ گرادیانی با نور فشرده چشمک می‌زند؛ بدون حلقهٔ متحرک جداگانه */
        @keyframes sellerRingPulse {
          0%, 100% {
            background-position: 0 0, 0% 50%;
            box-shadow:
              0 3px 10px rgba(237, 78, 150, 0.38),
              0 2px 7px rgba(46, 167, 224, 0.3),
              inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
          }
          50% {
            background-position: 0 0, 100% 50%;
            box-shadow:
              0 2px 11px rgba(237, 78, 150, 0.72),
              0 1px 8px rgba(46, 167, 224, 0.62),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.82),
              inset 0 0 0 2px rgba(255, 255, 255, 0.6);
          }
        }

        .seller-orb__photo {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          border-radius: 50%;
          object-fit: cover;
          object-position: center;
          z-index: 1;
        }

        .seller-orb__icon { position: relative; z-index: 2; display: inline-flex; }
        .seller-orb__icon svg {
          width: 26px;
          height: 26px;
          filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
        }

        /* نشانِ پیام خوانده‌نشده روی دکمهٔ فروشنده */
        .seller-badge {
          position: absolute;
          top: -2px;
          right: -3px;
          min-width: 18px;
          height: 18px;
          padding: 0 4px;
          border-radius: 999px;
          background: linear-gradient(135deg, #FF7A93 0%, #FF2D55 55%, #E11D48 100%);
          color: #fff;
          font-size: 10px;
          font-weight: 800;
          line-height: 18px;
          text-align: center;
          border: 2px solid #fff;
          box-shadow: 0 3px 8px rgba(225, 29, 72, 0.5);
          z-index: 3;
        }
        .seller-badge[hidden] { display: none; }

        /* برچسب سبزِ متمایز برای تأکید بر حضور آنلاین آوا */
        .bottom-menu-text--seller {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: 4px;
          min-height: 20px;
          padding: 2px 8px;
          border: 0;
          border-radius: 999px;
          font-size: 10px;
          font-weight: 600;
          line-height: 1.35;
          letter-spacing: 0.01em;
          white-space: nowrap;
          max-width: 88px;
          overflow: visible;
          text-overflow: clip;
          color: #111;
          -webkit-text-stroke: 0;
          background: #fff;
          box-shadow:
            0 3px 8px rgba(15, 23, 42, 0.18),
            inset 0 1px 1px rgba(255, 255, 255, 0.9),
            inset 0 -1px 1px rgba(148, 163, 184, 0.18);
          text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.95);
          animation: avaLabelOnlinePulse 2.2s ease-in-out infinite;
        }
        .bottom-menu-text--seller::before {
          content: "";
          flex: 0 0 auto;
          width: 7px;
          height: 7px;
          border-radius: 50%;
          background: #16E76F;
          box-shadow:
            0 0 0 0 rgba(22, 231, 111, 0.75),
            0 0 6px rgba(22, 231, 111, 1);
          animation: avaLabelDotPulse 1.35s ease-out infinite;
        }
        @keyframes avaLabelOnlinePulse {
          0%, 100% {
            box-shadow:
              0 3px 8px rgba(15, 23, 42, 0.16),
              0 0 4px rgba(22, 231, 111, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.9),
              inset 0 -1px 1px rgba(148, 163, 184, 0.18);
          }
          50% {
            box-shadow:
              0 4px 10px rgba(15, 23, 42, 0.22),
              0 0 7px rgba(22, 231, 111, 0.2),
              inset 0 1px 2px rgba(255, 255, 255, 1),
              inset 0 -1px 1px rgba(148, 163, 184, 0.22);
          }
        }
        @keyframes avaLabelDotPulse {
          0% {
            opacity: 1;
            transform: scale(0.92);
            box-shadow:
              0 0 0 0 rgba(22, 231, 111, 0.8),
              0 0 6px rgba(22, 231, 111, 1);
          }
          65% {
            opacity: 1;
            transform: scale(1.08);
            box-shadow:
              0 0 0 5px rgba(22, 231, 111, 0),
              0 0 9px rgba(22, 231, 111, 0.95);
          }
          100% {
            opacity: 0.85;
            transform: scale(0.92);
            box-shadow:
              0 0 0 0 rgba(22, 231, 111, 0),
              0 0 5px rgba(22, 231, 111, 0.8);
          }
        }

        /* تعامل: شناوری هنگام هاور یا باز بودن پنل */
        .bottom-menu-item--seller:hover .seller-orb,
        .bottom-menu-item--seller.ssw-open .seller-orb {
          animation: none;
          transform: translateY(-2px) scale(1.06);
          box-shadow:
            0 18px 34px rgba(237, 78, 150, 0.6),
            0 7px 18px rgba(46, 167, 224, 0.45),
            inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
            inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
        }
        .bottom-menu-item--seller:active .seller-orb { transform: scale(0.95); }

        @media (prefers-reduced-motion: reduce) {
          .seller-orb,
          .bottom-menu-text--seller,
          .bottom-menu-text--seller::before { animation: none !important; }
        }

        /* Small phones */
        @media (max-width: 380px) {
          .bottom-menu-icon {
            width: 32px;
            height: 32px;
          }

          .bottom-menu-icon svg {
            width: 18px;
            height: 18px;
          }

          .seller-orb {
            width: 60px;
            height: 60px;
            margin-top: -29px;
            margin-bottom: 6px;
          }

          .bottom-menu-text {
            font-size: 9px;
          }
          .bottom-menu-text--seller {
            font-size: 9px;
            max-width: 80px;
            padding-inline: 6px;
          }
        }
