/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 15px;
}

.lang-btn {
  padding: 6px 12px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.lang-btn:hover {
  border-color: #ee4266;
  color: #ee4266;
}

.lang-btn.active {
  background: #ee4266;
  border-color: #ee4266;
  color: white;
}

/* Toggle Button Style */
.lang-toggle-btn {
  padding: 8px 16px;
  border: 2px solid #ee4266;
  background: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #ee4266;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(238, 66, 102, 0.2);
}

.lang-toggle-btn:hover {
  background: #ee4266;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 66, 102, 0.3);
}

.lang-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(238, 66, 102, 0.2);
}

/* Translation Loading Indicator */
.translation-loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  display: none;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.translation-loading .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ee4266;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.translation-loading span {
  font-size: 16px;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RTL Support */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .site-navbar .site-navigation .site-menu {
  flex-direction: row-reverse;
}

.rtl .row {
  direction: rtl;
}

.rtl .text-left {
  text-align: right !important;
}

.rtl .text-right {
  text-align: left !important;
}

.rtl .ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.rtl .mr-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}

.rtl .float-left {
  float: right !important;
}

.rtl .float-right {
  float: left !important;
}

.rtl .product-actions {
  flex-direction: row-reverse;
}

.rtl .cart-item {
  text-align: right;
}

.rtl .btn-group {
  flex-direction: row-reverse;
}

.rtl input,
.rtl textarea,
.rtl select {
  text-align: right;
}

.rtl .form-group label {
  text-align: right;
}

.rtl .modal-footer {
  flex-direction: row-reverse;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
  .language-switcher {
    margin: 10px 0;
  }
  
  .lang-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .translation-loading {
    padding: 15px 25px;
  }
  
  .translation-loading .spinner {
    width: 25px;
    height: 25px;
  }
  
  .translation-loading span {
    font-size: 14px;
  }
}
