/* ── Pika Panda Boxes · pastel pink & purple theme ──────────────────────── */
:root {
    --pink-50: #fff5fa;
    --pink-100: #ffe6f3;
    --pink-200: #ffcce6;
    --pink-400: #ff8fc7;
    --pink-500: #f766ad;
    --purple-100: #f1e8ff;
    --purple-200: #e0ccff;
    --purple-400: #b58cff;
    --purple-500: #9a66f5;
    --ink: #4a2a5e;
    --ink-soft: #7d6590;
    --white: #ffffff;
    --grad: linear-gradient(135deg, var(--pink-400) 0%, var(--purple-400) 100%);
    --grad-hover: linear-gradient(135deg, var(--pink-500) 0%, var(--purple-500) 100%);
    --radius: 24px;
    --shadow: 0 10px 30px rgba(154, 102, 245, 0.14);
    --shadow-pop: 0 14px 34px rgba(247, 102, 173, 0.32);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background:
        radial-gradient(circle at 10% 0%, var(--pink-100) 0, transparent 40%),
        radial-gradient(circle at 95% 20%, var(--purple-100) 0, transparent 38%),
        radial-gradient(circle at 50% 100%, var(--pink-100) 0, transparent 45%),
        var(--pink-50);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .btn, .price, .card-price {
    font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

a { color: var(--purple-500); }
a:hover { color: var(--pink-500); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 20px 40px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.muted { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Floating decorations ─────────────────────────────────────────────── */
.sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floaty {
    position: absolute;
    font-size: 1.6rem;
    opacity: 0.45;
    animation: drift 9s ease-in-out infinite;
}

.f1 { top: 14%; left: 4%;  color: var(--purple-400); }
.f2 { top: 30%; right: 6%; color: var(--pink-400); font-size: 2rem; animation-delay: -2s; }
.f3 { top: 62%; left: 2%;  color: var(--purple-200); font-size: 2.6rem; animation-delay: -4s; }
.f4 { top: 80%; right: 4%; color: var(--pink-400); animation-delay: -1s; }
.f5 { top: 8%;  right: 30%; color: var(--purple-400); font-size: 1.2rem; animation-delay: -6s; }
.f6 { top: 45%; right: 1%; color: var(--pink-200); font-size: 3rem; animation-delay: -3s; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(8deg); }
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1120px;
    width: calc(100% - 32px);
    margin: 12px auto 24px;
    padding: 10px 14px 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--white);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo-icon {
    width: 44px;
    height: 44px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon { transform: rotate(-12deg) scale(1.08); }

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: var(--pink-100);
    color: var(--pink-500);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--grad);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(247, 102, 173, 0.28);
}

.btn-primary:hover:not(:disabled) {
    background: var(--grad-hover);
    color: var(--white);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-pop);
}

.btn:disabled { opacity: 0.65; cursor: wait; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 24px 0 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--purple-100);
    color: var(--purple-500);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 30em;
    margin-bottom: 28px;
}

.hero-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 28px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.hero-perks i { color: var(--pink-400); margin-right: 4px; }

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
}

.blob {
    position: absolute;
    inset: 4%;
    background: var(--grad);
    opacity: 0.35;
    border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
    animation: morph 12s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes morph {
    0%, 100% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; transform: rotate(0deg); }
    50%      { border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%; transform: rotate(10deg); }
}

.hero-img {
    position: relative;
    width: 86%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 36px;
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.hero-art:hover .hero-img { transform: rotate(1deg) scale(1.02); }

.sticker {
    position: absolute;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: bob 3.2s ease-in-out infinite;
}

.sticker-a { top: 6%; right: 4%; background: var(--pink-400); color: var(--white); transform: rotate(10deg); }
.sticker-b { bottom: 8%; left: 2%; background: var(--white); color: var(--purple-500); animation-delay: -1.6s; }

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
}

.wiggle {
    display: inline-block;
    animation: wiggle 2.4s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-8deg); }
    50%      { transform: rotate(8deg); }
}

.shop { padding: 24px 0 48px; scroll-margin-top: 100px; }

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
    gap: 24px;
    justify-content: center;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    border: 2px solid var(--white);
    transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    color: var(--ink);
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: var(--shadow-pop);
    border-color: var(--pink-200);
}

.card-img {
    aspect-ratio: 1 / 1;
    background: var(--pink-100);
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img img { transform: scale(1.06); }

.card-body { padding: 18px 20px 20px; }

.card-brand {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--purple-400);
}

.card-body h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin: 2px 0 4px; }

.card-meta { color: var(--ink-soft); font-size: 0.92rem; }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.card-price { font-size: 1.4rem; font-weight: 700; color: var(--pink-500); }

.card-cta {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--purple-500);
}

