@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #FFF8F6;         /* Soft Pinkish White */
    --text-color: #4A4A4A;       /* Dark Grey for text */
    --primary-color: #D81B60;    /* Magenta/Pink for buttons/links */
    --primary-dark: #ad144d;     /* Darker shade for hover */
    --secondary-color: #FFF0F5;  /* Light Pink for backgrounds */
    --accent-color: #FF80AB;     /* Lighter pink accent */
    --white: #FFFFFF;
    --border-color: #EEE;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 25px rgba(216, 27, 96, 0.2); /* Pinkish shadow on hover */
    --header-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    /* Fun Polka Dot Pattern */
    background-image: radial-gradient(#FF80AB 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- GLOBAL LINKS (PINKISH) --- */
a { 
    text-decoration: none; 
    color: var(--primary-color);
    transition: all 0.2s ease; 
    font-weight: 500;
}
a:hover { 
    color: var(--primary-dark); 
    text-decoration: underline;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- LAYOUT UTILS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

#main-content {
    padding-bottom: 120px;
    margin-top: 50px;
    min-height: 60vh;
}

.hidden { display: none !important; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* Bouncy transition */
    text-decoration: none !important;
}
.btn:active { transform: scale(0.95); }

.primary-btn { background: var(--primary-color); color: white !important; box-shadow: 0 4px 6px rgba(216, 27, 96, 0.2); }
.primary-btn:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 15px rgba(216, 27, 96, 0.3); }

.secondary-btn { background: white; border: 2px solid var(--primary-color); color: var(--primary-color) !important; }
.secondary-btn:hover { background: var(--primary-color); color: white !important; transform: translateY(-2px); }

.text-btn { color: var(--primary-color); font-weight: 600; background: none; padding: 0; border: none; cursor: pointer; }
.text-btn:hover { color: var(--primary-dark); text-decoration: underline; }

/* --- HEADER --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid rgba(216, 27, 96, 0.1); /* Subtle pink border */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 45px; width: auto; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.logo:hover img { transform: rotate(5deg) scale(1.1); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    font-weight: 600; 
    color: #666;
    position: relative; 
    text-decoration: none !important;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -4px; left: 0;
    background-color: var(--primary-color); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px;
}
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.new-category-link {
    font-weight: 700 !important;
    color: var(--accent-color) !important; 
}
.new-category-link:hover {
    color: var(--primary-color) !important;
}

.mobile-menu-btn { display: none; font-size: 1.5rem; background: none; border: none; color: var(--text-color); }

/* --- HERO (ANIMATED) --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(-45deg, #ffffff, #fff0f5, #ffcdd2, #f8bbd0, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    border-radius: 30px; /* More rounded */
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    border: 1px solid #fae1e5;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero h1 { 
    font-size: 3rem; margin-bottom: 20px; color: var(--primary-color); 
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.hero p { font-size: 1.2rem; margin-bottom: 30px; color: #555; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.bento-item {
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Pop effect */
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    z-index: 5; /* Ensure it pops over neighbors */
}

.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFFFFF 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.bento-large img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.bento-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bento-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.2);
}

/* --- SECTIONS --- */
.page-header, .section-header {
    /* Increased spacing to prevent hover clipping issues */
    margin-bottom: 60px; 
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    /* border-bottom: 2px solid var(--border-color); REMOVED LINE AS REQUESTED */
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
}
.page-title { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 0; }
.section-header h2 { color: var(--primary-color); font-size: 1.8rem; }

/* --- CATALOG --- */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.catalog-sidebar {
    background: white; padding: 25px; border-radius: 20px;
    box-shadow: var(--shadow); height: fit-content;
    position: sticky; top: 100px; border: 1px solid var(--border-color);
    z-index: 2;
}
.filter-header { display: flex; justify-content: space-between; margin-bottom: 20px; align-items: center; }
.filter-group { margin-bottom: 25px; }
.filter-group label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; color: #333; }
input[type="text"], select {
    width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 12px; font-family: inherit; outline: none; transition: all 0.2s;
}
input[type="text"]:focus, select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.1); }

