/* Product Details Page Styles */

.product-details-wrapper {
    min-height: 100vh;
    background-color: #f8f8f8;
    padding: 2rem 0;
}

.product-details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--barbie-pink);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--dark-pink);
}

.breadcrumb i {
    font-size: 0.75rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--barbie-pink);
}

.thumbnail.active {
    border-color: var(--dark-pink);
    box-shadow: 0 2px 8px rgba(199, 21, 133, 0.3);
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.product-rating .stars i {
    margin-right: 2px;
}

.rating-text {
    color: #666;
    font-size: 0.95rem;
}

.no-rating {
    color: #999;
    font-size: 0.9rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--barbie-pink);
    margin: 0;
}

.category-badge {
    background: var(--barbie-pink);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-description h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.product-description p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

.stock-info {
    padding: 0.75rem 0;
}

.in-stock {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

.in-stock i {
    margin-right: 0.5rem;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.95rem;
}

.out-of-stock i {
    margin-right: 0.5rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.1rem;
    color: #333;
}

.qty-btn:hover:not(:disabled) {
    background: #e0e0e0;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-controls input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.btn-add-cart {
    background: var(--barbie-pink);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--dark-pink);
    box-shadow: 0 4px 12px rgba(199, 21, 133, 0.3);
}

.btn-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-wishlist {
    background: white;
    color: #333;
    border: 2px solid var(--barbie-pink);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-wishlist:hover {
    background: var(--barbie-pink);
    color: white;
}

.btn-wishlist.in-wishlist {
    background: var(--barbie-pink);
    color: white;
}

.btn-wishlist i {
    font-size: 1.1rem;
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.reviews-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #222;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
}

.review-author i {
    font-size: 1.5rem;
    color: var(--barbie-pink);
}

.review-stars {
    color: #ffc107;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.review-comment {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.no-reviews {
    text-align: center;
    color: #999;
    padding: 2rem 0;
}

/* Related Products */
.related-products {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-products h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #222;
}

.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-products .product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-products .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.15);
}

.related-products .image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.related-products .image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-products .product-card:hover img {
    transform: scale(1.08);
}

.related-products .product-card-info {
    padding: 1rem;
}

.related-products .product-card-info h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-products .product-card-info .price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--barbie-pink);
    margin: 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 67px;
    right: -400px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    transition: right 0.3s ease;
    max-width: 350px;
}

.notification.show {
    right: 20px;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success i {
    color: #28a745;
    font-size: 1.5rem;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error i {
    color: #dc3545;
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .product-actions {
        gap: 0.75rem;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
