/* Product Page Styles */
.product-page-header {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.header-container {
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 100px;
    padding: 30px;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-category {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.product-page-container {
    margin-bottom: 100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
}

.product-gallery {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
}

.product-details {
    padding: 20px;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-category {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.product-price-container {
    margin-bottom: 20px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
}

.product-sale-price {
    color: #dc3545;
}

.product-price-strike {
    font-size: 1.5rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-stock-quantity {
    font-size: 1rem;
    margin-bottom: 15px;
}

.cart-status {
    font-size: 1rem;
    color: #007bff;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center; /* Align items vertically */
}

.add-to-cart-btn {
    flex-grow: 1;
    font-size: 1.2rem;
    padding: 10px 20px;
    text-transform: uppercase;
}

/* New styles for the favorite button */
.favorite-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.favorite-icon i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.favorite-icon:hover {
    background-color: #dc3545;
    color: #fff;
}

.favorite-icon.is-favorite {
    background-color: #dc3545;
    color: #fff;
}

.favorite-animation {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.product-description h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-page-header {
        height: 100vh;
        
    }

    .header-title {
        font-size: 2rem;
    }

    .header-category {
        font-size: 1.2rem;
    }

    .product-page-container {
        margin-top: -50px;
    }

    .product-image {
        height: 300px;
    }

    .product-name {
        font-size: 2rem;
    }

    .product-price {
        font-size: 1.8rem;
    }

    .product-price-strike {
        font-size: 1.3rem;
    }

    .favorite-icon {
        width: 40px;
        height: 40px;
    }

    .favorite-icon i {
        font-size: 1.2rem;
    }
}

/* Related Products Sidebar Styles */
.related-products-sidebar {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.related-products-sidebar h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 20px;
}

.related-product-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.related-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.related-product-card .card-body {
    padding: 12px;
}

.related-product-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card .text-muted {
    font-size: 0.8rem;
}

.related-product-card .card-text {
    margin: 8px 0;
}

.related-product-card .text-danger {
    font-weight: 600;
    font-size: 1rem;
}


/* Responsive adjustments */
@media (max-width: 991.98px) {
    .related-products-sidebar {
        margin-top: 30px;
    }
    
    .related-product-card {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .related-product-card .card-title {
        font-size: 0.9rem;
    }
    
    .related-product-card .btn-primary {
        width: 100%;
    }
}