:root {
    --primary-color: #4a6fdc;
    --secondary-color: #f0f2f5;
    --text-color: #333;
    --light-text: #777;
    --border-color: #ddd;
    --success-color: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.product-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 0.5rem;
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.product-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-image-container img:hover {
    transform: scale(1.03);
}

.product-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.product-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #555;
}

.product-meta {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.meta-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.quantity-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.quantity-container label {
    margin-right: 1rem;
    font-weight: 500;
}

.quantity-selector {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 80px;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background-color: #3a5bbf;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    min-width: 200px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-out-of-stock {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    flex: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.modal-checkmark {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.seller-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.seller-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.seller-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.seller-link {
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    text-decoration: none;
}

.back-button:hover {
    color: var(--primary-color);
}

.back-button i {
    margin-right: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        height: 350px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-outline {
        width: 100%;
    }
}