/* Product Detail Page Styles */
.product-detail {
    margin-top: 90px;
    padding: 2rem 0 4rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-image-section {
    position: relative;
}

.product-image-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-info-section h1 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.product-description {
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.download-section {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.download-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.download-section p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.download-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Upload Section */
.upload-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.upload-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upload-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Color Variants */
.color-variants {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.color-variants h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.color-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    transform: scale(1.2);
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.color-option.active .color-swatch {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color), 0 2px 8px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .product-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-info-section h1 {
        font-size: 2rem;
    }
    
    .upload-section {
        padding: 2rem 1.5rem;
    }
    
    .color-swatch {
        width: 40px;
        height: 40px;
    }
}