/* Custom Products Styles */

/* Custom products section styling */
.custom-product-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-product-card .product-title {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.custom-product-card .product-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.custom-product-card .product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e44d26;
    margin-bottom: 1rem;
}

/* Product image/preview area */
.product-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.custom-product-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* SVG-specific styling to increase size */
.custom-product-image[src*=".svg"] {
    min-width: 200px;
    min-height: 200px;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Make SVGs more visible on different backgrounds */
.custom-product-image[src*=".svg"] path,
.custom-product-image[src*=".svg"] rect,
.custom-product-image[src*=".svg"] circle,
.custom-product-image[src*=".svg"] ellipse,
.custom-product-image[src*=".svg"] polygon {
    vector-effect: non-scaling-stroke;
}

.design-variants {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.design-variants label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.design-variants select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}

/* Product customization options */
.product-customization {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .product-customization {
        grid-template-columns: 1fr 1fr;
    }
}

.customization-option {
    margin-bottom: 1rem;
}

.customization-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.customization-option select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
}

/* Price and add to cart section */
.product-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Custom tag for cart items */
.custom-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background-color: #e44d26;
    border-radius: 3px;
    margin-right: 0.5rem;
}

/* Custom products note in cart */
.custom-products-note {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 4px solid #e44d26;
}

.custom-products-note p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

.custom-products-note i {
    color: #e44d26;
    margin-right: 0.5rem;
}

/* Cafepress details in order confirmation */
.cafepress-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f3f9ff;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.cafepress-details h4 {
    color: #2980b9;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.cafepress-details p {
    color: #555;
    margin: 0.5rem 0;
}

/* Responsive layout */
@media (min-width: 992px) {
    .custom-product-card {
        flex-direction: row;
        gap: 2rem;
    }

    .product-preview {
        flex: 1;
        max-width: 40%;
    }

    .product-info {
        flex: 1;
        max-width: 60%;
    }
}

/* Dark background support for previews */
.product-image-container.dark-background {
    border: 1px solid #ddd;
}

.custom-product-image.dark-background {
    filter: brightness(1.2) contrast(1.1);
}

/* SVG styling for dark/light backgrounds */
.custom-product-image path,
.custom-product-image rect,
.custom-product-image circle,
.custom-product-image ellipse,
.custom-product-image polygon {
    transition: fill 0.3s ease;
}

.dark-background .custom-product-image[src*=".svg"] {
    /* Increase visibility of SVGs on dark backgrounds */
    filter: brightness(1.3);
}

/* Loading animation for previews */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-product-image {
    animation: fadeIn 0.5s ease;
} 