/* ═══════════════════════════════════════════════════════════
   LB Product Grid – Frontend Styles & Animations
   (No drag-and-drop – admin only)
   ═══════════════════════════════════════════════════════════ */

/* ── Section ── */
.lb-grid-section {
    padding: 60px 24px;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lb-grid-header {
    text-align: center;
    margin-bottom: 40px;
}

.lb-grid-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.lb-grid-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.lb-grid-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Animated Headlines ── */
.lb-headlines {
    margin-top: 20px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-headline-wrapper {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08));
    padding: 10px 28px;
    border-radius: 50px;
    border: 1px solid rgba(79,70,229,0.15);
}

.lb-headline-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.lb-headline-link[aria-disabled="true"] {
    pointer-events: none;
    cursor: default;
}

.lb-headline-link:hover:not([aria-disabled="true"]) .lb-headline-text {
    text-decoration: underline;
}

.lb-headline-link-disabled {
    cursor: default;
}

.lb-headline-text {
    font-size: 18px;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: -0.3px;
}

.lb-headline-cursor {
    font-size: 20px;
    font-weight: 300;
    color: #4f46e5;
    animation: lbCursorBlink 0.7s step-end infinite;
    margin-left: 1px;
}

@keyframes lbCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Additional headline animations */
@keyframes lbBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.1); }
    60% { transform: translateY(-5px) scale(1.05); }
}

@keyframes lbWave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes lbGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(79, 70, 229, 0.5); }
    50% { text-shadow: 0 0 20px rgba(79, 70, 229, 0.8), 0 0 30px rgba(79, 70, 229, 0.6); }
}

@keyframes lbShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes lbZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes lbSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

@keyframes lbGlitch {
    0% { transform: translate(0); text-shadow: 2px 0 #f43f5e, -2px 0 #22d3ee; }
    20% { transform: translate(-1px, 1px); text-shadow: -2px 0 #f43f5e, 2px 0 #22d3ee; }
    40% { transform: translate(1px, -1px); text-shadow: 2px 0 #22d3ee, -2px 0 #f43f5e; }
    60% { transform: translate(-2px, 0); text-shadow: -3px 0 #f43f5e, 3px 0 #22d3ee; }
    80% { transform: translate(2px, 1px); text-shadow: 2px 0 #22d3ee, -2px 0 #f43f5e; }
    100% { transform: translate(0); text-shadow: 2px 0 #f43f5e, -2px 0 #22d3ee; }
}

@keyframes lbTextShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes lbNeonPulse {
    0%, 100% { text-shadow: 0 0 6px rgba(94, 234, 212, 0.5), 0 0 12px rgba(94, 234, 212, 0.4); }
    50% { text-shadow: 0 0 14px rgba(94, 234, 212, 0.9), 0 0 28px rgba(94, 234, 212, 0.6); }
}

@keyframes lbUnderlineSweep {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes lbSpark {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* Headline styles */
.lb-headline-style-neon {
    background: rgba(9, 14, 24, 0.9);
    border: 1px solid rgba(94, 234, 212, 0.45);
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.25);
}

.lb-headline-style-neon .lb-headline-text {
    color: #5eead4;
    animation: lbNeonPulse 2s ease-in-out infinite;
}

.lb-headline-style-glass {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
}

.lb-headline-style-glass .lb-headline-text {
    color: #0f172a;
}

.lb-headline-style-ribbon {
    position: relative;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: none;
    border-radius: 10px;
    color: #fff;
}

.lb-headline-style-ribbon .lb-headline-text {
    color: #fff;
}

.lb-headline-style-ribbon::before,
.lb-headline-style-ribbon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #ef4444;
    transform: translateY(-50%) rotate(45deg);
}

.lb-headline-style-ribbon::before { left: -6px; }
.lb-headline-style-ribbon::after { right: -6px; }

.lb-headline-style-stamp {
    background: #fff;
    border: 2px dashed rgba(79, 70, 229, 0.5);
    border-radius: 6px;
    transform: rotate(-1deg);
}

.lb-headline-style-stamp .lb-headline-text {
    color: #0f172a;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.lb-headline-style-underline {
    background: transparent;
    border: none;
    padding-bottom: 14px;
    position: relative;
}

.lb-headline-style-underline::after {
    content: '';
    position: absolute;
    left: 12%;
    bottom: 6px;
    width: 76%;
    height: 2px;
    background: #4f46e5;
    animation: lbUnderlineSweep 2s ease-in-out infinite;
}

.lb-headline-style-shimmer .lb-headline-text {
    background: linear-gradient(90deg, #4f46e5, #ec4899, #22c55e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    color: transparent;
    animation: lbTextShimmer 2s linear infinite;
}

.lb-headline-style-spark {
    position: relative;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.lb-headline-style-spark::before,
.lb-headline-style-spark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    animation: lbSpark 1.6s ease-in-out infinite;
}

.lb-headline-style-spark::before { left: 10px; top: 8px; }
.lb-headline-style-spark::after { right: 10px; bottom: 8px; animation-delay: 0.4s; }

/* ── Grid ── */
.lb-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Card ── */
.lb-card {
    position: relative;
    flex: 1 1 340px;
    max-width: 420px;
    min-width: 300px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);

    /* Staggered entrance animation */
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    animation: lbCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index) * 0.07s);
}

.lb-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--card-rgb), 0.3);
}

/* Entrance animation */
@keyframes lbCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Card Header ── */
.lb-card-head {
    background: var(--card-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* Heading presets */
.lb-heading-preset-accent .lb-card-head {
    padding-left: 30px;
}

.lb-heading-preset-accent .lb-card-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
}

.lb-heading-preset-glow .lb-card-head {
    box-shadow: 0 0 18px rgba(var(--card-rgb), 0.35);
}

.lb-heading-preset-caps .lb-card-name {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 18px;
}

.lb-heading-preset-shadow .lb-card-head {
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.15);
}

/* Subtle shine sweep on header */
.lb-card-head::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: lbShineSweep 3s ease-in-out infinite;
    animation-delay: calc(var(--card-index) * 0.3s);
    pointer-events: none;
}

