/* ============================================
   QR MENÜ — ULTRA PREMIUM MOBILE-FIRST THEME
   V2 — Gradient-rich, animated, premium feel
   ============================================ */

/* === BASE RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#app {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* === ANIMATED BACKGROUND ORBS === */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.18), transparent 70%);
    bottom: 20%;
    left: -80px;
    animation-delay: -8s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%);
    top: 45%;
    right: -40px;
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(25px, -35px) scale(1.08);
    }

    50% {
        transform: translate(-15px, 20px) scale(0.95);
    }

    75% {
        transform: translate(35px, 25px) scale(1.05);
    }
}

/* === GRAIN overlay === */
.grain-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* === CUSTOM ANIMATIONS === */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: translate(-50%, 0) scale(1);
    }

    50% {
        opacity: 0.18;
        transform: translate(-50%, 0) scale(1.15);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow2 {

    0%,
    100% {
        opacity: 0.06;
        transform: translate(-50%, 0) scale(1);
    }

    50% {
        opacity: 0.12;
        transform: translate(-50%, 0) scale(1.2);
    }
}

.animate-pulse-slow2 {
    animation: pulse-slow2 5s ease-in-out infinite 1s;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* === TEXT SHIMMER GRADIENT (Gold Sweep) === */
.text-shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.85) 8%,
            rgba(245, 223, 160, 1) 16%,
            rgba(212, 168, 83, 1) 28%,
            rgba(245, 223, 160, 1) 38%,
            rgba(255, 255, 255, 0.9) 48%,
            rgba(212, 168, 83, 0.9) 58%,
            rgba(245, 223, 160, 1) 68%,
            rgba(255, 255, 255, 0.85) 80%,
            rgba(212, 168, 83, 0.8) 90%,
            rgba(255, 255, 255, 0.5) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        text-shimmer-intro 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        text-shimmer-loop 4s linear 2.2s infinite;
}

/* Initial dramatic sweep — gold light sweeps left to right */
@keyframes text-shimmer-intro {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Subtle continuous shimmer loop */
@keyframes text-shimmer-loop {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -300% center;
    }
}

/* === LOGO ROTATING RING === */
.logo-ring {
    border: 2px solid rgba(212, 168, 83, 0.15);
    animation: ringRotate 3s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 1), rgba(212, 168, 83, 0.3));
    box-shadow:
        0 0 12px 4px rgba(212, 168, 83, 0.6),
        0 0 30px 8px rgba(212, 168, 83, 0.2);
}

.logo-ring::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9), rgba(139, 92, 246, 0.2));
    box-shadow:
        0 0 10px 3px rgba(139, 92, 246, 0.5),
        0 0 25px 6px rgba(139, 92, 246, 0.15);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* === HERO ENTRANCE ANIMATIONS === */
