/* CSS Rules for CSO Artindex Plugin */

/* 1. Artists Index */
.cso-artists-index-container .page-navigation-area {
    gap: 10px;
}
.cso-artists-index-container .page-navigation-area ul.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}
.cso-artists-index-container .page-navigation-area .page-item .page-link {
    padding: 8px 16px;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}
.cso-artists-index-container .page-navigation-area .page-item.active .page-link {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
.cso-artists-index-container .page-navigation-area .page-item .page-link:hover:not(.active) {
    background-color: #f8f8f8;
}
.sidebar-area .artists-widgets {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.sidebar-area .widget-title h5 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}
.category-list-wrapper::-webkit-scrollbar {
    width: 6px;
}
.category-list-wrapper::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}
.checkbox-container {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.containerss {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}
.containerss input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}
.containerss:hover input ~ .checkmark {
    background-color: #ccc;
}
.containerss input:checked ~ .checkmark {
    background-color: #6c757d;
}

/* Event categories */
.badge.bg-primary {
    background-color: #007bff !important;
    padding: 0.5em 1em;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-gallery-slider .swiper-button-next,
.event-gallery-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.event-gallery-slider .swiper-button-next:after,
.event-gallery-slider .swiper-button-prev:after {
    font-size: 1.2rem;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.containerss input:checked ~ .checkmark:after {
    display: block;
}
.containerss .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.artist-item, .museum-item {
    margin-bottom: 15px;
}
.artist-card, .museum-card {
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

/* 2. Museums Index */
.cso-museums-index-container .page-navigation-area {
    gap: 10px;
}
.cso-museums-index-container .page-navigation-area ul.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}
.cso-museums-index-container .page-navigation-area .page-item .page-link {
    padding: 8px 16px;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}
.cso-museums-index-container .page-navigation-area .page-item.active .page-link {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
.cso-museums-index-container .page-navigation-area .page-item .page-link:hover:not(.active) {
    background-color: #f8f8f8;
}
.museum-content h6 {
    font-size: 18px !important;
}
#museum-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
}
#museum-map .leaflet-popup-content {
    font-family: var(--font-worksans), sans-serif;
    font-size: 14px;
}
#map-legend h6 {
    font-family: var(--font-playfair), serif;
}

/* 3. Auctions Calendar & Cards */
#cso-auctions-calendar-viz { max-width: 100%; margin: 0 auto; }
.fc-event { cursor: pointer; }
.fc-toolbar-title { font-size: 1.2rem !important; }
@media (max-width: 768px) {
    .fc-toolbar { flex-direction: column; gap: 10px; }
}

