/*
 * TeestoGo Product Details - Simple Styles
 */

 .teestogo-product-details-component {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Basic Layout */
.product-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Product Image Gallery */
.product-image {
    text-align: center;
    width: 100%;
}

.product-image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.main-image-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

#product-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

#product-main-image.changing {
    opacity: 0.7;
}

/* Thumbnail Gallery */
.image-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
    margin-top: 10px;
}

.thumbnail {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thumbnail img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
}

.thumbnail:hover {
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.thumbnail.active {
    border-color: #ff6600;
    box-shadow: 0 0 0 1px #ff6600;
}

.thumbnail.active img {
    transform: scale(1.05);
}

.no-image {
    padding: 60px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
    text-align: center;
}

/* Prevent any image overflow issues */
.product-image * {
    box-sizing: border-box;
}

.product-image img:not(.thumbnail img):not(#product-main-image) {
    display: none !important;
}

/* Product Info */
.product-info h1 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #333;
}

.product-info p {
    margin: 5px 0;
    color: #666;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 15px 0;
}

.qty-note {
    font-size: 14px;
    font-weight: normal;
    color: #666;
    margin-left: 8px;
}

.description {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

/* Colors */
.colors {
    margin: 20px 0;
}

.colors p {
    margin-bottom: 10px;
    font-weight: bold;
}

.color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.color-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.color-dot:hover {
    border-color: #333;
}

.color-dot.selected {
    border-color: #ff6600;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff6600;
}

.color-note {
    margin-top: 10px !important;
    color: #666 !important;
    font-style: italic;
}

.color-note small {
    font-size: 12px;
}

/* Design Button */
.design-btn {
    background: #ff6600;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}

.design-btn:hover {
    background: #e55a00;
}

/* Error */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .teestogo-product-details-component {
        padding: 15px;
    }
    
    .product-simple {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-info h1 {
        font-size: 20px;
    }
    
    .price {
        font-size: 18px;
    }
    
    .design-btn {
        width: 100%;
        padding: 12px;
    }
    
    .color-dots {
        justify-content: center;
    }
    
    /* Mobile Image Gallery */
    .product-image-gallery {
        gap: 10px;
    }
    
    .main-image-container {
        max-width: 100%;
    }
    
    .image-thumbnails {
        gap: 6px;
        max-width: 100%;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
} 