﻿/*
   Lunar Market IDs - site-wide redesign layer
   Loaded after page-specific styles so it can unify the whole public site.
*/

:root {
    --lm-bg: #f5f8ff;
    --lm-surface: #ffffff;
    --lm-surface-soft: #eef6ff;
    --lm-ink: #0b1220;
    --lm-muted: #526174;
    --lm-border: #d9e4f2;
    --lm-primary: #1d4ed8;
    --lm-primary-2: #2563eb;
    --lm-cyan: #38bdf8;
    --lm-mint: #10b981;
    --lm-warning: #f59e0b;
    --lm-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --lm-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --lm-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, #f8fbff 0%, var(--lm-bg) 42%, #ffffff 100%) !important;
    color: var(--lm-ink) !important;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(300deg, rgba(56, 189, 248, 0.09), transparent 38%);
}

a {
    text-underline-offset: 3px;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.90) !important;
    border-bottom: 1px solid rgba(217, 228, 242, 0.88) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(18px);
}

.header-container {
    max-width: 1240px !important;
    min-height: 78px;
}

.logo a {
    gap: 12px;
}

.logo-img,
.sidebar-logo,
.brand-logo-img {
    filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.22));
}

.logo-tagline {
    color: var(--lm-muted) !important;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav-menu,
.mobile-nav-menu {
    gap: 4px;
}

.nav-link,
.mobile-nav-link,
.mobile-dropdown-toggle {
    border-radius: 999px !important;
    color: var(--lm-ink) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active,
.mobile-dropdown-toggle:hover {
    background: var(--lm-surface-soft) !important;
    color: var(--lm-primary) !important;
}

.dropdown-menu,
.mobile-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: var(--lm-shadow) !important;
    border-radius: var(--lm-radius) !important;
}

.dropdown-menu a {
    border-radius: 10px;
}

.header-order-btn,
.btn-primary,
.primary-btn,
.checkout-btn,
.continue-shopping-btn,
.submit-order-btn,
.place-order-btn,
.add-to-cart-btn,
.order-now-btn,
.view-details-btn,
.error-btn.primary,
.tcta-order,
.faq-contact,
.ug-sidebar-cta,
.ug-email,
.cu-agent-btn,
.btn-pi-primary,
.pi-price-cta,
.pl-product-btn,
.product-btn,
.testimonials-cta-btn,
button[type="submit"] {
    background: linear-gradient(135deg, var(--lm-primary-2), var(--lm-primary)) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24) !important;
    font-weight: 800 !important;
}

.header-order-btn:hover,
.btn-primary:hover,
.checkout-btn:hover,
.submit-order-btn:hover,
.place-order-btn:hover,
.add-to-cart-btn:hover,
.order-now-btn:hover,
.view-details-btn:hover,
.error-btn.primary:hover,
.tcta-order:hover,
.faq-contact:hover,
.ug-sidebar-cta:hover,
.ug-email:hover,
.cu-agent-btn:hover,
.btn-pi-primary:hover,
.pi-price-cta:hover,
.pl-product-btn:hover,
.product-btn:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.30) !important;
}

.cart-icon {
    background: #ffffff !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: var(--lm-shadow-soft) !important;
    color: var(--lm-primary) !important;
}

.cart-count {
    background: var(--lm-mint) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

.mobile-menu-toggle {
    background: #ffffff !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: 12px !important;
}

.mobile-menu-toggle span {
    background: var(--lm-ink) !important;
}

.hero,
.hero-banner,
.pi-hero-section,
.pi-hero,
.ug-hero,
.faq-hero,
.testimonials-hero,
.cu-hero,
.order-hero,
.product-details-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 0 !important;
    background-color: #07111f !important;
}

.hero::after,
.hero-banner::after,
.pi-hero-section::after,
.pi-hero::after,
.ug-hero::after,
.faq-hero::after,
.testimonials-hero::after,
.cu-hero::after,
.order-hero::after,
.product-details-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.55), rgba(7, 17, 31, 0.80)),
        linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.54));
    pointer-events: none;
}

.hero-inner,
.pl-hero-inner,
.pi-hero-section .pi-hero-inner,
.pi-hero-inner,
.ug-hero-inner,
.faq-hero-inner,
.testimonials-hero-inner,
.cu-hero-inner,
.order-hero-inner,
.product-details-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px !important;
}

.pi-hero-section::after {
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.74), rgba(7, 17, 31, 0.90)),
        linear-gradient(180deg, rgba(7, 17, 31, 0.70), rgba(7, 17, 31, 0.78)) !important;
}

