/* Wishlist page styles inspired by curated.supply */

.wishlist-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 30px 0;
    margin: 0;
    max-width: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.back-link {
    display: inline-block;
    font-size: 10pt;
    color: #666666;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000000;
}

.wishlist-header h1 {
    font-size: 28pt;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.wishlist-header p {
    font-size: 12pt;
    color: #666666;
    margin: 0;
}

.wishlist-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin: 0;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    width: 100%;
    height: 280px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: #fafafa;
}

.product-image img[src*="amazon"] {
    object-fit: contain;
    padding: 30px;
}

.product-image img[src*="apple.com"] {
    object-fit: contain;
    padding: 20px;
}

/* Loading state */
.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e0e0e0;
    border-top-color: #999;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
}

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

.product-image.loading::before {
    opacity: 1;
}

.product-image.loading img {
    opacity: 0;
}

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

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 9pt;
    color: #999999;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.product-name {
    font-size: 12pt;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000000;
    line-height: 1.3;
    min-height: 2.6em;
}

.product-price {
    font-size: 11pt;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .wishlist-main {
        padding: 50px 30px;
    }
    
    .header-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .wishlist-main {
        padding: 40px 20px;
    }
    
    .header-content {
        padding: 0 20px;
    }
    
    .wishlist-header h1 {
        font-size: 22pt;
    }
    
    .wishlist-header p {
        font-size: 11pt;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 11pt;
    }
    
    .product-brand {
        font-size: 8pt;
    }
    
    .product-price {
        font-size: 10pt;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .wishlist-main {
        padding: 30px 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 10pt;
        min-height: auto;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(n) {
    animation-delay: calc(0.05s * var(--card-index, 0));
}

