/* wishlist.css – Desktop-only Sticky Wishlist Sidebar */

/* Wishlist Button – Pill Style with White Text (desktop size) */
.wishlist-btn-container {
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction:column;
    margin: 1.5em 0;
}

.wishlist-btn {
    background: #2C3E2CCC;               /* dark green base */
    color: white !important;             /* white text always */
    padding: 1em 2em;                  /* larger pill for desktop */
    border: none !important;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    font-family: Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    min-width: 260px;
    text-align: center;
}

.wishlist-btn:hover,
.wishlist-btn:focus {
    background: #A3C586 !important;
    color: #2C3E2CCC !important;
    box-shadow: 0 6px 16px rgba(163,197,134,0.4);
    transform: translateY(-3px);
}

.wishlist-btn.added {
    background: #446344 !important;
    color: white !important;
}

.wishlist-btn.added:hover {
    background: #A3C586 !important;
}

/* Sticky Wishlist Sidebar – Right side on desktop */
/* Sticky Wishlist Sidebar – CENTERED on desktop */
#wishlist-sticky {
    position: sticky;
    top: 120px; /* below header/nav */
    width: 340px; /* fixed sidebar width */
    background: white;
    border: 2px solid #446344;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    padding: 1.5em;
    z-index: 100;
    align-self: start;
    left: 50%; /* center horizontally */
    transform: translateX(-50%); /* offset by half width for perfect centering */
}

/* Summary layout inside sidebar */
.wishlist-summary {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.wishlist-summary h3 {
    margin: 0 0 0.5em;
    color: #446344;
    font-size: 1.4em;
    text-align: center;
}

#wishlist-count {
    font-weight: bold;
    color: #f57c00;
    text-align: center;
}

/* Items list */
#wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.wishlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em;
    background: #f9faf8;
    border-radius: 8px;
    border: 1px solid #e2e8e0;
}

.wishlist-label {
    font-weight: 600;
    color: #2C3E2CCC;
}

.wishlist-remove {
    background: #f57c00;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    
    /* These three lines solve the centering perfectly */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Optional polish */
    transition: background 0.2s ease, transform 0.15s ease;
}

/* Actions buttons */
.wishlist-actions {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.wishlist-actions button {
    padding: 1em;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#wishlist-clear {
    background: #ccc;
    color: #333;
    border: none;
}

#wishlist-contact {
    background: #f57c00;
    color: white;
    border: none;
}

#wishlist-clear:hover { background: #bbb; }
#wishlist-contact:hover { background: #e69500; }

/* View Wishlist link below button */
.view-wishlist-link {
    margin-top: 0.8em;
    text-align: center;
    font-size: 0.95em;
    color: #446344;                /* match your green theme */
}

.view-wishlist-link a {
    color: #2C3E2CCC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.view-wishlist-link a:hover,
.view-wishlist-link a:focus {
    color: #A3C586;
    text-decoration: underline;
}

/* Smooth scroll for anchor links on the whole page */
html {
    scroll-behavior: smooth;
}

/* Optional: Add some offset if sticky header overlaps the section */
#wishlist-viewer {
    scroll-margin-top: 120px;  /* Adjust to your header height + some breathing room */
}

/* Hide on mobile (you'll add mobile version separately) */
@media (max-width: 1023px) {
    .wishlist-btn {
        font-size: 13px !important;
    }
    
    .wishlist-summary h3 {
        font-size: 13px !important;
    }
    #wishlist-sticky {
        width: 90%;                /* or 100% – your preference */
        max-width: 400px;          /* optional cap so it's not too wide */
        margin-left: auto;
        margin-right: auto;
        left: 0;                   /* reset left */
        transform: none;           /* reset transform */
        padding: 1.2em;            /* slightly smaller padding on mobile */
    }
}