/* GK Wishlist & Waitlist Stylings */

/* Header Badge & Icon Fixes */
.gk-icon-fav {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Textfarbe Orange für den Favoriten-Link */
.gk-icon-fav a,
.gk-icon-fav .menu-link {
    color: #ff6100 !important;
}

.gk-count {
    position: absolute;
    top: 5px;
    left: 50%;
    margin-left: 8px;
    /* Position next to center-aligned icon */
    background: #ff6600;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}


.gk-wishlist-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* Globale Button- & Icon-Styles */
.gk-fav-btn,
.gk-wait-btn,
.gk-remove-btn,
.gk-waitlist-remove {
    background: transparent !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    width: 42px !important;
    height: 42px !important;
    box-shadow: none !important;
    position: relative;
}

.gk-fav-btn:hover,
.gk-wait-btn:hover,
.gk-remove-btn:hover,
.gk-waitlist-remove:hover {
    background: #f5f5f5 !important;
    border-color: #333 !important;
}

.gk-fav-btn svg,
.gk-wait-btn svg,
.gk-remove-btn svg,
.gk-waitlist-remove svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #333 !important;
    stroke-width: 2 !important;
    fill: none !important;
    transition: all 0.2s ease !important;
    display: block;
}

/* Gefülltes Herz bei Aktivierung */
.gk-fav-btn.active svg,
.gk-remove-btn svg {
    fill: #e53935 !important;
    stroke: #e53935 !important;
}

/* Glocke bei Aktivierung */
.gk-wait-btn.active svg {
    fill: #ffb300 !important;
    stroke: #ffb300 !important;
}

/* Modal Styling - Comic / Nostalgie Look */
.gk-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.gk-modal-content {
    background-color: #fcfaf5;
    /* Warmes Off-White passend zum Shop-Bg */
    margin: 15vh auto;
    padding: 50px 40px 40px;
    border: 3px solid #000000;
    width: 90%;
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: gkModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gkModalPop {
    0% {
        transform: scale(0.8) rotate(-2deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.gk-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    color: #000000;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gk-modal-close:hover {
    background: #f8db46;
    transform: rotate(90deg);
}

.gk-modal h3 {
    margin-top: 0;
    font-family: 'Kaushan Script', cursive !important;
    color: #000000;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    transform: rotate(-1deg);
}

.gk-modal p {
    font-family: 'Poppins', sans-serif;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

#gk-waitlist-form input[type="email"] {
    width: 100%;
    padding: 18px 25px;
    margin: 0 0 20px 0;
    border: 3px solid #000000;
    border-radius: 50px;
    background: #ffffff;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.gk-modal-privacy {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    color: #666;
    padding: 0 10px;
}

.gk-modal-privacy input {
    margin-top: 4px;
    min-width: 18px;
    min-height: 18px;
    accent-color: #000;
}

.gk-modal-submit {
    width: 100%;
    background: #f8db46;
    /* gk-shared-yellow */
    color: #000000;
    border: 3px solid #000000;
    padding: 18px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.gk-modal-submit:hover {
    background: #ffffff;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    transform: scale(1.03) translateY(-2px);
}

.gk-modal-submit:active {
    transform: translateY(2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

#gk-waitlist-msg {
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Merkzettel Seite - Sektionen & Header */
#gk-wishlist-page-wrapper {
    padding: 20px 0;
}

.gk-wishlist-section-header h3 {
    font-family: 'Kaushan Script', cursive;
    font-size: 1.8rem;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #000;
}

/* Wunschliste (Grid) */
#gk-wishlist-section ul.products {
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 25px !important;
}

#gk-wishlist-section ul.products::before,
#gk-wishlist-section ul.products::after {
    display: none !important;
}

/* Entfernen-Button für Wunschliste */
#gk-wishlist-section .product .gk-remove-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0.8;
    transition: all 0.2s ease !important;
}

#gk-wishlist-section .product:hover .gk-remove-btn {
    opacity: 1;
    transform: scale(1.1);
}

/* Warteliste (List Design) */
.gk-waitlist-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gk-waitlist-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.gk-waitlist-item:hover {
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gk-waitlist-item-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 20px;
}

.gk-waitlist-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #000;
}

.gk-waitlist-item-info {
    flex-grow: 1;
}

.gk-waitlist-item-info a {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
}

.gk-waitlist-item-price {
    font-weight: 700;
    margin-top: 3px;
}

.gk-status-badge {
    background: #fff9c4;
    color: #f57f17;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #fbc02d;
    white-space: nowrap;
}

.gk-waitlist-remove {
    background: #fff !important;
    border: 2px solid #000 !important;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-left: 20px;
}

.gk-waitlist-remove:hover {
    background: #ffebee !important;
    border-color: #e53935 !important;
    color: #e53935;
    transform: scale(1.05);
}

/* Status & Loader */
.gk-wishlist-empty {
    font-family: 'Kaushan Script', cursive;
    font-size: 2rem;
    text-align: center;
    margin: 40px 0;
}

.gk-wishlist-loader {
    text-align: center;
    padding: 60px 0;
    font-style: italic;
    color: #888;
}

@media (max-width: 600px) {
    #gk-wishlist-section ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .gk-waitlist-item {
        flex-wrap: wrap;
    }

    .gk-waitlist-item-status {
        width: 100%;
        margin: 10px 0;
        order: 3;
    }

    .gk-waitlist-remove {
        margin-left: auto;
    }
}