/* Neo UI â€” Modern design system for the marketplace
   Clean, minimal grayscale UI with bright blue accents */

:root {
    /* Grayscale */
    --bg: #f5f6f8;
    --surface: #ffffff;
    --muted-surface: #fafafa;
    --text: #0f172a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --line-strong: #d1d5db;

    /* Brand Colors - Bright Blue Theme */
    --primary: #0066FF;
    --accent: #0066FF;
    --accent-2: #00B8D4;
    --navy: #001F3F;

    /* Components */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow: 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, .08);

    /* Typography */
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 28px 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000 !important;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    margin-top: 0 !important;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.mk-nav {
    list-style: none;
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.mk-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.mk-nav a:hover {
    color: var(--accent);
}

/* Category chips */
.category-chips {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    white-space: nowrap;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.category-chip:hover {
    border-color: var(--line-strong);
    color: var(--accent);
}

/* Hero */
.hero-section {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.hero-title {
    font-weight: 800;
    margin: 8px 0 6px;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 720px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

.btn:hover {
    border-color: var(--line-strong);
}

body .btn-primary,
body .btn-modern.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25) !important;
}

body .btn-primary:hover,
body .btn-modern.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3) !important;
    filter: brightness(1.1) !important;
}

/* Product card */
.product-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.product-card .product-image {
    aspect-ratio: 4/3;
    background: var(--muted-surface);
    display: grid;
    place-items: center;
}

.product-card .card-body {
    padding: 12px;
}

.product-card .card-title {
    margin: 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card .card-text {
    color: var(--muted);
    font-size: 13px;
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    padding: 4px 8px;
}

.product-card .price {
    font-weight: 800;
    color: var(--accent-2);
}

/* Grid */
.grid {
    display: grid;
    gap: 16px;
}

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .grid.cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .15);
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.table th,
.table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}

.table thead th {
    background: var(--muted-surface);
    font-weight: 700;
}

.table tr:hover td {
    background: rgba(0, 0, 0, 0.015);
}

/* Utilities */
.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--muted-surface);
    font-weight: 600;
    font-size: 12px;
}

/* Button pills */
.btn-pill {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.btn-pill:hover {
    border-color: var(--line-strong);
}

.btn-pill-primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

/* Account layout */
.account-shell {
    width: 100%;
    overflow-x: hidden;
}

.account-shell .row.g-4 {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

@media (max-width: 979px) {
    .account-shell .row.g-4 {
        display: block;
    }
}

/* ==========================================
   FOOTER STYLING - DARK NAVY BLUE
   ========================================== */

.footer-lite {
    background: #0A1929;
    color: #B8C5D0;
    padding: 2rem 0 0.5rem;
}

.footer-lite .brand-wordmark {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-lite .brand-wordmark .accent {
    color: #0066FF;
}

.footer-lite .text-secondary-lite {
    color: #8B99A6;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-lite .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lite .contact-list li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #B8C5D0;
}

.footer-lite .contact-list strong {
    color: #E5EBF0;
    font-weight: 600;
}

.footer-lite .footer-heading {
    color: #E5EBF0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-lite .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-lite .footer-links li {
    margin-bottom: 0.6rem;
}

.footer-lite .footer-links a {
    color: #8B99A6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-lite .footer-links a:hover {
    color: #0066FF;
}

/* Newsletter Section */
.footer-lite .newsletter-row {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.footer-lite .newsletter-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-lite .newsletter-copy strong {
    color: #E5EBF0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-lite .newsletter-copy span {
    color: #B8C5D0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-lite .newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.footer-lite .newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5EBF0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.footer-lite .newsletter-input::placeholder {
    color: #8B99A6;
}

.footer-lite .newsletter-input:focus {
    outline: none;
    border-color: #0066FF;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 204, 136, 0.15);
}

.footer-lite .newsletter-btn {
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.footer-lite .newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 204, 136, 0.3);
}

/* Social Icons */
.footer-lite .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-lite .social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #B8C5D0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-lite .social:hover {
    background: #0066FF;
    border-color: #0066FF;
    color: white;
    transform: translateY(-2px);
}

.footer-lite .footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   COOKIE CONSENT POPUP
   ========================================== */

.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0A1929 0%, #1A2F42 100%);
    border-top: 2px solid rgba(0, 204, 136, 0.3);
    padding: 1.25rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-consent-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-bar p {
    color: #B8C5D0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-bar a {
    color: #0066FF;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-bar a:hover {
    color: #00E69C;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:not(.secondary) {
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    color: white;
}

.cookie-btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 204, 136, 0.3);
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #B8C5D0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #E5EBF0;
}