@keyframes lbShineSweep {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.lb-card-icon {
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Icon sizes */
.lb-card-icon.lb-icon-small { font-size: 20px; width: 20px; height: 20px; }
.lb-card-icon.lb-icon-medium { font-size: 24px; width: 24px; height: 24px; }
.lb-card-icon.lb-icon-large { font-size: 28px; width: 28px; height: 28px; }
.lb-card-icon.lb-icon-xl { font-size: 32px; width: 32px; height: 32px; }
.lb-card-icon.lb-icon-custom { font-size: var(--icon-size); width: var(--icon-size); height: var(--icon-size); }

/* Icon images (for uploaded icons) */
.lb-card-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 4px;
}

.lb-card-name {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex: 1;
    min-width: 0;
}

/* Text sizes */
.lb-card.lb-text-small .lb-card-name { font-size: 16px; }
.lb-card.lb-text-medium .lb-card-name { font-size: 20px; }
.lb-card.lb-text-large .lb-card-name { font-size: 24px; }
.lb-card.lb-text-xl .lb-card-name { font-size: 28px; }

.lb-card-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Card Body (product list) ── */
.lb-card-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* ── Product Item ── */
.lb-card-product {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(var(--card-rgb), 0.04);
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;

    /* Staggered entrance per product */
    opacity: 0;
    animation: lbProdIn 0.35s ease forwards;
    animation-delay: calc(var(--card-index) * 0.07s + var(--pi) * 0.04s + 0.2s);
}

.lb-card-product:hover {
    background: rgba(var(--card-rgb), 0.12);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(var(--card-rgb), 0.12);
}

@keyframes lbProdIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lb-card-product-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-card-product-price {
    font-size: 12px;
    color: var(--card-color);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(var(--card-rgb), 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-price-regular {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 500;
    font-size: 11px;
    opacity: 0.7;
}

.lb-price-sale {
    color: #ef4444;
    font-weight: 800;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.lb-card-product-arrow {
    font-size: 18px;
    font-weight: 300;
    color: #94a3b8;
    margin-left: 8px;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.lb-card-product:hover .lb-card-product-arrow {
    transform: translateX(3px);
    color: var(--card-color);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED BADGES (HOT, Popular, New, Sale)
   ═══════════════════════════════════════════════════════════ */

.lb-badge {
    position: absolute;
    padding: 4px 12px 6px;
    border-radius: 0 0 10px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Badge positions */
.lb-badge-pos-top-right { top: -1px; right: 16px; }
.lb-badge-pos-top-left { top: -1px; left: 16px; border-radius: 0 0 10px 0; }
.lb-badge-pos-bottom-right { bottom: -1px; right: 16px; border-radius: 10px 0 0 0; }
.lb-badge-pos-bottom-left { bottom: -1px; left: 16px; border-radius: 0 10px 0 0; }
.lb-badge-pos-center-top { top: -1px; left: 50%; transform: translateX(-50%); border-radius: 0 0 10px 10px; }
.lb-badge-pos-center-bottom { bottom: -1px; left: 50%; transform: translateX(-50%); border-radius: 10px 10px 0 0; }

.lb-card-head { position: relative; }

/* HOT badge – pulsing fire gradient */
.lb-badge-hot.lb-badge-anim-pulse {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgePulse 1.5s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-bounce {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeBounce 2s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-glow {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeGlow 2s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-shimmer {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeShimmer 2s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-rotate {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeRotate 2s linear infinite;
}

.lb-badge-hot.lb-badge-anim-heartbeat {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeHeartbeat 1.5s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-wave {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    animation: lbBadgeWave 2s ease-in-out infinite;
}

.lb-badge-hot.lb-badge-anim-none {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
}

@keyframes lbBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 4px 16px rgba(255, 69, 0, 0.5); }
}

/* Popular badge – golden shimmer */
.lb-badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: lbBadgeShimmer 2s ease-in-out infinite;
}

@keyframes lbBadgeShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { filter: brightness(1.2); }
}

/* New badge – electric blue glow */
.lb-badge-new {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    animation: lbBadgeGlow 2s ease-in-out infinite;
}

@keyframes lbBadgeGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6); }
}

/* Sale badge – bouncing green */
.lb-badge-sale {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: lbBadgeBounce 2s ease-in-out infinite;
}

@keyframes lbBadgeBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(1px); }
}

/* Additional badge animations */
@keyframes lbBadgeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lbBadgeHeartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
    75% { transform: scale(1.1); }
}

@keyframes lbBadgeWave {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(-2deg) scale(1.05); }
}

/* Additional custom badge animations */
@keyframes lbBadgeFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes lbBadgeSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes lbBadgeScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes lbBadgeRainbow {
    0%, 100% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
}

@keyframes lbBadgeTypewriter {
    0%, 100% { width: 0; }
    50% { width: 100%; }
}

@keyframes lbBadgeElastic {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(3deg); }
}

