
* { box-sizing: border-box; }

.wishlist-wrapper {
    max-width: 1280px;
    margin: 130px auto 80px;
    padding: 0 32px;
}

/* ── Header ── */
.wishlist-page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid #E8E2DA;
    position: relative;
}

.wishlist-page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, #D9BD6B, #A07828);
    border-radius: 2px;
}

.wishlist-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 600;
    color: #062037;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.wishlist-page-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    color: #94A3B8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.wishlist-count-badge {
    display: inline-block;
    background: linear-gradient(135deg, #A07828, #D9BD6B);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* ── Grid ── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Card ── */
.wishlist-card {
    background: #fff;
    border: 1px solid #EDE8E0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.32s cubic-bezier(0.25,1,0.5,1),
                box-shadow 0.32s cubic-bezier(0.25,1,0.5,1),
                border-color 0.32s;
    display: flex;
    flex-direction: column;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(6,32,55,0.11);
    border-color: #D9BD6B;
}

/* ── Remove Button ── */
.remove-item-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #E8E2DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.28s;
    backdrop-filter: blur(4px);
    padding: 0;
}

.remove-item-btn svg {
    width: 11px;
    height: 11px;
    stroke: #94A3B8;
    transition: stroke 0.2s;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: rotate(90deg) scale(1.1);
}

.remove-item-btn:hover svg { stroke: #fff; }

/* ── Karat Badge ── */
.wishlist-karat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8B6914, #D9BD6B);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 6;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(160,120,40,0.3);
}

/* ── Image ── */
.wishlist-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #FAF7F2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.wishlist-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94);
    display: block;
}

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

.wishlist-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── View overlay on hover ── */
.wishlist-image-container::after {
    content: 'View Details';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(6,32,55,0.75), transparent);
    color: #D9BD6B;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 12px 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.28s;
}

.wishlist-card:hover .wishlist-image-container::after {
    opacity: 1;
}

/* ── Details ── */
.wishlist-details {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.wishlist-product-name {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #1A1A2E;
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-product-meta {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    color: #B0BAC9;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.wishlist-product-price {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #062037;
    margin: 4px 0 10px;
}

/* ── Actions ── */
.wishlist-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.wishlist-btn-cart {
    flex: 1;
    background: #062037;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}

.wishlist-btn-cart:hover {
    background: #D9BD6B;
    color: #062037;
}

.wishlist-btn-view {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: transparent;
    border: 1px solid #E8E2DA;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    color: #94A3B8;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
}

.wishlist-btn-view:hover {
    border-color: #062037;
    background: #E8EEF4;
    color: #062037;
}

/* ── Empty State ── */
.empty-wishlist-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0px 20px 100px;
}

.empty-wishlist-icon-wrap {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #F5EDD6, #E8D48B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(160,120,40,0.15);
}

.empty-wishlist-icon-wrap i {
    font-size: 34px;
    color: #A07828;
}

.empty-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #062037;
    margin: 0 0 12px;
    font-weight: 600;
}

.empty-text {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #6B7588;
    max-width: 360px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.explore-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 34px;
    background: #062037;
    color: #D9BD6B !important;
    text-decoration: none !important;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1.5px solid transparent;
}

.explore-btn-gold:hover {
    background: transparent;
    color: #062037 !important;
    border-color: #D9BD6B;
}

/* ── Bottom Actions ── */
.wishlist-actions {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid #F0EBE4;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #062037;
    text-decoration: none;
    font-weight: 600;
    padding: 13px 30px;
    border: 1.5px solid #E8E2DA;
    border-radius: 5px;
    transition: all 0.3s;
    background: transparent;
}

.continue-shopping-btn svg {
    transition: transform 0.3s;
    stroke: #062037;
}

.continue-shopping-btn:hover {
    border-color: #D9BD6B;
    background: #FAF5E8;
    color: #A07828;
}

.continue-shopping-btn:hover svg {
    transform: translateX(-4px);
    stroke: #A07828;
}

/* ── Toast ── */
#wishlist-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(90px);
    background: #062037;
    color: #D9BD6B;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 50px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.38s cubic-bezier(0.25,1,0.5,1);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(6,32,55,0.2);
    pointer-events: none;
}

#wishlist-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── SweetAlert overrides ── */
.zayyora-wishlist-popup {
    border-radius: 8px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.13) !important;
}

.zayyora-timer-bar {
    background: linear-gradient(90deg, #A07828, #D9BD6B) !important;
}

/* ── RESPONSIVE ── */

/* Large tablet */
@media (max-width: 1200px) {
    .wishlist-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* Tablet */
@media (max-width: 900px) {
    .wishlist-wrapper { margin-top: 100px; padding: 0 20px; }
    .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .wishlist-page-title { font-size: 28px; }
}

/* Mobile */
@media (max-width: 600px) {
    .wishlist-wrapper { margin-top: 80px; padding: 0 14px; }
    .wishlist-page-title { font-size: 24px; }
    .wishlist-page-subtitle { font-size: 11px; }
    .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wishlist-details { padding: 10px 12px 12px; gap: 3px; }
    .wishlist-product-name { font-size: 12px; }
    .wishlist-product-price { font-size: 13px; margin-bottom: 8px; }
    .wishlist-btn-cart { font-size: 9px; padding: 9px 8px; letter-spacing: 0.8px; }
    .wishlist-btn-view { width: 34px; height: 34px; min-width: 34px; font-size: 11px; }
    .wishlist-card-actions { gap: 6px; }
    .wishlist-karat-badge { font-size: 8px; padding: 2px 7px; }
    .continue-shopping-btn { font-size: 10px; padding: 11px 22px; }
    .empty-wishlist-container { padding: 60px 16px 80px; }
    .empty-title { font-size: 22px; }
    .empty-wishlist-icon-wrap { width: 72px; height: 72px; }
    .empty-wishlist-icon-wrap i { font-size: 28px; }
}

/* Extra small */
@media (max-width: 380px) {
    .wishlist-grid { grid-template-columns: 1fr; }
}