/**
 * Wishlist Page Modern Design
 * Clean, modern styling for wishlist page
 * 
 * @version 2.0.0
 */

/* ========================================
   HERO SECTION
======================================== */
.wishlist-hero {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 80px 0 60px;
    margin-top: 75px;
    position: relative;
    overflow: hidden;
}

.wishlist-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #2D7B2C;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-title i {
    font-size: 42px;
    color: #ff4757;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.breadcrumb-wrapper {
    background: white;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb {
    margin: 0;
    margin-bottom: 0 !important;
    padding: 0;
    background: none;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: #2D7B2C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1B5E20;
}

.breadcrumb-item.active {
    color: #666;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: flex-end;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 250px;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin: 5px 0 0;
}

/* ========================================
   WISHLIST CONTENT
======================================== */
.wishlist-content {
    padding: 60px 0 100px;
    background: #f8f9fa;
    min-height: 500px;
}

/* Empty Wishlist State */
.empty-wishlist-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.empty-wishlist-card {
    background: white;
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.empty-icon {
    margin-bottom: 30px;
}

.empty-icon svg {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.empty-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.empty-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #2D7B2C 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    color: white;
}

.btn-primary-gradient i {
    margin-right: 8px;
}

/* ========================================
   WISHLIST GRID
======================================== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.wishlist-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* Card Badges */
.card-badge-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-stock {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Remove Button */
.btn-remove-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #999;
}

.btn-remove-wishlist:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

/* Card Image */
.card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: #2D7B2C;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.product-rating i {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

/* Product Price */
.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #2D7B2C;
    margin-bottom: 15px;
}

.product-price del {
    color: #999;
    font-size: 18px;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: #ff4757;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 10px;
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #2D7B2C 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.btn-out-of-stock {
    flex: 1;
    background: #e0e0e0;
    color: #999;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-product {
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: #2D7B2C;
    border-color: #2D7B2C;
    color: white;
}

/* ========================================
   WISHLIST FOOTER
======================================== */
.wishlist-footer {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #f8f9fa;
    border-color: #2D7B2C;
    color: #2D7B2C;
}

.btn-clear-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: white;
    border: 2px solid #ff4757;
    border-radius: 10px;
    color: #ff4757;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-wishlist:hover {
    background: #ff4757;
    color: white;
}

/* Share Section */
.share-section {
    text-align: center;
}

.share-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    font-size: 18px;
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: transparent;
}

.share-btn.facebook:hover {
    background: #3b5998;
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.share-btn.pinterest:hover {
    background: #bd081c;
    color: white;
}

.share-btn.email:hover {
    background: #ea4335;
    color: white;
}

/* ========================================
   LOADING & ANIMATIONS
======================================== */
.wishlist-card.removing {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.btn-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-add-to-cart.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .stat-card {
        margin-top: 30px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wishlist-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
        gap: 10px;
    }
    
    .hero-title i {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .breadcrumb-wrapper {
        display: inline-block;
        padding: 8px 15px;
        margin-top: 10px;
        background: transparent;
        box-shadow: none;
    }
    
    .breadcrumb {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .stat-card {
        padding: 20px;
        min-width: auto;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-continue-shopping,
    .btn-clear-wishlist {
        width: 100%;
        justify-content: center;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
}