/* --- PRODUCT DETAIL PAGE STYLES --- */

.product-wrapper {
    padding: 30px 0 60px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumb i {
    font-size: 12px;
    color: #94a3b8;
}

/* Product Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Image */
.product-image-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 1 / 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

/* Product Info */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-category {
    display: inline-block;
    padding: 6px 16px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
}

.rating-text {
    color: #64748b;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
}

.old-price {
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.discount-badge {
    padding: 6px 12px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.product-description {
    color: #64748b;
    line-height: 1.8;
    font-size: 15px;
}

.product-meta {
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #10b981;
    font-weight: 600;
}

.stock-status i {
    font-size: 18px;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-add-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 14px;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.btn-wishlist:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
    transform: translateY(-2px);
}

.btn-wishlist.active {
    background: #fee2e2;
    color: #ef4444;
    border-color: #ef4444;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
}

.product-tag {
    display: block;
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: 40px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-gallery {
        gap: 10px;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .main-image {
        height: 250px;
    }
}

/* Extra small phones (360px and below) */
@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}












