/*
 * Custom CSS for Shoptimizer Child Theme
 * Add your custom styles here
 */

/* ============================================
   General Styles
   ============================================ */

.my-account .site-logo {
    width: 32px;
    height: 32px;
}

.drawer-nav ul.nav {
    margin: 0 !important;
}

/* ============================================
   ULCS Account Bar
   ============================================ */

/* --- Container Principal --- */
.material-alpine .ulcs-account-bar {
    z-index: 1041 !important;
    right: 80px !important;
}

/* --- Time Display Section --- */
.material-alpine .ulcs-account-bar .ulcs-time-display {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
}

.material-alpine .ulcs-account-bar .ulcs-time-display .ulcs-time-value,
.material-alpine .ulcs-account-bar .ulcs-time-display .ulcs-date-value {
    color: #1e293b !important;
    /* slate-800 */
}

/* --- Account Switcher Section --- */
.material-alpine .ulcs-account-bar .ulcs-account-switcher .ulcs-trigger {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* --- Widget Elements --- */
.ulcs-widget .ulcs-trigger {
    color: #1e293b !important;
    /* slate-800 */
}

.material-alpine .ulcs-widget[data-theme="dark"] .ulcs-trigger {
    background-color: transparent !important;
    color: #1e293b !important;
    /* slate-800 */
}

.material-alpine .ulcs-widget[data-theme="dark"] .ulcs-trigger:hover {
    background-color: transparent !important;
}

/* --- Dark Mode Styles --- */
.dark-mode .material-alpine .ulcs-account-bar .ulcs-time-display .ulcs-time-value,
.dark-mode .material-alpine .ulcs-account-bar .ulcs-time-display .ulcs-date-value {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-widget .ulcs-trigger {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .material-alpine .ulcs-widget[data-theme="dark"] .ulcs-trigger {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-widget .ulcs-trigger:hover {
    color: #f8fafc !important;
    /* slate-50 */
}

.dark-mode .ulcs-widget .ulcs-arrow {
    color: #94a3b8 !important;
    /* slate-400 */
}

.dark-mode .ulcs-widget .ulcs-trigger:hover .ulcs-arrow {
    color: #e2e8f0 !important;
    /* slate-200 */
}

/* ============================================
   ULCS Panel (Language/Currency Selector)
   ============================================ */

/* --- Panel Container --- */
.ulcs-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    /* slate-200 */
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    max-width: 400px !important;
    transition: all 0.3s ease !important;
}

/* --- Panel Header --- */
.ulcs-panel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    /* slate-200 */
}

.ulcs-panel-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    /* slate-800 */
}

.ulcs-close {
    background: transparent !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #64748b !important;
    /* slate-500 */
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ulcs-close:hover {
    background: #f1f5f9 !important;
    /* slate-100 */
    color: #1e293b !important;
    /* slate-800 */
}

/* --- Panel Content --- */
.ulcs-panel-content {
    padding: 0 !important;
}

.ulcs-section {
    padding: 20px 24px !important;
}

.ulcs-section h4 {
    margin: 0 0 16px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    /* slate-500 */
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* --- Search Input --- */
.ulcs-search {
    margin-bottom: 16px !important;
}

.ulcs-search-input {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    /* slate-200 */
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    /* slate-800 */
    background: #f8fafc !important;
    /* slate-50 */
    transition: all 0.2s ease !important;
}

.ulcs-search-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    /* blue-500 */
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.ulcs-search-input::placeholder {
    color: #94a3b8 !important;
    /* slate-400 */
}

/* --- Options List --- */
.ulcs-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.ulcs-currency-list {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
}

/* Custom scrollbar */
.ulcs-currency-list::-webkit-scrollbar {
    width: 6px !important;
}

.ulcs-currency-list::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    /* slate-100 */
    border-radius: 3px !important;
}

.ulcs-currency-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    /* slate-300 */
    border-radius: 3px !important;
}

.ulcs-currency-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
    /* slate-400 */
}

/* --- Option Buttons --- */
.ulcs-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    width: 100% !important;
}

.ulcs-option:hover {
    background: #f8fafc !important;
    /* slate-50 */
    border-color: #e2e8f0 !important;
    /* slate-200 */
}

.ulcs-option.active {
    background: #eff6ff !important;
    /* blue-50 */
    border-color: #3b82f6 !important;
    /* blue-500 */
}

.ulcs-option.active:hover {
    background: #dbeafe !important;
    /* blue-100 */
}

/* --- Option Elements --- */
.ulcs-opt-flag {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ulcs-opt-flag img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.ulcs-opt-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.ulcs-opt-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    /* slate-800 */
}

.ulcs-opt-native,
.ulcs-opt-code {
    font-size: 12px !important;
    color: #64748b !important;
    /* slate-500 */
}

.ulcs-check {
    flex-shrink: 0 !important;
    color: #3b82f6 !important;
    /* blue-500 */
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.2s ease !important;
}

