/* ====================================
   WISHLIST PAGE STYLES
   ==================================== */

:root {
    --primary-color: #FF8800;
    --primary-light: #FFB84D;
    --primary-dark: #E67E00;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #22C55E;
    --danger-color: #EF4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
}

/* ====================================
   WISHLIST SECTION MAIN CONTAINER
   ==================================== */

.wishlist-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 80px 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   WISHLIST HEADER
   ==================================== */

.wishlist-header {
    text-align: center;
    margin-bottom: 60px;
}

.wishlist-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.wishlist-subtitle {
    font-size: 18px;
    color: var(--light-text);
    font-weight: 500;
}

/* ====================================
   WISHLIST CONTAINER - GRID LAYOUT
   ==================================== */

.wishlist-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.wishlist-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.wishlist-loading i {
    font-size: 48px;
    margin-bottom: 16px;
    animation: spin 2s linear infinite;
}

.wishlist-loading p {
    font-size: 16px;
    font-weight: 500;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ====================================
   WISHLIST ITEM CARD
   ==================================== */

.wishlist-item {
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.wishlist-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wishlist-product-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

/* ====================================
   WISHLIST IMAGE CONTAINER
   ==================================== */

.wishlist-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.wishlist-product-card:hover .wishlist-product-image {
    transform: scale(1.08);
}

/* ====================================
   WISHLIST ITEM OVERLAY
   ==================================== */

.wishlist-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.wishlist-product-card:hover .wishlist-item-overlay {
    opacity: 1;
}

.btn-view-details {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-view-details:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

/* ====================================
   WISHLIST PRODUCT INFO
   ==================================== */

.wishlist-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.wishlist-product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-size: 14px;
}

/* ====================================
   REMOVE WISHLIST BUTTON
   ==================================== */

.btn-remove-wishlist {
    background: var(--light-bg);
    color: var(--danger-color);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-remove-wishlist:hover {
    background: var(--danger-color);
    color: var(--white);
    border-color: var(--danger-color);
}

/* ====================================
   EMPTY WISHLIST STATE
   ==================================== */

.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.empty-wishlist i {
    font-size: 64px;
    color: var(--light-text);
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-wishlist h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.empty-wishlist p {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.3);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 991px) {
    .wishlist-section {
        padding: 60px 0;
    }

    .wishlist-header h1 {
        font-size: 36px;
    }

    .wishlist-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wishlist-section {
        padding: 40px 0;
    }

    .wishlist-header {
        margin-bottom: 40px;
    }

    .wishlist-header h1 {
        font-size: 28px;
    }

    .wishlist-header p {
        font-size: 14px;
    }

    .wishlist-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .wishlist-product-info {
        padding: 12px;
    }

    .wishlist-product-name {
        font-size: 14px;
    }

    .wishlist-product-price {
        font-size: 16px;
    }

    .btn-view-details {
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .wishlist-section {
        padding: 30px 0;
    }

    .wishlist-header h1 {
        font-size: 24px;
    }

    .wishlist-header p {
        font-size: 13px;
    }

    .wishlist-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .wishlist-product-info {
        padding: 10px;
        gap: 8px;
    }

    .wishlist-product-name {
        font-size: 13px;
    }

    .wishlist-product-price {
        font-size: 14px;
    }

    .btn-view-details {
        padding: 8px 12px;
        font-size: 11px;
    }

    .empty-wishlist {
        padding: 40px 20px;
    }

    .empty-wishlist i {
        font-size: 48px;
    }

    .empty-wishlist h2 {
        font-size: 20px;
    }

    .empty-wishlist p {
        font-size: 14px;
    }

    .btn-continue-shopping {
        padding: 10px 24px;
        font-size: 13px;
    }
}