@media (max-width: 768px) {
    .cookie-consent-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-lite .newsletter-row {
        padding: 1.5rem;
    }

    .footer-lite .newsletter-form {
        flex-direction: column;
    }

    .footer-lite .newsletter-btn {
        width: 100%;
    }
}

/* ==========================================
   CREATIVE BRAND LOGO STYLES
   ========================================== */

.creative-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-glow-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, rgba(0, 204, 136, 0.3) 0%, rgba(0, 102, 255, 0.1) 70%, transparent 100%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.logo-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    z-index: 1;
}

.logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.logo-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0066FF;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 3s infinite;
}

.logo-particles .particle:nth-child(1) {
    top: -5px;
    left: 10px;
    animation-delay: 0s;
}

.logo-particles .particle:nth-child(2) {
    top: 10px;
    right: -5px;
    animation-delay: 1s;
}

.logo-particles .particle:nth-child(3) {
    bottom: -5px;
    left: 20px;
    animation-delay: 2s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.625rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ========================================== */

/* Mobile Navigation */
.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5); /* backdrop */
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--surface);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.mobile-menu.open .mobile-menu-inner {
    transform: translateX(280px);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 18px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid var(--line);
}

.mobile-nav-list a {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.mobile-menu-actions {
    padding: 20px;
    border-top: 2px solid var(--line);
}

.btn-market {
    display: inline-flex;
    padding: 10px 20px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

/* Mobile Breakpoint - 767px and below */
@media (max-width: 767px) {

    /* Show mobile toggle */
    .mobile-nav-toggle {
        display: block;
    }

    /* Header adjustments */
    .site-header .container {
        height: 56px;
        padding: 0 12px;
    }

    /* Brand sizing */
    .brand-logo-container {
        gap: 8px !important;
    }

    .brand-title {
        font-size: 1.1rem !important;
    }

    .brand-subtitle {
        font-size: 0.55rem !important;
    }

    .logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }

    .logo-glow-ring {
        width: 28px !important;
        height: 28px !important;
    }

    /* FORCE HIDE desktop navigation on mobile */
    .mk-nav,
    nav.d-none.d-md-block {
        display: none !important;
    }

    /* FORCE HIDE right section on mobile */
    .right,
    div.right.d-none.d-md-flex {
        display: none !important;
    }

    /* Container padding */
    .container {
        padding: 0 12px;
    }

    /* Section spacing */
    .section,
    .hero-section {
        padding: 20px 0;
    }

    /* Typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    /* Buttons */
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Forms - prevent iOS zoom */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea {
        font-size: 16px !important;
        padding: 12px;
    }

    /* Cards */
    .card,
    .product-card {
        margin-bottom: 12px;
    }

    .product-card .card-body {
        padding: 12px;
    }

    /* Tables */
    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 8px;
    }

    /* Footer */
    .footer-lite {
        padding: 2rem 0 1rem;
    }

    .footer-lite .brand-wordmark {
        font-size: 1.5rem;
        text-align: center;
    }

    .footer-lite .footer-heading {
        text-align: center;
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .footer-lite .footer-links,
    .footer-lite .contact-list {
        text-align: center;
    }

    .footer-lite .social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }

    /* Hide scrollbar on mobile */
    .category-chips::-webkit-scrollbar {
        display: none;
    }

    .category-chips {
        scrollbar-width: none;
    }

    /* Touch targets */
    a,
    button,
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 32px 0;
    }
}

