﻿/* FreettaMart Theme - Main Styles */
/* Marketplace Theme */
.marketplace-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.search-box {
    max-width: 600px;
    margin: 0 auto;
}
.featured-section {
    margin-bottom: 3rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Item Cards */
.item-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    background: white;
}
.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.item-image {
    height: 180px;
    background-color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-content {
    padding: 1rem;
}
.item-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
}
.item-professional {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}
.item-location {
    font-size: 0.875rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.item-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #718096;
}
.star-filled {
    color: #fbbf24;
}

/* Category Cards */
.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}
.category-card:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}
.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.category-name {
    font-weight: bold;
    font-size: 1.1rem;
}
.category-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Professional Cards */
.professional-card {
    text-align: center;
    padding: 1rem;
}
.professional-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #667eea;
}
.verified-badge {
    color: #4299e1;
    font-size: 0.875rem;
}

/* Marketplace Stats */
.marketplace-stats {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}
.stat-label {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
}

/* Category Pages */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}
.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.category-stats {
    font-size: 1.1rem;
    opacity: 0.9;
}
.other-categories {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.category-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s;
}
.category-pill:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}
.category-pill-count {
    background: #e2e8f0;
    color: #718096;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Location Pages */
.location-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}
.location-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.location-stats {
    font-size: 1.1rem;
    opacity: 0.9;
}
.location-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s;
}
.location-pill:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
}
.location-pill-count {
    background: #e2e8f0;
    color: #718096;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}
.map-placeholder {
    background: #f1f5f9;
    border-radius: 8px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #64748b;
}

/* Professional Marketplace */
.professional-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.professional-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1rem;
}
.professional-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.professional-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.professional-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.badge-verified, .badge-featured {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}
.badge-verified {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}
.badge-featured {
    background: #fbbf24;
    color: #78350f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}
.stat-label {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Items Grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Contact & Social */
.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}
.social-link:hover {
    transform: scale(1.1);
}
.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Tab Navigation */
.tab-navigation {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}
.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Review Cards */
.review-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.review-rating {
    color: #fbbf24;
}

/* Empty States */
.empty-state, .empty-catalog, .no-results, .empty-favorites {
    text-align: center;
    padding: 3rem;
    color: #718096;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.filter-section {
    margin-bottom: 1.5rem;
}
.filter-title {
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-size: 1rem;
}
.filter-group {
    margin-bottom: 1rem;
}
.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.price-inputs input {
    flex: 1;
}
.category-list, .location-list {
    max-height: 200px;
    overflow-y: auto;
}
.category-item, .location-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Item Detail View */
.item-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}
.item-gallery {
    margin-bottom: 2rem;
}
.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.thumbnail {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}
.thumbnail.active {
    border-color: #667eea;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.btn-order {
    flex: 1;
}
.professional-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.professional-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.professional-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.contact-info {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.order-form input,
.order-form textarea {
    margin-bottom: 1rem;
}

/* Favorites */
.favorites-header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}
.favorites-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.favorite-item {
    position: relative;
}
.remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.remove-favorite:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Search Results */
.search-header {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.search-filters {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.quick-filters {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.quick-filter-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}
.suggestions {
    margin-top: 2rem;
}
.suggestion-item {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.sort-dropdown {
    max-width: 200px;
}
