/* ========== Yuki Pepper Studio — Shared Styles (Neumorphism / Soft UI) ========== */

:root {
    --soft-pink: #ffd1dc;
    --deep-pink: #ff8fab;
    --accent-pink: #ff4d6d;
    --bg-color: #fffafb;
    --bg-base: #fffbfc;
    --text-main: #ff8fab;
    --glass: rgba(255, 255, 255, 0.7);
    /* Neumorphism shadows (light from top-left) */
    --shadow-soft: rgba(0, 0, 0, 0.06);
    --shadow-highlight: rgba(255, 255, 255, 0.9);
    --neu-raised: 6px 6px 12px var(--shadow-soft), -6px -6px 12px var(--shadow-highlight);
    --neu-inset: inset 2px 2px 6px var(--shadow-soft);
    --neu-pressed: inset 3px 3px 6px var(--shadow-soft), inset -2px -2px 4px var(--shadow-highlight);
}

/* Highlight Color */
::selection {
    background: var(--deep-pink);
    color: white;
}

.text-deep-pink { color: var(--deep-pink); }
.hover\:text-deep-pink:hover { color: var(--deep-pink); }

/* ---------- Typography ---------- */
body {
    font-family: 'Prompt', 'Quicksand', 'Mali', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    background-image: linear-gradient(180deg, #fff 0%, #fffbfc 50%, #fff5f7 100%);
    background-size: 100% 100%;
    background-attachment: fixed;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Mali', 'Prompt', sans-serif;
}

h1, h2, h3, h4, p, span, a, input {
    color: var(--text-main);
}

.font-handwriting {
    font-family: 'Sacramento', 'Mali', cursive;
}

/* ---------- Noise (disabled for clean Neumorphism look) ---------- */
body::before {
    content: none;
}

/* ---------- Scrollbar (smoother) ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--soft-pink), var(--deep-pink));
    border-radius: 10px;
    border: 2px solid var(--bg-color);
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--deep-pink), var(--accent-pink));
}

/* ---------- Neumorphism: Navbar ---------- */
.navbar-glass {
    background: var(--bg-base);
    border: none;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    box-shadow: 0 2px 8px var(--shadow-soft), 0 1px 0 var(--shadow-highlight) inset;
}
.navbar-glass.scrolled {
    background: var(--bg-base);
    box-shadow: 0 4px 12px var(--shadow-soft), 0 1px 0 var(--shadow-highlight) inset;
}

/* ---------- Neumorphism: Panels ---------- */
.glass-panel {
    background: var(--bg-base);
    border: none;
    border-radius: 24px;
    box-shadow: var(--neu-raised);
}

.glass-sidebar,
.glass-cart,
.glass-modal-inner {
    background: var(--bg-base);
    border: none;
    border-radius: 24px;
    box-shadow: 8px 8px 24px var(--shadow-soft), -8px -8px 24px var(--shadow-highlight);
}

/* ---------- Nav link (hover: cute pill + soft glow) ---------- */
.nav-link::after {
    content: none;
}
.nav-link {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
}
.nav-link:hover {
    color: var(--deep-pink);
    background: rgba(255, 143, 171, 0.18);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 143, 171, 0.25);
}
/* ---------- Nav links container (gradient pill) ---------- */
.nav-links-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 100%);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

/* ---------- Button primary (Neumorphic) ---------- */
.btn-magical {
    position: relative;
    overflow: hidden;
    background: var(--soft-pink);
    border: none;
    box-shadow: 6px 6px 12px rgba(255, 143, 171, 0.25), -4px -4px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: white !important;
}
.btn-magical::after {
    content: none;
}
@media (hover: hover) {
    .btn-magical:hover {
        box-shadow: 4px 4px 8px rgba(255, 143, 171, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.7);
        transform: translateY(1px);
    }
    .btn-magical:active {
        box-shadow: var(--neu-pressed);
        transform: translateY(2px);
    }
}

/* ---------- Button exhibition CTA (#FF94AD) ---------- */
.btn-magical-exhibition {
    background: #FF94AD !important;
    box-shadow: 6px 6px 12px rgba(255, 148, 173, 0.35), -4px -4px 8px rgba(255, 255, 255, 0.8);
}
@media (hover: hover) {
    .btn-magical-exhibition:hover {
        box-shadow: 4px 4px 8px rgba(255, 148, 173, 0.4), -2px -2px 6px rgba(255, 255, 255, 0.7);
    }
}

