﻿/* =============================================
   WISHLIST — ELEGANT CARD GRID
   Pusparani Nursery
============================================= */

/* ── Page heading ── */
.wishlist-header {
    text-align: center;
    padding: 32px 20px 10px;
}
.premium-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 4vw, 32px);
    color: #1b5e30;
    letter-spacing: 1px;
    margin: 0;
}

/* ── Outer container ── */
.wishlist-container {
    max-width: 1100px;
    margin: 30px auto 50px;
    padding: 0 20px;
}

/* ── Card grid — 4 cols on large, scales down ── */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) { .wishlist-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 420px)  { .wishlist-grid { grid-template-columns: 1fr; } }

/* ── Single card ── */
.wishlist-row-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid #efefef;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}
.wishlist-row-item:hover {
    box-shadow: 0 8px 28px rgba(27, 94, 48, 0.13);
    transform: translateY(-3px);
}

/* ── Product image ── */
.wish-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f9f7;
    flex-shrink: 0;
}
.wish-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.wishlist-row-item:hover .wish-img-wrap img {
    transform: scale(1.05);
}

/* ── Content area below image ── */
.wish-content-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 14px 14px 16px;
    gap: 6px;
}

/* ── Plant code ── */
.wish-label-code {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── Plant name ── */
.wish-label-name {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a22;
    line-height: 1.35;
}

/* ── Price ── */
.wish-price-wrap { margin-top: 2px; }
.wish-label-price {
    font-size: 15px;
    font-weight: 700;
    color: #1b7a3e;
    font-family: 'Inter', sans-serif;
}

/* ── Spacer pushes button to bottom ── */
.wish-content-wrap .wish-btn-add-to-cart {
    margin-top: auto;
}

/* ── ADD TO CART button — compact, never stretches ── */
.wish-btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 9px 0;
    width: 100%;                       /* full width of the card content area only */
    max-width: 100%;
    background: linear-gradient(135deg, #07200f, #1b7a3e);
    color: #fde98a;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.wish-btn-add-to-cart:hover {
    background: linear-gradient(135deg, #1b7a3e, #07200f);
    box-shadow: 0 4px 14px rgba(27, 122, 62, 0.35);
    color: #fff;
}

/* ── Remove (×) button — top-right corner overlay ── */
.wish-action-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.wish-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    font-size: 13px;
    color: #bbb;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.wish-icon-btn.cart:hover  { background: #e8f5e9; color: #1b7a3e; transform: scale(1.1); }
.wish-icon-btn.delete:hover { background: #fdecea; color: #e53935; transform: scale(1.1); }

/* ── Empty state ── */
.wishlist-empty {
    text-align: center;
    padding: 70px 20px;
    font-family: 'Tenor Sans', sans-serif;
    color: #999;
    grid-column: 1 / -1;
}