/* Small mobile - 520px and below */
@media (max-width: 520px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card {
        border-radius: 10px;
        padding: 12px;
    }
}

/* --- Modern UI Components --- */

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-modern {
    background: #111827; /* Dark Slate */
    background: radial-gradient(circle at top right, #1e293b, #111827);
    padding: 6rem 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 196, 176, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 196, 176, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 196, 176, 0.2);
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-modern {
    padding: 5rem 0;
}

.section-modern-alt {
    background: #f8fafc;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
}

.card-modern {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.card-icon-gradient-blue {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.card-text-modern {
    color: #64748b;
    line-height: 1.6;
}

.timeline-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
}

.timeline-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #111827;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.grid-modern {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .hero-title-modern { font-size: 2.5rem; }
}

.text-gradient-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-gold { background: linear-gradient(135deg, #f59e0b, #d97706); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

#applyVendorBtn { cursor: pointer; }

/* --- Mega Menu --- */
.has-mega-menu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 64px; /* Matches header height */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.mega-menu-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--accent);
    border-radius: 12px;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 196, 176, 0.2);
}

.mega-menu-text {
    display: flex;
    flex-direction: column;
}

.mega-menu-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.mega-menu-count {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 991px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .has-mega-menu {
        position: relative;
    }
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        display: none; /* Mobile menu handles its own logic */
    }
}
/* UI Polish - Products Page Refinements */

