/* Main Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: 80px;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Modern Product Layout */
.product-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1400px;
}

.product-main {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Category Path */
.category-path {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.category-path a {
    color: #6366f1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.category-path a:hover {
    color: #4f46e5;
}

/* Product Title */
.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product Images */
.product-images {
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
}

.main-image {
    aspect-ratio: 16/9;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.thumbnail.active {
    border-color: #6366f1;
    transform: translateY(-2px);
}

/* User Card */
.user-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: #f1f5f9;
}

/* Buttons */
.exchange-btn, .message-btn, .report-btn, .view-products-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.exchange-btn {
    background: #6366f1;
    color: white;
}

.exchange-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.message-btn {
    background: #f8fafc;
    color: #1f2937;
}

.message-btn:hover {
    background: #f1f5f9;
}

/* Description */
.description {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    line-height: 1.8;
    color: #4b5563;
}

.description h2 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .user-card {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 640px) {
    .product-main {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ... Copy all other modal styles ... */

/* Media Queries */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 350px;
    }

    .user-card {
        position: static;
        margin-top: 30px;
    }

    .product-title {
        font-size: 2em;
    }
}

/* Related Products Section */
.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.related-products h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.related-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 1.5rem;
}

.related-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-user {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}