/* ========== RaspBaby — Cute, Chic, Elegant ========== */
:root {
    --bg: #FFF9F9;
    --bg-card: #FFFFFF;
    --text: #2D2D2D;
    --text-muted: #8A8A8A;
    --primary: #E8A0BF;
    --primary-dark: #D4789B;
    --accent: #FFB6C1;
    --accent-2: #DDA0DD;
    --accent-3: #B0C4DE;
    --border: #F0E6E9;
    --shadow: 0 2px 20px rgba(232,160,191,0.08);
    --shadow-hover: 0 8px 40px rgba(232,160,191,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', -apple-system, sans-serif;
    --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Announcement Bar ===== */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent-2), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 6s ease infinite;
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,249,249,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.search-wrapper { flex: 1; max-width: 360px; }
.search-inner {
    display: flex;
    align-items: center;
    background: #F5EFF1;
    border-radius: 100px;
    padding: 0 16px;
    gap: 8px;
    transition: all .3s;
    border: 2px solid transparent;
}
.search-inner:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232,160,191,0.15);
}
.search-icon { color: var(--text-muted); flex-shrink: 0; }
#search {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
}
#search::placeholder { color: var(--text-muted); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 100px;
    transition: all .25s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary-dark); background: rgba(232,160,191,0.08); }
.nav-link.active { color: white; background: var(--primary); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.shape-1 {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -200px; right: -100px;
    animation: float 15s ease-in-out infinite;
}
.shape-2 {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -100px; left: -50px;
    animation: float 12s ease-in-out infinite reverse;
}
.shape-3 {
    width: 300px; height: 300px;
    background: var(--accent-3);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    animation: fadeUp .8s ease both;
}

.heart-pulse { animation: pulse 1.5s ease infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    animation: fadeUp .8s ease .1s both;
}
.hero-title .accent {
    color: var(--primary-dark);
    font-style: italic;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 32px;
    animation: fadeUp .8s ease .2s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeUp .8s ease .3s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}
.cta-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(232,160,191,0.3);
}
.cta-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232,160,191,0.4);
}
.cta-btn.secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--border);
}
.cta-btn.secondary:hover {
    border-color: var(--primary);
    background: rgba(232,160,191,0.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    animation: fadeUp .8s ease .4s both;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
}
.stat-num::after { content: '+'; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Categories ===== */
.categories-section {
    padding: 80px 0;
}

.section-label {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent, var(--primary));
    opacity: 0;
    transition: opacity .3s;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent, var(--primary));
}
.cat-card:hover::before { opacity: 0.06; }

.cat-icon { font-size: 32px; display: block; margin-bottom: 10px; position: relative; }
.cat-label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; position: relative; color: var(--text); }
.cat-count { font-size: 12px; color: var(--text-muted); position: relative; }
.cat-count::before { content: '('; }
.cat-count::after { content: ' items)'; }

/* ===== Products ===== */
.products-section {
    padding: 40px 0 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}
.product-count { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.filter-group select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8A8A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .3s;
}
.filter-group select:focus { outline: none; border-color: var(--primary); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn .5s ease forwards;
}
.product-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 0.05s); }
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.product-img-wrap {
    position: relative;
    padding-top: 100%;
    background: #FDF5F7;
    overflow: hidden;
}
.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-info {
    padding: 16px;
}
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.stars { color: #FFC107; font-size: 13px; letter-spacing: 1px; }
.rating-text { font-size: 12px; color: var(--text-muted); }

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s;
    font-family: var(--font-body);
}
.buy-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

.load-more-container { text-align: center; margin-top: 40px; }
.load-more-btn {
    padding: 14px 40px;
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all .3s;
}
.load-more-btn:hover { background: var(--primary); color: white; }

/* Loading spinner */
.loading-spinner { text-align: center; padding: 60px 0; grid-column: 1 / -1; }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner p { color: var(--text-muted); font-size: 14px; }

/* ===== Articles ===== */
.articles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg) 0%, #FFF0F3 100%);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all .35s;
    border: 1px solid var(--border);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.article-emoji { font-size: 48px; }

.article-body { padding: 20px; }
.article-tag {
    display: inline-block;
    background: rgba(232,160,191,0.12);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text);
}
.article-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}
.article-date { font-size: 12px; color: var(--text-muted); }

/* ===== Trust Section ===== */
.trust-section {
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 24px;
}
.trust-icon { font-size: 32px; display: block; margin-bottom: 12px; }
.trust-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--text-muted); }

/* ===== Newsletter ===== */
.newsletter-section { padding: 0 0 80px; }
.newsletter-box {
    background: linear-gradient(135deg, #FFE4E1, #E6E6FA);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
}
.newsletter-box h2 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 12px;
}
.newsletter-box p { color: var(--text-muted); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid white;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    background: white;
}
.newsletter-form input:focus { border-color: var(--primary); }
.newsletter-form button {
    padding: 14px 24px;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    white-space: nowrap;
}
.newsletter-form button:hover { background: var(--text); }

/* ===== Footer ===== */
footer {
    background: #2D2D2D;
    color: #CCC;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: #999; }

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links a {
    display: block;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
    transition: color .3s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 24px;
    text-align: center;
}
.disclaimer { font-size: 12px; color: #777; margin-bottom: 8px; }
.copyright { font-size: 12px; color: #666; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links .nav-link { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open .nav-link {
        display: block;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        padding: 12px 24px;
        border-bottom: 1px solid var(--border);
    }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-controls { flex-direction: column; width: 100%; }
    .hero { padding: 60px 24px; min-height: auto; }
    .hero-title { font-size: 32px; }
    .newsletter-form { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 24px; }
    .search-wrapper { display: none; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== No Results ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}
.no-results-emoji { font-size: 48px; margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.no-results p { color: var(--text-muted); }
