:root {

  /**
   * colors
   */

   --shopColor: rgb(65,102,245);

   
  /**
   * typography
   */
  

  /**
   * transition
   */


  /**
   * spacing
   */

  

}

/* Reset and Base Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Layout Containers */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
}

.page-container {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 2rem);
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.header-icon {
  width: 24px;
  height: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon:hover {
  color: var(--shopColor);
}

/* Welcome Page Styles */
.welcome-container {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.welcome-illustration {
  width: 100%;
  max-width: 280px;
  height: 250px;
  object-fit: contain;
  margin: 0 auto 2rem;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 3rem;
}

.welcome-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Authentication Styles */
.auth-container {
  padding: 1.5rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.auth-illustration {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--shopColor) 0%, #f5d5d0 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--shopColor);
  box-shadow: 0 0 0 3px rgba(234, 184, 179, 0.1);
}

.form-input::placeholder {
  color: #999;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  padding: 0;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--shopColor);
}

.password-strength {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: #666;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  accent-color: var(--shopColor);
}

.checkmark {
  margin-left: 0.5rem;
}

.forgot-password {
  color: var(--shopColor);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-btn {
  margin: 1rem 0;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1rem 0;
  color: #999;
  font-size: 0.875rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #f0f0f0;
  z-index: 1;
}

.auth-divider span {
  background-color: white;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.btn-social {
  background-color: white;
  border: 2px solid #f0f0f0;
  color: #333;
  margin-bottom: 0.5rem;
}

.btn-social:hover {
  border-color: var(--shopColor);
  background-color: #fafafa;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.auth-footer p {
  color: #666;
  font-size: 0.875rem;
}

.auth-link {
  color: var(--shopColor);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: var(--shopColor);
  color: #333;
}

.btn-primary:hover {
  background-color: #e0a9a3;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: white;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: var(--shopColor);
  background-color: #fafafa;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Search Styles */
.search-container {
  padding: 1rem;
  background-color: white;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--shopColor);
}

.search-input::placeholder {
  color: #999;
}

/* Tabs Styles */
.tabs {
  display: flex;
  padding: 1rem;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  gap: 1rem;
}

.tab {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: #f8f8f8;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab.active {
  background-color: var(--shopColor);
  color: #333;
}

.tab:hover {
  background-color: #f0f0f0;
}

.tab.active:hover {
  background-color: #e0a9a3;
}

/* Section Styles */
.section {
  padding: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Image styles for actual images */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: 0.75rem;
}

.card-text {
  font-size: 0.875rem;
  color: #333;
  font-weight: 500;
}

.card-subtitle {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Product Detail Styles */
.product-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Product image styles for actual images */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-image span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

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

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Radio Group Styles */
.radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.radio-option:hover {
  border-color: var(--shopColor);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option input[type="radio"]:checked + .radio-label {
  background-color: var(--shopColor);
  border-color: var(--shopColor);
}

.radio-option.selected {
  background-color: var(--shopColor);
  border-color: var(--shopColor);
  color: #333;
}

/* Checkbox Group Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-option:hover {
  border-color: var(--shopColor);
  background-color: #fafafa;
}

.checkbox-option input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  accent-color: var(--shopColor);
}

.checkbox-option.selected {
  background-color: #f8f6f6;
  border-color: var(--shopColor);
}

/* Button Row Styles */
.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-row .btn {
  margin-bottom: 0;
}

/* Cart Styles */
.cart-container {
  padding: 1.5rem;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.cart-items {
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.cart-item-description {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

.cart-item-quantity {
  font-size: 0.875rem;
  color: #666;
  margin-left: 1rem;
}

.cart-total {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  text-align: right;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 12px;
}

/* Checkout Styles */
.checkout-container {
  padding: 1.5rem;
}

.checkout-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.checkout-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 12px;
}

.checkout-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.checkout-section-content {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.checkout-summary {
  background-color: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.summary-row:last-child {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Product Rating Styles */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-stars {
  font-size: 1rem;
}

.rating-text {
  font-size: 0.875rem;
  color: #666;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--shopColor);
}

.original-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--shopColor);
  background-color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--shopColor);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: var(--shopColor);
  color: white;
}

.quantity-display {
  font-size: 1.125rem;
  font-weight: 600;
  min-width: 2rem;
  text-align: center;
}

.total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.total-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shopColor);
}

/* Responsive Design */
@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .auth-container {
    padding: 1rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (min-width: 480px) {
  .container {
    max-width: 500px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-row {
    justify-content: space-between;
  }
  
  .btn-row .btn {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .radio-group {
    justify-content: flex-start;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

.btn:active {
  animation: addedToCart 0.3s ease;
}

/* Focus states for accessibility */
.form-group.focused .form-input {
  border-color: var(--shopColor);
  box-shadow: 0 0 0 3px rgba(234, 184, 179, 0.1);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}