/* ================================
   SHOPPINGPAPST – style.css
   ================================ */

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

:root {
    --brand: #f59e0b;
    --brand-dark: #d97706;
    --brand-light: #fef3c7;
    --blue: #2563EB;
    --blue-light: #eff6ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --green: #16a34a;
    --galaxus: #e4002b;
    --alternate: #FF6600;
    --amazon: #FF9900;
    --uniqlo: #E40000;

    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 6px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
}

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

/* ================================
   HEADER
   ================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--slate-900);
    flex-shrink: 0;
}

.logo-crown {
    font-size: 1.4rem;
    color: var(--brand);
    line-height: 1;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.logo-text strong { font-weight: 800; }

.nav-center {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-cat {
    text-decoration: none;
    color: var(--slate-500);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all .2s;
}

.nav-cat:hover, .nav-cat.active {
    color: var(--slate-900);
    background: var(--slate-100);
}

.nav-right {
    flex-shrink: 0;
}

.nav-tagline {
    font-size: 0.78rem;
    color: var(--slate-400);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    border-radius: 2px;
}

@media (max-width: 700px) {
    .nav-center, .nav-right { display: none; }
    .nav-center.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: white;
        padding: 12px 24px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-md);
    }
    .nav-toggle { display: flex; margin-left: auto; }
}

/* ================================
   HERO
   ================================ */

.hero {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a1f35 60%, #0f172a 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand) 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 32px 0 0;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    margin-right: 32px;
    flex-shrink: 0;
}

/* ================================
   PRODUCTS SECTION
   ================================ */

.products-section {
    padding: 64px 0 80px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.filter-bar {
    display: flex;
    gap: 6px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font);
}

.filter-btn:hover {
    border-color: var(--slate-300);
    color: var(--slate-700);
}

.filter-btn.active {
    background: var(--slate-900);
    border-color: var(--slate-900);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ================================
   PRODUCT CARD
   ================================ */

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card.hidden {
    display: none;
}

.product-badge-top {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-top-highlight {
    background: var(--brand);
    color: var(--slate-900);
}

.product-image-wrap {
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
}

.product-image {
    width: 180px;
    height: 126px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image svg {
    width: 100%;
    height: 100%;
}

.product-shop-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.shop-galaxus {
    background: #fff0f0;
    color: var(--galaxus);
    border: 1px solid #fecaca;
}

.shop-alternate {
    background: #fff7ed;
    color: var(--alternate);
    border: 1px solid #fed7aa;
}

.shop-amazon {
    background: #fffbeb;
    color: var(--amazon);
    border: 1px solid #fde68a;
}

.shop-uniqlo {
    background: #fff1f2;
    color: var(--uniqlo);
    border: 1px solid #fecdd3;
}

.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--slate-500);
    line-height: 1.7;
}

.product-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: var(--slate-50);
    border-radius: 10px;
    padding: 14px 16px;
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-600);
    font-weight: 500;
}

.spec-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.product-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-label {
    font-size: 0.72rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.scraped-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.shop-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.shop-galaxus-text { color: var(--galaxus); }
.shop-alternate-text { color: var(--alternate); }
.shop-amazon-text { color: var(--amazon); }
.shop-uniqlo-text { color: var(--uniqlo); }

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--slate-900);
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-buy:hover {
    background: var(--slate-700);
    transform: translateX(2px);
}

.btn-buy-alt {
    background: var(--alternate);
}

.btn-buy-alt:hover {
    background: #e55900;
}

.btn-buy-amazon {
    background: var(--amazon);
    color: var(--slate-900);
}

.btn-buy-amazon:hover {
    background: #e68900;
}

.btn-buy-uniqlo {
    background: var(--uniqlo);
}

.btn-buy-uniqlo:hover {
    background: #c00000;
}

/* ================================
   INFO BANNER
   ================================ */

.info-banner {
    background: white;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 40px 0;
}

.info-banner-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .info-banner-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--slate-900);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--slate-500);
    max-width: 580px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--slate-500);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover { color: white; }

/* ================================
   DYNAMIC PRODUCT IMAGE (emoji)
   ================================ */

.product-image-photo {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    display: block;
}

.product-image-emoji {
    font-size: 4.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.loading-hint,
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--slate-400);
    font-size: 0.95rem;
    padding: 48px 0;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 560px) {
    .hero { padding: 48px 0 56px; }
    .products-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .stat { padding: 0; }
    .product-footer { flex-direction: column; align-items: flex-start; }
    .btn-buy { width: 100%; justify-content: center; }
}