/* DROPDOWNS */
.searchable-select { position: relative; border: 2px solid #eee; border-radius: 12px; background: white; cursor: pointer; transition: all 0.2s; }
.searchable-select:hover { border-color: #facdd8; }
.ss-selected-text { padding: 12px; font-size: 0.95rem; color: #555; }
.ss-selected-text.has-value { color: #000; font-weight: 600; }
.ss-dropdown {
    position: absolute; top: 110%; left: 0; width: 100%; background: white;
    border: 1px solid #eee; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 50; display: none; max-height: 250px; overflow-y: auto;
}
.searchable-select.open .ss-dropdown { display: block; animation: fadeIn 0.2s ease; }
.ss-search { padding: 10px; border-bottom: 1px solid #eee; }
.ss-options li { padding: 10px 15px; font-size: 0.9rem; transition: 0.2s; }
.ss-options li:hover { background: var(--secondary-color); color: var(--primary-color); }

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    padding-top: 10px; /* Extra breathing room for top hovers */
}
.plushie-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: var(--shadow); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid transparent;
    position: relative;
}
.plushie-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover); 
    border-color: #ffe0e6;
    z-index: 10; /* Fixes clipping: brings card above other elements on hover */
}

.bundle-tag-on-card {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px 0 20px 0;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.card-image-container {
    height: 240px; padding: 25px; background: radial-gradient(circle, #fff 0%, #fff0f5 100%);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.card-image-container img { max-height: 100%; width: auto; mix-blend-mode: multiply; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.plushie-card:hover .card-image-container img { transform: scale(1.1) rotate(-2deg); }
.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.4; font-weight: 700; color: #333; }
.card-content .series { font-size: 0.9rem; color: #888; margin-bottom: 15px; flex-grow: 1; font-weight: 500; }
.card-content .excerpt { font-size: 0.95rem; color: #666; margin-bottom: 15px; }

/* --- DETAIL VIEW --- */
.detail-layout {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
    background: white; padding: 50px; border-radius: 30px; box-shadow: var(--shadow);
    border: 1px solid #fff;
    position: relative;
    z-index: 2; /* Ensure detail content sits above background elements */
}
.main-img-wrapper {
    border: 2px solid #eee; border-radius: 25px; padding: 40px; margin-bottom: 20px;
    display: flex; justify-content: center; align-items: center; background: #fffbfc;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}
.thumbnail-row { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 5px; }
.thumbnail { 
    width: 80px; height: 80px; border: 2px solid #eee; border-radius: 15px; 
    cursor: pointer; object-fit: contain; padding: 5px; background: #fff;
    transition: all 0.2s;
}
/* REMOVED TRANSFORM TO FIX CLIPPING IN SCROLL CONTAINER */
.thumbnail:hover { border-color: var(--primary-color); }

.detail-info h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.2; color: var(--primary-color); }
.detail-meta { color: #666; margin-bottom: 25px; font-size: 1.05rem; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.detail-meta span { margin-right: 25px; display: inline-block; }
.detail-description { margin-bottom: 35px; font-size: 1.1rem; line-height: 1.8; color: #444; }

/* --- NEW: ACTION BUTTONS AT TOP --- */
.detail-actions-primary {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: #fff9fb;
    border-radius: 15px;
    border: 1px solid #ffeef2;
}
.buy-links-top { display: flex; flex-wrap: wrap; gap: 15px; }

/* Styles specifically for the top primary store links */
.store-link-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    text-decoration: none !important;
    padding: 14px 30px;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(216, 27, 96, 0.3);
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.store-link-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(216, 27, 96, 0.4);
}

.wishlist-btn { width: 100%; }


/* --- NEW: PART OF BUNDLE CARD --- */
.part-of-bundle-card {
    background: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(216, 27, 96, 0.1);
    animation: fadeIn 0.5s ease;
}
.bundle-icon { font-size: 2rem; }
.bundle-info h4 { color: var(--primary-color); margin-bottom: 5px; font-size: 1.1rem; }
.bundle-info p { margin: 0; font-size: 0.95rem; color: #555; }
.bundle-info a { font-weight: 700; text-decoration: underline; }


/* --- BUNDLE CONTENTS BOX --- */
.bundle-contents-box {
    margin-bottom: 35px;
    padding: 25px;
    border: 2px dashed var(--accent-color); /* Dashed border implies "package" */
    border-radius: 15px;
    background-color: #fffcfd;
}
.bundle-header {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    border-bottom: 2px solid #fae1e5;
    padding-bottom: 10px;
}
.bundle-list { padding-left: 20px; list-style: disc; }
.bundle-list li { font-size: 1.05rem; margin-bottom: 8px; }
.bundle-savings-note {
    font-style: italic;
    color: #2e7d32; /* Green */
    font-weight: 600;
    margin-bottom: 15px;
    background: #e8f5e9;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; margin-bottom: 30px; }
.tag { 
    background: white; border: 1px solid var(--primary-color); 
    padding: 6px 14px; border-radius: 20px; 
    font-size: 0.85rem; color: var(--primary-color); font-weight: 600;
}

/* --- CONTENT PAGES --- */
.content-page, .single-article {
    background: white; padding: 60px; border-radius: 30px; box-shadow: var(--shadow);
    max-width: 1100px; width: 100%; margin: 0 auto; border: 1px solid #fff;
}
.content-page h2, .single-article h1 { margin-bottom: 20px; color: var(--primary-color); }
.single-article h1 { font-size: 2.8rem; line-height: 1.2; }

.article-hero-img {
    width: 100%; height: 400px; object-fit: cover; border-radius: 20px;
    margin-bottom: 30px; box-shadow: var(--shadow);
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 50px; }

/* --- FOOTER --- */
.site-footer { background: white; border-top: 1px solid #eee; padding: 60px 0 30px; margin-top: auto; }
.footer-social-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: color 0.2s; }
.footer-social-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.bluesky-hover:hover { color: #08f !important; text-decoration: none !important; }

.footer-flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 20px; color: #333; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #666; }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; color: #999; font-size: 0.9rem; border-top: 1px solid #f5f5f5; padding-top: 30px; }

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(5px);
}
.lightbox.visible { opacity: 1; visibility: visible; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 8px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.close-btn { position: absolute; top: 30px; right: 40px; color: white; font-size: 3rem; cursor: pointer; transition: transform 0.2s; }
.close-btn:hover { transform: rotate(90deg); color: var(--primary-color); }

/* --- UTILS --- */
.back-nav { margin-bottom: 40px; } /* INCREASED SPACING */

#back-to-top { 
    position: fixed; bottom: 30px; right: 30px; z-index: 200; 
    width: 55px; height: 55px; /* Larger touch target */
    border-radius: 50%;
    padding: 0; 
    font-size: 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    /* Centering Logic */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* Reset line height issues */
}
#back-to-top:hover {
    transform: translateY(-5px); /* Bounce effect */
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

/* --- ANIMATIONS --- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-img { animation: float 4s ease-in-out infinite; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .catalog-layout { grid-template-columns: 1fr; gap: 30px; }
    .catalog-sidebar { position: static; }
    .detail-layout { grid-template-columns: 1fr; padding: 25px; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; width: 100%;
        background: white; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .single-article, .content-page { padding: 30px; max-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    
    /* Bento Responsive */
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: auto; flex-direction: column; text-align: center; }
    
    .card-image-container { height: 180px; padding: 15px; }
    .detail-info h1 { font-size: 1.8rem; }
    .footer-flex { flex-direction: column; gap: 30px; }
    #main-content { margin-top: 30px; padding-bottom: 80px; }
    .store-link-primary { width: 100%; }
}