/*
Theme Name: OnlyStore Custom Theme
Description: Custom WordPress theme for OnlyStore multistore platform
Version: 1.0
Author: OnlyStore Team
*/

/* Additional custom styles that complement Tailwind */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Ensure proper font loading */
body {
  font-family: "DM Sans", system-ui, sans-serif;
}

.font-heading {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #e91e63;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c2185b;
}

/* WCFM compatibility styles */
.wcfm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Ensure mobile responsiveness for WCFM */
@media (max-width: 768px) {
  .wcfm-container {
    padding: 10px;
  }

  .wcfm_menu {
    font-size: 14px;
  }
}

/* Custom button styles for consistency */
.btn-primary {
  background-color: #e91e63;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  background-color: #ff4081;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Adding vendor template specific styles */
/* Vendor Template Styles */
.vendor-hero-gradient {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.vendor-avatar-border {
  border: 4px solid white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vendor-stats-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vendor-nav-active {
  color: #0ea5e9;
  border-bottom: 2px solid #0ea5e9;
  font-weight: 600;
}

.vendor-nav-link {
  color: #6b7280;
  transition: color 0.3s ease;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.vendor-nav-link:hover {
  color: #374151;
}

.product-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-image {
  transition: transform 0.3s ease;
}

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

.review-card {
  background: white;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.star-rating {
  color: #f59e0b;
}

.vendor-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
}

.info-icon-bg {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.contact-form-input {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  background: white;
  color: #374151;
  transition: all 0.3s ease;
}

.contact-form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.contact-submit-btn {
  background: #0ea5e9;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
}

.contact-submit-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

/* Responsive adjustments for vendor template */
@media (max-width: 768px) {
  .vendor-hero-content {
    text-align: center;
  }

  .vendor-stats {
    justify-content: center;
  }

  .vendor-nav {
    overflow-x: auto;
    white-space: nowrap;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .vendor-avatar {
    width: 120px;
    height: 120px;
  }

  .vendor-title {
    font-size: 1.875rem;
  }
}

/* Animation classes for smooth interactions */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

.slide-up {
  animation: slideUp 0.4s ease-out;
}

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

/* Line clamp utility for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
