/* public_html/wishlist.pics/css/index.css */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

/* FIX: Added overflow-x hidden to prevent horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the container horizontally */
    position: relative; /* For Help Btn positioning */
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

/* --- Layouts --- */
.container {
    width: 100%;
    max-width: 600px; /* Mobile-first focused layout */
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures children are centered */
    padding-bottom: 40px;
}

/* --- Header Components --- */
.help-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.help-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.logo-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.site-logo {
    max-height: 40px;
    object-fit: contain;
    opacity: 0.9;
}

/* --- Footer --- */
.site-footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
    width: 100%;
}

/* --- Landing Page --- */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    width: 100%;
}

.landing-icon {
    width: 80px;
    margin-bottom: 20px;
    animation: beat 1.5s infinite;
}

.landing-title {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    color: #e384ab; /* Fallback color */
}

/* --- Profile Page --- */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0.5em;
    animation: fadeInDown 0.8s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-soft);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.profile-note {
    font-size: 1rem;
    opacity: 0.8;
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius-md);
    display: inline-block;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    /* Reduced minmax to 125px to ensure 2 columns fit on very small screens (320px) */
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1s ease;
    width: 90%;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    /* Ensure card doesn't overflow its grid cell */
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.product-details {
    padding: 12px;
    text-align: center;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-gift {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 8px 12px; /* Slightly reduced padding for small screens */
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-gift:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-gift img {
    width: 16px;
    height: 16px;
}

/* Shine Effect */
.btn-gift::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-gift:hover::after {
    left: 100%;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    width: 80%;
    max-width: 380px;
    padding: 25px;
    margin: 0;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    border: 1px solid var(--accent-color);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.cost-breakdown {
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--radius-md);
    margin: 20px 0 15px 0;
    text-align: left;
    font-size: 0.9rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.breakdown-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Note Input Style */
.note-container {
    margin-bottom: 20px;
}

.gift-note-input {
    width: 90%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    height:6em;
}

.gift-note-input:focus {
    border-color: var(--accent-color);
}

.btn-checkout {
    background: var(--gradient-gold);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* --- Loading Overlay --- */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* --- Thank You Styles --- */
.thankyou-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 15px;
    box-shadow: var(--shadow-soft);
}

.thankyou-message {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Simplified Social Icons */
.social-btn {
    background: none;
    border: none;
    box-shadow: none;
    color: var(--accent-color); /* Uses the pink/accent color */
    font-size: 1.8rem; /* Good touch target size */
    width: auto;
    height: auto;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

/* Remove specific backgrounds from previous version */
.social-btn.insta, .social-btn.tiktok, .social-btn.x-social {
    background: none;
}
.social-btn.tiktok i {
    text-shadow: none; /* Remove glitch effect if desired, or keep it */
}

/* --- Animations --- */
@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Mobile Optimization --- */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .products-grid {
        /* Tighter gap for small screens */
        gap: 10px; 
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}

.landing-title{
    color:#e384ab;
}