@keyframes lbBadgeJello {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05) skewX(5deg); }
    50% { transform: scale(1.1) skewX(-5deg); }
    75% { transform: scale(1.05) skewX(3deg); }
}

/* Custom badge – user-defined text and icon */
.lb-badge-custom {
    background-color: var(--custom-badge-bg, #8b5cf6);
    color: var(--custom-badge-text, #ffffff);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lb-badge-custom .lb-badge-icon {
    font-size: 12px;
    line-height: 1;
}

.lb-badge-custom .lb-badge-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Custom badge shapes */
.lb-badge-custom[data-custom-shape="rectangle"] {
    border-radius: 0;
}

.lb-badge-custom[data-custom-shape="rounded"] {
    border-radius: 6px;
}

.lb-badge-custom[data-custom-shape="pill"] {
    border-radius: 50px;
    padding: 6px 16px;
}

.lb-badge-custom[data-custom-shape="circle"] {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 14px;
}

.lb-badge-custom[data-custom-shape="diamond"] {
    border-radius: 0;
    transform: rotate(45deg);
    padding: 8px;
}

.lb-badge-custom[data-custom-shape="diamond"] .lb-badge-text {
    transform: rotate(-45deg);
}

.lb-badge-custom[data-custom-shape="star"] {
    position: relative;
    background: transparent !important;
}

.lb-badge-custom[data-custom-shape="star"]::before {
    content: '⭐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: -1;
}

/* Custom badge animations */
.lb-badge-custom[data-custom-animation="none"] {
    animation: none;
}

.lb-badge-custom[data-custom-animation="pulse"] {
    animation: lbBadgePulse 1.5s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="bounce"] {
    animation: lbBadgeBounce 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="glow"] {
    animation: lbBadgeGlow 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="shimmer"] {
    animation: lbBadgeShimmer 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="rotate"] {
    animation: lbBadgeRotate 2s linear infinite;
}

.lb-badge-custom[data-custom-animation="heartbeat"] {
    animation: lbBadgeHeartbeat 1.5s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="wave"] {
    animation: lbBadgeWave 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="fade"] {
    animation: lbBadgeFade 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="slide"] {
    animation: lbBadgeSlide 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="scale"] {
    animation: lbBadgeScale 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="rainbow"] {
    animation: lbBadgeRainbow 3s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="typewriter"] {
    animation: lbBadgeTypewriter 2s steps(10, end) infinite;
}

.lb-badge-custom[data-custom-animation="elastic"] {
    animation: lbBadgeElastic 2s ease-in-out infinite;
}

.lb-badge-custom[data-custom-animation="jello"] {
    animation: lbBadgeJello 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   TEXT FORMATTING TOGGLES (applied via CSS classes)
   ═══════════════════════════════════════════════════════════ */

.lb-no-underline .lb-card-product { text-decoration: none !important; }
.lb-bold-prices .lb-card-product-price { font-weight: 900 !important; font-size: 13px !important; }
.lb-bold-prices .lb-price-sale { font-weight: 900 !important; font-size: 14px !important; }
.lb-bold-names .lb-card-product-name { font-weight: 800 !important; }
.lb-hide-prices .lb-card-product-price { display: none !important; }
.lb-hide-arrow .lb-card-product-arrow { display: none !important; }
.lb-animate-headings .lb-card-name { animation: lbHeadingPulse 2s ease-in-out infinite; }

@keyframes lbHeadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
    .lb-grid-section { padding: 40px 16px; }
    .lb-grid-title { font-size: 30px; }
    .lb-grid-subtitle { font-size: 16px; }
    .lb-card-grid { gap: 18px; }
    .lb-card { flex: 1 1 280px; min-width: 260px; }
}

/* Mobile */
@media (max-width: 600px) {
    .lb-grid-section { padding: 32px 12px; }
    .lb-grid-title { font-size: 24px; }
    .lb-grid-subtitle { font-size: 15px; }
    .lb-grid-pill { font-size: 12px; padding: 5px 14px; }
    .lb-card-grid { gap: 14px; }
    .lb-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: 0;
    }
    .lb-card-head { padding: 16px 18px; }
    .lb-card-name { font-size: 17px; }
    .lb-card-icon:not([class*="lb-icon-"]) { font-size: 20px; }
    .lb-card-body { padding: 12px 14px; gap: 5px; }
    .lb-card-product { padding: 10px 12px; font-size: 13px; }
    .lb-card-product-price { font-size: 11px; padding: 2px 8px; }
    .lb-price-regular { font-size: 10px; }
    .lb-price-sale { font-size: 12px; padding: 1px 4px; }
    .lb-bold-prices .lb-card-product-price { font-size: 12px !important; }
    .lb-bold-prices .lb-price-sale { font-size: 13px !important; }
}

/* Border Animations */
.lb-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}

