/* ==========================================================================
   Registry section (test.html) — honeymoon gift cards
   Follows the design language of css/style.css (Poiret One, --primary green,
   white cards with soft green shadow, lift on hover).
   ========================================================================== */

.registry {
    flex-direction: column;
    padding: 60px 20px 80px;
    text-align: center;
}

.registry .registry-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 1.25em;
    line-height: 1.5;
}

.registry .registry-intro p {
    margin: 0 0 16px;
}

.registry .gifts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.registry .gift-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px 0px var(--primary);
    padding: 28px 22px 24px;
    font-family: "Poiret One", serif;
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.registry .gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px 0 var(--primary);
}

.registry .gift-icon {
    width: 64px;
    height: 64px;
    border-radius: 100%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7em;
    flex-shrink: 0;
}

.registry .gift-title {
    font-size: 1.35em;
    color: var(--primary);
    line-height: 1.15;
    font-weight: bold;
}

.registry .gift-location {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neutral6);
}

.registry .gift-desc {
    font-size: 1em;
    line-height: 1.4;
    color: var(--black);
    flex-grow: 1;
}

.registry .gift-action {
    width: 100%;
    margin-top: 6px;
}

.registry .gift-btn {
    margin-bottom: 0;
}

.registry .gift-btn i {
    margin-right: 8px;
}

/* --- Fulfilled state ------------------------------------------------------ */

.registry .gift-card.fulfilled {
    border-style: dashed;
    box-shadow: none;
    opacity: 0.75;
}

.registry .gift-card.fulfilled:hover {
    transform: none;
}

.registry .gift-card.fulfilled .gift-icon {
    background: var(--neutral6);
}

.registry .gift-card.fulfilled .gift-title {
    color: var(--neutral8);
}

.registry .gift-fulfilled {
    display: inline-block;
    font-family: "Poiret One", serif;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 8px 20px;
    transform: rotate(-3deg);
}

.registry .gift-fulfilled i {
    margin-right: 8px;
}

/* --- Gift modal (colorbox content) ---------------------------------------- */

.gift-modal-wrapper {
    position: relative;
}

.gift-modal-nav {
    position: absolute;
    top: 118px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(61, 83, 71, 0.3);
    transition: transform 150ms ease, background-color 150ms ease;
    z-index: 2;
}

.gift-modal-nav:hover {
    background: var(--black);
    transform: translateY(-50%) scale(1.08);
}

.gift-modal-prev {
    left: 10px;
}

.gift-modal-next {
    right: 10px;
}

.gift-modal {
    padding: 32px 28px;
    font-family: "Poiret One", serif;
    text-align: center;
    color: var(--black);
    max-width: 100%;
}

.gift-modal-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(61, 83, 71, 0.25);
}

.gift-modal-image {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 16px;
    box-shadow: 0 8px 24px rgba(61, 83, 71, 0.25);
}

.gift-modal h3 {
    font-family: "Poiret One", serif;
    color: var(--primary);
    font-size: 1.6em;
    font-weight: bold;
    margin: 0 0 6px;
    line-height: 1.2;
}

.gift-modal-location {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neutral6);
    margin-bottom: 14px;
}

.gift-modal p {
    color: var(--neutral8);
    font-size: 1.05em;
    line-height: 1.45;
    margin: 0 0 22px;
}

.gift-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.gift-modal-actions .button {
    margin: 0;
    width: 100%;
    max-width: none;
}

.gift-modal-actions .button.ghost {
    border: 2px solid var(--neutral6);
    color: var(--neutral6);
    cursor: not-allowed;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    line-height: 1.3;
}

.gift-modal-revolut-sub {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.gift-modal-actions .button i {
    margin-right: 8px;
}

.gift-modal-thanks {
    display: none;
    margin-top: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.3em;
    line-height: 1.4;
}

.gift-modal-thanks.visible {
    display: block;
}

/* --- Mobile --------------------------------------------------------------- */

@media (max-width: 600px) {
    .registry {
        padding: 40px 14px 60px;
    }
    .registry .registry-intro {
        font-size: 1.1em;
    }
    .registry .gifts {
        grid-template-columns: 1fr;
    }
}
