/* Frontend Widget Styles */

/* Widget Area Container */
.widget-area {
    margin-bottom: 30px;
}

/* Widget Instance */
.widget {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.widget-area-homepage-top .widget {
    padding: 0;
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

.widget-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Text Widget */
.widget-text-content {
    line-height: 1.8;
}

/* HTML Widget */
.widget-html-content {
    /* HTML Widget content - no special styling */
}

/* Menu Widget */
.widget-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-menu.menu-list {
    padding-left: 0;
}

.widget-menu .menu-item {
    margin-bottom: 8px;
}

.widget-menu .menu-item a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-menu .menu-item a:hover {
    color: #007bff;
}

.widget-menu .submenu-list {
    padding-left: 20px;
    margin-top: 5px;
}

/* Recent Articles Widget */
.widget-recent-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-article-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.widget-article-link:hover {
    color: #007bff;
}

.widget-article-title {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.widget-article-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.widget-article-excerpt {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

/* Article Categories Widget */
.widget-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-category-item {
    margin-bottom: 8px;
}

.widget-category-item a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-category-item a:hover {
    color: #007bff;
}

.widget-category-count {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.widget-categories-list .widget-categories-list {
    padding-left: 20px;
    margin-top: 5px;
}

/* Recent Products Widget */
.widget-recent-products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-product-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-product-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-product-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.widget-product-image {
    width: 100%;
    max-width: 80px;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.widget-product-name {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.widget-product-price {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
    margin-top: 5px;
}

/* Product Categories Widget */
/* Sử dụng chung style với Article Categories */

/* Search Widget */
.widget-search-form {
    margin-top: 10px;
}

.widget-search-form .input-group {
    display: flex;
}

.widget-search-form .form-control {
    flex: 1;
    border-radius: 4px 0 0 4px;
}

.widget-search-form .btn {
    border-radius: 0 4px 4px 0;
}

/* Social Links Widget */
.widget-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.widget-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.widget-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.widget-social-facebook:hover {
    background-color: #1877f2;
    color: #fff;
}

.widget-social-twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

.widget-social-youtube:hover {
    background-color: #ff0000;
    color: #fff;
}

.widget-social-linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

.widget-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

/* Contact Info Widget */
.widget-contact-info {
    margin-top: 10px;
}

.widget-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.widget-contact-item:last-child {
    margin-bottom: 0;
}

.widget-contact-item i {
    margin-right: 10px;
    color: #007bff;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.widget-contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.widget-contact-item a:hover {
    color: #007bff;
}

.widget-contact-item span {
    color: #666;
}

/* Footer Widget Areas */

.site-footer .widget-area {
    margin-bottom: 20px;
}

.site-footer .widget {
    background: transparent;
    padding: 0;
    border: none;
}

.site-footer .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.site-footer .widget-content {
    font-size: 13px;
    color: #666;
}

/* Header Widget Area */
.widget-area-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

/* Homepage Widget Areas */
.widget-area-homepage-top {
    margin-bottom: 0;
}

.widget-area-homepage-bottom {
    margin-top: 50px;
}

/* Slick Carousel Widget */
.widget-slick-carousel {
    margin-bottom: 0;
}

.slick-carousel-container {
    position: relative;
}

.slick-carousel-container .slick-slide {
    outline: none;
}

.slick-slide-image {
    width: 100%;
    height: auto;
    display: block;
}

.slick-slide-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.slick-slide-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.slick-slide-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #fff;
}

.slick-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.slick-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Slick carousel navigation */
.slick-carousel-container .slick-prev,
.slick-carousel-container .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
}

.slick-carousel-container .slick-prev {
    left: 15px;
}

.slick-carousel-container .slick-next {
    right: 15px;
}

.slick-carousel-container .slick-prev:before,
.slick-carousel-container .slick-next:before {
    font-size: 40px;
    color: #fff;
    opacity: 0.8;
}

.slick-carousel-container .slick-prev:hover:before,
.slick-carousel-container .slick-next:hover:before {
    opacity: 1;
}

.slick-carousel-container .slick-dots {
    bottom: 15px;
    z-index: 10;
}

.slick-carousel-container .slick-dots li button:before {
    color: #fff;
    opacity: 0.5;
    font-size: 12px;
}

.slick-carousel-container .slick-dots li.slick-active button:before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .widget {
        padding: 10px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .widget-social-links {
        justify-content: center;
    }
    
    .slick-slide-title {
        font-size: 20px;
    }
    
    .slick-slide-description {
        font-size: 14px;
    }
    
    .slick-carousel-container .slick-prev,
    .slick-carousel-container .slick-next {
        width: 30px;
        height: 30px;
    }
    
    .slick-carousel-container .slick-prev:before,
    .slick-carousel-container .slick-next:before {
        font-size: 30px;
    }
}

