/* Wishlist Page Styles */
:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;
    --success: #4CAF50;
    --danger: #f44336;
    --dark: #212121;
    --gray: #757575;
    --light: #fafafa;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 10px;
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 20px;
}

.search-container input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.nav-icons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: relative;
    color: var(--dark);
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
}

.nav-counter {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff7043 100%);
    color: white;
}

.page-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header p {
    margin: 0;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.wishlist-container {
    padding: 20px 0;
}

#wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Wishlist Card */
.wishlist-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.wishlist-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.wishlist-item-details {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-details h3 {
    font-size: 16px;
    color: var(--dark);
    margin: 0 0 8px;
    cursor: pointer;
}

.wishlist-item-details h3:hover {
    color: var(--primary);
}

.wishlist-item-details .brand {
    color: var(--gray);
    font-size: 13px;
    margin: 0 0 8px;
}

.wishlist-item-details .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
}

.wishlist-item-details .original-price {
    color: var(--gray);
    font-size: 14px;
    text-decoration: line-through;
    margin: 0 0 16px;
}

.wishlist-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.wishlist-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.add-to-cart-btn {
    background: var(--primary);
    color: white;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

.remove-button {
    background: #ffebee;
    color: var(--danger);
}

.remove-button:hover {
    background: var(--danger);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

.empty-state .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s;
}

.empty-state .btn-primary:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    
    .top-bar {
        justify-content: space-between;
    }
    
    #wishlist-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wishlist-item-image {
        height: 150px;
    }
    
    .wishlist-item-details {
        padding: 12px;
    }
    
    .wishlist-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #wishlist-items {
        grid-template-columns: 1fr;
    }
}
