/* ================================================================
   بۇلاق تور سودا سۇپىسى (Bulaq E-Commerce) - ئاساسىي كۆرۈنمە ئۇسلۇبى
   RTL ماسلاشقان، زامانىۋى، يۇقىرى ئوقۇلۇشچانلىققا ئىگە
   ================================================================ */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --danger-light: #fef2f2;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تۈن ھالىتى (Dark Theme) */
body.dark-mode {
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --bg-main: #0b1120;
  --bg-card: #1e293b;
  --border-color: #334155;
  --border-light: #1e293b;
  --primary-light: #1e3a8a;
  --danger-light: #450a0a;
}

/* نۆللەش ۋە ئاساسىي بەلگىلەر */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* LTR تەڭشەكلىرى (Türkçe ۋە English تىللىرى ئۈچۈن) */
html[dir="ltr"], html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

html[dir="ltr"] .cart-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

html[dir="ltr"] .cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

html[dir="ltr"] .search-category-select {
  border-left: none;
  border-right: 1px solid var(--border-color);
}

html[dir="ltr"] .hero-slide-overlay {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.2) 100%);
}

html[dir="ltr"] .hero-btn i {
  transform: rotate(180deg);
}

html[dir="ltr"] .toast-container {
  left: auto;
  right: 1.5rem;
}

html[dir="ltr"] .toast {
  border-right: none;
  border-left: 4px solid var(--primary-color);
}

html[dir="ltr"] .toast.toast-success {
  border-left-color: var(--success-color);
}

html[dir="ltr"] .toast.toast-error {
  border-left-color: var(--danger-color);
}

/* تىل تاللاش كونۇپكىسى (Language Selector) */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
}

.lang-select-dropdown {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.lang-select-dropdown:hover, .lang-select-dropdown:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* مەخسۇس تىل تاللاش كۆزنىكى (Custom Language Modal Styles) */
.lang-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
  background: transparent;
}

.lang-option-row:hover {
  background: #f1f5f9;
}

.lang-radio-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lang-option-row.active .lang-radio-indicator,
.lang-radio-indicator.checked {
  border-color: #2563eb !important;
}

.lang-option-row.active .lang-radio-indicator::after,
.lang-radio-indicator.checked::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==================== ئۈستۈنكى ئېلان تاختىسى ۋە ئايلانما خەت (Marquee Ticker) ==================== */
.top-announcement {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.92rem;
  padding: 0;
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html[dir="rtl"] .top-announcement {
  direction: rtl !important;
}

html[dir="ltr"] .top-announcement {
  direction: ltr !important;
}

.top-marquee-container {
  width: 100%;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.top-marquee-content {
  display: flex;
  flex-shrink: 0;
  width: max-content;
}

/* ئۇيغۇرچە (RTL) ئۈچۈن تەبىئىي، تەمكىن 65 سېكۇنتلۇق راۋان ئايلىنىش */
html[dir="rtl"] .marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3.5rem;
  padding-left: 3.5rem; /* گۇرۇپپىلار ئارىسىدىكى ئارىلىقنى كاپالەتلەندۈرۈش */
  animation: scrollMarqueeRtl 65s linear infinite;
  will-change: transform;
}

@keyframes scrollMarqueeRtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

/* تۈركچە ۋە ئىنگلىزچە (LTR) ئۈچۈن راۋان ئايلىنىش */
html[dir="ltr"] .marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 3.5rem;
  padding-right: 3.5rem;
  animation: scrollMarqueeLtr 65s linear infinite;
  will-change: transform;
}

@keyframes scrollMarqueeLtr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  direction: rtl; /* خەتلەر ئۇيغۇرچىدا تەبىئىي، ئوڭدىن سولغا ئوقۇلىدۇ */
}

html[dir="ltr"] .marquee-item {
  direction: ltr; /* تۈركچە ۋە ئىنگلىزچىدا سولدىن ئوڭغا */
}

.marquee-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fef08a;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.marquee-badge {
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.marquee-badge.badge-sale {
  background: #ef4444;
}

.marquee-badge.badge-featured {
  background: #10b981;
}

.marquee-badge.badge-package {
  background: #0284c7;
}

.marquee-badge.badge-local {
  background: #f59e0b;
}

.marquee-badge.badge-service {
  background: #8b5cf6;
}

.marquee-badge.badge-insta {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.marquee-badge.badge-charity {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

/* پۇل بىرلىكى تاللىغۇچ (Currency Selector) */
.currency-select-dropdown {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

/* ماركا سۈزگۈچى (Sidebar Brand Filter) */
.brands-sidebar-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.brand-btn-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: var(--transition);
}

.brand-btn-pill:hover, .brand-btn-pill.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .brands-sidebar-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .brand-btn-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }
}

/* مەھسۇلات كارتىسىدىكى ماركا بەلگىسى (Brand Tag on Product Card) */
.product-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  cursor: pointer;
  width: fit-content;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.product-brand-tag:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ==================== نەپىس مىللىي ئۇسلۇبتىكى چەكلىك ۋاقىتلىق ئېتىبار ۋە ھاۋارايى (Flash Sale & Weather) ==================== */
.flash-sale-bar {
  background-color: #09171e;
  background-image: radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
                    radial-gradient(circle at 88% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
                    linear-gradient(135deg, #09171e 0%, #0d2830 50%, #082026 100%);
  color: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 1.6rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(254, 240, 138, 0.2);
  position: relative;
  overflow: hidden;
}

/* 1-قۇر: ماۋزۇ ۋە بەلگە قىسمى */
.flash-sale-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.flash-sale-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 620px;
}

.flash-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  white-space: nowrap;
  background: rgba(245, 158, 11, 0.18);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 7px 22px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 0.2px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  user-select: none;
  margin: 0.15rem 0 0.2rem 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 🌟 1-ئۇسلۇب: ئالتۇن نۇر سىيرىلىپ ئۆتۈش ئۈنۈمى (Shimmer Sweep) */
.flash-sale-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -85%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 35%,
    rgba(254, 240, 138, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmerSweep 3.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

@keyframes shimmerSweep {
  0% {
    left: -85%;
  }
  30%, 100% {
    left: 155%;
  }
}

/* ✨ 3-ئۇسلۇب: سىلىق لەرزان كۆتۈرۈلۈش ۋە چېكىلگەندىكى ئېلاستىكىلىق بېسىلىش (Hover Float & Active Press) */
.flash-sale-badge:hover,
.flash-sale-badge-btn:hover {
  background: rgba(245, 158, 11, 0.34);
  border-color: #fbbf24;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45), 0 0 16px rgba(245, 158, 11, 0.35);
}

.flash-sale-badge:active,
.flash-sale-badge-btn:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

/* چېكىلگەندىكى نۇر دولقۇنى (Click Ripple Wave) */
.badge-click-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.85) 0%, rgba(245, 158, 11, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: badgeRippleAnim 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 1;
}

@keyframes badgeRippleAnim {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(15);
    opacity: 0;
  }
}

.flash-sale-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulseGlow 2s infinite ease-in-out;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.flash-sale-badge span {
  position: relative;
  z-index: 2;
}

.flash-sale-title {
  display: none;
}

.flash-sale-sub {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  margin: 0;
  padding: 0 1.25rem;
  opacity: 0.95;
  letter-spacing: 0.2px;
  max-width: 100%;
}

.flash-sale-icon-wrap {
  display: none;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.55);
    border-color: rgba(251, 191, 36, 0.7);
  }
}

/* 2-قۇر: ۋاقىت ھېسابلىغۇچ */
.flash-sale-clock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 1.6rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 100%;
  position: relative;
  z-index: 2;
  margin: 0.2rem auto 0 auto;
}