.lb-card[data-border-animation]::before {
    opacity: 1;
}

@keyframes lbBorderFireInner {
    0% { box-shadow: inset 0 0 0 0 rgba(255, 69, 0, 0.5), inset 0 0 10px rgba(255, 69, 0, 0.35); }
    50% { box-shadow: inset 0 0 0 2px rgba(255, 140, 0, 0.6), inset 0 0 14px rgba(255, 140, 0, 0.35); }
    100% { box-shadow: inset 0 0 0 0 rgba(255, 69, 0, 0.4), inset 0 0 10px rgba(255, 69, 0, 0.25); }
}

@keyframes lbBorderGlowInner {
    0% { box-shadow: inset 0 0 0 0 rgba(59, 130, 246, 0.5), inset 0 0 10px rgba(59, 130, 246, 0.35); }
    50% { box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.6), inset 0 0 14px rgba(59, 130, 246, 0.35); }
    100% { box-shadow: inset 0 0 0 0 rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.25); }
}

@keyframes lbBorderPulseInner {
    0% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50% { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2); }
    100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.6); }
}

@keyframes lbBorderRainbowInner {
    0% { box-shadow: inset 0 0 0 0 rgba(255, 0, 0, 0.6); }
    16.66% { box-shadow: inset 0 0 0 2px rgba(255, 128, 0, 0.6); }
    33.33% { box-shadow: inset 0 0 0 2px rgba(255, 255, 0, 0.6); }
    50% { box-shadow: inset 0 0 0 2px rgba(0, 255, 0, 0.6); }
    66.66% { box-shadow: inset 0 0 0 2px rgba(0, 128, 255, 0.6); }
    83.33% { box-shadow: inset 0 0 0 2px rgba(128, 0, 255, 0.6); }
    100% { box-shadow: inset 0 0 0 0 rgba(255, 0, 0, 0.6); }
}

