/*
 * registry-public.css — pgr- prefix
 * Public-facing Gift Registry page
 */

/* ── Page shell ──────────────────────────────────────────── */
.pgr-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.pgr-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #E5E5E5;
}
.pgr-hero-occasion {
    display: inline-block;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C9A96E;
    border: 1px solid #C9A96E;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    margin-bottom: 1rem;
}
.pgr-hero-title {
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 0.6rem;
    line-height: 1.15;
}
.pgr-hero-date {
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    font-size: 0.82rem;
    color: #999;
    margin: 0 0 1rem;
}
.pgr-hero-date i { margin-right: 0.3rem; }
.pgr-hero-message {
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

/* ── Flash ────────────────────────────────────────────────── */
.pgr-flash {
    display: none;
    padding: 0.9rem 1.1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    margin-bottom: 2rem;
}
.pgr-flash--success {
    background: #1A1A1A;
    color: #fff;
}
.pgr-flash--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ── Overall progress ─────────────────────────────────────── */
.pgr-progress-summary {
    max-width: 480px;
    margin: 0 auto 2.5rem;
}
.pgr-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 0.4rem;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}
.pgr-progress {
    height: 6px;
    background: #EDE9E4;
    border-radius: 99px;
    overflow: hidden;
}
.pgr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A96E 0%, #b8935a 100%);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ── Grid ─────────────────────────────────────────────────── */
.pgr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.75rem;
}

/* ── Card ─────────────────────────────────────────────────── */
.pgr-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.pgr-card:hover {
    box-shadow: 0 8px 32px rgba(26,26,26,0.1);
    transform: translateY(-2px);
}
.pgr-card--gifted {
    opacity: 0.75;
}
.pgr-card--gifted:hover {
    transform: none;
    box-shadow: none;
}

/* Card image */
.pgr-card-img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #faf7f2;
}
.pgr-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.pgr-card:hover .pgr-card-img { transform: scale(1.04); }

.pgr-fully-gifted-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #fff;
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.1rem;
    font-weight: 600;
}
.pgr-fully-gifted-overlay i {
    font-size: 1.6rem;
    color: #C9A96E;
}

/* Card body */
.pgr-card-body {
    padding: 1.1rem 1rem 1.25rem;
}
.pgr-card-brand {
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9A96E;
    margin: 0 0 0.2rem;
}
.pgr-card-name {
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.pgr-card-variant {
    font-size: 0.72rem;
    color: #999;
    margin: 0 0 0.4rem;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}
.pgr-card-price {
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 0.75rem;
}

/* Progress per card */
.pgr-gifted-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.3rem;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}
.pgr-card-progress {
    height: 4px;
    background: #EDE9E4;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.pgr-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A96E, #b8935a);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* Quantity row */
.pgr-qty-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.pgr-qty-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    min-width: 24px;
}
.pgr-qty-select {
    flex: 0 0 70px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    background: #fff;
    color: #1A1A1A;
    cursor: pointer;
}

/* Gift button */
.pgr-gift-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #1A1A1A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s ease, transform 0.15s ease;
}
.pgr-gift-btn:hover { background: #333; transform: translateY(-1px); }
.pgr-gift-btn:active { transform: translateY(0); }
.pgr-gift-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.pgr-gift-btn i { font-size: 0.9rem; }

/* Fully gifted tag */
.pgr-fully-gifted {
    text-align: center;
    padding: 0.6rem;
    background: #faf7f2;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #C9A96E;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}
.pgr-fully-gifted i { margin-right: 0.3rem; }

/* ── Empty state ──────────────────────────────────────────── */
.pgr-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #999;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
}
.pgr-empty i { font-size: 2.5rem; color: #C9A96E; display: block; margin-bottom: 0.75rem; }
.pgr-empty p { font-size: 0.9rem; margin: 0; }

/* ── Address note ─────────────────────────────────────────── */
.pgr-address-note {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    font-family: var(--sans, 'Outfit', system-ui, sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .pgr-page { padding: 2rem 1rem 4rem; }
    .pgr-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .pgr-hero-title { font-size: 2rem; }
}

@media (max-width: 420px) {
    .pgr-grid { grid-template-columns: 1fr; }
}