.countdown-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.countdown-clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.clock-box {
  background: rgba(15, 23, 42, 0.9);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  min-width: 44px;
  text-align: center;
  font-size: 1.22rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

.clock-unit-label {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.clock-separator {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f59e0b;
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* 3-قۇر: ئاستىنقى قۇر (ئېتىبارلار كۇنۇپكىسى + ھاۋارايى) */
.flash-sale-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.15rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.flash-sale-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.flash-sale-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000000 !important;
}

html[dir="ltr"] .flash-sale-btn i {
  transform: rotate(180deg);
}

/* 🌤️ سول ئاستى بوشلۇقتىكى نەپىس ھاۋارايى مەلۇماتى (Weather Widget) */
.flash-weather-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 0.45rem 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.flash-weather-widget:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.weather-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.weather-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.weather-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.weather-city-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fef08a;
}

.weather-cond-badge {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.weather-temp-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-temp-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.weather-switch-link {
  font-size: 0.68rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.flash-weather-widget:hover .weather-switch-link {
  color: #fbbf24;
}

/* 🌹 ئالاھىدە نۇر چېچىش ھالىتى (Deal Spotlight Card Animation) */
.deal-spotlight-active {
  animation: dealSpotlightPulse 2.5s ease-in-out 2 !important;
  border-color: #f59e0b !important;
  outline: 2px solid #f59e0b !important;
}

@keyframes dealSpotlightPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 25px 6px rgba(245, 158, 11, 0.65);
    transform: translateY(-4px) scale(1.02);
  }
}

/* ==================== لەيلىمە تېز ئالاقە كۇنۇپكىلىرى (Floating Quick Contact Buttons) ==================== */
.floating-contact-wrap {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

html[dir="rtl"] .floating-contact-wrap {
  right: auto;
  left: 1.5rem;
}

.floating-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.45rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  text-decoration: none;
}

.floating-contact-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.floating-btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.floating-btn-whatsapp {
  background: #25d366;
}

.floating-btn-chat {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  cursor: pointer;
}

/* ==================== 💎 بىردىنبىر كەسپىي ئەقىللىق سۈرۈش تاياقچىسى (Single Unified Professional Scrollbar) ==================== */
/* تور كۆرگۈچنىڭ كونا، قوش چىقىپ قالغان سۈرۈش تاياقچىسىنى 100% يوشۇرۇش */
html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* يەككە، كۆركەم، نېپىز ھەم ئەقىللىق سۈرۈش تاياقچىسى */
.smart-edge-scroll-track {
  position: fixed;
  top: 60px;
  bottom: 65px;
  right: 0 !important;
  width: 16px;
  z-index: 1045;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  transition: opacity 0.3s ease;
}

.smart-edge-scroll-thumb {
  width: 3px;
  min-height: 32px;
  border-radius: 4px 0 0 4px !important; /* ئوڭ تەرىپى تەمتۈز قىرغا چاپلىشىدۇ، بەك نېپىز ھەم كىچىك */
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: -1px 0 4px rgba(37, 99, 235, 0.35);
  margin-right: 0 !important;
  padding-right: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.2s ease;
  will-change: transform;
  opacity: 0.6;
}

/* بەت سۈرۈلگەندە ياكى چاشقىنەك كەلگەندە سەل يوغانلاپ كۆرۈنۈش */
.smart-edge-scroll-track.is-scrolling .smart-edge-scroll-thumb,
.smart-edge-scroll-track:hover .smart-edge-scroll-thumb,
.smart-edge-scroll-track:active .smart-edge-scroll-thumb {
  width: 5px;
  opacity: 1;
  box-shadow: -1.5px 0 6px rgba(37, 99, 235, 0.6);
}

#smartEdgeScrollIcon {
  font-size: 0.32rem;
  color: #ffffff;
  opacity: 0.85;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.smart-edge-scroll-track.at-top #smartEdgeScrollIcon {
  transform: rotate(180deg);
}

/* باشقا كۆزنەكلەر ئوچۇق ۋاقىتتا پۈتۈنلەي يوشۇرۇش */
body.cart-drawer-open .smart-edge-scroll-track,
body:has(.cart-overlay.active) .smart-edge-scroll-track,
body:has(.modal-backdrop[style*="display: flex"]) .smart-edge-scroll-track,
body:has(.modal-backdrop[style*="display: block"]) .smart-edge-scroll-track,
body:has(#adminLiveChatBox[style*="display: flex"]) .smart-edge-scroll-track,
body:has(#adminLiveChatBox[style*="display: block"]) .smart-edge-scroll-track {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


.chat-online-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  animation: pulseChatDot 2s infinite;
}

.chat-unread-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 11px;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.6);
  animation: bounceBadge 0.8s infinite alternate ease-in-out;
  z-index: 10;
}

@keyframes bounceBadge {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

@keyframes pulseChatDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.floating-btn-phone {
  background: #2563eb;
}

.floating-contact-tooltip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

html[dir="ltr"] .floating-contact-tooltip {
  right: 60px;
}

html[dir="rtl"] .floating-contact-tooltip {
  left: 60px;
}

.floating-contact-btn:hover .floating-contact-tooltip {
  opacity: 1;
}

/* ئىجتىمائىي تاراتقۇ كۇنۇپكىلىرى (Social Pill Badges) */
.social-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  height: 40px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  text-decoration: none !important;
  user-select: none;
}

.social-pill-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(225, 48, 108, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-pill-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.5);
  filter: brightness(1.08);
}

.social-pill-phone {
  background: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.social-pill-phone:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.social-pill-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.35);
}

.social-pill-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.social-pill-agent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1.5px solid #f59e0b;
  color: #fef08a !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  font-family: inherit;
}

.social-pill-agent:hover {
  background: #f59e0b;
  color: #0f172a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* جانلىق زاكاز چىقىش ئۇقتۇرۇشى (پۈتۈنلەي تاقالدى) */
.live-sales-popup {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  align-items: center;
  gap: 0.75rem;
  z-index: 1030;
  max-width: 350px;
  animation: slideInPopup 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
  cursor: pointer;
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .live-sales-popup {
  left: auto;
  right: 1.5rem;
  direction: rtl;
  text-align: right;
}

.live-sales-popup:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(0, 0, 0, 0.16);
}

.live-sales-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  border: 1.5px solid #f1f5f9;
  flex-shrink: 0;
  background: #ffffff;
}

.live-sales-content {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  padding-right: 26px; /* LTR دە تاقاش كۇنۇپكىسى تېكىست بىلەن مىنىشىپ قالمىسۇن */
}

html[dir="rtl"] .live-sales-content {
  padding-right: 0;
  padding-left: 26px; /* RTL دە تاقاش كۇنۇپكىسى تېكىست بىلەن مىنىشىپ قالمىسۇن */
}

.live-sales-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

html[dir="rtl"] .live-sales-close {
  right: auto;
  left: 8px;
}

.live-sales-close:hover {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
  transform: scale(1.1);
}

@keyframes slideInPopup {
  from { opacity: 0; transform: translateY(25px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== باش تىزىملىك (Navbar — دائىملىق چاپلاشما Fixed Header) ==================== */
.main-navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.25s ease,
              border-color 0.25s ease;
  padding: 0.5rem 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 🌟 بەتنى ئاستىغا سىيرىغاندا ئاپتوماتىك كۆرۈنۈش ئۆزگىرىشى (Scrolled State) */
.main-navbar.is-sticky {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.05) !important;
  border-bottom-color: rgba(226, 232, 240, 0.85) !important;
}

/* تۈن ھالىتى (Dark Mode) دە چاپلاشما بېشى */
body.dark-theme .main-navbar.is-sticky,
html[data-theme="dark"] .main-navbar.is-sticky {
  background-color: rgba(15, 23, 42, 0.94) !important;
  border-bottom-color: rgba(51, 65, 85, 0.75) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 768px) {
  .main-navbar.is-sticky {
    padding: 0.35rem 0 !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12) !important;
  }
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0 1rem;
}

/* دۇكان لوگوسى */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex-shrink: 0;
  order: 0 !important;
  text-decoration: none;
  height: auto;
  min-height: 38px;
  line-height: 1;
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
  margin: 0;
  flex-shrink: 0;
}

.brand-logo .logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid #eab308;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  transition: var(--transition);
}

.brand-logo:hover .logo-img {
  transform: scale(1.05) rotate(-3deg);
}

.brand-store-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}



/* ئىزدەش بۆلىكى */
.search-bar-container {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  transition: var(--transition);
  position: relative;
}

.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  animation: fadeInDown 0.2s ease;
}

.search-autocomplete-dropdown.active {
  display: block;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-suggest-item:last-child {
  border-bottom: none;
}

.search-suggest-item:hover {
  background: rgba(37, 99, 235, 0.08);
}

.search-suggest-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.search-suggest-info {
  flex: 1;
  min-width: 0;
}

.search-suggest-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-suggest-price {
  font-weight: 800;
  color: var(--danger-color);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coupon-copy-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coupon-copy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.search-bar-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: var(--bg-card);
}

.search-category-select {
  border: none;
  background: transparent;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 600;
  border-left: 1px solid var(--border-color);
  cursor: pointer;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.55rem 1rem;
  font-size: 1.02rem;
  color: var(--text-main);
  outline: none;
}

.search-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* باش تىزىملىكتىكى مەشغۇلات كونۇپكىلىرى (تىل، تۈن ھالىتى) */
/* ==================== باش سەرلەۋھىدىكى سول تەرەپ قورال كۇنۇپكىلىرى ==================== */
.nav-actions-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  height: 38px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.nav-actions-minimal .lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.nav-actions-minimal .lang-select-dropdown {
  height: 38px;
  padding: 0 0.85rem;
  gap: 0.45rem;
  border-radius: var(--radius-full, 9999px) !important;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #1e293b);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  box-sizing: border-box;
}

.nav-actions-minimal .lang-select-dropdown:hover {
  border-color: var(--primary-color, #2563eb);
  background: rgba(37, 99, 235, 0.05);
}

.nav-actions-minimal .lang-flag-img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-actions-minimal .theme-toggle-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50% !important;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #1e293b);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.nav-actions-minimal .theme-toggle-btn:hover {
  border-color: var(--primary-color, #2563eb);
  background: rgba(37, 99, 235, 0.08);
}

/* ==================== 📱 ئېكران ئاستى تېز مەشغۇلات تاختىسى (Store Bottom Navigation Bar) ==================== */
.store-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1045;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.09);
  padding: 0.35rem 1rem max(0.45rem, env(safe-area-inset-bottom));
  transition: all 0.3s ease;
}

html[data-theme="dark"] .store-bottom-nav {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.45);
}

