/* Profile/Login Styles */
.profile-container {
  position: relative;
  margin-left: 20px;
  display: inline-block;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #ffbe33;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  background-image: url('../images.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

.login-btn:hover {
  border-color: #e6a832;
  transform: scale(1.05);
}

.login-btn i {
  display: none;
}

.profile-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: #ffbe33;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
}

.profile-btn:hover {
  background: #e6a832;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 190, 51, 0.3);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffbe33;
  object-fit: cover;
  transition: all 0.3s ease;
}

.cart-overlay {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #ffbe33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.cart-overlay:hover {
  background: #e6a832;
  transform: scale(1.1);
}

.cart-overlay i {
  font-size: 12px;
}

.cart-counter {
  position: absolute;
  top: -12px;
  right: -8px;
  background: transparent;
  color: #e74c3c;
  border-radius: 50%;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn:hover .profile-avatar {
  border-color: #e6a832;
  transform: scale(1.05);
}

.profile-menu {
  position: absolute;
  top: 50px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #e9ecef;
  z-index: 1000;
  overflow: hidden;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #ffbe33, #e6a832);
  color: white;
}

.menu-profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info div:first-child {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.profile-info div:last-child {
  font-size: 14px;
  opacity: 0.9;
}

.profile-menu-divider {
  height: 1px;
  background: #e9ecef;
  margin: 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.profile-menu-item:hover {
  background: #f8f9fa;
  color: #ffbe33;
  text-decoration: none;
}

.profile-menu-item.logout {
  color: #dc3545;
}

.profile-menu-item.logout:hover {
  background: #fff5f5;
  color: #dc3545;
}

/* Login Modal Styles */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.login-modal {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
  margin-bottom: 24px;
}

.login-modal-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.login-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.login-modal-close:hover {
  background: #f8f9fa;
  color: #495057;
}

.login-modal-body {
  padding: 0 24px 24px;
}

.login-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 8px;
}

.login-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.login-link.active {
  color: #ffbe33;
  font-weight: 600;
}

.login-link:hover {
  color: #ffbe33;
  background: rgba(255, 190, 51, 0.1);
}

.login-separator {
  color: #dee2e6;
  font-size: 14px;
  margin: 0 4px;
}

.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ffbe33;
  box-shadow: 0 0 0 3px rgba(255, 190, 51, 0.1);
}

#register-form .row {
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 0;
}

#register-form .row .col-md-6 {
  padding-left: 8px;
  padding-right: 8px;
}

#register-form .row + .row {
  margin-top: 16px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #ffbe33;
  border-color: #ffbe33;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password, .terms-link {
  color: #ffbe33;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover, .terms-link:hover {
  text-decoration: underline;
}

.login-btn-primary {
  width: 100%;
  padding: 14px;
  background: #ffbe33;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn-primary:hover {
  background: #e6a832;
  transform: translateY(-1px);
}

.login-modal-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e9ecef;
}

.login-modal-footer p {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 16px;
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.google-btn:hover {
  border-color: #db4437;
  color: #db4437;
}

.facebook-btn:hover {
  border-color: #4267B2;
  color: #4267B2;
}

@media (max-width: 768px) {
  .profile-menu {
    width: 250px;
    right: -10px;
  }

  .login-modal {
    width: 95%;
    margin: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  #register-form .row {
    margin-left: 0;
    margin-right: 0;
  }

  #register-form .row .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 16px;
  }

  #register-form .row .col-md-6:last-child {
    margin-bottom: 0;
  }

  .social-login {
    flex-direction: column;
  }
}






