/* Thrillark Feature Banner - Perfect Replica CSS */

/* ============================================
   FEATURE BANNER WIDGET - EXACT REPLICA
   Content card half outside image with transparent arrow
   ============================================ */

.thrillark-feature-banner-perfect {
    position: relative;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: visible; /* Allow content to extend outside */
    max-width: 100%;
}

/* Image container with rounded corners */
.banner-image-container {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* Very subtle overlay - just enough to make content readable */
.banner-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        transparent 0%, 
        transparent 60%, 
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* Content card positioned to extend half outside the image */
.banner-content-card {
    position: absolute;
    bottom: -50px; /* Extends 50px below the image */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 30px 40px 30px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 85%;
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: -150px;
}

/* Inner content wrapper */
.banner-content-inner {
    margin-bottom: 0;
}

/* Date styling - exactly like the design */
.banner-date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Title styling - bold and prominent */
.banner-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

/* Excerpt styling */
.banner-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Transparent arrow button - positioned at bottom right of card */
.banner-arrow-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.banner-arrow-btn svg {
    width: 20px;
    height: 20px;
}

/* Error states */
.thrillark-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .banner-content-card {
        max-width: 900px;
        width: 88%;
        padding: 28px 35px 28px 35px;
        margin-top: -130px;
    }
    
    .banner-title {
        font-size: 22px;
    }
    
    .banner-excerpt {
        font-size: 14px;
    }
}

