/* Additional CSS for comprehensive features */

/* Reviews & Ratings */
.star-rating {
    display: inline-flex;
    gap: 5px;
    cursor: pointer;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating .star.active,
.star-rating .star.hover {
    color: #ffc107;
}

.review-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s;
}

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

.review-item.unread {
    border-left: 3px solid var(--bs-primary);
}

/* Notifications */
.notification-toggle {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #B8860B;
    color: white;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -50px;
    width: 320px;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
    z-index: 1050;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 55px;
    width: 16px;
    height: 16px;
    background: white;
    border-left: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
    transform: rotate(45deg);
}

.notification-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-weight: 600;
    color: #2C3E50;
}

.notification-item {
    display: flex;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #fef9e7;
    border-right: 3px solid #B8860B;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #B8860B;
    border-radius: 50%;
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.notification-item.unread .notification-icon {
    background: #B8860B;
    color: white;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2C3E50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-content small {
    display: block;
    margin-top: 0.25rem;
    color: #adb5bd;
    font-size: 0.75rem;
}

.notification-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.notification-actions a {
    color: #B8860B;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-actions a:hover {
    text-decoration: underline;
}

.no-notifications {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
}

.no-notifications i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 90vw;
        right: -10px;
        max-height: 80vh;
    }
    
    .notification-dropdown::before {
        right: 20px;
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 1rem;
    z-index: 1100;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

.notification-toast.warning {
    border-right: 4px solid #ffc107;
}

.notification-toast.info {
    border-right: 4px solid #17a2b8;
}

/* Header Notification Icon Styling */
.header-actions .notification-toggle a {
    color: #2C3E50;
    transition: color 0.3s;
}

.header-actions .notification-toggle a:hover {
    color: #B8860B;
}

/* Notification Permission Prompt */
.notification-prompt {
    background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
    border: 1px solid #f9e79f;
    border-radius: 8px;
    margin: 1rem 0;
}

.notification-prompt strong {
    color: #B8860B;
    display: block;
    margin-bottom: 0.5rem;
}

.notification-prompt p {
    color: #6c5d0f;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.discount-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0.5rem;
}

/* Inventory Indicators */
.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.stock-indicator.in-stock {
    color: #28a745;
}

.stock-indicator.low-stock {
    color: #ffc107;
}

.stock-indicator.out-of-stock {
    color: #dc3545;
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s;
}

.social-share-btn:hover {
    transform: scale(1.1);
    color: white;
}

.social-share-btn.facebook { background: #3b5998; }
.social-share-btn.twitter { background: #1da1f2; }
.social-share-btn.whatsapp { background: #25d366; }
.social-share-btn.telegram { background: #0088cc; }
.social-share-btn.pinterest { background: #bd081c; }

/* Advanced Search */
.search-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
}

.price-range-slider {
    margin: 1rem 0;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Loading Optimization */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card.loading .product-image {
    height: 200px;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Payment Methods */
.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-method-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-method-card.selected {
    border-color: var(--bs-primary);
    background: #e8f4fd;
}

.payment-method-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bs-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Order Tracking */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
}

.timeline-item.completed::before {
    background: var(--bs-success);
    border-color: var(--bs-success);
}

.timeline-item.active::before {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .search-filters {
        padding: 1rem;
    }
}