/* ==========================================================================
   TAILOR BAZAR - MY WISHLIST PAGE STYLESHEET
   ========================================================================== */

.wishlist-section {
    padding-top: 10.375rem;
    min-height: 60vh;
    background: #f8fafc;
}
.wishlist-header-wrapper {
    text-align: left;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wishlist-browse-link {
    color: var(--emerald-600);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Wishlist Item Cards */
.wishlist-item-card {
    padding: 1.25rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}
.wishlist-remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    outline: none;
    transition: transform 0.2s ease;
}
.wishlist-remove-btn:hover {
    transform: scale(1.1);
}
.wishlist-remove-btn i {
    color: #ef4444;
    font-size: 1.1rem;
}
.wishlist-item-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.wishlist-item-img-box {
    width: 100%;
    height: 140px;
    background: var(--slate-50);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.wishlist-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.wishlist-item-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.wishlist-item-desc {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
.wishlist-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
    margin-bottom: 1rem;
}
.wishlist-item-price-label {
    font-size: 0.75rem;
    color: #64748b;
}
.wishlist-item-price-val {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--slate-900);
}
.wishlist-configure-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
}

/* Empty Wishlist State */
.wishlist-empty-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid var(--slate-200);
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}
.wishlist-empty-icon {
    font-size: 4.5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}
.wishlist-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
    margin-top: 0;
}
.wishlist-empty-text {
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 2rem auto;
}
.wishlist-empty-btn {
    margin: 0 auto;
    justify-content: center;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 700;
}

/* Laptop/Tablet Layout for Wishlist Grid */
@media (min-width: 769px) and (max-width: 1400px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* Responsive Mobile Layout for Wishlist Grid */
@media (max-width: 768px) {
    .wishlist-section {
        padding-top: 7.875rem;
        padding-bottom: 3rem;
    }
    .wishlist-header-wrapper {
        margin-bottom: 1.75rem;
    }
    .wishlist-header-wrapper h2 {
        font-size: 1.65rem !important;
    }
    .wishlist-header-wrapper p {
        font-size: 0.8rem;
    }
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
    .wishlist-item-card {
        padding: 0.85rem;
        border-radius: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }
    .wishlist-remove-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 1.8rem;
        height: 1.8rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    .wishlist-remove-btn i {
        font-size: 0.9rem;
    }
    .wishlist-item-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    .wishlist-item-img-box {
        height: 105px;
        border-radius: 0.6rem;
        margin-bottom: 0.75rem;
    }
    .wishlist-item-title {
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wishlist-item-desc {
        font-size: 0.7rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        -webkit-line-clamp: 2;
        min-height: 30px;
    }
    .wishlist-item-price-row {
        padding-top: 0.5rem;
        margin-bottom: 0.75rem;
    }
    .wishlist-item-price-label {
        font-size: 0.7rem;
    }
    .wishlist-item-price-val {
        font-size: 1.05rem;
    }
    .wishlist-configure-btn {
        height: 2.2rem;
        font-size: 0.75rem;
        border-radius: 0.4rem;
        gap: 0.2rem;
    }
    .wishlist-configure-btn i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        gap: 0.65rem;
    }
    .wishlist-item-card {
        padding: 0.65rem;
    }
    .wishlist-item-img-box {
        height: 90px;
    }
    .wishlist-item-title {
        font-size: 0.88rem;
    }
    .wishlist-item-desc {
        font-size: 0.68rem;
        margin-bottom: 0.6rem;
        -webkit-line-clamp: 1;
        min-height: auto;
    }
    .wishlist-item-price-row {
        margin-bottom: 0.5rem;
    }
    .wishlist-item-price-val {
        font-size: 0.95rem;
    }
    .wishlist-configure-btn {
        height: 2rem;
        font-size: 0.7rem;
    }
}

/* Extracted layout styling classes from wishlist.blade.php */
.wishlist-title-styled {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.wishlist-desc-no-margin {
    margin: 0;
}

/* ==========================================
   SKELETON SHIMMER PLACEHOLDER & LAZY IMAGES
   ========================================== */
.skeleton-img-wrapper {
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0.75rem;
}

.skeleton-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.25) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer-effect 1.5s infinite;
}

@keyframes shimmer-effect {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-img-wrapper img {
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

.skeleton-img-wrapper.loaded {
    background: transparent !important;
}

.skeleton-img-wrapper.loaded::after {
    display: none !important;
}

.skeleton-img-wrapper.loaded img {
    opacity: 1 !important;
}