.ulcs-option.active .ulcs-check {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* --- Dark Mode Panel Styles --- */
.dark-mode .ulcs-panel {
    background: #1e293b !important;
    /* slate-800 */
    border-color: #334155 !important;
    /* slate-700 */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .ulcs-panel-header {
    border-bottom-color: #334155 !important;
    /* slate-700 */
}

.dark-mode .ulcs-panel-title {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-close {
    color: #94a3b8 !important;
    /* slate-400 */
}

.dark-mode .ulcs-close:hover {
    background: #334155 !important;
    /* slate-700 */
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-section h4 {
    color: #94a3b8 !important;
    /* slate-400 */
}

.dark-mode .ulcs-search-input {
    background: #0f172a !important;
    /* slate-900 */
    border-color: #334155 !important;
    /* slate-700 */
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-search-input:focus {
    background: #1e293b !important;
    /* slate-800 */
    border-color: #3b82f6 !important;
    /* blue-500 */
}

.dark-mode .ulcs-search-input::placeholder {
    color: #64748b !important;
    /* slate-500 */
}

.dark-mode .ulcs-currency-list::-webkit-scrollbar-track {
    background: #0f172a !important;
    /* slate-900 */
}

.dark-mode .ulcs-currency-list::-webkit-scrollbar-thumb {
    background: #475569 !important;
    /* slate-600 */
}

.dark-mode .ulcs-currency-list::-webkit-scrollbar-thumb:hover {
    background: #64748b !important;
    /* slate-500 */
}

.dark-mode .ulcs-option:hover {
    background: #334155 !important;
    /* slate-700 */
    border-color: #475569 !important;
    /* slate-600 */
}

.dark-mode .ulcs-option.active {
    background: #1e3a8a !important;
    /* blue-900 */
    border-color: #3b82f6 !important;
    /* blue-500 */
}

.dark-mode .ulcs-option.active:hover {
    background: #1e40af !important;
    /* blue-800 */
}

.dark-mode .ulcs-opt-name {
    color: #e2e8f0 !important;
    /* slate-200 */
}

.dark-mode .ulcs-opt-native,
.dark-mode .ulcs-opt-code {
    color: #94a3b8 !important;
    /* slate-400 */
}

.dark-mode .ulcs-check {
    color: #60a5fa !important;
    /* blue-400 */
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 640px) {
    .material-alpine .ulcs-account-bar {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        right: 10px;
        top: 0px;
    }

    .material-alpine .ulcs-account-bar .ulcs-account-switcher {
        margin-top: -10px;
    }
}

/* ============================================
   Animated Background Blobs
   ============================================ */

/* Blob 1: Movimiento DIAGONAL - de esquina a esquina */
@keyframes blob-1 {

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

    50% {
        transform: translate(400px, 350px);
    }
}

/* Blob 2: Movimiento HORIZONTAL - izquierda a derecha */
@keyframes blob-2 {

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

    50% {
        transform: translate(-500px, 0);
    }
}

/* Blob 3: Movimiento INFINITO (∞) - figura de 8 horizontal */
@keyframes blob-3 {

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

    12.5% {
        transform: translate(150px, -80px);
    }

    25% {
        transform: translate(300px, 0);
    }

    37.5% {
        transform: translate(150px, 80px);
    }

    50% {
        transform: translate(0, 0);
    }

    62.5% {
        transform: translate(-150px, -80px);
    }

    75% {
        transform: translate(-300px, 0);
    }

    87.5% {
        transform: translate(-150px, 80px);
    }
}

/* Blob 4: Movimiento VERTICAL - arriba y abajo */
@keyframes blob-4 {

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

    50% {
        transform: translate(0, -400px);
    }
}

/* Blob Pulse: Zoom desde esquina superior izquierda */
@keyframes blob-pulse {

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

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

.animate-blob-1 {
    top: 10%;
    left: 10%;
    animation: blob-1 25s ease-in-out infinite;
}

.animate-blob-2 {
    top: 30%;
    right: 0;
    animation: blob-2 20s ease-in-out infinite;
}

.animate-blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob-3 22s ease-in-out infinite;
}

.animate-blob-4 {
    bottom: 10%;
    right: 25%;
    animation: blob-4 18s ease-in-out infinite;
}

.animate-blob-pulse {
    animation: blob-pulse 15s ease-in-out infinite;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .animate-blob-1,
    .animate-blob-2,
    .animate-blob-3,
    .animate-blob-4,
    .animate-blob-pulse,
    .animate-countdown-separator {
        animation: none;
    }
}

/* ============================================
   Countdown Separator Animation
   ============================================ */

@keyframes countdown-separator {

    0%,
    100% {
        transform: scale(1);
        color: var(--color-secondary);
    }

    50% {
        transform: scale(1.2);
        color: var(--color-primary);
    }
}

.animate-countdown-separator {
    animation: countdown-separator 1s ease-in-out infinite;
}

/* ============================================
   Custom Scrollbar for Navigation
   ============================================ */

/* Webkit browsers (Chrome, Safari, Edge) */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    /* slate-400 with opacity */
    border-radius: 3px;
    transition: background 0.2s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
    /* slate-400 with more opacity */
}

/* Dark mode */
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.4);
    /* slate-600 with opacity */
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.6);
    /* slate-600 with more opacity */
}

/* Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.dark .custom-scrollbar {
    scrollbar-color: rgba(71, 85, 105, 0.4) transparent;
}