.lb-card[data-border-animation="fire"]::before {
    animation: lbBorderFireInner 2s ease-in-out infinite;
}

.lb-card[data-border-animation="glow"]::before {
    animation: lbBorderGlowInner 2s ease-in-out infinite;
}

.lb-card[data-border-animation="pulse"]::before {
    animation: lbBorderPulseInner 2s ease-in-out infinite;
}

.lb-card[data-border-animation="rainbow"]::before {
    animation: lbBorderRainbowInner 3s linear infinite;
}

/* Heading Animations */
@keyframes lbHeadingFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes lbHeadingSlide {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes lbHeadingBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes lbHeadingWave {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

@keyframes lbHeadingGlow {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0); }
    50% { text-shadow: 0 0 20px rgba(255,255,255,0.8); }
    100% { text-shadow: 0 0 5px rgba(255,255,255,0); }
}

@keyframes lbHeadingShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes lbHeadingFlip {
    0% { transform: rotateY(90deg); opacity: 0; }
    100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes lbHeadingTyping {
    0% { width: 0; }
    100% { width: 100%; }
}

.lb-card[data-heading-animation="fade"] .lb-card-name {
    animation: lbHeadingFade 0.8s ease-out;
}

.lb-card[data-heading-animation="slide"] .lb-card-name {
    animation: lbHeadingSlide 0.6s ease-out;
}

.lb-card[data-heading-animation="bounce"] .lb-card-name {
    animation: lbHeadingBounce 0.8s ease-out;
}

.lb-card[data-heading-animation="wave"] .lb-card-name {
    animation: lbHeadingWave 1s ease-in-out;
}

.lb-card[data-heading-animation="glow"] .lb-card-name {
    animation: lbHeadingGlow 2s ease-in-out infinite;
}

.lb-card[data-heading-animation="shake"] .lb-card-name {
    animation: lbHeadingShake 0.5s ease-in-out;
}

.lb-card[data-heading-animation="flip"] .lb-card-name {
    animation: lbHeadingFlip 0.6s ease-out;
}

.lb-card[data-heading-animation="typing"] .lb-card-name {
    overflow: hidden;
    white-space: nowrap;
    animation: lbHeadingTyping 2s steps(20, end);
}

}


/* Small mobile */
@media (max-width: 380px) {
    .lb-card-product-price { display: none; }
    .lb-card-name { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════
   DARK PRESET – Cowork Dark Theme
   Matches the cowork_home1 page color scheme (#060c1a / indigo)
   ═══════════════════════════════════════════════════════════ */

/* Section background → transparent so Elementor section bg shows through */
.lb-grid-section.lb-heading-preset-dark {
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
}

/* Header: pill tag */
.lb-heading-preset-dark .lb-grid-pill {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.28);
}

/* Header: title + subtitle */
.lb-heading-preset-dark .lb-grid-title {
    color: #f1f5f9;
}

.lb-heading-preset-dark .lb-grid-subtitle {
    color: #94a3b8;
}

/* Animated headline wrapper */
.lb-heading-preset-dark .lb-headline-wrapper {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

/* Card base – dark navy background */
.lb-heading-preset-dark .lb-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lb-heading-preset-dark .lb-card:hover {
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.65);
    border-color: rgba(var(--card-rgb), 0.45);
}

/* Card head stays with platform gradient color (--card-color) – no override needed */

/* Product item rows */
.lb-heading-preset-dark .lb-card-product {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.lb-heading-preset-dark .lb-card-product:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9;
}

.lb-heading-preset-dark .lb-card-product-arrow {
    color: #475569;
}

.lb-heading-preset-dark .lb-card-product:hover .lb-card-product-arrow {
    color: var(--card-color);
}

/* ─── Hover Focus Preset ─── */
.lb-heading-preset-hover .lb-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lb-heading-preset-hover .lb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,.13);
    border-color: rgba(var(--card-rgb), 0.5);
}

/* Product rows: left border accent appears on hover */
.lb-heading-preset-hover .lb-card-product {
    border-left: 3px solid transparent;
    padding-left: 13px; /* compensate for invisible border */
    transition: background 0.15s ease,
                border-color 0.15s ease,
                padding-left 0.15s ease;
}

.lb-heading-preset-hover .lb-card-product:hover {
    background: rgba(var(--card-rgb), 0.10);
    border-left-color: var(--card-color);
    padding-left: 18px;
    transform: none;
    box-shadow: none;
}

