/*******************************************************
 * BABY WISHLIST — LEMON COTTON THEME (VARIANTE A)
 * Modern, Clean, Soft, Baby-Friendly
 *******************************************************/

:root {
    --bg: #fafbf6;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --muted: #7a7a7a;
    --accent: #F6C94C;
    --accent-light: #FFF5CF;
    --border: #ebe8d5;
    --radius-lg: 26px;
    --radius-sm: 14px;
    --shadow: 0 14px 30px rgba(0,0,0,.06);
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --pill-bg: #fff8dd;
    --pill-text: #c49c2b;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
}



/*******************************************************
 * LOGIN OVERLAY
 *******************************************************/

#login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250,251,246,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(6px);
}

#login-box {
    background: var(--card-bg);
    padding: 2.8rem 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    max-width: 420px;
}

#login-box h2 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

#login-box p {
    color: var(--muted);
    margin-bottom: 1rem;
}

#login-box input {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
    margin-top: 0.6rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    margin-top: 1.2rem;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: .2s;
}

.btn-login:hover {
    background: #e9b63f;
}

#login-error {
    margin-top: 0.7rem;
    color: red;
    font-size: 0.9rem;
    display: none;
}



/*******************************************************
 * GENERAL LAYOUT
 *******************************************************/

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}



/*******************************************************
 * HERO HEADER
 *******************************************************/

.hero {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 36px;
    margin-bottom: 2.3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
}

#countdown {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pill-text);
}



/*******************************************************
 * SEARCH BAR
 *******************************************************/

.search-bar {
    margin-bottom: 1.6rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.3rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}



/*******************************************************
 * CATEGORY NAV
 *******************************************************/

.category-nav {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: 0.4rem;
}

.category-pill {
    background: var(--pill-bg);
    color: var(--pill-text);
    padding: 0.6rem 1.1rem;
    border-radius: 40px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #f1e7bd;
    cursor: pointer;
    transition: .2s;
}

.category-pill:hover {
    background: var(--accent);
    color: #000;
}



/*******************************************************
 * PRODUCT GRID
 *******************************************************/

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}



/*******************************************************
 * PRODUCT CARD
 *******************************************************/

.product-card {
    background: var(--card-bg);
    border-radius: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: .2s;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.image-wrapper {
    padding: 1.3rem 1.3rem 0.7rem;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
}

.info {
    padding: 0 1.4rem 1.8rem;
}



/* CATEGORY LABEL */
.category-label {
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
    font-weight: 600;
}

/* TITLE */
.title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

/* DESCRIPTION */
.description {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.38;
    margin-bottom: .9rem;
}

/* PRICE */
.price {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--pill-text);
    margin-bottom: 1.3rem;
}



/*******************************************************
 * PRODUCT BUTTON
 *******************************************************/

.btn-product {
    display: inline-block;
    padding: .55rem 1rem;
    background: var(--accent);
    color: #000;
    border-radius: 14px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
}

.btn-product:hover {
    background: #f2b933;
}



/*******************************************************
 * ALTERNATIVE BADGE
 *******************************************************/

.alt-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #FFF7D9; /* weiches, helles Gelb */
    color: #B38A1E; /* warmes Gold-Braun */
    border-radius: 999px; /* perfekt rund wie ein Tag/Pill */
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #F2E7B8;
    width: fit-content;
}




/*******************************************************
 * GIFT BUTTON + GIFTED CARD
 *******************************************************/

.gift-toggle-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 1.25rem;
    cursor: pointer;
    transition: .2s;
    z-index: 3;
}

.gift-toggle-small:hover {
    transform: scale(1.18);
}

.gifted-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e159dd;
    color: white;
    padding: .45rem .8rem;
    border-radius: 12px;
    font-size: .85rem;
    font-weight: 700;
    z-index: 2;
}

.product-card.gifted {
    opacity: .45;
    filter: grayscale(100%);
}



/*******************************************************
 * ADMIN LINKS
 *******************************************************/

.admin-link {
    text-align: right;
    margin-bottom: 1.4rem;
}

.admin-link a {
    color: var(--pill-text);
    font-weight: 700;
    text-decoration: none;
}



/*******************************************************
 * MOBILE OPTIMIZATION
 *******************************************************/

@media (max-width: 600px) {

    .product-card img {
        height: 160px;
    }

    .title {
        font-size: 1.1rem;
    }

    .description {
        font-size: .88rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .btn-product {
        font-size: .82rem;
        padding: .45rem .85rem;
    }

    .gift-toggle-small {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}



/*******************************************************
 * FORM — ADD + EDIT
 *******************************************************/

.form-card {
    background: var(--card-bg);
    padding: 2.2rem 2.4rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 620px;
    margin: 0 auto;
    margin-top: 2rem;
}

.form-card h2 {
    margin-bottom: 1.4rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    transition: border .2s, box-shadow .2s;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(246, 201, 76, 0.35);
    outline: none;
}

.form-card label {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .3rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.checkbox-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-primary {
    padding: .9rem 1.4rem;
    background: var(--accent);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-outline {
    padding: .9rem 1.4rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: none;
    color: var(--muted);
    font-weight: 600;
}
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 25px 0;
    font-size: 0.95rem;
    color: var(--muted);
    opacity: 0.8;
}

.footer .heart {
    color: #ff5b5b;
    font-size: 1.1rem;
    position: relative;
    top: 1px;
}
/* BACK BUTTON (ADMIN) */
.back-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pill-text);
    text-decoration: none;
    background: var(--card-bg);
    padding: 0.6rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: .2s;
}

.back-btn:hover {
    background: var(--accent);
    color: #000;
    transform: translateX(-4px);
}
#category-sort-list {
    margin-bottom: 1.5rem;
}

.category-row {
    background: white;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    cursor: grab;
    box-shadow: var(--shadow);
    font-weight: 600;
}
.category-row:active {
    cursor: grabbing;
    opacity: .7;
}

/* HERO: optional etwas mehr Abstand unten, damit die Info schön sitzt */
.hero {
    text-align: center;
    padding-bottom: 10px;
}

/* GIFT INFO – jetzt innerhalb der HERO */
.hero-gift-info {
    max-width: 680px;
    margin: 25px auto 0 auto;
}

/* GIFT INFO (Basis-Styles bleiben wie zuvor) */
.gift-info {
    background: #fff6dd;
    border: 2px solid #ffe5b3;
    padding: 18px 22px;
    margin-top: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    animation: fadeIn 1s ease;
}

/* Text in hero zentrieren, aber nicht zu eng */
.hero .gift-info p {
    margin: 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.45;
    text-align: left; /* wirkt ruhiger */
}

/* Animation container */
.gift-animation {
    position: relative;
    width: 60px;
    height: 60px;
}

/* Geschenk */
.gift-animation .gift-icon {
    font-size: 32px;
    position: absolute;
    left: 16px;
    top: 14px;
}

/* Maus Emoji */
.mouse-emoji {
    font-size: 26px;
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0;
    animation: mouseClick 2.2s infinite ease-in-out;
}

/* Klick-Animation */
@keyframes mouseClick {
    0%   { opacity: 0; transform: translate(0,0) scale(1); }
    20%  { opacity: 1; transform: translate(15px,15px) scale(1); }
    35%  { transform: translate(17px,17px) scale(0.9); }
    45%  { transform: translate(15px,15px) scale(1); }
    100% { opacity: 0; transform: translate(0,0) scale(1); }
}
