/* Premium Product Page Components */

/* Comparison System Styles */
.comparison-panel {
    position: fixed;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.comparison-panel.visible {
    right: 0;
}

.comparison-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comparison-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-badge {
    background: #c2185b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.comparison-items {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.comparison-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    display: block;
    color: #c2185b;
    font-weight: 600;
    font-size: 0.8rem;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.comparison-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.5rem;
}

.btn-compare, .btn-clear {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-compare {
    background: #c2185b;
    color: white;
}

.btn-compare:hover {
    background: #a91650;
    transform: translateY(-2px);
}

.btn-clear {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.btn-clear:hover {
    background: #e9ecef;
}

/* Comparison Modal */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comparison-modal.visible {
    opacity: 1;
    visibility: visible;
}

.comparison-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.comparison-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #c2185b, #e91e63);
    color: white;
}

.comparison-modal-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
}

.comparison-table {
    padding: 2rem;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.feature-name {
    font-weight: 600;
    color: #c2185b;
    text-align: left !important;
}

.comparison-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.btn-view {
    background: #c2185b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #a91650;
    transform: translateY(-2px);
}

/* Recommendations Section */
.recommendations-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.recommendations-header h2 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
}

.recommendation-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.rec-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
}

.rec-tab.active,
.rec-tab:hover {
    background: #c2185b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 24, 91, 0.3);
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recommendation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.rec-image-container {
    position: relative;
    overflow: hidden;
}

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

.recommendation-card:hover .rec-image {
    transform: scale(1.05);
}

.rec-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover .rec-overlay {
    opacity: 1;
}

.rec-quick-view {
    background: white;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rec-quick-view:hover {
    background: #c2185b;
    color: white;
    transform: scale(1.05);
}

.rec-content {
    padding: 1.5rem;
}

.rec-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.rec-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c2185b;
    margin-bottom: 0.5rem;
}

.rec-rating {
    margin-bottom: 1rem;
}

.rec-rating .stars {
    display: flex;
    gap: 2px;
}

.rec-rating .filled {
    color: #ffc107;
}

.rec-actions {
    display: flex;
    gap: 0.5rem;
}

.rec-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rec-btn-primary {
    background: #c2185b;
    color: white;
}

.rec-btn-primary:hover {
    background: #a91650;
    transform: translateY(-2px);
}

.rec-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
    flex: 0 0 auto;
    width: 45px;
}

.rec-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Recently Viewed Section */
.recently-viewed-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-header h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.recent-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-name {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-price {
    display: block;
    color: #c2185b;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: -350px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    transition: right 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    border-left: 4px solid #c2185b;
}

.notification.visible {
    right: 2rem;
}

.notification-success {
    border-left-color: #28a745;
    color: #28a745;
}

.notification-warning {
    border-left-color: #ffc107;
    color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
    color: #17a2b8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comparison-panel {
        width: 100vw;
        right: -100vw;
        border-radius: 0;
        top: 0;
        transform: none;
        height: 100vh;
    }
    
    .recommendations-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recommendation-tabs {
        justify-content: center;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .recently-viewed-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .comparison-table {
        padding: 1rem;
    }
    
    .notification {
        right: -100vw;
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
    
    .notification.visible {
        right: 1rem;
    }
}