/* Arrow: hidden by default, visible on hover */
.lb-heading-preset-hover .lb-card-product-arrow {
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
    transform: none !important;
    font-size: 16px;
    font-weight: 700;
}

.lb-heading-preset-hover .lb-card-product:hover .lb-card-product-arrow {
    opacity: 1;
    color: var(--card-color);
}

/* Price always shown in platform color, bold */
.lb-heading-preset-hover .lb-card-product-price {
    font-weight: 700;
    color: rgba(var(--card-rgb), 1);
}

/* Name becomes bold + dark on hover */
.lb-heading-preset-hover .lb-card-product-name {
    transition: font-weight 0s, color 0.15s ease;
}

.lb-heading-preset-hover .lb-card-product:hover .lb-card-product-name {
    font-weight: 700;
    color: #0f172a;
}

/* Price */
.lb-heading-preset-dark .lb-card-product-price {
    color: var(--card-color);
    background: rgba(var(--card-rgb), 0.12);
}

.lb-heading-preset-dark .lb-price-regular {
    color: #64748b;
}

/* Count badge on card head */
.lb-heading-preset-dark .lb-card-count {
    background: rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   DISPLAY MODES (Dark / White Mode)
   ═══════════════════════════════════════════════════════════ */

/* Dark Mode: Alle hellen Elemente → Dunkel machen */
.lb-display-mode-dark {
    background: #0f172a;
}

.lb-display-mode-dark .lb-grid-pill {
    background: rgba(79, 70, 229, 0.2);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.lb-display-mode-dark .lb-grid-title {
    color: #f1f5f9;
}

.lb-display-mode-dark .lb-grid-subtitle {
    color: #94a3b8;
}

.lb-display-mode-dark .lb-headline-wrapper {
    background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(124,58,237,0.15));
    border-color: rgba(79,70,229,0.25);
}

.lb-display-mode-dark .lb-headline-text {
    color: #c7d2fe;
}

.lb-display-mode-dark .lb-headline-cursor {
    color: #c7d2fe;
}

.lb-display-mode-dark .lb-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.lb-display-mode-dark .lb-card-head {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lb-display-mode-dark .lb-card-name {
    color: #f1f5f9;
}

.lb-display-mode-dark .lb-card-count {
    background: rgba(79, 70, 229, 0.2);
    color: #a5b4fc;
}

.lb-display-mode-dark .lb-card-product {
    color: #cbd5e1;
}

.lb-display-mode-dark .lb-card-product:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #f1f5f9;
}

.lb-display-mode-dark .lb-card-product-price {
    color: #94a3b8;
}

.lb-display-mode-dark .lb-price-regular {
    color: #64748b;
}

.lb-display-mode-dark .lb-card-product-arrow {
    color: #64748b;
}

/* White Mode: Alle dunklen Elemente → Hell machen */
.lb-display-mode-white {
    background: #ffffff;
}

.lb-display-mode-white .lb-grid-pill {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.lb-display-mode-white .lb-grid-title {
    color: #0c4a6e;
}

.lb-display-mode-white .lb-grid-subtitle {
    color: #0369a1;
}

.lb-display-mode-white .lb-headline-wrapper {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-color: #bfdbfe;
}

.lb-display-mode-white .lb-headline-text {
    color: #1e40af;
}

.lb-display-mode-white .lb-headline-cursor {
    color: #1e40af;
}

.lb-display-mode-white .lb-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.lb-display-mode-white .lb-card-head {
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.lb-display-mode-white .lb-card-name {
    color: #0f172a;
}

.lb-display-mode-white .lb-card-count {
    background: #dbeafe;
    color: #0369a1;
}

.lb-display-mode-white .lb-card-product {
    color: #1e293b;
}

.lb-display-mode-white .lb-card-product:hover {
    background: #f0f9ff;
    color: #0c4a6e;
}

.lb-display-mode-white .lb-card-product-price {
    color: #475569;
}

.lb-display-mode-white .lb-price-regular {
    color: #94a3b8;
}

.lb-display-mode-white .lb-card-product-arrow {
    color: #94a3b8;
}

/* Dark Mode: Borde und Schatten */
.lb-display-mode-dark .lb-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lb-display-mode-dark .lb-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* White Mode: Leichte Schatten */
.lb-display-mode-white .lb-card {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.lb-display-mode-white .lb-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.1);
}
