/*
 * Ficha de Producto Premium (.pcp-*) — tikitopro
 * Extraído del <style> inline de funcioneswoocommerce.php (pcp_single_product_styles).
 * Se encola solo en single product.
 */

        /* CONTENEDOR PRINCIPAL */
        .pcp-product-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 50px;
        }

        /* COLUMNA IZQUIERDA: GALERÍA */
        .pcp-product-gallery-column {
            flex: 1;
            min-width: 300px;
        }

        .pcp-main-image {
            margin-bottom: 20px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .pcp-main-img-display {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.3s ease;
        }

        .pcp-main-img-display:hover {
            transform: scale(1.02);
        }

        .pcp-gallery-thumbnails {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 15px;
        }

        .pcp-thumb-item {
            cursor: pointer;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.2s ease;
            aspect-ratio: 1/1;
        }

        .pcp-thumb-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .pcp-thumb-item.active,
        .pcp-thumb-item:hover {
            border-color: #333;
            /* Color primario */
        }

        /* COLUMNA DERECHA: INFO */
        .pcp-product-info-column {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        /* BREADCRUMBS */
        .pcp-custom-breadcrumb {
            font-size: 0.9em;
            color: #777;
            margin-bottom: 15px !important;
        }

        .pcp-custom-breadcrumb a {
            text-decoration: none;
            color: #999;
        }

        /* TÍTULO Y PRECIO */
        .pcp-product-title {
            font-size: 2.5em;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 15px;
            color: #222;
        }

        .pcp-product-price {
            font-size: 1.8em;
            color: #2c3e50;
            font-weight: 600;

            border-bottom: 1px solid #eee;

        }

        .pcp-product-price ins {
            text-decoration: none;
            color: #e74c3c;
            /* Color oferta */
        }

        /* DESCRIPCIÓN CORTA */
        .pcp-short-description {
            font-size: 1.1em;
            line-height: 1.6;
            color: #555;
        }

        /* ADD TO CART SECTION */
        .pcp-add-to-cart-section {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 12px;
        }

        /* Estilizar inputs de WooCommerce dentro de mi contenedor */
        .pcp-add-to-cart-section .quantity {
            display: inline-block;
            margin-right: 15px;
            vertical-align: middle;
        }

        .pcp-add-to-cart-section .qty {
            height: 50px;
            width: 70px;
            border-radius: 8px;
            border: 1px solid #ddd;
            text-align: center;
            font-size: 1.2em;
        }

        /*
        .pcp-add-to-cart-section .single_add_to_cart_button {
            background-color: #222 !important;
            color: #fff !important;
            height: 50px;
            padding: 0 40px;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: none;
            cursor: pointer;
            transition: background 0.3s;
            vertical-align: middle;
        }

        .pcp-add-to-cart-section .single_add_to_cart_button:hover {
            background-color: #444 !important;
            transform: translateY(-2px);
        }
*/
        /* META (SKU, CATEGORÍA) */
        .pcp-product-meta-footer {
            font-size: 0.85em;
            color: #999;
            margin-top: auto;
        }

        .pcp-product-meta-footer span {
            display: block;
            margin-bottom: 5px;
        }

        /* TABS */
        .pcp-product-tabs-section {
            margin-top: 60px;
        }

        .wc-tabs {
            border-bottom: 2px solid #eee;
            padding: 0 !important;
            margin: 0 0 30px 0 !important;
            list-style: none !important;
            display: flex;
            gap: 30px;
        }

        .wc-tabs li {
            margin: 0 !important;
            border: none !important;
            background: transparent !important;
        }

        .wc-tabs li a {
            padding: 15px 0 !important;
            font-weight: 600;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 3px solid transparent;
            display: block;
            text-decoration: none;
        }

        .wc-tabs li.active a {
            color: #222;
            border-bottom-color: #222;
        }

        .woocommerce-Tabs-panel {
            font-size: 1.05em;
            line-height: 1.8;
            color: #444;
        }

        /* RELACIONADOS */
        .pcp-related-products-section {

            border-top: 1px solid #eee;
            padding-top: 50px;
        }

        .pcp-related-products-section h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2em;
        }

        /* RESPONSIVE */
        @media (max-width: 768px) {
            .pcp-product-container {
                flex-direction: column;
                gap: 20px;
            }

            .pcp-product-title {
                font-size: 1.8em;
            }

            .pcp-add-to-cart-section .single_add_to_cart_button {
                width: 100%;
                margin-top: 15px;
            }

            .pcp-add-to-cart-section {
                padding: 2px 10px 2px 10px;
            }

            .pcp-product-info-column {
                min-width: 100%;
            }
        }

        /* GALERÍA: FLECHAS Y ZOOM */
        .pcp-nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.8);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: background 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .pcp-nav-arrow:hover {
            background: rgba(255, 255, 255, 1);
            font-weight: bold;
        }

        .pcp-prev {
            left: 10px;
        }

        .pcp-next {
            right: 10px;
        }

        /* Icono Zoom */
        .pcp-zoom-trigger {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: transform 0.3s;
        }

        .pcp-zoom-trigger:hover {
            transform: scale(1.1);
        }

        .pcp-main-img-display {
            cursor: zoom-in;
        }

        /* LIGHTBOX STYLES */
        .pcp-lightbox {
            position: fixed;
            z-index: 99999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: none;
            /* Flex via JS */
            align-items: center;
            justify-content: center;
        }

        .pcp-lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
        }

        .pcp-lightbox-content img {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 4px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }

        .pcp-lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            z-index: 100000;
        }

        .pcp-lightbox-close:hover,
        .pcp-lightbox-close:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }

        .pcp-lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: none;
            font-size: 30px;
            padding: 10px 15px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .pcp-lightbox-nav:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .pcp-lb-prev {
            left: -60px;
        }

        .pcp-lb-next {
            right: -60px;
        }

        @media (max-width: 768px) {
            .pcp-lb-prev {
                left: -10px;
                background: rgba(0, 0, 0, 0.5);
            }

            .pcp-lb-next {
                right: -10px;
                background: rgba(0, 0, 0, 0.5);
            }

            .pcp-lightbox-close {
                top: 10px;
                right: 20px;
            }
        }

        /* BADGE DE OFERTA CON PORCENTAJE */
        .pcp-sale-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 800;
            z-index: 10;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
            color: #fff;
            animation: shake-badge 2.5s ease-in-out infinite;
        }

        @keyframes shake-badge {

            0%,
            100% {
                transform: rotate(0deg);
            }

            10% {
                transform: rotate(-3deg);
            }

            20% {
                transform: rotate(3deg);
            }

            30% {
                transform: rotate(0deg);
            }
        }
