/* House of Love Prints - Global Styles (Black, Pink, White Theme) */
:root { 
    --brand: #FF4081; /* Signature House of Love Pink */
    --brand-hover: #E91E63; /* Deep Pink for hover states */
    --dark: #000000; /* Crisp Black */
    --grey: #F9F9F9; /* Off-White/Soft Grey for subtle contrast */
    --border: #EAEAEA;
    --radius: 12px;
}

body { font-family: 'Inter', -apple-system, sans-serif; background: #ffffff; color: var(--dark); margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.serif { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }

/* Navigation */
.premium-nav { background: #ffffff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; height: 80px; display: flex; align-items: center; }
.nav-container { max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 26px; font-weight: 700; letter-spacing: -1px; color: var(--brand); }
.nav-search { flex-grow: 1; max-width: 500px; margin: 0 40px; }
.nav-search input { width: 100%; padding: 12px 20px; border-radius: 24px; border: 2px solid var(--border); background: var(--grey); font-family: 'Inter'; font-size: 14px; outline: none; transition: 0.3s; }
.nav-search input:focus { border-color: var(--brand); background: #ffffff; }
.nav-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; align-items: center; }

/* Buttons & CTAs */
.btn-primary { background: var(--brand); color: #ffffff; padding: 12px 28px; border-radius: 24px; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }

/* Hero Section - UPDATED with Live Placeholder */
.hero-section { 
    background: none;
    
    /* Using a live Unsplash image for the dark pink/black abstract vibe */
    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
        url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?q=80&w=2070&auto=format&fit=crop'); 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    
    border-radius: var(--radius); 
    padding: 100px 40px; 
    text-align: center; 
    margin-bottom: 40px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Category Pills - Animated Glow Edition */
.category-scroll { 
    display: flex; gap: 15px; justify-content: center; 
    margin-bottom: 40px; 
    overflow-x: auto; 
    /* THE FIX: Added top padding to pull them down and give the glow room */
    padding-top: 20px; 
    padding-bottom: 20px; 
    position: relative;
    z-index: 10; /* Ensures the glow stays above the hero section's shadow */
}

.cat-pill { 
    position: relative;
    padding: 10px 26px; 
    border-radius: 30px; 
    border: 2px solid var(--border); 
    font-weight: 600; 
    font-size: 14px; 
    cursor: pointer; 
    white-space: nowrap; 
    background: #ffffff;
    color: var(--dark);
    z-index: 1;
    overflow: hidden;
    /* Bouncy physics transition */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* The liquid pink background that waits invisibly */
.cat-pill::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--brand); 
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Hover State: Glow, Lift, and Fill */
.cat-pill:hover { 
    color: #ffffff; 
    border-color: var(--brand); 
    transform: translateY(-4px) scale(1.02);
    /* The double pink glow effect */
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.4), 0 0 12px rgba(255, 64, 129, 0.2); 
}

/* Triggers the background sweep */
.cat-pill:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Tighter, More Premium Marketplace Grid */
.etsy-grid { 
    display: grid; 
    /* THE FIX: Reduced min-width of the cards from 260px to 210px */
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); 
    gap: 30px; 
}
.etsy-card { transition: 0.2s; border-radius: var(--radius); overflow: hidden; display: block; }
.etsy-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.etsy-card img { 
    width: 100%; 
    /* THE FIX: Changed from tall 4/5 to more standard 3/4 aspect ratio */
    aspect-ratio: 3/4; 
    object-fit: cover; 
    background: var(--grey); 
    border-radius: var(--radius); 
}
.card-info { padding: 12px 4px; }
.card-title { font-size: 14px; font-weight: 400; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-price { font-size: 16px; font-weight: 600; color: var(--dark); }
.badge { display: inline-block; background: var(--dark); color: #ffffff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-top: 6px; letter-spacing: 0.5px; }

/* Base App Overrides (Upload Tool) */
.upload-container { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.button-outline { background: var(--dark); color: #ffffff; border: none; padding: 16px 40px; border-radius: 24px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.button-outline:hover { background: var(--brand); }
.progress-bar { background: var(--border); height: 4px; border-radius: 2px; overflow: hidden; margin: 20px 0; }
.progress-fill { background: var(--brand); height: 100%; transition: width 0.4s ease; }

/* --- Slide-Out Hamburger Menu --- */
.hamburger-wrapper { display: flex; align-items: center; gap: 20px; }

.hamburger {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 26px; height: 18px; cursor: pointer; z-index: 1001; position: relative;
}
.hamburger span {
    display: block; height: 2px; width: 100%; background: var(--dark);
    border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Animate to X */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--brand); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--brand); }

/* The Slide-Out Panel */
.slide-menu {
    position: fixed; top: 0; right: -400px; width: 320px; max-width: 85vw; height: 100vh;
    background: #ffffff; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 1000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 30px 30px; display: flex; flex-direction: column; gap: 15px;
    overflow-y: auto;
}
.slide-menu.open { right: 0; }

/* The Dark Background Overlay */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    z-index: 999; opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }

/* Menu Links */
.slide-menu a {
    font-size: 1.1rem; font-weight: 600; color: var(--dark);
    padding: 12px 0; border-bottom: 1px solid var(--border);
    display: block; transition: color 0.2s;
}
.slide-menu a:hover { color: var(--brand); padding-left: 5px; }
.slide-menu .menu-header {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; 
    color: #999; margin-top: 20px; margin-bottom: 5px; font-weight: 700;
}

/* --- Slide-Out Shopping Cart --- */
.cart-menu {
    position: fixed; top: 0; right: -450px; width: 400px; max-width: 90vw; height: 100vh;
    background: #ffffff; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1050; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.cart-menu.open { right: 0; }

.cart-header {
    padding: 30px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { margin: 0; color: var(--brand); font-size: 1.8rem; }
.close-cart { font-size: 24px; cursor: pointer; color: var(--dark); background: none; border: none; transition: 0.2s; }
.close-cart:hover { color: var(--brand); transform: scale(1.1); }

.cart-items-container {
    flex-grow: 1; overflow-y: auto; padding: 20px 30px;
    display: flex; flex-direction: column; gap: 20px;
}
.empty-cart-msg { text-align: center; color: #999; margin-top: 40px; font-style: italic; }

.cart-item { display: flex; gap: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.cart-item img { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--grey); }
.cart-item-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.cart-item-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.cart-item-size { font-size: 12px; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.cart-item-price { font-weight: 600; color: var(--brand); }
.cart-item-remove { font-size: 11px; color: #999; cursor: pointer; text-decoration: underline; background: none; border: none; padding: 0; text-align: left; margin-top: 5px; }
.cart-item-remove:hover { color: var(--dark); }

.cart-footer { padding: 30px; background: var(--grey); border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.btn-checkout { width: 100%; background: var(--dark); color: #fff; padding: 18px; border-radius: 30px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; transition: 0.3s; letter-spacing: 1px; text-transform: uppercase; }
.btn-checkout:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 64, 129, 0.3); }

/* Cart Badge Pulse */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--brand); }
    100% { transform: scale(1); }
}
.cart-bump { animation: cartPulse 0.4s ease; }

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    transition: opacity 0.2s ease;
}

.nav-logo img:hover {
    opacity: 0.8; /* Subtle premium feel on hover */
}

/* Size Guide Modal */
.size-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.size-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-size {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.size-table th, .size-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.size-table th {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}