.card-cta i { transition: transform 0.2s ease; }
.product-card:hover .card-cta i { transform: translateX(4px); }

.how { padding: 24px 0 40px; }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.steps li {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px dashed var(--purple-200);
    border-radius: var(--radius);
}

.step-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    font-size: 1.9rem;
    border-radius: 50%;
    background: var(--pink-100);
}

.steps h3 { font-size: 1.2rem; font-weight: 600; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Product page ─────────────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-weight: 800;
    text-decoration: none;
}

.shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    border: 6px solid var(--white);
    background: var(--pink-100);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.thumb {
    padding: 0;
    border: 3px solid var(--white);
    border-radius: 14px;
    overflow: hidden;
    background: var(--pink-100);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(.34, 1.56, .64, 1);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb:hover { opacity: 1; transform: translateY(-3px); }

.thumb.active {
    opacity: 1;
    border-color: var(--pink-400);
}

.product-info {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.brand-line {
    color: var(--purple-500);
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.price {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pink-500);
    background: var(--pink-100);
    padding: 2px 16px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.product-sub { color: var(--ink-soft); font-weight: 600; }

.buy-row {
    display: flex;
    gap: 12px;
    margin: 24px 0 8px;
}

.qty {
    display: flex;
    align-items: center;
    border: 2px solid var(--purple-200);
    border-radius: 999px;
    background: var(--white);
}

.qty-btn {
    width: 44px;
    height: 100%;
    background: none;
    border: none;
    color: var(--purple-500);
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
}

.qty-btn:hover { color: var(--pink-500); }

.qty input {
    width: 36px;
    background: none;
    border: none;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.buy-btn { flex: 1; }

.buy-error {
    color: #d6336c;
    font-weight: 700;
    font-size: 0.9rem;
}

.shop-notes {
    list-style: none;
    margin: 20px 0 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--purple-100);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.shop-notes i { width: 22px; color: var(--purple-500); }

.product-section { margin-top: 26px; }

.product-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-500);
    margin-bottom: 8px;
}

.product-section h2::before { content: '✿ '; color: var(--pink-400); }

.design-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.design-chip {
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--pink-100);
    border: 2px solid var(--pink-200);
    color: var(--pink-500);
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1);
}

.design-chip:nth-child(even) {
    background: var(--purple-100);
    border-color: var(--purple-200);
    color: var(--purple-500);
}

.design-chip:hover { transform: translateY(-2px) rotate(-3deg); }

.spec-list { padding-left: 20px; }
.spec-list li::marker { color: var(--pink-400); }

.safety-warning {
    margin-top: 24px;
    padding: 12px 16px;
    border: 2px solid #ffd98a;
    border-radius: 16px;
    background: #fff8e6;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.safety-warning i,
.safety-warning strong { color: #b7791f; }

/* ── Panels: thanks / 404 / policies ─────────────────────────────────── */
.card-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.thanks {
    text-align: center;
    max-width: 540px;
    margin: 32px auto 48px;
    padding: 40px 28px;
}

.thanks-panda {
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
    animation: bob 3s ease-in-out infinite;
}

.thanks h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; }
.thanks p { margin-bottom: 12px; }
.thanks .btn { margin-top: 12px; }

.policies {
    max-width: 780px;
    margin: 0 auto 48px;
    padding: 36px 32px;
}

.policies > h1 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }

.policy {
    margin-top: 36px;
    scroll-margin-top: 100px;
}

.policy h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }

.policy-emoji {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--pink-100);
    font-size: 1.1rem;
}

.policy p,
.policy li {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.policy ul { padding-left: 20px; }
.policy li::marker { color: var(--pink-400); }
.policy strong { color: var(--ink); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding: 40px 20px 32px;
    background: linear-gradient(180deg, var(--purple-100), var(--pink-100));
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    text-align: center;
}

.footer-inner { max-width: 760px; margin: 0 auto; }

.footer-panda { width: 48px; height: 48px; margin-bottom: 12px; }

.policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 0.92rem;
}

.policy-links a { color: var(--ink); text-decoration: none; }
.policy-links a:hover { color: var(--pink-500); }

.disclaimer {
    font-size: 0.78rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto 12px;
}

.copyright { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.heart { color: var(--pink-500); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 8px; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-perks { justify-content: center; }
    .hero-art { order: -1; max-width: 360px; margin: 0 auto; }

    .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .gallery { position: static; }
    .product-info { padding: 22px 18px; }
    .product-title { font-size: 1.5rem; }
    .policies { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .navbar { border-radius: 28px; justify-content: center; }
    .logo-text { font-size: 1.2rem; }
    .nav-links a { padding: 6px 10px; font-size: 0.88rem; }
    .buy-row { flex-direction: column; }
    .qty { align-self: flex-start; }
    .qty-btn { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
