/* Additional Sidebar Components Styles */

/* Sidebar Tags */
.ch-sidebar-tags {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-tags-container {
    padding: 15px 0;
}

.ch-sidebar-tags-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-tags-content {
    margin-top: 15px;
}

.ch-sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ch-sidebar-tags-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ch-sidebar-tags-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Sidebar Search */
.ch-sidebar-search {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-search-container {
    padding: 15px 0;
}

.ch-sidebar-search-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-search-content {
    margin-top: 15px;
}

.ch-sidebar-search-form {
    width: 100%;
}

.ch-sidebar-search-input-group {
    display: flex;
    position: relative;
}

.ch-sidebar-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.ch-sidebar-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.ch-sidebar-search-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ch-sidebar-search-button:hover {
    background-color: var(--secondary-color);
}

/* Sidebar Newsletter */
.ch-sidebar-newsletter {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-newsletter-container {
    padding: 15px 0;
}

.ch-sidebar-newsletter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-newsletter-content {
    margin-top: 15px;
}

.ch-sidebar-newsletter-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.ch-sidebar-newsletter-form {
    width: 100%;
}

.ch-sidebar-newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.ch-sidebar-newsletter-input {
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.ch-sidebar-newsletter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.ch-sidebar-newsletter-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ch-sidebar-newsletter-button:hover {
    background-color: var(--secondary-color);
}

.ch-sidebar-newsletter-privacy {
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

/* Sidebar Social */
.ch-sidebar-social {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-social-container {
    padding: 15px 0;
}

.ch-sidebar-social-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-social-content {
    margin-top: 15px;
}

.ch-sidebar-social-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.ch-sidebar-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ch-sidebar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ch-sidebar-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ch-sidebar-social-link.twitter {
    background-color: #1da1f2;
}

.ch-sidebar-social-link.facebook {
    background-color: #4267b2;
}

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

.ch-sidebar-social-link.youtube {
    background-color: #ff0000;
}

.ch-sidebar-social-link.line {
    background-color: #06c755;
}

/* Responsive for new sidebar components */
@media (max-width: 768px) {
    .ch-sidebar-tags-cloud {
        justify-content: center;
    }

    .ch-sidebar-social-links {
        justify-content: center;
    }
}

/* Sidebar Featured Products */
.ch-sidebar-featured {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-featured-container {
    padding: 15px 0;
}

.ch-sidebar-featured-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-featured-content {
    margin-top: 15px;
}

.ch-sidebar-featured-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-sidebar-featured-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f5f5f5;
}

.ch-sidebar-featured-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ch-sidebar-featured-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.ch-sidebar-featured-image {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.ch-sidebar-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ch-sidebar-featured-item:hover .ch-sidebar-featured-image img {
    transform: scale(1.1);
}

.ch-sidebar-featured-info {
    flex: 1;
}

.ch-sidebar-featured-info-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.3;
    color: var(--text-color);
}

.ch-sidebar-featured-info-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.ch-sidebar-featured-info-desc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

.ch-sidebar-featured-more {
    text-align: center;
    margin-top: 15px;
}

.ch-sidebar-featured-more-link {
    display: inline-block;
    padding: 5px 15px;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ch-sidebar-featured-more-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Sidebar Shop Info */
.ch-sidebar-info {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-info-container {
    padding: 15px 0;
}

.ch-sidebar-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-info-content {
    margin-top: 15px;
}

.ch-sidebar-info-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ch-sidebar-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ch-sidebar-info-image:hover img {
    transform: scale(1.05);
}

.ch-sidebar-info-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.ch-sidebar-info-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.ch-sidebar-info-data {
    margin-bottom: 15px;
}

.ch-sidebar-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.ch-sidebar-info-item i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 8px;
    margin-top: 3px;
}

.ch-sidebar-info-item span {
    flex: 1;
    line-height: 1.5;
}

.ch-sidebar-info-contact {
    margin-top: 15px;
}

.ch-sidebar-info-button {
    display: inline-block;
    width: 100%;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ch-sidebar-info-button:hover {
    color: #fff;
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sidebar Archive */
.ch-sidebar-archive {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-archive-container {
    padding: 15px 0;
}

.ch-sidebar-archive-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-archive-content {
    margin-top: 15px;
}

.ch-sidebar-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-sidebar-archive-item {
    margin-bottom: 8px;
}

.ch-sidebar-archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 1px dashed #f5f5f5;
}

.ch-sidebar-archive-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.ch-sidebar-archive-date {
    font-weight: 500;
}

.ch-sidebar-archive-count {
    color: #999;
    font-size: 0.85rem;
}

.ch-sidebar-archive-toggle {
    text-align: center;
    margin-top: 15px;
}

.ch-sidebar-archive-toggle-button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
}

.ch-sidebar-archive-toggle-button i {
    margin-left: 5px;
}

.ch-sidebar-archive-toggle-button:hover {
    text-decoration: underline;
}

/* Sidebar Banner */
.ch-sidebar-banner {
    border-radius: 8px;
    overflow: hidden;
}

.ch-sidebar-banner-container {
    padding: 15px 0;
}

.ch-sidebar-banner-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ch-sidebar-banner-content {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ch-sidebar-banner-item {
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ch-sidebar-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ch-sidebar-banner-link {
    display: block;
}

.ch-sidebar-banner-image {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.ch-sidebar-banner-item:hover .ch-sidebar-banner-image {
    transform: scale(1.02);
}

/* Responsive for all sidebar components */
@media (max-width: 768px) {
    .ch-sidebar-featured-link,
    .ch-sidebar-info-item,
    .ch-sidebar-archive-link {
        padding-left: 5px;
        padding-right: 5px;
    }

    .ch-sidebar-info-image {
        height: 180px;
    }

    .ch-sidebar-banner-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .ch-sidebar-banner-item {
        width: calc(50% - 10px);
        max-width: 200px;
    }
}

/* Sidebar Text Block */
.ch-sidebar-text {
    margin-bottom: 30px;
}

.ch-sidebar-text-container {
    width: 100%;
}

.ch-sidebar-text-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.ch-sidebar-text-content {
    font-size: 14px;
    line-height: 1.6;
}

.ch-sidebar-text-body {
    margin-bottom: 15px;
}

.ch-sidebar-text-body p {
    margin-bottom: 10px;
}

.ch-sidebar-text-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.ch-sidebar-text-body li {
    margin-bottom: 5px;
}

.ch-sidebar-text-button-container {
    margin-top: 15px;
}

.ch-sidebar-text-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4b4b4b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ch-sidebar-text-button:hover {
    background-color: #333;
    text-decoration: none;
    color: #fff;
}

/* Sidebar Blog Posts */
.ch-sidebar-posts {
    margin-bottom: 30px;
}

.ch-sidebar-posts-container {
    width: 100%;
}

.ch-sidebar-posts-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.ch-sidebar-posts-list {
    margin-bottom: 15px;
}

.ch-sidebar-posts-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}

.ch-sidebar-posts-item:first-child {
    padding-top: 0;
}

.ch-sidebar-posts-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

.ch-sidebar-posts-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.ch-sidebar-posts-details {
    flex: 1;
}

.ch-sidebar-posts-item-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.ch-sidebar-posts-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ch-sidebar-posts-item-title a:hover {
    color: #666;
    text-decoration: none;
}

.ch-sidebar-posts-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
}

.ch-sidebar-posts-date {
    margin-right: 10px;
}

.ch-sidebar-posts-category {
    padding: 2px 8px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

.ch-sidebar-posts-more {
    text-align: center;
    margin-top: 15px;
}

.ch-sidebar-posts-more-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ch-sidebar-posts-more-link:hover {
    background-color: #e5e5e5;
    text-decoration: none;
}

/* Sidebar Related Content */
.ch-sidebar-related {
    margin-bottom: 30px;
}

.ch-sidebar-related-container {
    width: 100%;
}

.ch-sidebar-related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.ch-sidebar-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-sidebar-related-item {
    margin-bottom: 10px;
}

.ch-sidebar-related-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.ch-sidebar-related-link:hover {
    background-color: #f2f2f2;
    text-decoration: none;
    color: #333;
}

.ch-sidebar-related-icon {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    background-color: #4b4b4b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 12px;
}

.ch-sidebar-related-text {
    flex: 1;
}

.ch-sidebar-related-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.ch-sidebar-related-desc {
    display: block;
    font-size: 12px;
    color: #777;
}

/* Sidebar Products List */
.ch-sidebar-products {
    margin-bottom: 30px;
}

.ch-sidebar-products-container {
    width: 100%;
}

.ch-sidebar-products-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.ch-sidebar-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-sidebar-products-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}

.ch-sidebar-products-item:last-child {
    border-bottom: none;
}

.ch-sidebar-products-item-thumb {
    flex: 0 0 60px;
    margin-right: 15px;
}

.ch-sidebar-products-item-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.ch-sidebar-products-item-info {
    flex: 1;
}

.ch-sidebar-products-item-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ch-sidebar-products-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ch-sidebar-products-item-title a:hover {
    color: #666;
    text-decoration: none;
}

.ch-sidebar-products-item-price {
    font-size: 14px;
    color: #e73820;
    font-weight: 600;
}

.ch-sidebar-products-link {
    text-align: center;
    margin-top: 15px;
}

.ch-sidebar-products-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: #4b4b4b;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ch-sidebar-products-more:hover {
    background-color: #333;
    text-decoration: none;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ch-sidebar-posts-item,
    .ch-sidebar-products-item {
        padding: 10px 0;
    }

    .ch-sidebar-posts-image {
        flex: 0 0 70px;
    }

    .ch-sidebar-related-link {
        padding: 8px 12px;
    }

    .ch-sidebar-related-icon {
        margin-right: 10px;
    }
}
