::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1063c1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a7ad3;
}

/* Normalize language switcher to match homepage */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 16, 28, 0.85);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(16, 99, 193, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(16, 99, 193, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
  background: rgba(16, 99, 193, 0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 99, 193, 0.2);
}

.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: block;
  flex-shrink: 0;
}

.lang-flag svg {
  width: 20px;
  height: 14px;
  display: block;
}

.lang-switcher-floating {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 999;
}
#products.popular-products-section {
  position: relative;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: transparent;
}

#products.popular-products-section::before {
  content: none;
}

#products.popular-products-section > * {
  position: relative;
  z-index: 1;
}

.popular-products-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 2.25rem;
}

.popular-products-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(16, 99, 193, 0.38);
  border-radius: 999px;
  background: rgba(16, 99, 193, 0.12);
  color: #1063c1;
  box-shadow: 0 0 28px rgba(16, 99, 193, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.popular-products-badge svg {
  width: 1rem;
  height: 1rem;
}

.popular-products-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.popular-products-header h2 span {
  color: #1063c1;
  text-shadow: 0 0 34px rgba(16, 99, 193, 0.38);
}

.popular-products-header p {
  max-width: 640px;
  margin: 0.9rem auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.popular-products-grid {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

.popular-products-col {
  margin-bottom: 0;
}

.popular-product-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.popular-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 99, 193, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46), 0 0 42px rgba(16, 99, 193, 0.16);
}

.popular-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 822 / 1024;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 99, 193, 0.09), rgba(0, 0, 0, 0.18));
}

.popular-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(16, 99, 193, 0.16) 100%);
}

.popular-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.popular-product-card:hover .popular-product-image img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.popular-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
}

.popular-product-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.75;
}

.popular-products-action {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  background: rgba(16, 99, 193, 0.12);
  border: 1px solid rgba(16, 99, 193, 0.42);
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
  box-shadow: 0 0 24px rgba(16, 99, 193, 0.12);
}

.btn-view-all:hover {
  background: #1063c1;
  border-color: #1063c1;
  color: #fff !important;
  gap: 0.75rem;
}

.btn-view-all svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.btn-view-all:hover svg {
  transform: translateX(3px);
}

@media (max-width: 575.98px) {
  .popular-products-section {
    max-width: 100%;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .popular-products-grid {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
  }

  .popular-products-header {
    margin-bottom: 1.65rem;
  }

  .popular-products-header p {
    font-size: 0.92rem;
  }
}
.popular-products-grid {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

.popular-products-col {
  display: flex;
}

.popular-product-card {
  width: 100%;
  max-width: 100%;
}

.popular-product-image,
.product-card-popular .card-img-top {
  width: 100%;
  aspect-ratio: 822 / 1024 !important;
  overflow: hidden;
}

.popular-product-image img,
.product-card-popular .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1600px) {
  #products.popular-products-section .container {
    max-width: 1500px !important;
    margin: 0 auto;
  }
}

@media (min-width: 1900px) {
  #products.popular-products-section .container {
    max-width: 1650px !important;
  }
}

/* Fix Product Card Bottom Layout & Prevent Text Squishing / Truncation */
.product-card-redesign .bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  flex-wrap: wrap;
}

.product-card-redesign .price-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

.product-card-redesign .starting-at {
  font-size: 11.5px !important;
  color: rgba(216, 227, 255, 0.6) !important;
  white-space: nowrap !important;
  word-break: normal !important;
  min-width: max-content !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
}

.product-card-redesign .price-badge {
  padding: 6px 9px !important;
  font-size: 13.5px !important;
  border-radius: 9px !important;
}

.product-card-redesign .card-btn-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: auto;
}

.product-card-redesign .cart-btn,
.product-card-redesign .buy-btn {
  padding: 8px 10px !important;
  font-size: 12px !important;
  gap: 4px !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.product-card-redesign .cart-btn svg,
.product-card-redesign .buy-btn svg {
  width: 14px !important;
  height: 14px !important;
}

/* Sepete Ekle Button Styles (Matching Buy Now button style) */
.product-card-redesign .cart-btn,
.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  background: linear-gradient(
    to bottom,
    #00d2ff 0%,
    #0088cc 46%,
    #005599 100%
  ) !important;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  user-select: none;
}

.product-card-redesign:hover .cart-btn,
.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 24px rgba(0, 210, 255, 0.4);
  color: #ffffff !important;
}

.product-card-redesign .cart-btn svg,
.cart-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Navbar Cart Badge (Image 2 Cart Icon) */
.catalyst-cart {
  position: relative !important;
}

.catalyst-cart .cart-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #00d2ff, #0066ff);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Toast Popup Notification for Adding to Cart */
.elevate-toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 20, 36, 0.94);
  border: 1px solid #00d2ff;
  border-radius: 14px;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.35);
  backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: elevateToastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Sales Notification Icon Interactive Styling */
.sales-notification-shell.is-visible {
  pointer-events: auto !important;
}

.sales-notification-icon {
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease !important;
  user-select: none;
}

.sales-notification-icon:hover {
  transform: scale(1.18);
  color: #00d2ff !important;
  background: rgba(0, 210, 255, 0.15) !important;
  border-color: rgba(0, 210, 255, 0.4) !important;
}

/* Stock Glass Badge - Rounded with Border (Like Image 2) */
.stock-glass-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(16, 99, 193, 0.15);
  border: 1.5px solid rgba(16, 99, 193, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.stock-glass-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
  animation: stockPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes stockPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.6; 
    transform: scale(0.85); 
  }
}

/* Status Badge - Rounded with Border (Like Image 2) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(46, 204, 113, 0.15);
  border: 1.5px solid rgba(46, 204, 113, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.status-badge .indicator {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-color, #4ade80);
  flex-shrink: 0;
}

.status-badge .indicator .pulsating {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.5; 
    transform: scale(0.8); 
  }
}

/* Product Page Status Badge */
.product-page-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(46, 204, 113, 0.15);
  border: 1.5px solid rgba(46, 204, 113, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Updating/Detecting Status Colors - MAVİ YUVARLAK */
.status-badge.updating,
.product-page-status-badge.updating {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.status-badge.updating .indicator,
.product-page-status-badge.updating .indicator {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
}

.status-badge.offline,
.product-page-status-badge.offline {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

.status-badge.offline .indicator,
.product-page-status-badge.offline .indicator {
  background: #e74c3c;
}

/* Dil Değiştirici Stilleri - Homepage Matched Design */
.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(10, 16, 28, 0.85) !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(16, 99, 193, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  flex-shrink: 0 !important;
}

.lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 8px !important;
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  outline: none !important;
  box-shadow: none !important;
}

.lang-btn:hover {
  background: rgba(16, 99, 193, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.lang-btn.active {
  background: rgba(16, 99, 193, 0.3) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(16, 99, 193, 0.2) !important;
}

.lang-flag {
  width: 20px !important;
  height: 14px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.lang-flag svg {
  width: 20px !important;
  height: 14px !important;
  display: block !important;
}

.lang-code {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

@media (max-width: 767px) {
  .lang-switcher {
    gap: 4px !important;
    padding: 3px 5px !important;
  }
  
  .lang-btn {
    padding: 3px 6px !important;
    gap: 4px !important;
  }
  
  .lang-flag {
    width: 18px !important;
    height: 13px !important;
  }
  
  .lang-code {
    font-size: 10px !important;
  }
}
