/**
 * Rubikto Pro Widgets - Main CSS File
 */

/* Info Box Widget */
.hello-info-box {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hello-info-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hello-info-box-icon {
    margin-right: 20px;
    color: #0073aa;
}

.hello-info-box-content {
    flex: 1;
}

.hello-info-box-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.hello-info-box-description {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Call to Action Widget */
.hello-cta {
    padding: 40px;
    background-color: #f7f7f7;
    border-radius: 5px;
    text-align: center;
}

.hello-cta-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.hello-cta-description {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.hello-cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hello-cta-button:hover {
    background-color: #005a87;
}

/* Testimonial Slider Widget */
.hello-testimonial-slider {
    position: relative;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.hello-testimonial-item {
    text-align: center;
    padding: 20px;
}

.hello-testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.hello-testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

.hello-testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hello-testimonial-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.hello-testimonial-position {
    font-size: 14px;
    color: #777;
}

/* Navigation Menu Widget */
.hello-nav-container {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.hello-nav-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.hello-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hello-nav-menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.hello-nav-menu a {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.hello-nav-menu a:hover {
    color: #5A31F4;
    background-color: rgba(90, 49, 244, 0.1);
}

.hello-nav-search input {
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 8px 16px 8px 40px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hello-nav-search input:focus {
    outline: none;
    border-color: #5A31F4;
    box-shadow: 0 0 0 3px rgba(90, 49, 244, 0.1);
}

.hello-nav-cart {
    position: relative;
    background-color: #5A31F4;
    border-radius: 9999px;
    padding: 8px;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.hello-nav-cart:hover {
    background-color: #4A28E0;
}

.hello-nav-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.hello-nav-cart-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.hello-nav-cart-dropdown:not(.tw-hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hello-nav-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.hello-nav-mobile-menu:not(.tw-hidden) {
    transform: translateX(0);
}

.hello-nav-mobile-search-bar {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hello-nav-container {
        padding: 8px 16px;
    }
    
    .hello-nav-logo img {
        max-height: 40px;
    }
    
    .hello-nav-menu {
        display: none;
    }
}

/* WooCommerce integration */
.hello-nav-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.hello-nav-cart-items::-webkit-scrollbar {
    width: 4px;
}

.hello-nav-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.hello-nav-cart-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.hello-nav-cart-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Story Slider Widget */
.hello-story-container {
    background-color: #f3f4f6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hello-story-image {
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hello-story-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hello-story-title {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hello-story-container:hover .hello-story-title {
    color: #374151;
}

/* Story Popup Modal */
.hello-story-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hello-story-overlay:not(.tw-hidden) {
    opacity: 1;
    visibility: visible;
}

.hello-story-popup {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hello-story-overlay:not(.tw-hidden) .hello-story-popup {
    transform: scale(1);
}

.hello-story-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hello-story-close:hover {
    color: #374151;
}

/* Swiper Customization for Story Slider */
.hello-story-swiper .swiper-slide {
    text-align: center;
    transition: transform 0.3s;
}

.hello-story-swiper .swiper-slide:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hello-story-container {
        padding: 12px;
    }
    
    .hello-story-popup {
        margin: 10px;
        padding: 20px;
    }
}

/* Animation for popup content */
.hello-story-popup img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hello-story-popup h3 {
    margin-bottom: 12px;
    color: #1f2937;
}

.hello-story-popup p {
    color: #6b7280;
    line-height: 1.6;
}

.hello-story-popup a {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hello-story-popup a:hover {
    background-color: #2563eb;
}

/* Category Display Widget */
.hello-category-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hello-category-card {
    background-color: #ffffff;
    border: 1px solid #f9fafb;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hello-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.hello-category-image {
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hello-category-card:hover .hello-category-image {
    transform: scale(1.05);
}

.hello-category-title {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hello-category-subtitle {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hello-category-card:hover .hello-category-title,
.hello-category-card:hover .hello-category-subtitle {
    color: #374151;
}

/* Mobile Swiper Customization */
.hello-category-swiper .swiper-slide {
    height: auto;
}

.hello-category-swiper .swiper-slide .hello-category-card {
    height: 100%;
    min-height: 120px;
}

/* Desktop Grid */
.hello-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hello-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hello-category-container {
        padding: 0 16px;
    }
    
    .hello-category-card {
        padding: 8px;
        min-height: 100px;
    }
    
    .hello-category-image {
        width: 64px !important;
        height: 64px !important;
    }
}

@media (max-width: 640px) {
    .hello-category-grid {
        display: none;
    }
    
    .hello-category-swiper {
        display: block;
    }
}

/* Swiper navigation and pagination (if needed) */
.hello-category-swiper .swiper-pagination {
    bottom: -30px;
}

.hello-category-swiper .swiper-pagination-bullet {
    background-color: #d1d5db;
    opacity: 0.5;
}

.hello-category-swiper .swiper-pagination-bullet-active {
    background-color: #6b7280;
    opacity: 1;
}

/* Hover effects for better UX */
.hello-category-card {
    position: relative;
    overflow: hidden;
}

.hello-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hello-category-card:hover::before {
    opacity: 1;
}

/* Loading state */
.hello-category-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.hello-category-card.loading .hello-category-image {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Banner Display Widget */
.hello-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hello-banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.hello-banner-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hello-banner-link:hover {
    text-decoration: none;
}

/* Side banners container */
.hello-side-banners {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Responsive behavior */
@media (min-width: 640px) {
    .hello-banner-container {
        gap: 16px;
    }
    
    .hello-side-banners {
        flex-direction: row;
        gap: 16px;
    }
}

/* Hover effects */
.hello-banner-image.hover-scale:hover {
    transform: scale(1.02);
}

.hello-banner-image.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hello-banner-image.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Loading state */
.hello-banner-image.loading {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Accessibility improvements */
.hello-banner-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Image optimization */
.hello-banner-image {
    max-width: 100%;
    height: auto;
}

/* Container styling */
.hello-banner-container {
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .hello-banner-container {
        padding: 48px 16px;
    }
}

/* Banner aspect ratios */
.hello-banner-image {
    aspect-ratio: auto;
}

/* Optional: Add specific aspect ratios for different banner types */
.hello-banner-image.main-banner {
    aspect-ratio: 16/9;
}

.hello-banner-image.side-banner {
    aspect-ratio: 1/1;
}

/* Smooth transitions for all interactive elements */
.hello-banner-container * {
    transition: all 0.3s ease;
}

/* Focus states for better accessibility */
.hello-banner-link:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .hello-banner-container {
        break-inside: avoid;
    }
    
    .hello-banner-image {
        max-width: 100%;
        height: auto;
    }
}

/* Best Products Widget */
.hello-best-products {
    position: relative;
    overflow: hidden;
}

.hello-best-products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hello-best-products-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hello-best-products-title {
    position: relative;
    z-index: 10;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 640px) {
    .hello-best-products-title {
        font-size: 1.5rem;
    }
}

.hello-best-products-view-all {
    position: relative;
    z-index: 10;
    color: #ffffff;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hello-best-products-view-all:hover {
    opacity: 0.8;
}

.hello-best-products-swiper {
    position: relative;
    z-index: 10;
}

.hello-best-product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hello-best-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hello-best-product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hello-best-product-card:hover img {
    transform: scale(1.05);
}

.hello-best-product-title {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hello-best-product-brand {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
}

.hello-best-product-price {
    color: #059669;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 8px;
}

.hello-best-products-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 1rem;
}

/* Swiper Customization for Best Products */
.hello-best-products-swiper .swiper-slide {
    height: auto;
}

.hello-best-products-swiper .swiper-slide .hello-best-product-card {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .hello-best-products-swiper .swiper-slide .hello-best-product-card {
        max-width: 200px;
    }
}

/* Loading state for product cards */
.hello-best-product-card.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hello-best-product-card.loading img {
    background-color: #f3f4f6;
}

/* Focus states for accessibility */
.hello-best-product-card:focus-within {
    outline: 2px solid #5A31F4;
    outline-offset: 2px;
}

.hello-best-products-view-all:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles for Best Products */
@media print {
    .hello-best-products {
        break-inside: avoid;
    }
    
    .hello-best-product-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Blog Slider Widget */
.hello-blog-slider {
    position: relative;
    overflow: hidden;
}

.hello-blog-background {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 176px;
    background-color: #0FABC6;
    z-index: 0;
}

.hello-blog-title {
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.hello-blog-view-all {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.hello-blog-view-all:hover {
    opacity: 0.8;
}

.hello-blog-swiper {
    position: relative;
    z-index: 10;
}

.hello-blog-card {
    background-color: #3791a0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hello-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hello-blog-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hello-blog-card:hover img {
    transform: scale(1.05);
}

.hello-blog-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.hello-blog-category {
    color: #f3f4f6;
    font-size: 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hello-blog-category-icon {
    color: #ffffff;
    width: 16px;
    height: 16px;
}

.hello-blog-post-title {
    color: #f3f4f6;
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hello-blog-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 1rem;
}

/* Swiper Customization for Blog Slider */
.hello-blog-swiper .swiper-slide {
    height: auto;
}

.hello-blog-swiper .swiper-slide .hello-blog-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .hello-blog-swiper .swiper-slide .hello-blog-card {
        max-width: 250px;
    }
}

/* Loading state for blog cards */
.hello-blog-card.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hello-blog-card.loading img {
    background-color: #e5e7eb;
}

/* Focus states for accessibility */
.hello-blog-card:focus-within {
    outline: 2px solid #5A31F4;
    outline-offset: 2px;
}

.hello-blog-view-all:focus {
    outline: 2px solid #6b7280;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles for Blog Slider */
@media print {
    .hello-blog-slider {
        break-inside: avoid;
    }
    
    .hello-blog-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .hello-blog-background {
        display: none;
    }
} 