/* Product Detail Page Styles */
.product-detail {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Detail Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.breadcrumb span {
    color: #2d3748;
    font-weight: 600;
}

/* Product Image Section */
.product-image-section {
    position: sticky;
    top: 2rem;
}

.main-image {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

/* Product Info Section */
.product-info-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.product-info-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.category {
    background: #e6f7ff;
    color: #1890ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #91d5ff;
}

.featured-tag {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #744210;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #faf089;
}

/* Product Price */
.product-price {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    display: block;
}

/* Product Description */
.product-description {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.product-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* Product Actions */
.product-actions {
    margin: 2.5rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-to-cart-form {
    flex: 1;
    min-width: 200px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #096dd9, #0050b3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* Product Features */
.product-features {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateX(5px);
    background: #edf2f7;
}

.feature-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

/* Responsive Design */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-section {
        position: static;
    }
    
    .product-info-section {
        padding: 2rem;
    }
    
    .product-info-section h1 {
        font-size: 2rem;
    }
    
    .price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .product-info-section {
        padding: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .product-info-section h1 {
        font-size: 1.75rem;
    }
    
    .price {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-info-section {
        padding: 1rem;
    }
    
    .product-info-section h1 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-grid > * {
    animation: fadeInUp 0.6s ease-out;
}

.product-image-section {
    animation-delay: 0.1s;
}

.product-info-section {
    animation-delay: 0.2s;
}

/* Loading state for images */
.main-image {
    position: relative;
    overflow: hidden;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
    z-index: 1;
}

.main-image.loaded::before {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus states for accessibility */
.btn:focus,
.breadcrumb a:focus {
    outline: 3px solid rgba(24, 144, 255, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-info-section {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .main-image,
    .btn,
    .feature {
        transition: none;
    }
    
    .product-detail-grid > * {
        animation: none;
    }
}