/* Estilos para single-tc_events.php */
.main-content-area {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-post-container {
    background-color: #212121;
    /* Contenedor del post */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}

.post-header .entry-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    padding: 40px 40px 20px 40px;
}

.post-meta {
    padding: 0 40px 20px 40px;
    color: #aaa;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.post-meta a {
    color: #ffd700;
    /* El color dorado del logo para enlaces */
    text-decoration: none;
    font-weight: bold;
}

.post-meta a:hover {
    text-decoration: underline;
}

.post-meta .meta-divider {
    margin: 0 10px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 15px;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.post-content a {
    color: #ffd700;
    text-decoration: underline;
}

.post-footer {
    padding: 20px 40px;
    background-color: #1e1e1e;
    font-family: sans-serif;
}

.temas-list a {
    display: inline-block;
    background-color: #ffd700;
    color: #121212;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.temas-list a:hover {
    transform: scale(1.05);
}

/* Navegación entre posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
}

.post-navigation a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .post-header .entry-title {
        font-size: 2rem;
        padding: 30px 20px 15px 20px;
    }

    .post-meta,
    .post-content,
    .post-footer {
        padding: 20px;
    }
}

.tc_event_date_title_front,
.tc_event_location_title_front {
    color: #ffffff !important;
    font-size: 16px !important;
    text-transform: uppercase;
    padding-right: 10px !important;
}

/* Shop Sidebar Layout */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.shop-container.has-sidebar .shop-sidebar {
    flex: 0 0 300px;
    /* Fixed width for sidebar */
    width: 300px;
}

.shop-container.has-sidebar .shop-content {
    flex: 1;
    min-width: 0;
    /* Fix for flexbox overflow issues */
}

.shop-container.no-sidebar .shop-content {
    width: 100%;
}

/* Sidebar Widgets */
.shop-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.shop-sidebar .widget-title {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 991px) {
    .shop-container.has-sidebar {
        flex-direction: column;
    }

    .shop-container.has-sidebar .shop-sidebar {
        width: 90%;
        flex: none;
        display: none;

    }
}

/* ---------------------------------------------------------
   Product Loop Card Design
--------------------------------------------------------- */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 2;
    min-height: auto;
    min-width: auto;
    line-height: normal;
    font-weight: 600;
}

/* Quick Actions Overlay (Removed/Hidden) */
.product-card-actions {
    display: none;
}

.product-card:hover .product-card-actions {
    bottom: 0;
    opacity: 1;
}

.product-card-actions .button {
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.product-card-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-categories {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-categories a {
    color: #999;
    text-decoration: none;
}

.product-card-title-link {
    text-decoration: none;
}

.woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-card-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-card-price del {
    color: #aaa;
    font-weight: 400;
    margin-right: 5px;
    font-size: 0.9em;
}

.product-card-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-card-footer .button {
    display: block;
    text-align: center;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.product-card-footer .button:hover {
    background-color: #555;
    color: #fff;
}

/* ---------------------------------------------------------
   Widget Styling
--------------------------------------------------------- */
.price_slider_wrapper {
    margin-top: 15px;
    padding-bottom: 10px;
}

/* Custom jQuery UI Slider Styles */
#tikitopro-price-slider .ui-slider-range {
    background: var(--primary-color);
    /* Primary Color */
}

#tikitopro-price-slider .ui-slider-handle {
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
    width: 1.2em;
    height: 1.2em;
    top: -0.4em;
    cursor: grab;
    outline: none;
}

#tikitopro-price-slider .ui-widget-content {
    background: #eee;
    border: none;
    height: 6px;
    border-radius: 3px;
}

/* Price Labels & Button */
.price_label {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.price-range {
    display: block;
}

/* ---------------------------------------------------------
   Pagination Styling
--------------------------------------------------------- */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    list-style: none;
}

.woocommerce-pagination ul li {
    border-right: 1px solid #eee;
    float: none !important;
    overflow: hidden;
    margin: 0 !important;
}

.woocommerce-pagination ul li:last-child {
    border-right: none;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li a:focus {
    background: #f9f9f9;
    color: #000;
}

.woocommerce-pagination ul li .current {
    background: #333;
    color: #fff;
    cursor: default;
}

/* ---------------------------------------------------------
   Product Categories Widget / Block - Estilo con fondo primario
--------------------------------------------------------- */

/* Container del widget con fondo de color primario */
.widget_product_categories {
    background: var(--primary-color, #2196F3);
    border-radius: 10px;
    overflow: hidden;
    padding: 0 !important;
    border: none !important;
}

.widget_product_categories .widget-title,
.widget_product_categories>h2,
.widget_product_categories>h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0 0;
    padding: 20px 20px 15px 20px;
    background: #fff;
    border-bottom: 3px solid var(--primary-color, #2196F3);
}

/* Lista principal de categorías */
.widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories ul li {
    position: relative;
    padding: 0;
    border-bottom: none;
    margin: 0;
}

.widget_product_categories ul li:last-child {
    border-bottom: none;
}

/* Enlaces de categoría con fondo primario y texto blanco */
.widget_product_categories ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    transition: all 0.3s ease;
    background: transparent;
}

/* Bullet cuadrado antes del texto */
.widget_product_categories ul li a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Hover effect */
.widget_product_categories ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 25px;
}