/* Responsive Design - Mobile Large */
@media (max-width: 768px) {
    .banner-image-container {
        height: 250px;
    }
    
    .banner-content-card {
        width: 90%;
        max-width: 700px;
        padding: 25px 30px 25px 30px;
        bottom: -40px;
        margin-top: -120px;
    }
    
    .banner-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .banner-excerpt {
        font-size: 14px;
    }
    
    .banner-arrow-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .banner-arrow-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsive Design - Mobile Medium */
@media (max-width: 600px) {
    .banner-image-container {
        height: 230px;
    }
    
    .banner-content-card {
        width: 92%;
        max-width: 500px;
        padding: 22px 28px 22px 28px;
        bottom: -38px;
        margin-top: -100px;
    }
    
    .banner-title {
        font-size: 19px;
        margin-bottom: 14px;
    }
    
    .banner-excerpt {
        font-size: 13px;
    }
    
    .banner-date {
        font-size: 11px;
        margin-bottom: 18px;
    }
}

/* Responsive Design - Mobile Small */
@media (max-width: 480px) {
    .banner-image-container {
        height: 220px;
        border-radius: 15px;
    }
    
    .banner-content-card {
        width: 95%;
        max-width: 400px;
        padding: 20px 25px 20px 25px;
        border-radius: 15px;
        bottom: -35px;
        margin-top: -90px;
    }
    
    .banner-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .banner-excerpt {
        font-size: 13px;
    }
    
    .banner-date {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .banner-arrow-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .banner-arrow-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Design - Mobile Extra Small */
@media (max-width: 360px) {
    .banner-image-container {
        height: 200px;
        border-radius: 12px;
    }
    
    .banner-content-card {
        width: 96%;
        max-width: 320px;
        padding: 18px 22px 18px 22px;
        border-radius: 12px;
        bottom: -32px;
        margin-top: -80px;
    }
    
    .banner-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .banner-excerpt {
        font-size: 12px;
    }
    
    .banner-date {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .banner-arrow-btn {
        width: 35px;
        height: 35px;
        bottom: 12px;
        right: 12px;
    }
    
    .banner-arrow-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Ensure parent containers have enough space for the extending content */
.widget {
    margin-bottom: 80px !important;
}

.thrillark-feature-banner-widget {
    margin-bottom: 80px !important;
}

/* ============================================
   PLACEHOLDER STYLES FOR OTHER WIDGETS
   ============================================ */

/* Product Widget */
.thrillark-product-widget {
    margin-bottom: 30px;
}

/* YouTube Embed Widget */
.thrillark-youtube-embed {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.thrillark-youtube-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Instagram Embed Widget */
.thrillark-instagram-embed {
    margin-bottom: 30px;
    text-align: center;
}

/* FAQ Widget */
.thrillark-faq-widget {
    margin-bottom: 30px;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 20px;
    max-height: 200px;
}

/* Newsletter Widget */
.thrillark-newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

/* Call-out Banner */
.thrillark-callout-banner {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* Single Product Display - Full Height Image & Wider Card */
.thrillark-product-single {
    margin-bottom: 30px;
}

.product-single-container {
    display: flex;
    gap: 0;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1150px;
    height: 220px;
}

.product-single-image {
    flex: 0 0 300px;
    height: 220px;
    overflow: hidden;
}

.product-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-single-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
}

.product-category {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.product-rating {
    margin-bottom: 15px;
}

.star {
    color: #ffa500;
    font-size: 16px;
    margin-right: 2px;
}

.star-empty {
    color: #ddd;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price .currency {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.product-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* Product Carousel - FIXED Container with proper spacing */
.thrillark-product-carousel {
    position: relative;
    margin: 0 50px 40px 50px; /* Add horizontal margin for arrow space */
    overflow: visible; /* Allow arrows to show outside */
    max-width: 920px; /* Width for exactly 4 cards */
   
}

.product-carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0 25px 0; /* NO horizontal padding here */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 900px; /* 4 * (220px + 15px) - 15px = 920px */
}

.product-carousel-container::-webkit-scrollbar {
    display: none;
}

.product-carousel-item {
    flex: 0 0 220px; /* Fixed width - exactly 4 will be visible */
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
    min-width: 220px; /* Ensure minimum width */
}

.product-carousel-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-item-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-carousel-item:hover .product-item-image img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.badge-icon {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-content {
    padding: 15px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin: 0 0 10px 0;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-item-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-top: auto;
}

.product-item-price .currency {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.product-item-price .amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* FIXED Carousel Navigation - Proper positioning */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    outline: none;
    border: none;
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #333;
}

.carousel-nav.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.carousel-prev {
    left: -45px; /* Position outside carousel container */
}

.carousel-next {
    right: -45px; /* Position outside carousel container */
}

/* Simple Arrow Icon - Exact Replica Style */
.carousel-nav .arrow-icon {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    font-family: Arial, sans-serif;
    pointer-events: none; /* Prevent interference with button click */
}

/* Remove SVG styles since we're using text arrows */
.carousel-nav svg {
    display: none;
}

/* FIXED: Remove conflicting styles and ensure proper container width */
.thrillark-product-widget {
    padding: 0; /* Remove any widget padding that might interfere */
    overflow: visible; /* Allow arrows to show */
}

/* Responsive Design - Maintain 4 cards visible on desktop */
@media (min-width: 1200px) {
    .thrillark-product-carousel {
        max-width: 920px; /* Always show exactly 4 cards */
        margin: 0 50px 40px 50px;
    }
    
    .product-carousel-container {
        max-width: 920px;
    }
    
    .product-carousel-item {
        flex: 0 0 220px;
        min-width: 220px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .thrillark-product-carousel {
        max-width: 700px; /* Show 3 cards */
        margin: 0 50px 40px 50px;
    }
    
    .product-carousel-container {
        max-width: 700px;
    }
    
    .product-carousel-item {
        flex: 0 0 220px;
        min-width: 220px;
    }
}

@media (max-width: 767px) {
    .product-single-container {
        flex-direction: column;
        max-width: 100%;
        height: auto;
    }
    
    .product-single-image {
        flex: none;
        height: 200px;
        width: 100%;
    }
    
    .product-single-content {
        padding: 20px;
    }
    
    .thrillark-product-carousel {
        max-width: 450px; /* Show 2 cards on mobile */
        margin: 0 40px 40px 40px; /* Reduced margin for mobile */
    }
    
    .product-carousel-container {
        max-width: 450px;
    }
    
    .product-carousel-item {
        flex: 0 0 180px;
        min-width: 180px;
        height: 260px;
    }
    
    .product-item-image {
        height: 120px;
    }
    
    .product-item-content {
        height: 140px;
        padding: 12px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-nav .arrow-icon {
        font-size: 20px;
    }
    
    .carousel-prev {
        left: -40px;
    }
    
    .carousel-next {
        right: -40px;
    }
}

@media (max-width: 480px) {
    .product-single-container {
        max-width: 100%;
    }
    
    .product-single-image {
        height: 180px;
    }
    
    .product-single-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price .amount {
        font-size: 24px;
    }
    
    .thrillark-product-carousel {
        max-width: 340px; /* Show 2 smaller cards */
        margin: 0 35px 40px 35px;
    }
    
    .product-carousel-container {
        max-width: 340px;
    }
    
    .product-carousel-item {
        flex: 0 0 160px;
        min-width: 160px;
        height: 240px;
    }
    
    .product-item-image {
        height: 100px;
    }
    
    .product-item-content {
        height: 140px;
        padding: 10px;
    }
    
    .product-item-title {
        font-size: 12px;
        height: 45px;
    }
    
    .product-item-price .amount {
        font-size: 16px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
    }
    
    .carousel-nav .arrow-icon {
        font-size: 18px;
    }
    
    .carousel-prev {
        left: -35px;
    }
    
    .carousel-next {
        right: -35px;
    }
}