/* Layout Styles - Version: 3.10.0 */
/* Updated: 2026-02-06 - v3.10.0: SEO enhancements - Thai font, breadcrumbs */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll - clip preserves sticky positioning */
body {
    overflow-x: clip;
}

/* Note: Additional CSS variables defined in theme.css */
:root {
    --primary-color: var(--theme-primary, #667eea);
    --primary-dark: var(--theme-primary-dark, #4f46e5);
    --primary-light: var(--theme-primary-light, #818cf8);
    --secondary-color: var(--theme-secondary, #764ba2);
}

body {
    font-family: 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Thai language font support (v3.10.0 - SEO) */
html[lang="th"] body {
    font-family: 'Noto Sans Thai', 'Rubik', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[dir="rtl"] {
    direction: rtl;
}

/* v2.44.74: RTL mobile - removed overflow-x: clip rules */

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: box-shadow, border-color;
}

/* Disable transitions during page load to prevent entry animations */
.header.preload,
.header.preload * {
    transition: none !important;
}

.header-main {
    padding-top: 1rem;
    position: relative;
    z-index: 10000;
}

/* Add padding-bottom only when secondary row is NOT visible (STATE 2) */
.header-main:not(:has(.header-secondary.visible)) {
    padding-bottom: 1rem;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Right Side Actions - Always Fixed Position */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Secondary Nav Row (STATE 3 only) */
.header-secondary {
    padding: 0.375rem 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed will-change to prevent stacking context issues */
    position: relative;
    z-index: 1;
}

.header-secondary.visible {
    opacity: 1;
    max-height: 50px;
}

.header-secondary .nav-tabs {
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
}

.header-secondary .nav-tabs a {
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-grow: 1;
    opacity: 1;
    max-width: 100%;
    overflow: hidden;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removed will-change to prevent stacking context issues with dropdowns */
}

.nav-tabs.hidden {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

.nav-tabs a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-tabs a:hover {
    color: var(--theme-primary);
}

.nav-tabs a.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

/* Compact Header Search */
.header-search-compact {
    display: flex;
    flex-grow: 1;
    max-width: 0;
    opacity: 0;
    overflow: visible;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-compact.visible {
    opacity: 1;
    max-width: 100%;
    pointer-events: auto;
}

/* Compact Search Container - Bordered wrapper */
.compact-search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s;
    overflow: visible;
}

.compact-search-container:focus-within {
    border-color: var(--primary-color);
}

/* Compact Search Pills Group */
.compact-search-pills {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    overflow: visible;
}

/* Compact Dropdown Pills */
.compact-pill-wrapper {
    position: relative;
    overflow: visible;
    z-index: 10001;
}

.compact-pill {
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    border-radius: 1rem;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.compact-pill:hover {
    background: var(--gray-200);
}

/* Search Input inside container */
.compact-search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    min-width: 200px;
    background: transparent;
}

/* Remove selection highlight for search inputs */
.compact-search-container input[type="text"]::selection,
input#headerSearchInput::selection {
    background: transparent !important;
    background-color: transparent !important;
}

.compact-search-container input[type="text"]::-moz-selection,
input#headerSearchInput::-moz-selection {
    background: transparent !important;
    background-color: transparent !important;
}

/* Search Button inside container */
.compact-search-container button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.compact-search-container button:hover {
    background: var(--primary-dark);
}

/* Image Upload Button - Specific styling */
.compact-image-btn {
    background: transparent !important;
    color: var(--gray-600) !important;
    margin-left: 0.5rem;
    padding: 0;
}

.compact-image-btn:hover {
    background: transparent !important;
    color: var(--primary-color);
    transform: scale(1.1);
}

.compact-image-btn svg {
    width: 18px;
    height: 18px;
}

/* Ensure search input can shrink */
.compact-search-container input[type="text"] {
    min-width: 0;
}

.compact-pill-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.compact-pill-dropdown.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

.compact-pill-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
    color: var(--gray-700);
    white-space: nowrap;
}

.compact-pill-dropdown .dropdown-item:hover {
    background: var(--gray-50);
}

.compact-pill-dropdown .dropdown-separator {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0;
}

/* Camera Dropdown - ensures proper z-index and positioning */
.camera-dropdown {
    z-index: 1000;
    min-width: 200px;
    max-width: calc(100vw - 1rem); /* v2.44.25: Fix #4 - Prevent overflow on mobile */
    /* Override default left positioning to open to the left */
    left: auto !important;
    right: 0 !important;
}

.camera-btn-wrapper {
    position: relative;
    display: inline-block;
}

/* v2.44.74: RTL dropdown positioning - removed, using base CSS */

/* v2.44.71: RTL mobile - remove left positioning from compact dropdown */
[dir="rtl"] .compact-pill-dropdown {
    left: auto;
}

/* v2.44.75: RTL camera dropdown - left edge aligns with button, extends right */
[dir="rtl"] .camera-dropdown {
    left: 0 !important;
    right: auto !important;
    min-width: auto;
}

.compact-pill-dropdown .dropdown-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.compact-pill-dropdown .dropdown-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.compact-pill-dropdown .dropdown-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Language Selector - Custom Dropdown */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.language-flag {
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: none;
    color: var(--gray-700);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

.language-trigger:hover {
    background: var(--gray-100);
}

.language-dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.language-trigger:hover .language-dropdown-arrow {
    color: var(--gray-700);
}

.language-trigger.active .language-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--gray-700);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 320px;
    overflow-y: auto;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.language-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.language-dropdown-item:hover {
    background: var(--gray-50);
}

.language-dropdown-item .fi {
    width: 24px;
    height: 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-img {
    height: 56px; /* 25% increase from 45px */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
}

.btn-text {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Container */
.container {
    margin: 0 5%;
    padding: 0 1rem;
}

/* Main Content */
main {
    flex: 1;
}

/* Footer - Dark Futuristic Style */
.footer {
    background: #1a1a3e;
    color: #a0a0c0;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0a0c0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--theme-primary);
}

.footer-section p {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

.platform-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.platform-badge {
    padding: 0.375rem 0.75rem;
    background: #2a2a4a;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
}

/* Footer Newsletter */
.footer-newsletter p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.5rem;
    background: #2a2a4a;
    color: var(--white);
    font-size: 0.875rem;
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--gray-500);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Newsletter CTA (Article/Tutorial) - v2.3.0 Redesigned to match cta-card */
.newsletter-cta {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    color: white;
}

.newsletter-cta-icon {
    margin-bottom: 1rem;
    color: white;
}

.newsletter-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta-form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-cta-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-cta-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-cta-form input[type="email"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-cta-form button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter-cta-form button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.newsletter-cta-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Newsletter responsive */
@media (max-width: 480px) {
    .newsletter-form,
    .newsletter-cta-form {
        flex-direction: column;
    }

    .newsletter-form button,
    .newsletter-cta-form button {
        width: 100%;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: #666680;
    font-size: 0.875rem;
}

/* Footer Credit Tooltip (v2.44.124) */
.footer-credit {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.credit-trigger {
    color: var(--theme-primary, #667eea);
    cursor: pointer;
    transition: color 0.2s ease;
}

.credit-trigger:hover {
    color: var(--theme-primary-light, #818cf8);
    text-decoration: underline;
}

.credit-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2a2a4a;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 240px;
    z-index: 100;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.credit-tooltip.active {
    display: flex;
}

.tooltip-title {
    color: #a0a0c0;
    font-weight: 500;
    font-size: 0.8rem;
}

.tooltip-email-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-email {
    color: var(--theme-primary, #667eea);
    font-size: 0.85rem;
    font-family: monospace;
}

.tooltip-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #a0a0c0;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.tooltip-copy:hover {
    color: var(--theme-primary, #667eea);
    background: rgba(102, 126, 234, 0.1);
}

.tooltip-copy.copied {
    color: #10b981;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #2a2a4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0c0;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--theme-primary);
    color: var(--white);
}

/* Remove tap highlight and focus outlines */
button:focus,
button:active,
a:focus,
a:active,
.mobile-nav-item:focus,
.mobile-nav-item:active,
.language-trigger:focus,
.language-trigger:active,
.compact-pill:focus,
.compact-pill:active,
select:focus,
input:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Logo - Side Logo Image */
.mobile-logo-text {
    display: none; /* Hidden on desktop */
    white-space: nowrap;
}

.mobile-logo-img {
    height: 40px; /* 25% increase from 32px */
    width: auto;
    max-width: 180px; /* Fixed max for consistent sizing across devices */
    object-fit: contain;
}

/* Mobile Login Button - Hidden on desktop */
.mobile-login-btn {
    display: none;
}

/* v2.44.50: Mobile Language Button - Hidden on desktop */
.mobile-lang-btn-wrapper {
    display: none;
}

/* v2.44.47: Hide mobile drawer on desktop */
.mobile-drawer {
    display: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* v2.44.25: Add body padding for fixed bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide desktop elements on mobile */
    .nav-tabs,
    .header-secondary,
    .logo,
    .smart-search-wrapper {
        display: none !important;
    }

    /* Hide language and profile on mobile header - moved to drawer */
    .header-actions-group .language-selector,
    .header-actions-group .profile-btn-wrapper,
    .header-actions-group .btn-text {
        display: none !important;
    }

    /* Show mobile logo text */
    .mobile-logo-text {
        display: inline-block !important;
        flex: 1;
        text-align: center;
        order: 2;
        text-decoration: none;
    }

    /* Show mobile header elements */
    .mobile-menu-btn {
        display: block !important;
        order: 1;
    }

    .header-actions-group {
        display: flex !important;
        order: 3;
    }

    /* Header adjustments - No bottom nav padding */
    .header {
        padding-bottom: 0;
    }

    .header-main {
        padding: 0.75rem 0;
    }

    .header-flex {
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    /* Mobile hamburger button */
    .mobile-menu-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 0.5rem;
        color: var(--gray-700);
        cursor: pointer;
        flex-shrink: 0;
    }

    /* v2.44.46: Container padding for mobile - align with products page */
    .header-main .container {
        padding: 0 1%;
    }

    /* Header actions on mobile - only favorites */
    .header-actions-group {
        gap: 0;
        margin-left: 0;
        flex-shrink: 0;
    }

    /* Mobile Login Icon - visible on mobile when not authenticated */
    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        color: var(--gray-700);
        text-decoration: none;
    }

    .mobile-login-btn:hover {
        color: var(--primary-color);
    }

    /* v2.44.50: Mobile Language Button */
    .mobile-lang-btn-wrapper {
        display: block;
        position: relative;
    }

    .mobile-lang-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        background: none;
        border: none;
        color: var(--gray-700);
        cursor: pointer;
    }

    .mobile-lang-btn:hover {
        color: var(--primary-color);
    }

    .mobile-lang-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow: hidden;
    }

    .mobile-lang-dropdown.active {
        display: block;
    }

    .mobile-lang-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-lang-item:hover {
        background: var(--gray-100);
    }

    .mobile-lang-item .fi {
        font-size: 1.25rem;
    }

    /* Show compact search always on mobile - Full Width Second Row */
    .header-search-compact {
        display: flex !important;
        opacity: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        pointer-events: auto !important;
        order: 4; /* Place on second row (after favorites which is order: 3) */
        flex-basis: 100%; /* Force full width row */
        margin: 0.5rem 0 0 0; /* Top margin to separate from first row */
    }

    .compact-search-container {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        width: calc(100% - 1rem); /* Account for left/right margins */
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .compact-pill {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
    }

    .compact-search-container input {
        font-size: 0.813rem;
        min-width: 120px;
    }

    /* Responsive image button - slightly smaller on tablet */
    .compact-image-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* v2.44.44: Mobile Side Drawer (restored with overlay fix) */
    .mobile-drawer {
        display: block; /* v2.44.47: Override desktop display: none */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        pointer-events: none;
    }

    .mobile-drawer.active {
        pointer-events: auto;
    }

    /* CRITICAL FIX: Overlay pointer-events: none by default (was blocking clicks before) */
    .mobile-drawer-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none; /* v2.44.44: FIX - Don't block clicks when closed */
    }

    .mobile-drawer.active .mobile-drawer-overlay {
        opacity: 1;
        pointer-events: auto; /* Only capture clicks when drawer is open */
    }

    .mobile-drawer-content {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        background: var(--white);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        pointer-events: auto;
    }

    .mobile-drawer.active .mobile-drawer-content {
        transform: translateX(0);
    }

    /* v2.44.73: RTL - drawer opens from right side */
    [dir="rtl"] .mobile-drawer-content {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }

    [dir="rtl"] .mobile-drawer.active .mobile-drawer-content {
        transform: translateX(0);
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 1rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .mobile-drawer-header h3 {
        margin: 0;
        font-size: 1.25rem;
        color: var(--gray-900);
    }

    .mobile-drawer-close {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: var(--gray-600);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer-close:hover {
        color: var(--gray-900);
    }

    .mobile-drawer-nav {
        padding: 1rem 0;
    }

    .mobile-drawer-nav a {
        display: block;
        padding: 1rem 1.5rem;
        color: var(--gray-700);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        border-left: 3px solid transparent;
    }

    .mobile-drawer-nav a:hover {
        background: var(--gray-50);
        color: var(--primary-color);
    }

    .mobile-drawer-nav a.active {
        color: white;
        border-left-color: var(--primary-color);
        background: var(--primary-color);
    }

    /* Mobile Drawer Sections (Profile, Language) */
    .mobile-drawer-section {
        padding: 1rem 0;
        border-top: 1px solid var(--gray-200);
    }

    .mobile-drawer-section-title {
        padding: 0 1.5rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--gray-500);
        letter-spacing: 0.05em;
    }

    .mobile-drawer-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.5rem;
        color: var(--gray-700);
        text-decoration: none;
        font-size: 0.9375rem;
        transition: background 0.2s, color 0.2s;
    }

    .mobile-drawer-item:hover {
        background: var(--gray-50);
        color: var(--primary-color);
    }

    .mobile-drawer-item svg {
        color: var(--gray-500);
        flex-shrink: 0;
    }

    .mobile-drawer-item:hover svg {
        color: var(--primary-color);
    }

    /* Mobile Language Items */
    .mobile-lang-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: var(--gray-100);
        border-radius: 0.5rem;
        color: var(--gray-700);
        text-decoration: none;
        font-size: 0.875rem;
        transition: all 0.2s;
    }

    .mobile-lang-item:hover {
        background: var(--gray-200);
    }

    .mobile-lang-item.active {
        background: var(--primary-color);
        color: white;
    }

    .mobile-lang-item .fi {
        width: 20px;
        height: 15px;
    }

    /* Mobile Language Accordion */
    .mobile-lang-accordion {
        padding: 0;
    }

    .mobile-lang-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-lang-accordion-header:hover {
        background: var(--gray-50);
    }

    .mobile-lang-accordion-header .mobile-drawer-section-title {
        padding: 0;
        margin: 0;
    }

    .mobile-lang-accordion-arrow {
        color: var(--gray-500);
        transition: transform 0.3s ease;
    }

    .mobile-lang-accordion.expanded .mobile-lang-accordion-arrow {
        transform: rotate(180deg);
    }

    .mobile-lang-accordion-content {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .mobile-lang-accordion.expanded .mobile-lang-accordion-content {
        max-height: 200px;
        padding: 0.5rem 1.5rem 1rem 1.5rem;
    }

    /* Mobile Admin Item Styling */
    .mobile-admin-item img {
        width: 20px;
        height: 20px;
    }

    /* No body padding needed (no bottom nav) */
    body {
        padding-bottom: 0;
    }

    /* Logo adjustments */
    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 35px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Language dropdown positioning on mobile - Opens downward from top */
    .language-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem); /* Open downward from button */
        right: 0;
        left: auto;
        bottom: auto;
        transform: translateY(-10px); /* Start above */
        max-width: 200px;
        max-height: 50vh; /* v2.44.25: Fix #13 - Prevent viewport overflow */
        overflow-y: auto; /* v2.44.25: Enable scrolling if needed */
        z-index: 2001;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .language-dropdown.active {
        transform: translateY(0); /* Slide down to final position */
    }

    /* Mobile login/language styling */
    .header-actions-group .btn-text {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .language-selector {
        position: relative;
    }

    .language-trigger {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    /* Footer - Quick Links & Support side-by-side */
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-content .footer-newsletter {
        grid-column: 1 / -1;
    }
}

/* Extra Small Mobile Devices (iPhone SE, small phones) */
@media (max-width: 400px) {
    /* Reduce search container padding */
    .compact-search-container {
        padding: 0.25rem !important;
        gap: 0.5rem; /* Reduce gap from 0.75rem */
    }

    /* Reduce search button size */
    .compact-search-container button {
        width: 28px;
        height: 28px;
        padding: 0.375rem;
    }

    .compact-search-container button svg {
        width: 16px;
        height: 16px;
    }

    /* Reduce search input min-width */
    .compact-search-container input {
        min-width: 60px;
        font-size: 0.75rem;
    }

    /* Make pills more compact */
    .compact-pill {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Make image button smaller on very small screens */
    .compact-image-btn {
        width: 28px !important;
        height: 28px !important;
        margin-left: 0.25rem !important;
    }

    .compact-image-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* v2.44.25: Fix #12 - Reduce container padding on very small screens */
    .container {
        margin: 0 3%;
        padding: 0 0.5rem;
    }
}

/* Tablet/Medium screens - Nav tabs responsiveness (769px - 1202px) */
@media (min-width: 769px) and (max-width: 1202px) {
    .nav-tabs {
        gap: 1rem;
    }

    .nav-tabs a {
        font-size: 0.8125rem;
        padding: 0.375rem 0;
    }

    .header-flex {
        gap: 1rem;
    }

    .header-actions-group {
        gap: 0.5rem;
    }

    /* Profile name hidden on medium screens */
    .profile-name {
        display: none;
    }

    .profile-btn {
        padding: 0.375rem;
        gap: 0;
    }

    /* Language selector more compact */
    .language-trigger {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Smaller tablets - even more compact (769px - 950px) */
@media (min-width: 769px) and (max-width: 950px) {
    .nav-tabs {
        gap: 0.625rem;
    }

    .nav-tabs a {
        font-size: 0.75rem;
    }

    .header-flex {
        gap: 0.75rem;
    }

    .logo-img {
        height: 38px;
    }
}

/* v2.44.42: Mobile drawer hide rule removed - drawer no longer exists */

/* Toast/Popup Alerts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.toast {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    transform-origin: top right;
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Brain icon for branding */
.toast-brain-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    margin-right: 4px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--gray-900, #111827);
}

.toast-message {
    font-size: 14px;
    color: var(--gray-600, #4b5563);
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-400, #9ca3af);
    transition: color 0.2s;
    line-height: 1;
}

.toast-close:hover {
    color: var(--gray-600, #4b5563);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color, #667eea);
    animation: toastProgress 5s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Variants */
.toast-success .toast-icon {
    background: #d1fae5;
    color: #059669;
}

.toast-success .toast-progress {
    background: #10b981;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast-error .toast-progress {
    background: #ef4444;
}

.toast-warning .toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.toast-warning .toast-progress {
    background: #f59e0b;
}

.toast-info .toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

.toast-info .toast-progress {
    background: #3b82f6;
}

/* Mobile responsive - hide toasts on mobile */
@media (max-width: 480px) {
    .toast-container {
        display: none !important;
    }
}

/* Legacy inline alerts (fallback) */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: var(--alert-warning-bg);
    color: var(--alert-warning-text);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-left: 4px solid var(--info-color);
}

/* Mobile responsive - smaller alerts */
@media (max-width: 480px) {
    .alert {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ========================================
   Form Validation Error Styles
   v3.9.0 - Custom inline validation errors
   ======================================== */
.form-error {
    display: none;
    background: var(--danger-50, #fef2f2);
    border: 1px solid var(--danger-200, #fecaca);
    color: var(--danger-600, #dc2626);
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.form-error.show {
    display: block;
}

/* Optional: Add icon before error text */
.form-error::before {
    content: "⚠ ";
}

/* ========================================
   Floating Toolbar - Feedback & Back to Top
   v1.0.0 - Desktop-only Temu-style buttons
   ======================================== */

/* Container - Fixed bottom-right (desktop only) */
.floating-toolbar {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
}

/* RTL Support - Keep on right side (removed left positioning) */

/* Individual buttons - Dark style (inverted colors) */
.floating-toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 4px;
    text-decoration: none;
    color: #ffffff;
}

.floating-toolbar-btn:hover {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary-color, #667eea);
}

.floating-toolbar-btn:active {
    transform: translateY(0);
}

.floating-toolbar-btn svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.floating-toolbar-btn:hover svg {
    color: #ffffff;
}

.floating-toolbar-btn span {
    font-size: 10px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
    transition: color 0.2s ease;
}

.floating-toolbar-btn:hover span {
    color: #ffffff;
}

/* Back to Top - Hidden by default, shown on scroll */
.btn-back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .floating-toolbar {
        display: none !important;
    }
}

/* ========================================
   Feedback Modal
   v2.44.43 - Rating popup with explicit positioning
   ======================================== */

.feedback-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10002 !important;
    display: none;
}

.feedback-modal.show {
    display: block;
}

.feedback-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.feedback-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: feedbackModalIn 0.3s ease;
}

@keyframes feedbackModalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.feedback-modal-header {
    padding: 24px 24px 16px;
    text-align: center;
    position: relative;
}

.feedback-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

[dir="rtl"] .feedback-modal-close {
    right: auto;
    left: 12px;
}

.feedback-modal-close:hover {
    background: #e5e7eb;
}

.feedback-modal-close svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.feedback-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.feedback-modal-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.feedback-modal-body {
    padding: 16px 24px 24px;
}

.feedback-question {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
    text-align: center;
}

.feedback-rating-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-rating-option {
    flex: 0 0 auto;
}

.feedback-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-rating-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    min-width: 65px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.feedback-rating-label:hover {
    border-color: var(--primary-color, #667eea);
    background: #f9fafb;
}

.feedback-rating-option input:checked + .feedback-rating-label {
    border-color: var(--primary-color, #667eea);
    background: var(--primary-50, #eef2ff);
}

.feedback-rating-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-bottom: 6px;
    position: relative;
    transition: all 0.2s ease;
}

.feedback-rating-option input:checked + .feedback-rating-label .feedback-rating-radio {
    border-color: var(--primary-color, #667eea);
}

.feedback-rating-option input:checked + .feedback-rating-label .feedback-rating-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color, #667eea);
    border-radius: 50%;
}

.feedback-rating-text {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.feedback-rating-option input:checked + .feedback-rating-label .feedback-rating-text {
    color: var(--primary-color, #667eea);
}

/* Optional comment textarea section */
.feedback-comment-section {
    margin-top: 20px;
    text-align: left;
}

.feedback-comment-section label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.feedback-comment-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    font-family: inherit;
    box-sizing: border-box;
}

.feedback-comment-section textarea:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.feedback-comment-section textarea::placeholder {
    color: #9ca3af;
}

[dir="rtl"] .feedback-comment-section {
    text-align: right;
}

.feedback-modal-footer {
    padding: 0 24px 24px;
}

.btn-submit-feedback {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit-feedback:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit-feedback:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive modal */
@media (max-width: 480px) {
    .feedback-modal-content {
        width: 95%;
        max-width: none;
    }

    .feedback-rating-options {
        gap: 4px;
    }

    .feedback-rating-label {
        min-width: 55px;
        padding: 10px 6px;
    }

    .feedback-rating-text {
        font-size: 10px;
    }
}

/* ========================================
   Breadcrumbs Navigation - SEO v3.10.0
   ======================================== */
.breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--theme-primary);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--gray-400);
}

.breadcrumbs .current {
    color: var(--gray-800);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="rtl"] .breadcrumbs .separator {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.5rem 0;
        font-size: 0.75rem;
    }

    .breadcrumbs .current {
        max-width: 150px;
    }
}

/* v2.44.39: Allow feedback modal on mobile when triggered from menu */
@media (max-width: 768px) {
    .feedback-modal {
        display: none; /* Hidden by default */
    }
    .feedback-modal.show {
        display: block !important; /* Show when .show class is added */
    }
}