/* Catalog Shell Improvements */
.catalog-shell {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Enhanced Catalog Header */
.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.catalog-header p {
    color: #64748B;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Enhanced Filter Panel */
.catalog-filter-panel {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    transition: all 0.2s ease;
}

.catalog-filter-panel:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #F1F5F9;
}

.filter-section.pt-0 {
    padding-top: 0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Enhanced Product Grid Spacing */
.grid-modern {
    display: grid;
    gap: 2rem;
}

/* Enhanced Product Cards */
.product-card-modern {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: #0066FF;
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-modern:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.card-content-modern {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #E6F2FF 0%, #E0F2FE 100%);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0066FF;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.card-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.card-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title-modern a:hover {
    color: #0066FF;
}

.card-text-modern {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.card-price-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gradient-blue,
.btn-gradient {
    background: linear-gradient(135deg, #0066FF 0%, #00B8D4 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2) !important;
}

.btn-gradient-blue:hover,
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.3);
    color: white;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.w-full {
    width: 100%;
}

/* Results Header Polish */
.results-header {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.results-header h5 {
    font-weight: 700;
    color: #0F172A;
    font-size: 1.05rem;
    margin: 0;
}

.sort-dropdown {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    cursor: pointer;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230F172A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    transition: all 0.2s ease;
}

.sort-dropdown:hover,
.sort-dropdown:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Badge Positioning */
.badge-position {
    position: absolute;
    z-index: 10;
}

.badge-position.left {
    top: 1rem;
    left: 1rem;
}

.badge-position.right {
    top: 1rem;
    right: 1rem;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-blue {
    background: linear-gradient(135deg, #001F3F 0%, #0066FF 100%);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFD700 100%);
    color: #0F172A;
}

/* Form Control Enhancements */
.form-control,
.form-select {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: #0F172A;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-control::placeholder {
    color: #94A3B8;
}

/* Premium Notification System (Toasts) */
.toast-container {
    z-index: 9999;
}

.glass-toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-header {
    background: transparent;
    border-bottom: none;
    padding: 1rem 1rem 0.5rem;
}

.toast-body {
    padding: 0.5rem 1rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 0.75rem;
    font-size: 0.85rem;
}

/* Success Toast Variants */
.toast-success .toast-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}
.toast-success .toast-progress {
    background: #10B981;
}

/* Error/Danger Toast Variants */
.toast-danger .toast-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}
.toast-danger .toast-progress {
    background: #EF4444;
}

/* Warning Toast Variants */
.toast-warning .toast-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}
.toast-warning .toast-progress {
    background: #F59E0B;
}

/* Info Toast Variants */
.toast-info .toast-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}
.toast-info .toast-progress {
    background: #3B82F6;
}

.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.toast-progress {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toast-progress linear forwards;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
to { transform: scaleX(0); }
}

/* Product Page Enhancements (Envato Style) */
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.12) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    background-color: #fff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.1) !important;
}

.price-premium {
    letter-spacing: -0.03em;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 0.65rem !important;
    color: #9ca3af !important;
    vertical-align: middle !important;
}

.card-modern {
    background: #fff;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

/* Product Tags */
.product-tag {
    font-size: 0.8125rem;
    background: rgba(0, 102, 255, 0.04);
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-tag:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

/* Trust Badges */
.trust-badge-row {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.trust-badge-item i {
    font-size: 1rem;
}

.trust-badge-item .icon-razorpay { color: #528FF0; }
.trust-badge-item .icon-verified { color: #10B981; }
.trust-badge-item .icon-policy { color: #F59E0B; }

/* Vendor Storefront Modernization */
.storefront-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.store-search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.store-search-box:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.store-search-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.vendor-badge-premium {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vendor-badge-elite { 
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); 
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.vendor-badge-power { 
    background: linear-gradient(135deg, #0066FF 0%, #00C2FF 100%); 
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.store-stat-pill {
    background: #fff;
    border: 1px solid #f1f5f9;
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.store-stat-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.1);
}

.stat-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Cart & Checkout Modernization */
.cart-item-modern {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.cart-item-modern:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.1);
}

.checkout-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 1.25rem;
}

.payment-method-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-method-card.active {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.02);
}

.razorpay-badge-inline {
    background: #f0f7ff;
    color: #3399cc;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-form .form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border-color: #e2e8f0;
    background-color: #f8fafc;
}

.checkout-form .form-control:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* Footer Navigation & Social Polish */
.footer-lite .social-icons {
    display: grid !important;
    grid-template-columns: repeat(4, 38px);
    gap: 10px;
    margin-top: 1.25rem;
}

@media (max-width: 991px) {
    .footer-lite .social-icons {
        grid-template-columns: repeat(4, 38px);
        justify-content: center;
    }
}

.footer-lite .social {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8B99A6 !important;
}

.footer-lite .social:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 102, 255, 0.2);
}

.footer-lite .footer-links a {
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-lite .footer-links a:hover {
    transform: translateX(4px);
    color: var(--primary) !important;
}

/* Vendor Storefront Mobile Polish */
.vendor-logo-container {
    width: 130px;
    height: 130px;
    font-size: 3.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .vendor-logo-container {
        width: 90px !important;
        height: 90px !important;
        font-size: 2rem !important;
    }
    
    .vendor-hero {
        height: auto !important;
        min-height: 480px !important;
        padding-top: 2rem;
    }
    
    .storefront-glass {
        padding: 1.5rem !important;
        border-radius: 2rem !important;
    }

    .vendor-hero .container-modern {
        align-items: center !important;
        padding-bottom: 2rem !important;
    }
}

/* Product Page Recommendation Sections */
.recommendation-header {
    background-color: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
    .recommendation-header {
        padding: 1.5rem !important;
        text-align: center;
    }
    .recommendation-header .d-flex.flex-column {
        align-items: center !important;
    }
    .recommendation-header .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    /* Horizontal Card for Mobile recommendations */
    .card-recommendation-mobile {
        flex-direction: row !important;
        align-items: center;
        padding: 0.75rem !important;
        gap: 1rem;
    }
    .card-recommendation-mobile .ratio {
        width: 100px !important;
        height: 70px !important;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    .card-recommendation-mobile .p-3 {
        padding: 0 !important;
        flex-grow: 1;
        min-width: 0;
    }
    .card-recommendation-mobile .h6 {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
        white-space: normal !important;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-recommendation-mobile .text-primary {
        font-size: 1rem !important;
    }
}

.h3-md {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .h3-md {
        font-size: 1.75rem;
    }
}
/* Global UI Shared Components */

:root {
    --color-primary: #2563eb;
    --color-slate-50:  #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
}

html {
    scroll-behavior: smooth;
}

/* Responsive Table-to-Cards */
@media (max-width: 768px) {
    .table-ui thead {
        display: none;
    }
    .table-ui, .table-ui tbody, .table-ui tr, .table-ui td {
        display: block;
        width: 100%;
    }
    .table-ui tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--line) !important;
        border-radius: 16px;
        padding: 0.5rem;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }
    .table-ui td {
        text-align: right !important;
        padding: 0.75rem 1rem !important;
        position: relative;
        border-bottom: 1px solid #f1f5f9 !important;
        min-height: 3rem;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .table-ui td:last-child {
        border-bottom: none !important;
    }
    .table-ui td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        color: var(--muted);
        letter-spacing: 0.5px;
    }
    .table-ui td .d-flex {
        justify-content: flex-end !important;
        width: 100%;
    }
    /* Special Case for Transaction cell on mobile */
    .table-ui td[data-label="Transaction"] {
        flex-direction: column;
        align-items: flex-end;
        padding-top: 1rem !important;
    }
}

/* User Avatar Styling */
.ui-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--color-slate-200), var(--shadow-sm);
    background: var(--color-slate-100);
    overflow: hidden;
    transition: transform 0.2s;
}

.ui-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ui-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
}

/* User Menu Button Styling */
.btn-user-menu {
    border: 1px solid transparent !important;
    background: #fff !important;
    padding: 2px 10px 2px 2px !important;
    border-radius: 100px !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.btn-user-menu:hover {
    background: var(--color-slate-50) !important;
    border-color: var(--color-slate-200) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-user-menu:active, .btn-user-menu.show {
    background: var(--color-slate-100) !important;
    border-color: var(--color-slate-300) !important;
    transform: scale(0.98);
}

.btn-user-menu .user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-slate-700);
}

/* Fix Dual Arrow Issue: Hide Bootstrap default caret triangle */
.btn-user-menu.dropdown-toggle::after,
.user-dropdown .dropdown-toggle::after,
#userMenuButton.dropdown-toggle::after {
    display: none !important;
}

/* Style the manual chevron for a premium look */
.btn-user-menu .fa-chevron-down {
    transition: transform 0.2s ease;
    font-size: 10px !important;
}

.btn-user-menu.show .fa-chevron-down {
    transform: rotate(180deg);
}

/* Neo Premium UI Utilities */
.btn-neo-outline-info {
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
    background: rgba(13, 202, 240, 0.05) !important;
    transition: all 0.3s ease !important;
}
.btn-neo-outline-info:hover {
    background: #0dcaf0 !important;
    color: #fff !important;
    border-color: #0dcaf0 !important;
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3) !important;
}

.btn-neo-outline-secondary {
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3) !important;
    background: rgba(100, 116, 139, 0.05) !important;
    transition: all 0.3s ease !important;
}
.btn-neo-outline-secondary:hover {
    background: #64748b !important;
    color: #fff !important;
    border-color: #64748b !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;
}

.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; filter: brightness(1.2); }
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.hover-lift:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.transition-all {
    transition: all 0.2s ease-in-out !important;
}

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.letter-spacing-n1 {
    letter-spacing: -1px !important;
}

.fw-black {
    font-weight: 900 !important;
}

.bg-light-soft {
    background-color: rgba(248, 249, 250, 0.5) !important;
}

.hover-bg-light-soft:hover {
    background-color: rgba(248, 249, 250, 0.8) !important;
}
/**
 * Responsive Overrides for Storefront
 * Loaded by home_legacy.php for public-facing pages
 */

/* Responsive adjustments are handled by neo.css and Bootstrap 5 grid.
   This file exists as a placeholder to prevent 404 errors. */

.text-warning { color: #92610a !important; } /* darker amber — passes contrast */