.store-bottom-nav-container {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
}

html[dir="ltr"] .store-bottom-nav-container {
  flex-direction: row-reverse;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  color: var(--text-main, #334155);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  flex: 1;
  max-width: 140px;
  position: relative;
  outline: none;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
  color: var(--primary-color, #2563eb);
}

.bottom-nav-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  transition: transform 0.2s ease;
}

.bottom-nav-item:hover .bottom-nav-icon-wrap {
  transform: translateY(-2px);
}

.bottom-nav-orders i {
  color: #0284c7;
}

.bottom-nav-wishlist i {
  color: #f43f5e;
}

.bottom-nav-text {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* مەركىزىي سېۋەت كۇنۇپكىسى (Elevated Highlighted Cart Button) */
.bottom-nav-cart {
  position: relative;
  margin-top: -14px;
}

.bottom-nav-cart-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  border: 3px solid var(--bg-card, #ffffff);
  font-size: 1.25rem;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

html[data-theme="dark"] .bottom-nav-cart-circle {
  border-color: #0f172a;
}

.bottom-nav-cart:hover .bottom-nav-cart-circle {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55);
}

.bottom-nav-cart .bottom-nav-text {
  color: var(--primary-color, #2563eb);
  font-weight: 800;
  margin-top: 4px;
}

/* ھېسابلىغۇچ نۇقتىلىرى (Badge Counters) */
.bottom-nav-item .badge-counter {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card, #ffffff);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .bottom-nav-item .badge-counter {
  border-color: #0f172a;
}

/* بەت ئاستى بوشلۇقى (Body Safe Padding) */
body {
  padding-bottom: 74px !important;
}

/* ==================== باش تىزىملىكتىكى مەشغۇلات كۇنۇپكىلىرى ==================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.2rem 0.4rem;
  padding: 0.2rem 0;
  flex-wrap: nowrap;
}

.nav-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* بۆلگۈچ نېپىز سىزىق */
.nav-group-divider {
  width: 1.5px;
  height: 24px;
  background: var(--border-color, #e2e8f0);
  margin: 0 0.25rem;
  flex-shrink: 0;
  border-radius: 1px;
}

/* بارلىق كۇنۇپكىلارنىڭ ئورتاق ئېگىزلىكى (38px) ۋە نۇقسانسىز تۇخۇمسىمان (Pill) شەكلى */
.nav-action-cart-btn,
.nav-action-wish-btn,
.nav-action-orders-btn,
.lang-select-dropdown,
.theme-toggle-btn {
  height: 38px;
  border-radius: var(--radius-full, 9999px) !important;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #1e293b);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

/* 1. سېۋەت كۇنۇپكىسى (ئاكتىپ زامانىۋى تۈگمە) */
.nav-action-cart-btn {
  padding: 0 0.95rem;
  gap: 0.45rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.nav-action-cart-btn:hover {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-action-cart-btn i {
  font-size: 0.95rem;
  color: #2563eb;
  transition: color 0.2s;
}

.nav-action-cart-btn:hover i {
  color: #ffffff !important;
}

.nav-action-cart-btn .badge-counter {
  position: static;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
  border: 1.5px solid #ffffff;
}

/* 2. ياقتۇرغانلار كۇنۇپكىسى */
.nav-action-wish-btn {
  padding: 0 0.85rem;
  gap: 0.45rem;
}

.nav-action-wish-btn i {
  font-size: 0.92rem;
  color: #f43f5e;
  transition: transform 0.2s;
}

.nav-action-wish-btn:hover {
  background: #fff1f2;
  border-color: #fca5a5;
  color: #e11d48;
  transform: translateY(-1px);
}

.nav-action-wish-btn:hover i {
  transform: scale(1.15);
}

.nav-action-wish-btn .badge-counter {
  position: static;
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

/* 3. زاكازلىرىم كۇنۇپكىسى */
.nav-action-orders-btn {
  padding: 0 0.85rem;
  gap: 0.45rem;
}

.nav-action-orders-btn i {
  font-size: 0.92rem;
  color: #0284c7;
  transition: transform 0.2s;
}

.nav-action-orders-btn:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0284c7;
  transform: translateY(-1px);
}

.nav-action-orders-btn:hover i {
  transform: scale(1.15);
}

/* 4. تىل تاللاش كۇنۇپكىسى */
.lang-selector-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-select-dropdown {
  padding: 0 0.85rem;
  gap: 0.45rem;
}

.lang-select-dropdown:hover {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
  transform: translateY(-1px);
}

.lang-flag-img {
  width: 20px;
  height: 14px;
  border-radius: 2.5px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.nav-lang-arrow {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-right: 1px;
}

/* 5. تۈن ھالىتى كۇنۇپكىسى */
.theme-toggle-btn {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50% !important;
  font-size: 0.95rem;
}

.theme-toggle-btn:hover {
  border-color: #f59e0b;
  color: #d97706;
  background: #fefce8;
  transform: translateY(-1px);
}

/* ==================== تەشۋىقات سىيرىلمىسى (Hero Banner) ==================== */
.hero-section {
  padding: 1.5rem 0;
}

.hero-slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.55) 60%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 600px;
  padding: 2.5rem;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-color);
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.hero-nav-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot-indicator.active {
  background: #ffffff;
  width: 30px;
}

/* ==================== مۇلازىمەت ئالاھىدىلىكلىرى (Features Row) ==================== */
.features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.feature-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.feature-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================== تۈرلەر تىزىملىكى (Categories Grid) ==================== */
.categories-section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary-color);
  border-radius: 4px;
}

.category-pills-wrap {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}

.category-pill:hover, .category-pill.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* ==================== تاۋارلار كۆرگەزمىسى قىسمى (Product Catalog) ==================== */
.catalog-layout {
  display: block;
  margin-bottom: 3.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* يان سۈزگۈچ تاختىسى */
.catalog-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 85px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mobile-sidebar-toggle-bar {
  display: none;
}

.catalog-sidebar-inner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.catalog-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.filter-checkbox-label input {
  cursor: pointer;
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

.filter-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-display-text {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 700;
}

/* تاۋارلار سۈزۈش تاياقچىسى */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.results-count-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-select-wrap select {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  color: var(--text-main);
  cursor: pointer;
}

/* تاۋارلار تور كۆرسىتىلىشى (Product Grid) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* تاۋار كارتىسى (Product Card) */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ئەڭ ئۆلچەملىك دۇنياۋى كۋادرات نىسبەت */
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* قەتتىي كېسىلىپ ياكى سۇزۇلۇپ كەتمەيدۇ، بارلىق رازمېردا 100% تولۇق كۆرۈنىدۇ */
  object-position: center;
  padding: 0.65rem;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.product-badge {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-sale {
  background: var(--danger-color);
}

.badge-hot {
  background: var(--accent-color);
}

.badge-new {
  background: var(--primary-color);
}

.product-wish-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-wish-btn:hover, .product-wish-btn.active {
  color: var(--danger-color);
  background: #ffffff;
  transform: scale(1.1);
}

.product-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.product-title:hover {
  color: var(--primary-color);
}

.product-category-row {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.product-category-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-main);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: inline-block;
  transition: all 0.2s ease;
}

.product-category-tag:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.product-merchant-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.merchant-tag-trusted {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.merchant-tag-new {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.product-agent-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
}

.product-agent-badge.compact {
  font-size: 0.72rem;
  padding: 1.5px 6px;
  border-radius: 5px;
}

.product-agent-badge.platform {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.merchant-tag-gold {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.merchant-tag-diamond {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.merchant-tag-official {
  background: #fdf2f8;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}

.merchant-tag-custom {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.rating-count {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* ئامبار زاپاس ھالىتى (Stock info) */
.product-stock-bar {
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  line-height: 1.35;
}

.stock-status-in,
.stock-status-low,
.stock-status-out,
.sales-count {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stock-status-in {
  color: var(--success-color);
  font-weight: 700;
  font-size: 0.8rem;
}

.stock-status-low {
  color: var(--danger-color);
  font-weight: 800;
  font-size: 0.8rem;
}

.stock-status-out {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.8rem;
}

.sales-count {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* باھا بۆلىكى */
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--danger-color);
}

.original-price {
  font-size: 1.02rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* تاۋار كارتىسى كونۇپكىلىرى */
.product-card-actions {
  display: block;
  width: 100%;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1rem;
  min-height: 42px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-add-cart span {
  display: inline-block;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-add-cart:disabled {
  background: var(--border-color);
  color: var(--text-light);
  cursor: not-allowed;
}

.btn-quick-view {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-quick-view:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ==================== سېۋەت پۈركۈش تارتما كۆزنىكى (Cart Drawer) ==================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0; /* RTL نۇقتىسىدا سولدىن ياكى ئوڭدىن تارتىلىدۇ */
  width: 100%;
  max-width: 420px;
  height: 100%;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 2201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header-title {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: var(--transition);
}

.btn-close-drawer:hover {
  color: var(--danger-color);
}

.cart-body {
  flex: 1 1 auto;
  min-height: 0; /* ھەل قىلغۇچ تەڭشەش: سېۋەت ئىچى ئېشىپ كەتسە سىلىق سىيرىلايدۇ ۋە پۇت قىسمى قىسىلىپ قالمايدۇ */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem;
}

/* سېۋەت ئىچىدىكى مال قۇتىسى */
.cart-item {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 3px;
  box-sizing: border-box;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.cart-item-price {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--danger-color);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-main);
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 0.95rem;
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-input {
  width: 42px;
  height: 32px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-remove-item:hover {
  opacity: 0.7;
}

/* يەتكۈزۈش ھەققى پىرسەنت كۆرسەتكۈچى */
.free-shipping-bar {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.free-shipping-text {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
}

.shipping-progress {
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-footer {
  flex-shrink: 0; /* ھەر ۋاقىت پۈتۈن تەپسىلاتلار ۋە زاكاز كۇنۇپكىسىنىڭ كۆرۈنۈشىگە كاپالەتلىك قىلىدۇ */
  padding: 0.95rem 1.25rem;
  padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.cart-summary-line.total {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.55rem;
  margin-top: 0.45rem;
  margin-bottom: 0.25rem;
}

.cart-total-price {
  color: var(--danger-color);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
}

/* ==================== كۆزنەكلەر (Modals) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition);
  position: relative;
}

#quickViewModal .modal-content {
  max-width: 780px;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.quick-view-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
  max-height: 400px;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.85rem;
  box-sizing: border-box;
}

.quick-view-media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain; /* قەتتىي كېسىلىپ كەتمەيدۇ، ئەسلى شەكلىنى ساقلايدۇ */
  object-position: center;
  display: block;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.quick-view-media:hover img {
  transform: scale(1.03);
}

.quick-view-details {
  display: flex;
  flex-direction: column;
}

.quick-view-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1.02rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==================== ئۇقتۇرۇش تاياقچىسى (Toast Notification) ==================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem; /* RTL دا كۆز ئالدىدا روشەن كۆرۈنىدۇ */
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 4px solid var(--primary-color);
}

.toast.toast-success {
  border-right-color: var(--success-color);
}

.toast.toast-error {
  border-right-color: var(--danger-color);
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== ئاستى پۇت قىسمى (Footer) ==================== */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.2fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.footer-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.footer-brand-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-store-name {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.footer-domain-badge {
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-brand-desc {
  color: #94a3b8;
  line-height: 1.75;
  font-size: 0.92rem;
  margin: 0 0 1.25rem 0;
}

.footer-brand-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  height: 40px;
  box-sizing: border-box;
}

.social-pill-instagram {
  background: rgba(244, 63, 94, 0.12);
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.social-pill-instagram:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #fb7185;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.social-pill-merchant {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  cursor: pointer;
}

.social-pill-merchant:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.social-pill-medicine,
.social-pill-friendly {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  cursor: pointer;
  text-decoration: none;
}

.social-pill-medicine:hover,
.social-pill-friendly:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.friendly-link-item:hover {
  transform: translateY(-2px);
  border-color: #10b981 !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-column-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-column a,
.footer-links a {
  text-decoration: none !important;
}

.footer-column a:hover,
.footer-links a:hover {
  color: #ffffff;
  text-decoration: none !important;
  padding-right: 4px;
}

/* ==================== ئالاقىلىشىش تىزىملىكى ۋە سىيرىلما كۆزنىكى (Footer Contact List & Sliding Accordion) ==================== */
.footer-contact-master-card {
  cursor: pointer;
  user-select: none;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto !important;
}

.footer-contact-master-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-contact-master-card:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.footer-contact-master-card.is-open {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.92) 100%);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-accordion-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(56, 189, 248, 0.16) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-contact-master-card:hover .footer-accordion-icon-box,
.footer-contact-master-card.is-open .footer-accordion-icon-box {
  transform: scale(1.1) rotate(-6deg);
  background: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.footer-accordion-text-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0.15rem;
  text-align: center !important;
  align-items: center !important;
  justify-content: center;
}

html[dir="rtl"] .footer-accordion-text-box,
html[dir="ltr"] .footer-accordion-text-box {
  text-align: center !important;
  align-items: center !important;
}

.footer-accordion-main-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.footer-accordion-sub-title {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.footer-accordion-chevron-box {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-accordion-chevron {
  font-size: 0.85rem;
  color: #94a3b8;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}

.footer-contact-master-card:hover .footer-accordion-chevron,
.footer-contact-master-card.is-open .footer-accordion-chevron {
  color: #38bdf8;
}

.footer-accordion-content {
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.footer-accordion-content.is-collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.footer-about-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

@media (min-width: 769px) {
  .footer-contact-master-card,
  .footer-accordion-header {
    cursor: default !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 0 1.2rem 0 !important;
    justify-content: flex-start !important;
    max-width: none !important;
    transform: none !important;
  }
  .footer-contact-master-card::before {
    display: none !important;
  }
  .footer-contact-master-card .footer-accordion-chevron-box,
  .footer-contact-master-card .footer-accordion-action-pill {
    display: none !important;
  }
  .footer-contact-master-card .footer-accordion-sub-title {
    display: none !important;
  }
  .footer-contact-master-card .footer-accordion-icon-box {
    margin-inline-end: 0.5rem;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem !important;
  }
  .footer-contact-master-card .footer-accordion-main-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
  }
  .footer-column-title {
    justify-content: flex-start !important;
    margin-bottom: 1.2rem !important;
  }
  .footer-accordion-action-pill {
    display: none !important;
  }
  .footer-accordion-content.is-collapsed {
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact-btn-item {
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.footer-contact-btn-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transform: translateX(-5px);
}

html[dir="ltr"] .footer-contact-btn-item:hover {
  transform: translateX(5px);
}

.footer-contact-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer-contact-btn-item:hover .footer-contact-icon-box {
  transform: scale(1.15) rotate(-4deg);
}

.footer-contact-text-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0.15rem;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.footer-contact-label {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.footer-contact-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  direction: ltr;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.footer-contact-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #64748b;
  opacity: 0.6;
  transition: all 0.25s ease;
}

html[dir="ltr"] .footer-contact-arrow {
  transform: rotate(180deg);
}

.footer-contact-btn-item:hover .footer-contact-arrow {
  color: #38bdf8;
  opacity: 1;
  transform: translateX(-4px);
}

html[dir="ltr"] .footer-contact-btn-item:hover .footer-contact-arrow {
  transform: translateX(4px) rotate(180deg);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==================== پۇت قىسمىدىكى چىقىم كارتىلىرى ۋە بىخەتەرلىك كاپالىتى (Footer Trust & Payment Bar) ==================== */
.footer-trust-payment-bar {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s ease;
}

.trust-badge-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-payment-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
}

.payment-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
}

.payment-card-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-brand-name {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
}

.troy-pill {
  background: #1e3a8a;
  color: #ffffff;
}

.troy-logo-text {
  font-family: "Arial Black", Impact, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  color: #00d2ff;
  letter-spacing: 1px;
}

/* ==================== ماسلىشىشچانلىق (Comprehensive Responsive Design for Mobile & Tablet) ==================== */

@media (max-width: 992px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .catalog-sidebar {
    position: static;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
  }
  .mobile-sidebar-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    background: var(--bg-card);
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
  }
  .mobile-sidebar-toggle-bar:hover {
    background: #f1f5f9;
  }
  .mobile-filter-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
  }
  .mobile-filter-title-wrap i {
    color: var(--primary-color);
  }
  .mobile-filter-action-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .mobile-filter-badge {
    font-size: 0.78rem;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
  }
  .mobile-toggle-chevron {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
  }
  .catalog-sidebar.is-expanded .mobile-toggle-chevron {
    transform: rotate(180deg);
  }
  .catalog-sidebar-inner {
    display: none;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .catalog-sidebar.is-expanded .catalog-sidebar-inner {
    display: block;
    animation: fadeIn 0.25s ease;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  /* ئۈستۈنكى تاياقچە ۋە خەتلەرنىڭ سۈرئىتى/چوڭلۇقى */
  .top-announcement {
    height: 36px;
    font-size: 0.85rem;
  }
  html[dir="rtl"] .marquee-group {
    gap: 2rem;
    padding-left: 2rem;
    animation-duration: 55s;
  }
  html[dir="ltr"] .marquee-group {
    gap: 2rem;
    padding-right: 2rem;
    animation-duration: 55s;
  }
  .marquee-item {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  .marquee-badge {
    font-size: 0.72rem;
    padding: 1px 7px;
  }
  .marquee-text {
    font-size: 0.85rem;
  }

  /* باش تىزىملىك (Navbar) */
  .main-navbar {
    padding: 0.45rem 0;
  }
  .nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    justify-content: space-evenly;
    padding: 0 0.85rem;
    gap: 0.45rem;
    row-gap: 0.45rem;
  }

  /* 1-قۇر: دۇكان لوگوسى (ئوڭدا) */
  .brand-logo {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    height: auto;
    min-height: 36px;
    line-height: 1;
    flex-shrink: 0;
  }
  .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #eab308;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
  .brand-store-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0;
  }

  /* 1-قۇر: سول تەرەپ قورال كۇنۇپكىلىرى (تىل تاللاش + تۈن ھالىتى، يانداش دەل تەكشى بوشلۇق) */
  .nav-actions-minimal {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    height: 36px;
    line-height: 1;
    flex-shrink: 0;
  }
  .nav-actions-minimal .lang-selector-wrap {
    height: 36px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
  }
  .nav-actions-minimal .lang-select-dropdown {
    height: 36px;
    padding: 0 0.55rem;
    font-size: 0.8rem;
    gap: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
  }
  .nav-actions-minimal .lang-flag-img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
  }
  .nav-actions-minimal .theme-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* 2-قۇر: تولۇق كەڭلىكتىكى ئىزدەش رامكىسى */
  .search-bar-container {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.2rem 0.35rem;
    box-sizing: border-box;
  }
  .search-category-select {
    max-width: 112px;
    padding: 0.4rem 0.35rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .search-input {
    min-width: 0;
    flex: 1;
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
  }
  .search-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  /* چوڭ تەشۋىقات بەلبېغى (Hero Slider) */
  .hero-slider-container {
    height: 310px;
    border-radius: var(--radius-lg);
  }
  .hero-content {
    padding: 1.25rem 1.25rem 2rem;
    max-width: 95%;
  }
  .hero-tag {
    font-size: 0.75rem;
    padding: 2px 10px;
    margin-bottom: 0.45rem;
  }
  .hero-title {
    font-size: 1.28rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
  }
  .hero-subtitle {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    color: #e2e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-btn {
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }
  .hero-nav-dots {
    bottom: 0.75rem;
    left: 1.25rem;
    transform: none;
    gap: 0.4rem;
    z-index: 10;
  }
  .dot-indicator {
    width: 8px;
    height: 8px;
  }
  .dot-indicator.active {
    width: 22px;
  }

  /* چەكلىك ۋاقىت ئېتىبارى (Flash Sale Responsive) */
  .flash-sale-bar {
    padding: 1.4rem 1.25rem;
    gap: 1rem;
    border-radius: 16px;
    align-items: center;
    text-align: center;
  }
  .flash-sale-top-row {
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .flash-sale-text-wrap {
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    width: 100%;
  }
  .flash-sale-badge {
    padding: 7px 20px;
    font-size: 0.92rem;
    margin: 0.1rem 0;
  }
  .flash-sale-sub {
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: center;
    padding: 0 0.85rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .flash-sale-clock-row {
    width: 100%;
    max-width: 330px;
    justify-content: center;
    gap: 1.15rem;
    padding: 0.65rem 1rem;
    margin: 0.2rem auto 0 auto;
  }
  .clock-box {
    min-width: 36px;
    padding: 0.35rem 0.5rem;
    font-size: 1.05rem;
  }
  .flash-sale-bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
  }
  .flash-sale-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.84rem;
  }
  .flash-weather-widget {
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
  }
  .weather-icon-badge {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
  .weather-city-name {
    font-size: 0.78rem;
  }
  .weather-temp-value {
    font-size: 0.84rem;
  }

  /* تاۋارلار كاتالوگى (Product Grid - ئىككى بۆلەكلىك تېلېفون كۆرۈنۈشى) */
  .product-grid, #productsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .product-card-thumb {
    height: auto;
    padding-top: 100%;
    aspect-ratio: 1 / 1;
  }
  .product-card-body {
    padding: 0.75rem;
  }
  .product-title {
    font-size: 0.92rem;
    height: 2.5rem;
    -webkit-line-clamp: 2;
  }
  .current-price {
    font-size: 1.15rem;
  }
  .original-price {
    font-size: 0.82rem;
  }
  .product-card-actions {
    display: block;
    width: 100%;
  }
  .btn-add-cart {
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    gap: 0.45rem;
    border-radius: var(--radius-sm);
  }
  .btn-add-cart span {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  /* مەھسۇلاتنى تېز كۆرۈش كۆزنىكى (Quick View Modal on Mobile) */
  #quickViewModal .modal-content {
    width: 95%;
    max-width: 95vw;
    margin: 0 auto;
    max-height: 88vh;
    border-radius: var(--radius-lg);
  }
  .quick-view-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .quick-view-media {
    height: 260px;
    max-height: 280px;
    min-height: 180px;
    background: #ffffff;
    padding: 0.5rem;
  }
  .quick-view-media img {
    height: 100%;
    max-height: 260px;
    object-fit: contain;
  }
  .quick-view-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .quick-view-actions .qty-control-wrap {
    height: 42px;
  }
  .quick-view-actions .btn-add-cart {
    height: 42px;
    min-height: 42px;
  }

  /* ئالاھىدىلىكلەر / كاپالەتلەر (Features Grid) */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .feature-item {
    padding: 0.85rem;
  }

  /* سەھىپە تۈرلىرى (Categories) */
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.65rem;
  }
  .category-card {
    padding: 0.85rem 0.5rem;
  }
  .category-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  .category-name {
    font-size: 0.85rem;
  }

  /* سېۋەت رامكىسى (Cart Drawer) */
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  /* تېز ئالاقە لەيلىمە كۇنۇپكىلىرى */
  .floating-contact-wrap {
    bottom: 5.5rem;
    gap: 0.6rem;
    z-index: 1040;
  }
  html[dir="rtl"] .floating-contact-wrap {
    left: 1rem;
    right: auto;
  }
  html[dir="ltr"] .floating-contact-wrap {
    right: 1rem;
    left: auto;
  }
  .floating-contact-btn {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  /* سېۋەت ياكى كۆزنەك ئوچۇق ۋاقتىدا لەيلىمە كۇنۇپكا خەتلەرنى ۋە باھانى توسۇۋالماسلىقى كېرەك */
  body.cart-drawer-open .floating-contact-wrap,
  body.cart-drawer-open .floating-lucky-wheel-btn,
  body:has(.cart-overlay.active) .floating-contact-wrap,
  body:has(.cart-overlay.active) .floating-lucky-wheel-btn,
  body:has(.modal-backdrop[style*="display: flex"]) .floating-contact-wrap,
  body:has(.modal-backdrop[style*="display: flex"]) .floating-lucky-wheel-btn,
  body:has(.modal-backdrop[style*="display: block"]) .floating-contact-wrap,
  body:has(.modal-backdrop[style*="display: block"]) .floating-lucky-wheel-btn,
  body:has(#adminLiveChatBox[style*="display: block"]) .floating-lucky-wheel-btn,
  body:has(#adminLiveChatBox[style*="display: flex"]) .floating-lucky-wheel-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.8) !important;
  }

  /* سېتىلىش ئۇقتۇرۇشى (Live Sales Popup) */
  .live-sales-popup {
    bottom: 5.8rem;
    max-width: 320px;
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
  html[dir="rtl"] .live-sales-popup {
    right: 0.85rem !important;
    left: auto !important;
  }
  html[dir="ltr"] .live-sales-popup {
    left: 0.85rem !important;
    right: auto !important;
  }

  /* ئاستى قىسمى (Footer) */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  .footer-brand-header {
    justify-content: center;
    margin-bottom: 0.85rem;
  }
  .footer-brand-title-wrap {
    align-items: center;
    text-align: center;
  }
  .footer-brand-desc {
    max-width: 92%;
    margin: 0 auto 1.25rem auto;
    text-align: center;
    line-height: 1.7;
    font-size: 0.9rem;
  }
  .footer-brand-actions {
    justify-content: center;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
  }
  .footer-brand-actions .social-link-pill {
    flex: 1;
    min-width: 140px;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
    height: 40px;
  }
  .footer-contact-master-card {
    max-width: 360px;
    width: 100%;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .footer-column-title {
    max-width: 360px;
    margin: 0 auto 0.65rem auto !important;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center !important;
    text-align: center;
  }
  .footer-column-title-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .footer-rates-box,
  .footer-about-list,
  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 360px;
    margin: 0.25rem auto 0 auto;
  }
  .footer-contact-item {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 0.85rem;
  }

  .main-navbar {
    padding: 0.4rem 0;
  }
  .nav-wrapper {
    justify-content: space-around;
    justify-content: space-evenly;
    gap: 0.4rem;
    row-gap: 0.4rem;
    padding: 0 0.75rem;
  }
  .brand-logo {
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    height: auto;
    min-height: 34px;
    flex-shrink: 0;
  }
  .logo-img {
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex-shrink: 0;
  }
  .brand-store-name {
    font-size: 0.98rem;
  }
  .nav-actions-minimal {
    height: 34px;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
  }
  .nav-actions-minimal .lang-selector-wrap {
    height: 34px;
  }
  .nav-actions-minimal .lang-select-dropdown {
    height: 34px;
    padding: 0 0.45rem;
    font-size: 0.76rem;
  }
  .nav-actions-minimal .theme-toggle-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.82rem;
  }
  .search-category-select {
    max-width: 105px;
    padding: 0.35rem 0.25rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 0.35rem;
    padding: 0.35rem 0.15rem;
    margin: 0.25rem 0 0.15rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .currency-select-dropdown,
  .lang-select-dropdown,
  .nav-action-cart-btn,
  .nav-action-wish-btn,
  .nav-action-orders-btn,
  .nav-action-track-btn {
    height: 36px;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .currency-select-dropdown {
    padding: 0 0.5rem;
  }
  .lang-select-dropdown {
    padding: 0 0.55rem;
    gap: 0.3rem;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.9rem;
    padding: 0;
  }
  .nav-action-cart-btn {
    padding: 0 0.65rem;
    gap: 0.3rem;
  }
  .nav-action-wish-btn,
  .nav-action-orders-btn,
  .nav-action-track-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50% !important;
    justify-content: center;
  }
  .nav-action-cart-btn .nav-cart-text,
  .nav-action-wish-btn .nav-cart-text,
  .nav-action-orders-btn .nav-cart-text,
  .nav-action-track-btn .nav-cart-text,
  .lang-select-dropdown .nav-lang-text {
    display: none;
  }
  .nav-action-cart-btn i,
  .nav-action-wish-btn i,
  .nav-action-orders-btn i,
  .nav-action-track-btn i {
    font-size: 0.95rem;
  }

  .hero-slider-container {
    height: 290px;
  }
  .hero-content {
    padding: 1rem 1rem 1.85rem;
    max-width: 100%;
  }
  .hero-title {
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }
  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }
  .hero-btn {
    padding: 0.4rem 0.95rem;
    font-size: 0.82rem;
  }
  .hero-nav-dots {
    bottom: 0.65rem;
    left: 1rem;
    transform: none;
  }

  /* 2 بالداقلىق تېخىمۇ ئىخچام كارتىلار */
  .product-grid, #productsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .product-card-thumb {
    height: auto;
    padding-top: 100%;
    aspect-ratio: 1 / 1;
  }
  .product-card-body {
    padding: 0.6rem 0.5rem;
  }
  .product-category-tag, .product-brand-tag {
    font-size: 0.7rem;
    padding: 1px 5px;
  }
  .product-title {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .current-price {
    font-size: 1rem;
  }
  .product-card-actions {
    display: block;
    width: 100%;
  }
  .btn-add-cart {
    width: 100%;
    min-height: 35px;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    gap: 0.35rem;
    border-radius: var(--radius-sm);
  }
  .btn-add-cart span {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* مودال كۆزنەكلەر (Modals on Mobile) */
  .modal-content {
    max-width: 95%;
    width: 95%;
    max-height: 92vh;
    border-radius: var(--radius-md);
    margin: 0 auto;
  }
  .modal-header {
    padding: 0.75rem 1rem;
  }
  .modal-body {
    padding: 0.85rem;
  }
  .modal-title {
    font-size: 1.12rem;
  }
  .quick-view-media {
    height: 220px;
    max-height: 240px;
    min-height: 160px;
    background: #ffffff;
    padding: 0.4rem;
  }
  .quick-view-media img {
    height: 100%;
    max-height: 220px;
    object-fit: contain;
  }

  .clock-box {
    min-width: 32px;
    padding: 0.25rem 0.45rem;
    font-size: 0.95rem;
  }
}

/* ==================== 🔐 پەقەت باشقۇرغۇچىنىڭ تېلېفون ۋە كومپيۇتېرىدىلا كۆرۈنىدىغان كۇنۇپكا ==================== */
.admin-secret-nav-btn {
  display: none !important;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #facc15 !important;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  border: 1.5px solid #eab308;
  white-space: nowrap;
}
.admin-secret-nav-btn i {
  color: #eab308;
  font-size: 0.92rem;
}
.admin-secret-nav-btn:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.admin-floating-badge {
  display: none !important;
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto !important;
  z-index: 99999;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #fbbf24 !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(234, 179, 8, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.admin-floating-badge i {
  font-size: 1.05rem;
  color: #eab308;
}
.admin-floating-badge:hover {
  background: #1e293b;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 28px -5px rgba(0, 0, 0, 0.6), 0 0 0 2.5px rgba(234, 179, 8, 0.95);
}

@media (max-width: 640px) {
  .admin-floating-badge {
    bottom: 84px;
    right: 14px;
    left: auto !important;
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1.5px rgba(234, 179, 8, 0.7);
  }
}

.bottom-nav-admin {
  display: none !important;
}
.bottom-nav-admin i {
  color: #f59e0b;
}
.header-admin-btn {
  display: none !important;
  color: #f59e0b !important;
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.header-admin-btn:hover {
  color: #d97706 !important;
  transform: scale(1.1);
}

/* Category Icon Palette */
.category-icon-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
}

.icon-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-pick-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

.icon-pick-btn.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
}

/* ==================== نەق مەيدان پېرېۋوت باھاسى كۆزنىكى (Live Exchange Rates Footer) ==================== */
.footer-rates-column {
  padding-top: 0;
  margin-top: 0;
}
@media (max-width: 768px) {
  .footer-rates-column {
    padding-top: 0;
  }
}

.footer-rates-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
}

.rate-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  transition: all 0.25s ease;
}

.rate-card-usd {
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.rate-card-usd:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.12);
}

.rate-card-eur {
  border: 1px solid rgba(192, 132, 252, 0.22);
}
.rate-card-eur:hover {
  border-color: rgba(192, 132, 252, 0.5);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 12px rgba(192, 132, 252, 0.12);
}

.rate-card-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rate-currency-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.icon-usd {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.icon-eur {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.rate-currency-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

.rate-currency-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.rate-card-val-wrap {
  text-align: left;
  direction: ltr;
}

.rate-card-usd .rate-val {
  font-size: 1.12rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
}

.rate-card-eur .rate-val {
  font-size: 1.12rem;
  font-weight: 900;
  color: #c084fc;
  line-height: 1.2;
}

.rate-trend-label {
  font-size: 0.68rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1px;
}

.rate-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.rate-update-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #cbd5e1;
  white-space: nowrap;
  user-select: none;
}

.btn-refresh-rates {
  background: none;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-refresh-rates:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ratePulse 2s infinite;
}
@keyframes ratePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==================== ❤️ ياقتۇرغانلار ۋە زاكازلار كونۇپكىلىرى ==================== */

.nav-action-wish-btn .badge-counter {
  position: static;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-right: 2px;
}

.btn-whatsapp-instant:hover {
  background: #1ebc59 !important;
  transform: translateY(-1px);
}

.btn-move-wish-cart:hover {
  background: #1d4ed8 !important;
  transform: scale(1.05);
}

.btn-remove-wish:hover {
  background: #fecdd3 !important;
  color: #e11d48 !important;
  transform: scale(1.05);
}

/* ==================== 🚚 زاكاز ئىز قوغلاش تىزىق ئۈنۈمى ==================== */
.track-timeline::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.track-step.active .track-step-circle {
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
}

.track-step.current .track-step-circle {
  animation: trackPulse 1.8s infinite;
}

@keyframes trackPulse {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

@media (max-width: 768px) {
  #orderTrackModal .modal-content {
    margin: 0.75rem !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem 1rem !important;
  }
  
  .track-step-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }

  .track-timeline::before {
    top: 16px;
    left: 20px;
    right: 20px;
  }

  .track-step div {
    font-size: 0.72rem !important;
  }
}

/* ==================== 💳 زامانىۋىي چىقىم كارتىلىرى ۋە ئۇسلۇبلىرى ==================== */
.payment-method-option {
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-method-option:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#cardPaymentDetails,
#havalePaymentDetails,
#whatsappPayNotice {
  animation: fadeInDownPay 0.25s ease-out;
}

@keyframes fadeInDownPay {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#btnCopyIban:hover {
  background: #166534 !important;
  transform: scale(1.02);
}

#btnCopyIban:active {
  transform: scale(0.98);
}

/* ==================== 💬 ئالىي باشقۇرغۇچى بىۋاسىتە پاراڭ ساندۇقى (Live Chat Box) ==================== */
.admin-live-chat-box {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 540px;
  max-height: calc(100vh - 7rem);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

html[dir="ltr"] .admin-live-chat-box {
  left: auto;
  right: 1.5rem;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-box-header {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-avatar-wrap {
  position: relative;
}

.chat-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
}

.chat-status-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0369a1;
}

.chat-header-titles {
  display: flex;
  flex-direction: column;
}

.chat-header-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.chat-header-status {
  font-size: 0.72rem;
  color: #e0f2fe;
  margin-top: 2px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-action-btn-clean {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.chat-action-btn-clean:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.chat-action-btn-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chat-action-btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-persistent-notice {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.35;
  flex-shrink: 0;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
  word-break: break-word;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

html[dir="rtl"] .chat-bubble.customer {
  align-self: flex-start;
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-bubble.admin {
  align-self: flex-end;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[dir="rtl"] .chat-bubble.admin {
  align-self: flex-end;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

.chat-bubble-author {
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chat-bubble.admin .chat-bubble-author {
  color: #0284c7;
}

.chat-bubble.customer .chat-bubble-author {
  color: #e0f2fe;
}

.chat-bubble-time {
  font-size: 0.66rem;
  margin-top: 0.3rem;
  opacity: 0.8;
  text-align: left;
}

html[dir="rtl"] .chat-bubble-time {
  text-align: left;
}

.chat-quick-chips {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.chat-chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-chip-btn:hover {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.chat-input-area {
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}

.chat-identity-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.25s ease;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chat-identity-banner.guest-mode {
  background: #f8fafc;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

.chat-identity-banner.buyer-mode {
  background: #f0fdf4;
  color: #15803d;
  border-bottom-color: #86efac;
}

.chat-identity-banner.agent-mode {
  background: #fefce8;
  color: #a16207;
  border-bottom-color: #fde047;
}

.chat-identity-main {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.chat-identity-title {
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-identity-desc {
  font-size: 0.68rem;
  opacity: 0.9;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.chat-identity-pill {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.guest-mode .chat-identity-pill {
  background: #e2e8f0;
  color: #475569;
}

.buyer-mode .chat-identity-pill {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.agent-mode .chat-identity-pill {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #facc15;
}

.chat-customer-info-bar {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.chat-small-input {
  flex: 1;
  min-width: 0;
  width: 50%;
  box-sizing: border-box;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.chat-small-input:focus {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.12);
}

.chat-small-input.input-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.chat-input-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.84rem;
  outline: none;
  line-height: 1.4;
  height: 48px;
  box-sizing: border-box;
}

.chat-textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.chat-send-btn {
  width: 44px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.chat-bottom-wa-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  padding-top: 2px;
}

.chat-wa-direct {
  color: #16a34a;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-wa-direct:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .admin-live-chat-box {
    bottom: 4.8rem;
    left: 0.65rem;
    right: 0.65rem;
    width: auto;
    height: 72vh;
  }
}

/* ================================================================
   📱 ئالدى دۇكان تېلېفون سەزگۈرلۈكى ۋە كۇنۇپكا راۋانلىقى (Mobile Storefront Enhancements)
   ================================================================ */
@media (max-width: 768px) {
  /* مەھسۇلات سېتىۋېلىش ۋە سېۋەتكە سېلىش كۇنۇپكىلىرى بارماققا تېگىشلىك ئۆلچەم */
  .btn-add-cart,
  .btn-buy-now,
  .btn-checkout {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }

  /* خېرىدار چىقىم قىلىش ۋە ئادرېس تولدۇرۇش جەدۋىلىدىكى كىرگۈزۈش رامكىلىرى */
  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    font-size: 16px !important; /* iOS Zoom نىڭ ئالدىنى ئېلىش */
    height: 46px !important;
  }

  .checkout-form textarea {
    height: auto !important;
  }

  /* بارلىق كۆزنەك (Modal) تېلېفون رازمېرىغا ماس كېلىش */
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100vw - 1rem) !important;
  }
}

@media (max-width: 480px) {
  /* تېلېفوندا كىچىك ئېكران مەھسۇلات باھاسى ۋە نامى */
  .product-card .product-title {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .product-price-current {
    font-size: 1.15rem !important;
  }

  /* ئۈستۈنكى ئايلانما خەۋەر قۇرى */
  .top-marquee-content {
    font-size: 0.8rem !important;
  }
}

/* ================================================================
 * 🛡️ رەسىملەرنى چۈشۈرۈۋېلىش ۋە كۆچۈرۈۋېلىشتىن كۈچلۈك قوغداش (Image Anti-Theft Protection)
 * ================================================================ */

/* 1. بارلىق رەسىملەرنىڭ چەكمە، سۆرەش ۋە تېلېفون مەزمۇن تىزىملىكى (Resmi indir / Resmi kopyala) نى پۈتۈنلەي چەكلەش */
img, 
.product-card-thumb img, 
.quick-view-media img,
.hero-slider-img,
.deal-product-img {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none !important; /* 🚫 تېلېفوندا ۋە كومپيۇتېردا رەسىمگە ئۇزۇن باسقاندا 'Resmi indir' / 'Resmi kopyala' چىقىشىنى پۈتۈنلەي تاقايدۇ */
}

/* 2. تاۋار كارتىسى ۋە تەپسىلات كۆزنىكىنىڭ رەسىم قاچىسى بېسىشنى نورمال قوبۇل قىلىدۇ */
.product-card-thumb,
.quick-view-media {
  position: relative !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* 3. سۈزۈك قوغداش پەردىسى (Transparent Shield Layer) - رەسىمنىڭ ئۈستىگە قۇرۇلۇپ سۆرەش ياكى ساقلاشنى توسىدۇ */
.image-shield-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
  pointer-events: auto;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* 4. نەپىس سۈرەت قوغداش لەۋھەسى (🛡️ Teklimakan.com قوغداش بەلگىسى) */
.image-watermark-badge,
.product-card-thumb .image-watermark-badge,
.quick-view-media .image-watermark-badge {
  display: none !important;
}

.image-protection-watermark {
  position: absolute !important;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.76) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.4px;
  pointer-events: none;
  z-index: 5;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

.image-protection-watermark i {
  color: #60a5fa !important;
  font-size: 0.78rem;
}

/* 5. مەھسۇلات ئۇلانمىسىنى ھەمبەھىرلەش كۇنۇپكىسى */
.btn-share-product {
  width: 100%;
  min-height: 42px;
  margin-top: 0.65rem;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share-product:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* 🛒 سېتىش ئۇسۇلى تاللاش كۇنۇپكىلىرى */
.sales-method-btn {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sales-method-btn:hover {
  border-color: #93c5fd !important;
  background-color: #f8fafc !important;
  transform: translateY(-1px);
}

.sales-method-btn:has(input:checked) {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

/* ==================== 🎡 ئامەت چاقى لەيلىمە تۈگمىسى (Floating Lucky Wheel) ==================== */
.floating-lucky-wheel-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 996;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #8b5cf6 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  padding: 7px 14px 7px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35), 0 0 16px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  font-family: inherit;
  animation: luckyWheelPulse 3s infinite ease-in-out;
}

html[dir="rtl"] .floating-lucky-wheel-btn {
  right: 1.5rem;
  left: auto;
  direction: rtl;
}

html[dir="ltr"] .floating-lucky-wheel-btn {
  left: 1.5rem;
  right: auto;
  direction: ltr;
}

.floating-lucky-wheel-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.5), 0 0 22px rgba(245, 158, 11, 0.6);
}

.lucky-wheel-icon-wrap {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  animation: wheelIconSpin 12s linear infinite;
}

.lucky-wheel-btn-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  line-height: 1.2;
}

.lucky-wheel-btn-title {
  font-weight: 900;
  font-size: 0.92rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.lucky-wheel-btn-sub {
  font-size: 0.72rem;
  color: #fef08a;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes luckyWheelPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes wheelIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==================== ⚡ كۈندىلىك تالاش-تارتىش تاۋارلىرى رېشاتكىسى (Flash Sale Shelf) ==================== */
.flash-sale-badge-btn {
  cursor: pointer;
}

.flash-sale-badge-btn.is-active {
  background: rgba(245, 158, 11, 0.38) !important;
  border-color: #fde047 !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.55), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

@keyframes flashShelfFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-sale-products-shelf {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.flash-sale-products-shelf.is-open {
  animation: flashShelfFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flash-sale-product-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  text-align: right;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.flash-sale-product-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.25);
}

.flash-sale-badge-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  z-index: 3;
}

.flash-sale-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.flash-sale-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.flash-sale-product-card:hover .flash-sale-card-img-wrap img {
  transform: scale(1.06);
}

.flash-sale-card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  line-height: 1.35;
}

.flash-sale-card-title:hover {
  color: #f59e0b;
}

.flash-sale-card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.flash-sale-price-current {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
}

.flash-sale-price-old {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.flash-sale-btn-add {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s;
  width: 100%;
}

.flash-sale-btn-add:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .flash-sale-products-shelf {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 0.85rem !important;
  }
  .flash-sale-product-card {
    padding: 0.45rem;
    border-radius: 10px;
  }
  .flash-sale-badge-corner {
    top: 6px;
    right: 6px;
    font-size: 0.64rem;
    padding: 1px 5px;
  }
  .flash-sale-card-img-wrap {
    border-radius: 8px;
    margin-bottom: 0.4rem;
  }
  .flash-sale-card-img-wrap img {
    padding: 5px;
  }
  .flash-sale-card-title {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
  }
  .flash-sale-card-prices {
    gap: 0.3rem;
    margin-bottom: 0.4rem;
  }
  .flash-sale-price-current {
    font-size: 0.95rem;
  }
  .flash-sale-price-old {
    font-size: 0.7rem;
  }
  .flash-sale-btn-add {
    padding: 0.38rem 0.45rem;
    font-size: 0.72rem;
    border-radius: 6px;
    gap: 0.25rem;
  }

  .floating-lucky-wheel-btn {
    bottom: 74px;
    padding: 6px 10px 6px 8px;
  }
  html[dir="rtl"] .floating-lucky-wheel-btn {
    right: 12px;
    left: auto;
  }
  html[dir="ltr"] .floating-lucky-wheel-btn {
    left: 12px;
    right: auto;
  }
  .lucky-wheel-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }
  .lucky-wheel-btn-title {
    font-size: 0.82rem;
  }
  .lucky-wheel-btn-sub {
    font-size: 0.68rem;
  }
}

/* ==================== 📬 سۇپا ئىچى زاكاز ۋە ئۇقتۇرۇش ساندۇقى (Customer Order Inbox) ==================== */
.inbox-tab-btn {
  position: relative;
  transition: all 0.25s ease;
}
.inbox-tab-btn:hover {
  color: #0284c7 !important;
}
.inbox-tab-btn.active {
  color: #0284c7 !important;
  border-bottom: 2.5px solid #0284c7 !important;
}
.header-inbox-btn:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}
@keyframes badgePop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.inbox-counter-badge {
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== 🚀 ئايلانما ئېلان تاختىسى سۈكۈتتىكى تەبىئىي ھالىتى (Default Natural Flow) ==================== */
.hero-section {
  position: relative !important;
  transform: none !important;
  opacity: 1 !important;
  width: 100%;
}

.hero-section-spacer,
.hero-sticky-close-btn {
  display: none !important;
}

/* ==================== 🛍️ زامانىۋى ئۇپۇق سىيرىلما راكلار (Trendyol Style Shelves) ==================== */
.showcase-shelves-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 1.25rem 0 2rem;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.showcase-shelf {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  grid-column: 1 / -1 !important;
  margin: 1.5rem 0 0.85rem !important;
}

.product-grid > .showcase-shelf:first-child,
#productsGrid > .showcase-shelf:first-child {
  margin-top: 0.25rem !important;
}

@media (max-width: 768px) {
  .showcase-shelf {
    margin: 1.15rem 0 0.55rem !important;
  }
  .product-grid > .showcase-shelf:first-child,
  #productsGrid > .showcase-shelf:first-child {
    margin-top: 0 !important;
  }
}

.showcase-shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.showcase-shelf-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.showcase-shelf-link {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f97316;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.showcase-shelf-link:hover {
  color: #ea580c;
  transform: translateX(-3px);
}

.showcase-shelf-track-wrapper {
  position: relative;
  width: 100%;
}

/* 🛍️ تاۋار سىيرىلما راكى ئىككى تەرەپ لەيلىمە سىيرىلغۇچلىرى (Floating Carousel Nav - Non Blocking) */
.shelf-nav-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  user-select: none;
  touch-action: manipulation;
  opacity: 1;
  pointer-events: auto;
}

.shelf-nav-btn:hover {
  background: #ffffff;
  color: #ea580c;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.25), 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: #fdba74;
}

.shelf-nav-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.shelf-nav-btn.nav-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.shelf-nav-left, .shelf-nav-next {
  left: -18px;
}

.shelf-nav-right, .shelf-nav-prev {
  right: -18px;
}

@media (min-width: 1024px) {
  .shelf-nav-left, .shelf-nav-next {
    left: -22px;
  }
  .shelf-nav-right, .shelf-nav-prev {
    right: -22px;
  }
}

@media (max-width: 768px) {
  .shelf-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
    top: 36%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  }
  .shelf-nav-left, .shelf-nav-next {
    left: -6px;
  }
  .shelf-nav-right, .shelf-nav-prev {
    right: -6px;
  }
}

@media (max-width: 480px) {
  .shelf-nav-btn {
    width: 29px;
    height: 29px;
    font-size: 0.72rem;
    top: 35%;
  }
  .shelf-nav-left, .shelf-nav-next {
    left: -4px;
  }
  .shelf-nav-right, .shelf-nav-prev {
    right: -4px;
  }
}

body.dark-mode .shelf-nav-btn {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(51, 65, 85, 0.85);
  color: #f1f5f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

body.dark-mode .shelf-nav-btn:hover {
  background: #334155;
  color: #fb923c;
  border-color: #f97316;
}

.showcase-shelf-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0 0.85rem;
  scrollbar-width: none;
}

.showcase-shelf-track::-webkit-scrollbar {
  display: none;
}

/* 🛍️ Trendyol Style Card */
.shelf-product-card {
  flex: 0 0 144px;
  width: 144px;
  max-width: 152px;
  min-width: 136px;
  scroll-snap-align: start;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  user-select: none;
  direction: rtl;
  text-align: right;
}

@media (min-width: 480px) {
  .shelf-product-card {
    flex: 0 0 165px;
    width: 165px;
    max-width: 175px;
  }
}

@media (min-width: 768px) {
  .shelf-product-card {
    flex: 0 0 185px;
    width: 185px;
    max-width: 200px;
  }
}

.shelf-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #fed7aa;
}

.shelf-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8fafc;
}

.shelf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shelf-product-card:hover .shelf-card-img {
  transform: scale(1.05);
}

.shelf-card-wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 3;
}

.shelf-card-wish-btn:hover {
  transform: scale(1.15);
  color: #e11d48;
}

.shelf-card-wish-btn.active {
  color: #e11d48;
}

.shelf-card-wish-btn.active i {
  font-weight: 900;
}

/* 🎯 High-Converting Strip Badge */
.shelf-card-strip {
  direction: ltr !important;
  unicode-bidi: isolate;
  width: 100%;
  height: 25px;
  line-height: 25px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
  letter-spacing: 0.2px;
}

.shelf-card-strip.strip-green {
  background: #059669;
}

.shelf-card-strip.strip-pink {
  background: #e11d48;
}

.shelf-card-strip.strip-blue {
  background: #0284c7;
}

.shelf-card-strip.strip-amber {
  background: #d97706;
}

.shelf-card-body {
  padding: 0.65rem 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.35rem;
}

.shelf-card-brand {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem;
  direction: rtl;
  text-align: right;
  width: 100%;
  overflow: hidden;
}

.shelf-card-brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-card-brand .verified-icon {
  color: #0284c7;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.shelf-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin: 0.15rem 0 0;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.5em;
  direction: rtl;
  text-align: right;
}

.shelf-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #f59e0b;
  direction: rtl;
  margin-top: 0.2rem;
}

.shelf-card-rating .rating-count {
  color: #64748b;
  font-size: 0.68rem;
}

.shelf-card-rating .cam-icon {
  color: #94a3b8;
  font-size: 0.68rem;
  margin-right: 2px;
}

.shelf-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.15rem;
  direction: rtl;
  text-align: right;
}

.shelf-card-price {
  font-size: 1.05rem;
  font-weight: 900;
  color: #e11d48;
}

.shelf-card-old-price {
  font-size: 0.76rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.shelf-card-add-btn {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.36rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shelf-card-add-btn:hover {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

/* Dark Mode Adjustments */
body.dark-mode .showcase-shelf {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.dark-mode .shelf-product-card {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .shelf-card-brand {
  color: #f8fafc;
}

body.dark-mode .shelf-card-title {
  color: #cbd5e1;
}

body.dark-mode .shelf-card-thumb-wrap {
  background: #020617;
}

body.dark-mode .shelf-card-wish-btn {
  background: rgba(30, 41, 59, 0.95);
  border-color: #475569;
  color: #cbd5e1;
}

body.dark-mode .shelf-card-add-btn {
  background: rgba(249, 115, 22, 0.15);
  border-color: #f97316;
  color: #fb923c;
}

body.dark-mode .shelf-card-add-btn:hover {
  background: #f97316;
  color: #ffffff;
}

/* ==================== 🤝 تەكلىماكان خەير-ساخاۋەت فوندى ئۇسلۇبلىرى (Charity Fund 5%) ==================== */
.footer-charity-notice-bar {
  margin: 1.5rem 0 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.28) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  transition: all 0.3s ease;
}

.footer-charity-notice-bar:hover {
  border-color: rgba(52, 211, 153, 0.6);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.footer-charity-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-charity-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.footer-charity-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.footer-charity-texts {
  min-width: 0;
}

.footer-charity-texts strong {
  display: block;
  color: #ecfdf5;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.footer-charity-texts p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-charity-btn {
  background: #059669;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0.5rem 1.15rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-charity-btn:hover {
  background: #10b981;
  color: #ffffff !important;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .footer-charity-notice-bar {
    padding: 0.85rem 1rem;
  }
  .footer-charity-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .footer-charity-left {
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer-charity-texts strong {
    font-size: 0.92rem;
    line-height: 1.45;
  }
  .footer-charity-texts p {
    font-size: 0.8rem;
    line-height: 1.55;
  }
  .footer-charity-btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
  }
}

/* Quick View Charity Badge */
.quick-view-charity-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  color: #065f46;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quick-view-charity-badge:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
  transform: translateY(-1px);
}

.quick-view-charity-badge strong {
  color: #047857;
}

.charity-arrow-hint {
  font-size: 0.76rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.quick-view-charity-badge:hover .charity-arrow-hint {
  transform: translateX(-3px);
  opacity: 1;
}

/* Cart Charity Row */
.cart-charity-row {
  margin-top: 0.65rem;
  margin-bottom: 0.5rem;
}

.cart-charity-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  color: #15803d;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cart-charity-badge:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cart-charity-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.cart-charity-text {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

/* Dark Mode Support for Charity Elements */
body.dark-mode .charity-trust-inner {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-color: #059669;
}

body.dark-mode .charity-trust-title {
  color: #6ee7b7;
}

body.dark-mode .charity-trust-desc {
  color: #a7f3d0;
}

body.dark-mode .quick-view-charity-badge {
  background: #064e3b;
  border-color: #059669;
  color: #a7f3d0;
}

body.dark-mode .quick-view-charity-badge strong {
  color: #6ee7b7;
}

body.dark-mode .cart-charity-badge {
  background: #064e3b;
  border-color: #059669;
  color: #a7f3d0;
}