.style-auction-event {
    border: 1px solid #eee;
    transition: all 0.3s;
}
.style-auction-event:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.style-auction-event .countdown-timer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
}
.style-auction-event .timer-label {
    font-size: 11px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.style-auction-event .cso-timer-display-container {
    font-weight: 700;
    font-family: monospace;
    font-size: 16px;
}

.cso-countdown-timer-wrap .auction-time {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}
.cso-countdown-timer-wrap .auction-time-countdown {
    display: block !important;
    font-family: 'Courier New', monospace !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #fff !important;
    min-height: 24px;
}
.cso-countdown-timer-wrap .auction-time-countdown .countdown-section {
    display: inline-block;
    margin: 0 2px;
}
.cso-countdown-timer-wrap .auction-time-countdown .countdown-amount {
    display: block;
}
.cso-countdown-timer-wrap .auction-time-countdown .countdown-period {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: #ccc;
}

/* 4. Credits Section */
.cso-credits-account-section .table th { font-weight: 600; }
.cso-credits-account-section .badge { font-weight: 500; }

.cso-buy-credits-container {
    padding: 40px 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.cso-buy-credits-container .card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}
.cso-buy-credits-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.cso-buy-credits-container .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color, #222);
}
.cso-buy-credits-container .egns-btn {
    background-color: var(--primary-color, #222);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.cso-stripe-simulation-wrapper .form-control {
    border: 1px solid #e6e6e6;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

/* 5. Auction Bidding & Single Product */
.cso-inquiry-box-wrapper, .cso-inquiry-form-wrapper, #cso-request-button-wrapper, .cso-request-button-wrapper, .cso-inquiry-container { display: block; }

.other-auction-products .section-title h3 {
    font-family: var(--font-playfair), serif;
    font-size: 32px;
    font-weight: 700;
}
@media (max-width: 768px) {
    .other-auction-products .section-title h3 {
        font-size: 24px;
    }
}

.cso-login-warning-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cso-login-warning-box h4 { margin-bottom: 15px; font-weight: 700; }
.cso-login-warning-box p { margin-bottom: 20px; color: #666; }
.cso-login-btn { 
    background: var(--primary-color); 
    color: #fff !important; 
    padding: 12px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}
.cso-login-btn:hover { background: #333; color: #fff !important; }

.cso-view-history-btn {
    display: inline-block;
    background: #171717;
    color: #fff !important;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    margin-left: 10px;
    transition: 0.3s;
}
.cso-view-history-btn:hover {
    background: #333;
}
.cso-auction-history-section {
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.cso-auction-info-box {
    margin-top: 0 !important;
}
.cso-bid-timeline-wrapper {
    margin-top: 0 !important;
}
.cso-auction-name-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}
.cso-auction-event-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}
.cso-auction-event-link:hover { text-decoration: underline; }

.cso-upcoming-auction-box {
    background: #fff4e5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffe2b3;
}
.cso-upcoming-auction-box h4 { margin-bottom: 10px; color: #856404; font-weight: 700; font-size: 18px; }
.cso-auction-start-info { font-size: 16px; margin-bottom: 20px; font-weight: 600; }
.cso-notify-form { display: flex; flex-direction: column; gap: 10px; }
.cso-notify-form input { padding: 12px; border: 1px solid #ddd; border-radius: 6px; width: 100%; }
.cso-notify-btn { background: #856404; color: #fff; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.cso-notify-btn:hover { background: #664d03; }

.cso-bid-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.cso-bid-box h4 { margin-bottom: 15px; font-weight: 700; font-size: 18px; }
.cso-bid-current-price { font-size: 24px; color: var(--primary-color); font-weight: 700; margin-bottom: 20px; }
.cso-bid-input-group { display: flex; gap: 10px; margin-bottom: 15px; }
.cso-bid-input-group input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
.cso-bid-btn { background: var(--primary-color); color: #fff; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.cso-bid-btn:hover { background: #333; }
.cso-bid-info { font-size: 13px; color: #666; }

.cso-auction-timer-wrap {
    margin-bottom: 20px;
    padding: 10px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-align: center;
}
.cso-timer-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }
.cso-timer-val { font-family: monospace; font-size: 20px; font-weight: 700; }


.cso-auction-info-box .cso-auction-timer-wrap .cso-timer-val {
    background: transparent !important;
    border:none!important;
}
.cso-auction-info-box .cso-auction-timer-wrap .cso-timer-val * {
    color: white!important;
}


.cso-bid-now-btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

/* Event Details Header Meta */
.event-header-meta .header-meta-item {
    display: flex;
    align-items: center;
}
.event-header-meta i {
    color: var(--primary-color, #007bff);
}
.event-single-header .social-area h6 {
    font-size: 14px;
    font-weight: 600;
}

/* Events Filter Bar */
.events-filter-bar label {
    margin-bottom: 5px;
    color: #444;
}
.events-filter-bar .form-select, 
.events-filter-bar .form-control {
    border: 1px solid #ddd;
}
.events-filter-bar .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cso-bid-now-wrapper {
    display: block;
    clear: both;
}

/* 6. Auction Timeline */
.cso-timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}
.cso-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #eee;
    display: block !important;
}
.cso-timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.cso-timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #eee;
    z-index: 2;
}
.cso-timeline-item.start-price .cso-timeline-marker {
    background: #6c757d !important;
}
.cso-timeline-item.bid-item .cso-timeline-marker {
    background: #171717 !important;
}
.cso-timeline-content {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}
.cso-timeline-item:hover .cso-timeline-content {
    border-color: #ddd;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}
.cso-timeline-date {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}
.cso-timeline-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.cso-timeline-user {
    display: block;
    font-size: 13px;
    color: #666;
}

/* 7. Auction Checklist */
#auction-checklist li {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#auction-checklist li i {
    font-size: 1.1rem;
    width: 20px;
}

#auction-checklist li.text-success {
    color: #198754 !important; /* Bootstrap success green */
}

#auction-checklist li.text-muted {
    color: #6c757d !important;
}

.auction-form .card.bg-light {
    background-color: #f9f9f9 !important;
    border: 1px solid #eee !important;
}
/* Force buttons to be black with white text to match Artindex theme */
.btn-primary, 
.btn-info, 
.btn-success, 
.btn-warning, 
.btn-danger,
.btn-secondary {
    background-color: #171717 !important;
    border-color: #171717 !important;
    color: #fff !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, 
.btn-info:hover, 
.btn-success:hover, 
.btn-warning:hover, 
.btn-danger:hover,
.btn-secondary:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* Fix links and other blue elements from Bootstrap */
a.text-primary, a.text-info {
    color: #171717 !important;
}

a.text-primary:hover, a.text-info:hover {
    color: #333 !important;
}

.bg-primary, .bg-info {
    background-color: #171717 !important;
}

.badge.bg-primary, .badge.bg-info {
    background-color: #171717 !important;
    color: #fff !important;
}

/* Tables and other UI elements */
.table-light {
    background-color: #f8f9fa !important;
}

.pagination .page-item.active .page-link {
    background-color: #171717 !important;
    border-color: #171717 !important;
}

/* Ensure formal tone consistency for tooltips if any (visual only) */
.tooltip-inner {
    background-color: #171717 !important;
}
.auction-card .batch .live {
    background-color: #007bff;
}

.auction-card.style-2 .auction-card-content {
    padding: 25px 15px;
}

/* Event Single Page */
.event-single-header .social-link li a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #f4f4f4;
    border-radius: 50%;
    display: block;
    color: #333;
    font-size: 16px;
    transition: 0.3s;
}
.event-single-header .social-link li a:hover {
    background: #007bff;
    color: #fff;
}
.event-gallery-slider {
    padding-bottom: 40px !important;
}
.event-gallery-slider .swiper-button-next,
.event-gallery-slider .swiper-button-prev {
    color: #333;
}
.event-gallery-slider .swiper-pagination-bullet-active {
    background: #333;
}
.event-meta-info {
    font-size: 15px;
    border: 1px solid #eee;
}
.similar-events-section h4 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

@media (max-width: 991px) {
    .breadcrumb-list {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .breadcrumb-list li {
        float: none !important;
        display: inline-block !important;
    }
    
    .breadcrumb-section .top-content,
    .top-area .top-content {
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .breadcrumb-section .d-flex,
    .top-area .d-flex {
        justify-content: center !important;
    }
}

/* Pagina produs - Centrare elemente pe mobil */
@media (max-width: 991px) {
    .single-product .summary.entry-summary {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .single-product .summary.entry-summary .product_meta,
    .single-product .summary.entry-summary .product_title,
    .single-product .summary.entry-summary .price,
    .single-product .summary.entry-summary .woocommerce-product-details__short-description,
    .single-product .summary.entry-summary .cart,
    .single-product .summary.entry-summary .yith-wcwl-add-to-wishlist,
    .single-product .summary.entry-summary .cso-inquiry-form-wrapper,
    .single-product .summary.entry-summary .cso-request-button-wrapper,
    .single-product .summary.entry-summary .cso-bid-now-button-wrapper {
        width: 100% !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        text-align: center !important;
    }
    
    .single-product .summary.entry-summary .cart {
        justify-content: center !important;
    }

    /* Asigurăm că textele sunt centrate în interiorul elementelor flex */
    .single-product .summary.entry-summary .product_meta span,
    .single-product .summary.entry-summary .price .woocommerce-Price-amount {
        display: inline-block !important;
    }
}

/* Ensure buttons to be black with white text to match Artindex theme */

@media (max-width: 991px) {
    .topbar-right a.header-btn span {
        font-size: 13px;
    }
}

.tt-style-switch, 
.dark-light-switch {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-action-btn {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        min-width: 44px;
        min-height: 44px;
        padding: 8px !important;
        margin: 0 1px;
    }
    
    .mobile-action-btn:hover, .mobile-action-btn:focus {
        background: #e9ecef;
        color: #000;
    }

    .mobile-action-btn svg {
        width: 24px;
        height: 24px;
    }

    .mobile-menu-btn span, 
    .mobile-menu-btn span::before, 
    .mobile-menu-btn span::after {
        background-color: #333 !important;
    }
    
    .topbar {
        padding: 15px 0;
    }
    
    .header-logo img {
        max-height: 60px;
    }
}


@media (max-width: 991px) {
    .topbar-wrap {
        flex-wrap: wrap;
    }
    .header-logo {
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* 16. Mobile Menu Enhancements */
.main-menu.show-menu {
    display: block !important;
}

    .mobile-menu-header .header-logo img {
        max-width: 150px !important;
        height: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

/* Ensure the menu has a background and height for click-outside detection */
@media (max-width: 991px) {
    .main-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: #fff !important;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        display: block !important;
    }
    
    .main-menu.show-menu {
        left: 0 !important;
    }
}

/* Ascunde textul "Add to wishlist" */
.yith-wcwl-add-to-wishlist-button__label,
.yith-wcwl-add-button a span,
.yith-wcwl-wishlistaddedbrowse span,
.yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-wishlistexistsbrowse span,
.yith-wcwl-wishlistexistsbrowse a {
    display: none !important;
}

/* Dar pastreaza iconitele vizibile in interiorul link-urilor care au fost ascunse mai sus */
.yith-wcwl-wishlistaddedbrowse a i,
.yith-wcwl-wishlistaddedbrowse a svg,
.yith-wcwl-wishlistexistsbrowse a i,
.yith-wcwl-wishlistexistsbrowse a svg {
    display: inline-block !important;
}

/* Single Product Artist Info & Views */
.summary.entry-summary .artist-info {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary.entry-summary .artist-info li {
    display: block;
    margin-bottom: 5px;
}

.summary.entry-summary .artist-info li a {
    font-weight: 500;
    color: #171717;
    font-size: 1.1rem;
    text-decoration: none;
}

.summary.entry-summary .artist-info li.product-views-count {
    color: #666;
    font-size: 0.9rem;
}

.summary.entry-summary .artist-info li.product-views-count .views-number {font-size: 16px;font-weight: 300;}

@media (min-width: 992px) {
    .summary.entry-summary .artist-info {
        align-items: flex-start;
    }
}