/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 1rem;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav a:hover,
.header-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Search */
.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Home Page Styles */
.hero {
    margin-bottom: 3rem;
}

.hero-image-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.features {
    margin-bottom: 3rem;
}

.features h3,
.categories-preview h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #212529;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

.categories-preview {
    margin-bottom: 3rem;
}

.category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.category-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.category-color {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.category-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.category-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Filters */
.filter-container {
    margin-bottom: 2rem;
}

.filter-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #495057;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 48px; /* Touch-friendly */
}

.filter-btn:hover,
.filter-btn:focus {
    background: #f8f9fa;
    border-color: #667eea;
    outline: none;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 1rem;
}

.product-image {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 1rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.product-condition {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.modal-body {
    padding: 2rem;
}

.modal-image-container {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.modal-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.modal-details {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.modal-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.modal-details dt {
    font-weight: 600;
    color: #495057;
}

.modal-details dd {
    color: #6c757d;
}

/* Contact Page Styles */
.founder-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.founder-image {
    text-align: center;
}

.founder-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.founder-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.founder-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #9b59b6, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.founder-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.founder-title {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-bio p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #495057;
}

.founder-bio blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.founder-bio cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: normal;
    font-weight: 600;
}

.contact-info,
.testimonials,
.faq {
    margin-bottom: 3rem;
}

.contact-info h3,
.testimonials h3,
.faq h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #212529;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #212529;
}

.contact-card p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.contact-note {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.5rem !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial p {
    margin-bottom: 1rem;
    color: #495057;
    font-style: italic;
    line-height: 1.6;
}

.testimonial cite {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    font-style: normal;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.faq-item p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #343a40;
    color: #adb5bd;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 140px;
        text-align: center;
    }
    
    .modal {
        padding: 2rem;
    }
    
    .modal-content {
        margin: 4rem auto;
    }
    
    /* Home Page Tablet */
    .hero-image-container {
        height: 300px;
    }
    
    .hero-image-placeholder {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Contact Page Tablet */
    .founder-profile {
        grid-template-columns: 200px 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .founder-image {
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .main {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .sidebar {
        position: sticky;
        top: 2rem;
    }
    
    .search-container,
    .filter-container {
        margin-bottom: 2rem;
    }
    
    .content {
        min-height: 600px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    /* Home Page Desktop */
    .main {
        display: block; /* Override for home page */
    }
    
    .hero-image-container {
        height: 400px;
    }
    
    .hero-image-placeholder {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 400px;
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Page Desktop */
    .founder-profile {
        grid-template-columns: 250px 1fr;
        gap: 4rem;
    }
    
    .founder-image-container {
        width: 250px;
        height: 250px;
    }
    
    .founder-placeholder {
        width: 250px;
        height: 250px;
        font-size: 1.2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

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

/* Hidden utility */
.hidden {
    display: none !important;
}