/* Premium Product Page Custom Styles */

.premium-product-page {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.premium-gallery {
    position: sticky;
    top: 20px;
}

.premium-main-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.premium-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.premium-thumbnails {
    gap: 8px;
}

.thumbnail-item img {
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.premium-content h1 {
    font-weight: 700;
    color: #333;
}

.premium-price {
    font-weight: 600;
}

.premium-html-content {
    line-height: 1.8;
    color: #555;
}

.premium-html-content h2,
.premium-html-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.premium-html-content p {
    margin-bottom: 1rem;
}

.premium-html-content ul,
.premium-html-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.premium-video {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive video container for all platforms */
.premium-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
}

.premium-video-container iframe {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dbdbdb;
}

/* Instagram embed - fixed height for vertical content */
.premium-video-container iframe[src*="instagram"] {
    height: 650px;
    max-height: 80vh;
}

/* TikTok embed - taller for vertical video */
.premium-video-container iframe[src*="tiktok"] {
    height: 700px;
    max-height: 85vh;
}

/* YouTube/Vimeo 16:9 aspect ratio */
.premium-video-container iframe[src*="youtube"],
.premium-video-container iframe[src*="vimeo"] {
    aspect-ratio: 16/9;
    height: auto;
}

/* YouTube Shorts vertical aspect ratio */
.premium-video-container iframe.youtube-short {
    aspect-ratio: 9/16 !important;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    height: 640px !important;
}

.premium-cart-section .add-to-cart {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.premium-cart-section .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.premium-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .premium-product-page {
        padding: 20px 10px;
    }

    .premium-gallery {
        position: static;
        margin-bottom: 30px;
    }

    .premium-thumbnails {
        justify-content: center;
    }
}

.cursor-pointer {
    cursor: pointer;
}

/* Limitar tamaño del logo en configuración de producto */
.top-logo {
    max-width: 64px !important;
    max-height: 64px !important;
    width: auto !important;
    height: auto !important;
}

/* TinyMCE editor configuration - Force height on all elements */
textarea.autoload_rte {
    min-height: 600px !important;
}

.translatable-field {
    min-height: 600px !important;
}

.tox-tinymce {
    min-height: 600px !important;
    height: 600px !important;
}

.tox-sidebar-wrap {
    min-height: 600px !important;
    height: 600px !important;
}

.tox-edit-area {
    min-height: 550px !important;
    height: 550px !important;
}

.tox-edit-area__iframe {
    min-height: 550px !important;
    height: 550px !important;
}

/* More specific selectors for empty editors */
div[id^="premium_html_content_"] {
    min-height: 600px !important;
}

iframe[id$="_ifr"] {
    min-height: 550px !important;
    height: 550px !important;
}

/* Language tabs for multilanguage fields */
.translationsLocales {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.translationsLocale {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.translationsLocale:hover {
    background: #e8e8e8;
    color: #000;
    text-decoration: none;
}

.translationsLocale.active {
    background: #fff;
    color: #25b9d7;
    border-bottom: 2px solid #25b9d7;
    position: relative;
    bottom: -1px;
}