/* Subcategorías con indentación */
.widget_product_categories ul.children {
    margin-left: 0 !important;
    border-left: none;
    background: rgba(0, 0, 0, 0.1);
}

.widget_product_categories ul.children li a {
    padding-left: 40px;
}

.widget_product_categories ul.children li a::before {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
}

/* Contador de productos oculto o estilizado */
.widget_product_categories ul li .count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 15px;
    margin-left: auto;
    font-weight: 500;
}

/* Categoría actual activa */
.widget_product_categories ul li.current-cat>a,
.widget_product_categories ul li.current-cat-parent>a {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.widget_product_categories ul li.current-cat>a::before {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Dark Mode */
body.dark-mode .widget_product_categories {
    background: var(--primary-color, #2196F3);
}

body.dark-mode .widget_product_categories .widget-title,
body.dark-mode .widget_product_categories>h2,
body.dark-mode .widget_product_categories>h3 {
    background: #1a1a1a;
    color: #f8f9fa;
    border-bottom-color: var(--primary-color, #2196F3);
}

/* ---------------------------------------------------------
   Gutenberg Product Categories Block - Estilo similar
--------------------------------------------------------- */
.wc-block-product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--primary-color, #2196F3);
    border-radius: 10px;
    overflow: hidden;
}

.wc-block-product-categories-list-item {
    margin-bottom: 0 !important;
    border-bottom: none;
}

.wc-block-product-categories-list-item:last-child {
    border-bottom: none;
}

.wc-block-product-categories-list-item a {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wc-block-product-categories-list-item a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    margin-right: 15px;
}

.wc-block-product-categories-list-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 25px;
}

.wc-block-product-categories-list-item .wc-block-product-categories-list-item-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 15px;
    margin-left: auto;
}

/* Hierarchy indentation */
.wc-block-product-categories-list-item .wc-block-product-categories-list {
    margin-left: 0 !important;
    border-left: none;
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   STICKY ADD TO CART BAR
   ========================================================================== */

.pcp-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid #eee;
}

.pcp-sticky-cart.visible {
    transform: translateY(0);
}

.pcp-sticky-cart-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pcp-sticky-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pcp-sticky-product-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.pcp-sticky-product-details {
    min-width: 0;
    flex: 1;
}

.pcp-sticky-product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcp-sticky-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color, #e1af1a);
}

.pcp-sticky-product-price del {
    color: #adb5bd;
    font-size: 0.85em;
    font-weight: 400;
}

.pcp-sticky-product-price ins {
    text-decoration: none;
}

.pcp-sticky-cart-actions {
    flex-shrink: 0;
}

.pcp-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color, #e1af1a) 0%, #d4a017 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.3);
}

.pcp-sticky-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 175, 26, 0.4);
    color: #fff;
}

.pcp-sticky-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.pcp-sticky-btn:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Loading state */
.pcp-sticky-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.pcp-sticky-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: stickySpinner 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes stickySpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Added state */
.pcp-sticky-btn.added {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.pcp-sticky-btn.added i::before {
    content: '\f00c';
    /* Check icon */
}

/* Dark mode */
body.dark-mode .pcp-sticky-cart {
    background: #1a1a1a;
    border-top-color: #333;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .pcp-sticky-product-title {
    color: #f8f9fa;
}

body.dark-mode .pcp-sticky-product-img {
    border-color: #333;
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .pcp-sticky-cart-inner {
        padding: 10px 15px;
        gap: 10px;
    }

    .pcp-sticky-product-img {
        width: 40px;
        height: 40px;
    }

    .pcp-sticky-product-title {
        font-size: 0.85rem;
    }

    .pcp-sticky-product-price {
        font-size: 0.9rem;
    }

    .pcp-sticky-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .pcp-sticky-btn span {
        display: none;
    }

    .pcp-sticky-btn i {
        font-size: 1.1rem;
    }
}

/* Hide on very small screens if needed */
@media (max-width: 360px) {
    .pcp-sticky-product-details {
        display: none;
    }
}