/* ---------- Button secondary (Neumorphic raised) ---------- */
.btn-neu {
    background: var(--bg-base);
    border: none;
    border-radius: 16px;
    box-shadow: var(--neu-raised);
    transition: all 0.3s ease;
    color: var(--text-main);
}
@media (hover: hover) {
    .btn-neu:hover {
        box-shadow: 4px 4px 8px var(--shadow-soft), -4px -4px 8px var(--shadow-highlight);
    }
    .btn-neu:active {
        box-shadow: var(--neu-pressed);
        transform: translateY(1px);
    }
}

/* ---------- Product card (Neumorphic) ---------- */
.product-card {
    background: var(--bg-base);
    border: none;
    border-radius: 28px;
    box-shadow: var(--neu-raised);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    perspective: 1000px;
    transform-style: preserve-3d;
}
@media (hover: hover) {
    .product-card:hover {
        box-shadow: 8px 8px 20px var(--shadow-soft), -8px -8px 20px var(--shadow-highlight);
    }
}
@media (hover: hover) and (max-width: 767px) {
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 8px 14px 24px var(--shadow-soft), -6px -6px 16px var(--shadow-highlight);
    }
}

/* ---------- Sold out ---------- */
.sold-out-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}
.sold-out-badge {
    background: #ff5e78;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}
.sold-out-banner {
    position: relative;
    background: var(--accent-pink);
    color: white !important;
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    z-index: 40;
    border: 1px solid white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sold-out-banner:hover {
    transform: scale(1.1) rotate(-3deg);
}
.sold-out-banner:hover .sold-out-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.sold-out-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--deep-pink);
    text-align: center;
    border-radius: 8px;
    padding: 6px 8px;
    position: absolute;
    z-index: 50;
    top: 140%;
    right: -5px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.55rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffe4ea;
    pointer-events: none;
    white-space: normal;
    line-height: 1.3;
    transform: translateY(-5px);
}

.thumb-active {
    border: 3px solid var(--accent-pink) !important;
    transform: scale(1.1);
}

/* ---------- Panel 3D ---------- */
.panel-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (min-width: 768px) {
    .panel-3d:hover {
        transform: translateZ(6px) rotateY(-2deg);
        box-shadow: 10px 10px 24px var(--shadow-soft), -10px -10px 24px var(--shadow-highlight);
    }
}

/* ---------- Auth input (Neumorphic inset) ---------- */
.auth-input {
    background: var(--bg-base);
    border: none;
    border-radius: 16px;
    box-shadow: var(--neu-inset);
    transition: all 0.3s ease;
}
.auth-input:focus {
    outline: none;
    box-shadow: var(--neu-inset), 0 0 0 2px rgba(255, 143, 171, 0.25);
}

.input-field {
    background: var(--bg-base);
    border: none;
    border-radius: 16px;
    color: var(--text-main);
    box-shadow: var(--neu-inset);
    transition: all 0.3s ease;
}
.input-field:focus {
    outline: none;
    box-shadow: var(--neu-inset), 0 0 0 2px rgba(255, 143, 171, 0.25);
}

/* ---------- Toast ---------- */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}
.toast {
    background: var(--bg-base);
    border: none;
    border-left: 5px solid var(--accent-pink);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: var(--neu-raised);
    transform: translateX(-120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    pointer-events: auto;
}
.toast.show {
    transform: translateX(0);
}

/* ---------- Side cart / sidebar transition ---------- */
#sideCart,
#mobileSidebar {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.cart-item {
    border-bottom: 1px solid rgba(255, 143, 171, 0.1);
    padding: 15px 0;
}

/* ---------- Announce bar ---------- */
.announce-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #e91e63 0%, #c2185b 50%, #ad1457 100%);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.announce-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: announce-marquee 25s linear infinite;
}
@keyframes announce-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ---------- Filter buttons (shop, Neumorphic) ---------- */
.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
}
.filter-btn.active {
    background: var(--deep-pink);
    color: white;
    border: none;
    box-shadow: 4px 4px 10px rgba(255, 77, 109, 0.3), -2px -2px 6px rgba(255, 255, 255, 0.5);
}
.filter-btn:not(.active) {
    background: var(--bg-base);
    box-shadow: var(--neu-raised);
}

/* ---------- Google button (Neumorphic) ---------- */
.btn-google {
    background: var(--bg-base);
    border: none;
    border-radius: 16px;
    color: #757575;
    box-shadow: var(--neu-raised);
    transition: all 0.3s ease;
}
.btn-google:hover {
    box-shadow: 4px 4px 10px var(--shadow-soft), -4px -4px 10px var(--shadow-highlight);
}
.btn-google:active {
    box-shadow: var(--neu-pressed);
    transform: translateY(1px);
}

/* ---------- Nav: readable menu font size ---------- */
.nav-link {
    font-size: clamp(0.8125rem, 0.6875rem + 0.5vw, 0.875rem);
}