.hero-eyebrow,
.pl-hero-badge,
.pi-hero-badge,
.ug-hero-badge,
.faq-hero-badge,
.testimonials-hero-badge,
.cu-hero-badge,
.order-hero-badge,
.product-badge,
.category-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #dff6ff !important;
    background: rgba(37, 99, 235, 0.26) !important;
    border: 1px solid rgba(125, 211, 252, 0.42) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero h1,
.pl-hero-title,
.pi-hero-title,
.ug-hero-title,
.faq-hero-title,
.testimonials-hero-title,
.cu-hero-title,
.order-hero-title,
.product-details-hero h1 {
    color: #ffffff !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-subtitle,
.pl-hero-sub,
.pi-hero-subtitle,
.ug-hero-sub,
.faq-hero-sub,
.testimonials-hero-sub,
.cu-hero-sub,
.order-hero-subtitle {
    color: rgba(226, 232, 240, 0.92) !important;
    font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
}

.container,
.product-list-container,
.cart-container,
.checkout-container,
.order-container,
.footer-container,
.ug-body,
.faq-container,
.testimonials-container,
.cu-container {
    max-width: 1240px !important;
}

section,
.product-list-main,
.cart-main,
.checkout-main,
.order-main,
.ug-main,
.faq-main,
.testimonials-main,
.contact-main,
.cu-main,
.error-main {
    background: transparent !important;
}

.section-heading,
.section-heading-lg,
.page-title,
.section-title,
.pi-section-title,
.ug-section-title,
.faq-section-title,
.testimonials-section-title,
.filter-title {
    color: var(--lm-ink) !important;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-subtitle,
.section-sub,
.pi-section-sub,
.ug-section-sub,
.faq-answer-content,
.testimonial-quote,
.footer-column p,
.footer-bottom p {
    color: var(--lm-muted) !important;
}

.product-card,
.category-card,
.feature-card,
.auth-check-item,
.use-case-card,
.hr-card,
.cart-summary,
.cart-item,
.empty-cart,
.shipping-section,
.order-items-section,
.delivery-section,
.payment-section,
.order-summary,
.checkout-section,
.form-section,
.order-form-container,
.filter-sidebar,
.pl-product-card,
.product-detail-card,
.pi-price-card,
.pi-feature-card,
.pi-faq-item,
.ug-toc,
.ug-sidebar-box,
.ug-section,
.ug-photo-card,
.ug-contact-banner,
.faq-item,
.faq-cta,
.testimonial-card,
.testimonials-cta,
.cu-card,
.cu-info-card,
.cu-agent-card,
.error-content,
.popular-products,
.seo-content,
.footer {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: var(--lm-radius) !important;
    box-shadow: var(--lm-shadow-soft) !important;
}

.product-card:hover,
.category-card:hover,
.feature-card:hover,
.pl-product-card:hover,
.testimonial-card:hover,
.cu-card:hover,
.faq-item:hover,
.hr-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.38) !important;
    box-shadow: var(--lm-shadow) !important;
}

.product-image,
.pl-product-image,
.category-image,
.use-case-image,
.testimonial-avatar,
.cu-agent-img {
    border-radius: 12px !important;
}

.filter-list,
.pl-hero-jumps,
.faq-filters,
.ug-payment-tabs,
.product-links-grid,
.testimonials-cta-btns,
.ug-contact-btns {
    gap: 10px !important;
}