.hero-logo {
    animation: logoEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(24px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-title {
    animation: titleSlideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
    opacity: 0;
}

.hero-slogan {
    animation: titleSlideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
}

.hero-divider {
    animation: dividerFadeIn 0.8s ease 0.55s forwards;
    opacity: 0;
}

.section-header {
    animation: titleSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dividerFadeIn {
    0% {
        opacity: 0;
        transform: scaleX(0.3);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* === GLASSMORPHISM === */
.glass-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* === CATEGORY HEADER (sticky) === */
.category-header {
    background: linear-gradient(to bottom,
            rgba(5, 5, 16, 0.95) 0%,
            rgba(5, 5, 16, 0.85) 70%,
            rgba(5, 5, 16, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === MODAL SHEET === */
.modal-sheet {
    background: linear-gradient(to bottom,
            rgba(15, 20, 36, 0.98),
            rgba(10, 14, 26, 0.99));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* === CATEGORY CARDS (premium gradient borders) === */
.category-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.375rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
    -webkit-user-select: none;
    user-select: none;
    /* gradient border trick */
    border: 1px solid transparent;
    background-clip: padding-box;
}

/* Gradient border via pseudo-element */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02),
            rgba(212, 168, 83, 0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
}

/* Hover inner glow */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(212, 168, 83, 0.08) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    background: linear-gradient(145deg,
            rgba(212, 168, 83, 0.25),
            rgba(139, 92, 246, 0.1),
            rgba(212, 168, 83, 0.08));
}

.category-card:hover::after {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 168, 83, 0.04);
}

.category-card .card-content {
    position: relative;
    z-index: 2;
}

.category-card .icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-card:hover .icon-wrapper {
    transform: scale(1.12) translateY(-2px);
}

.category-card .card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.category-card .card-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Card color variants — gradient icon backgrounds */
.category-card[data-color="gold"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.18) 0%, rgba(212, 168, 83, 0.04) 100%);
    border: 1px solid rgba(212, 168, 83, 0.15);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.08), inset 0 1px 0 rgba(212, 168, 83, 0.1);
}

.category-card[data-color="gold"] .icon-wrapper svg {
    color: #d4a853;
}

.category-card[data-color="purple"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

.category-card[data-color="purple"] .icon-wrapper svg {
    color: #8b5cf6;
}

.category-card[data-color="blue"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.category-card[data-color="blue"] .icon-wrapper svg {
    color: #3b82f6;
}

.category-card[data-color="pink"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.04) 100%);
    border: 1px solid rgba(236, 72, 153, 0.15);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.08), inset 0 1px 0 rgba(236, 72, 153, 0.1);
}

.category-card[data-color="pink"] .icon-wrapper svg {
    color: #ec4899;
}

.category-card[data-color="emerald"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(16, 185, 129, 0.1);
}

.category-card[data-color="emerald"] .icon-wrapper svg {
    color: #10b981;
}

.category-card[data-color="orange"] .icon-wrapper {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.04) 100%);
    border: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.08), inset 0 1px 0 rgba(249, 115, 22, 0.1);
}

.category-card[data-color="orange"] .icon-wrapper svg {
    color: #f97316;
}

/* === PRODUCT CARDS === */
.product-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.125rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before,
.product-card:active::before {
    opacity: 1;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-card .product-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 0.875rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease;
}

.product-card .product-image {
    width: 56px;
    height: 56px;
    border-radius: 0.875rem;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.product-card:hover .product-placeholder,
.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .price-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #f5dfa0, #d4a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* === SKELETON LOADING === */
.skeleton-card {
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.015) 8%,
            rgba(255, 255, 255, 0.04) 18%,
            rgba(255, 255, 255, 0.015) 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === VIEW TRANSITIONS === */
.view {
    display: none;
    opacity: 0;
}

.view.active {
    display: block;
    animation: viewIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.view.exiting {
    display: block;
    animation: viewOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes viewOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* === STAGGER ANIMATION === */
.stagger-item {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    animation: staggerIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* === MODAL === */
#product-modal.show {
    display: flex !important;
}

#product-modal.show #modal-content {
    transform: translateY(0);
}

#product-modal #modal-overlay {
    opacity: 0;
    transition: opacity 0.35s ease;
}

#product-modal.show #modal-overlay {
    opacity: 1;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.1);
    border-radius: 10px;
}

/* === FOCUS === */
input:focus,
button:focus-visible {
    outline: none;
}

/* === SOCIAL LINK HOVER === */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === BACK BUTTON === */
.back-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* === LINE CLAMP === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==== MOBILE TOUCH ==== */
@media (hover: none) and (pointer: coarse) {
    .category-card {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .category-card:active {
        transform: scale(0.95);
    }

    .category-card:active::before {
        background: linear-gradient(145deg, rgba(212, 168, 83, 0.2), rgba(139, 92, 246, 0.08), rgba(212, 168, 83, 0.06));
    }

    .category-card:active::after {
        opacity: 1;
    }

    .product-card:active {
        transform: scale(0.97);
        background: rgba(255, 255, 255, 0.04);
    }

    .social-link:active {
        transform: scale(0.9);
    }

    .back-btn:active {
        transform: scale(0.88);
    }
}

/* === RESPONSIVE === */
@media (max-width: 380px) {
    .category-card {
        min-height: 135px;
        padding: 1.125rem 0.75rem;
    }

    .category-card .icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .product-card .product-placeholder,
    .product-card .product-image {
        width: 48px;
        height: 48px;
    }
}