/* ===============================================
   RECOMMENDED PRODUCTS SECTION - STYLES
   Stiluri pentru secțiunea de produse recomandate
   =============================================== */

.produse-recomandate {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.recomandate_header {
    text-align: center;
    margin-bottom: 3rem;
}

.recomandate_header .page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d3748;
}

.recomandate_header .page-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
}

/* Modern Product Card Styles */
.modern-product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.modern-product-card .position-relative {
    overflow: hidden;
}

.modern-product-card .card-img-top {
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

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

.modern-product-card .badge {
    z-index: 10;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
}

.z-index-10 {
    z-index: 10;
}

.modern-product-card .card-body {
    padding: 1.5rem;
}

.modern-product-card .card-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: bold;
    min-height: 50px;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.modern-product-card .product-description {
    min-height: 40px;
    line-height: 1.4;
    font-size: 0.875rem;
}

.modern-product-card .old-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
}

.modern-product-card .regular-price {
    color: #667eea;
    font-weight: 700;
}

/* Consistent price styling */
.modern-product-card .h5 {
    font-weight: 700;
    font-size: 1.25rem;
}

.modern-product-card .text-success {
    font-weight: 700;
    color: #28a745;
}

.modern-product-card .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modern-product-card .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
}

.modern-product-card .btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
}

.modern-product-card .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.modern-product-card .btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.modern-product-card .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.modern-product-card .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Unique button styles for recommended products - no conflicts with cos-style.php */
.recommended-actions {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}

.recommended-btn {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
}

.recommended-btn-details {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.recommended-btn-details:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.5);
}

.recommended-btn-group {
    display: flex;
    width: 100%;
    gap: 0;
}

.recommended-btn-cart {
    flex: 1;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px 0 0 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.recommended-btn-cart:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.recommended-btn-favorite {
    flex: 1;
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 0 10px 10px 0;
    border-left: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.recommended-btn-favorite:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Product Details Modal Styles */
#productDetailsModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    background: white;
}

body.dark-mode #productDetailsModal .modal-content {
    background: #2a2a2a;
}

#productDetailsModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

#productDetailsModal .modal-body {
    padding: 2rem;
    background: white;
}

body.dark-mode #productDetailsModal .modal-body {
    background: #2a2a2a;
    color: #ffffff;
}

#productDetailsModal .modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

#productDetailsModal .modal-footer .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

#productDetailsModal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

#productDetailsModal .modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

#productDetailsModal .carousel-control-prev,
#productDetailsModal .carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#productDetailsModal .carousel-control-prev:hover,
#productDetailsModal .carousel-control-next:hover {
    opacity: 1;
}

#productDetailsModal .carousel-control-prev-icon,
#productDetailsModal .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 15px;
    width: 40px;
    height: 40px;
}

#productDetailsModal .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #667eea;
}

#productDetailsModal .img-thumbnail {
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

#productDetailsModal .img-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .produse-recomandate {
        padding: 40px 0;
    }
    
    .recomandate_header .page-title {
        font-size: 2rem;
    }
    
    .modern-product-card .card-img-top {
        height: 200px;
    }
}