.filter-item,
.pl-jump,
.faq-filter,
.ug-tab,
.error-btn.secondary,
.continue-shopping,
.tcta-contact,
.btn-secondary,
.btn-pi-secondary {
    background: #ffffff !important;
    color: var(--lm-primary) !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.filter-item.active,
.filter-item:hover,
.pl-jump:hover,
.faq-filter.active,
.faq-filter:hover,
.ug-tab.active,
.ug-tab:hover,
.error-btn.secondary:hover,
.continue-shopping:hover,
.btn-secondary:hover,
.btn-pi-secondary:hover {
    background: var(--lm-surface-soft) !important;
    border-color: rgba(37, 99, 235, 0.42) !important;
    color: var(--lm-primary) !important;
}

input,
select,
textarea,
.search-input {
    background: #ffffff !important;
    border: 1px solid var(--lm-border) !important;
    border-radius: 12px !important;
    color: var(--lm-ink) !important;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

input:focus,
select:focus,
textarea:focus,
.search-input:focus {
    border-color: var(--lm-primary-2) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13) !important;
    outline: none !important;
}

.order-table,
.data-table,
table {
    border-collapse: separate !important;
    border-spacing: 0;
}

thead,
.data-table thead {
    background: #eaf2ff !important;
}

th {
    color: var(--lm-ink) !important;
}

td {
    color: var(--lm-muted) !important;
}

.status-badge,
.faq-cat-badge,
.summary-row.total,
.pi-price-amount,
.price,
.product-price,
.cart-total,
.total {
    color: var(--lm-primary) !important;
}

.footer {
    margin-top: 48px;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

.footer-contact-link,
.footer-column a {
    color: var(--lm-primary) !important;
}

@media (max-width: 768px) {
    .main-header {
        position: sticky;
    }

    .header-container {
        min-height: 68px;
        padding-inline: 16px !important;
    }

    .hero,
    .hero-banner,
    .pi-hero-section,
    .pi-hero,
    .ug-hero,
    .faq-hero,
    .testimonials-hero,
    .cu-hero,
    .order-hero,
    .product-details-hero {
        min-height: 360px;
        padding-inline: 18px !important;
    }

    .product-card,
    .pl-product-card,
    .cart-summary,
    .shipping-section,
    .order-items-section,
    .delivery-section,
    .payment-section,
    .order-summary,
    .checkout-section,
    .form-section,
    .ug-section,
    .faq-item,
    .testimonial-card,
    .cu-card {
        border-radius: 12px !important;
    }
}

/* Checkout page responsive guardrails. This file loads last, so keep these here. */
.checkout-container {
    max-width: 980px !important;
    width: calc(100% - 40px) !important;
}

.checkout-container,
.shipping-section,
.order-items-section,
.delivery-section,
.payment-section,
.coupon-section,
.total-section,
.order-table,
.radio-option,
.payment-option {
    min-width: 0 !important;
}

.order-items-section {
    overflow: hidden !important;
}

.shipping-section,
.delivery-section,
.payment-section,
.coupon-section {
    padding: 24px !important;
}

@media (max-width: 720px) {
    .checkout-container {
        width: calc(100% - 20px) !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .shipping-section,
    .delivery-section,
    .payment-section,
    .coupon-section,
    .total-section {
        padding: 16px 12px !important;
        margin-bottom: 16px !important;
    }

    .order-table thead {
        display: none !important;
    }

    .order-table,
    .order-table tbody,
    .order-table tr,
    .order-table td {
        display: block !important;
        width: 100% !important;
    }

    .order-table tr {
        border: 1px solid var(--lm-border) !important;
        border-radius: 12px !important;
        padding: 12px !important;
        margin-bottom: 14px !important;
        background: #ffffff !important;
    }

    .order-table td:not(:first-child) {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 8px 0 !important;
    }

    .radio-option {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 8px 10px !important;
        align-items: start !important;
    }

    .radio-option input[type="radio"] {
        margin: 0 !important;
    }

    .radio-label {
        min-width: 0 !important;
        flex-wrap: wrap !important;
    }

    .option-price {
        grid-column: 2 !important;
        justify-self: start !important;
        margin-left: 0 !important;
        white-space: nowrap !important;
    }

    .payment-grid {
        grid-template-columns: 1fr !important;
    }

    .total-row {
        align-items: flex-start !important;
    }
}

.floating-contact-rail {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.floating-contact-link {
    display: flex;
    align-items: center;
    width: 48px;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.20);
    transition: width 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
    animation: floating-contact-bounce 2.4s ease-in-out infinite;
}

.floating-contact-link:nth-child(2) {
    animation-delay: 0.22s;
}

.floating-contact-link:hover,
.floating-contact-link:focus-visible {
    width: 132px;
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.26);
    outline: none;
    animation-play-state: paused;
}

.floating-contact-telegram {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.floating-contact-email {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.floating-contact-icon {
    display: grid;
    width: 48px;
    min-width: 48px;
    place-items: center;
}

.floating-contact-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.floating-contact-label {
    padding-right: 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

@keyframes floating-contact-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .floating-contact-rail {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .floating-contact-link {
        width: 44px;
        min-height: 44px;
    }

    .floating-contact-link:hover,
    .floating-contact-link:focus-visible {
        width: 44px;
        transform: translateY(-3px);
    }

    .floating-contact-icon {
        width: 44px;
        min-width: 44px;
    }

    .floating-contact-label {
        display: none;
    }
}
