/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav {
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb span {
    color: #666;
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    padding: 3rem 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #667eea;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Detail */
.product-info-detail {
    padding: 1rem;
}

.product-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.product-rating span {
    color: #666;
    font-size: 0.9rem;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.old-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background-color: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Product Description */
.product-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.product-description p {
    color: #666;
    line-height: 1.8;
}

/* Product Options */
.product-option {
    margin-bottom: 2rem;
}

.product-option h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.color-option-detail:hover {
    background-color: #f8f9fa;
}

.color-option-detail.active {
    border-color: #667eea;
    background-color: #f0f2ff;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.color-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: white;
}

.size-option:hover {
    border-color: #667eea;
    background-color: #f0f2ff;
}

.size-option.selected {
    border-color: #667eea;
    background-color: #667eea;
    color: white;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-selector button:hover {
    border-color: #667eea;
    background-color: #f0f2ff;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.add-to-cart-btn, .wishlist-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wishlist-btn {
    background-color: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.wishlist-btn:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Product Features */
.product-features {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.product-features h3 {
    margin-bottom: 1rem;
    color: #333;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.product-features i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Shipping Info */
.shipping-info {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.shipping-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
}

.shipping-option i {
    color: #28a745;
    font-size: 1.1rem;
    width: 20px;
}

/* Related Products */
.related-products {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: static;
    }
    
    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-header h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn, .wishlist-btn {
        min-width: auto;
    }
    
    .color-options {
        justify-content: center;
    }
    
    .size-options {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 2rem 0;
    }
    
    .product-header h1 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .product-info-detail {
        padding: 0.5rem;
    }
    
    .color-circle {
        width: 30px;
        height: 30px;
    }
    
    .size-option {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-content {
    animation: fadeIn 0.6s ease forwards;
}

/* Zoom effect for main image */
.main-image {
    position: relative;
    overflow: hidden;
}

.main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover::after {
    opacity: 1;
}
