/* =============================================
   Colina Convert - Public Banner Styles
   ============================================= */

.rcc-banner {
    display: block;
    width: 100%;
    margin: 24px 0;
    text-align: center;
    clear: both;
}

.rcc-banner-link {
    display: inline-block;
    max-width: 100%;
}

.rcc-banner-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 4px;
}

.rcc-banner a:hover .rcc-banner-image {
    opacity: 0.95;
}

/* =============================================
   Block Separator — spacing between stacked items
   ============================================= */

.rcc-block-separator {
    height: 0;
    margin: 2em 0;
    padding: 0;
    border: none;
    clear: both;
}

/* =============================================
   Colina Convert - Product Section Frontend
   ============================================= */

.rcc-product-section {
    margin: 32px 0;
    padding: 0;
    font-family: inherit;
}

.rcc-product-section-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 18px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.rcc-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.rcc-product-card {
    flex: 0 0 calc(20% - 13px);
    min-width: 120px;
    max-width: 200px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.15s;
}

.rcc-product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.rcc-product-card-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.rcc-product-card-image img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.rcc-product-card-name {
    font-size: 0.82em;
    font-weight: 700;
    color: #2a7c3f;
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 900px) {
    .rcc-product-card {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 600px) {
    .rcc-product-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 380px) {
    .rcc-product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =============================================
   Shared: Blog Section & Sale Section List Layout
   ============================================= */

/* Shared button style for blog and sale sections */
.rcc-blog-btn {
    display: inline-block;
    background-color: #008040;
    color: #fff !important;
    font-size: 0.85em;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,128,64,0.18);
    line-height: 1.3;
}

.rcc-blog-btn:hover,
.rcc-blog-btn:focus {
    background-color: #006830;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,128,64,0.28);
}

/* =============================================
   Blog Section - horizontal card list
   ============================================= */

.rcc-blog-section {
    margin: 28px 0;
    padding: 16px 20px 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
}

.rcc-blog-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.4;
}

.rcc-blog-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rcc-blog-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
}

.rcc-blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rcc-blog-item:first-child {
    padding-top: 0;
}

.rcc-blog-item-thumb-link {
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.rcc-blog-item-thumb {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e8e8e8;
}

.rcc-blog-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.rcc-blog-item-thumb-link:hover .rcc-blog-item-thumb img {
    opacity: 0.88;
}

.rcc-blog-item-content {
    flex: 1;
    min-width: 0;
}

.rcc-blog-item-title {
    font-size: 0.92em;
    font-weight: 600;
    color: #1d2327 !important;
    text-decoration: none !important;
    line-height: 1.4;
    display: block;
}

.rcc-blog-item-title:hover {
    color: #008040 !important;
    text-decoration: underline !important;
}

.rcc-blog-item-action {
    flex-shrink: 0;
}

/* =============================================
   Sale Section - same horizontal layout
   ============================================= */

.rcc-sale-section {
    margin: 28px 0;
    padding: 16px 20px 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
}

.rcc-sale-section-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.4;
}

.rcc-sale-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rcc-sale-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
}

.rcc-sale-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rcc-sale-item:first-child {
    padding-top: 0;
}

.rcc-sale-item-thumb-link {
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.rcc-sale-item-thumb {
    width: 100px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e8e8e8;
}

.rcc-sale-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}

.rcc-sale-item-thumb-link:hover .rcc-sale-item-thumb img {
    opacity: 0.88;
}

.rcc-sale-item-content {
    flex: 1;
    min-width: 0;
}

.rcc-sale-item-name {
    font-size: 0.92em;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.rcc-sale-item-price {
    font-size: 0.88em;
    font-weight: 700;
    color: #008040;
    margin: 0;
    line-height: 1.3;
}

.rcc-sale-item-action {
    flex-shrink: 0;
}

.rcc-sale-btn-no-link {
    opacity: 0.6;
    cursor: default;
}

/* =============================================
   Shortcode Block
   ============================================= */

.rcc-shortcode-block {
    margin: 28px 0;
    clear: both;
}

/* =============================================
   Responsive — Blog & Sale
   ============================================= */

@media (max-width: 600px) {
    .rcc-blog-item,
    .rcc-sale-item {
        flex-wrap: wrap;
    }

    .rcc-blog-item-thumb,
    .rcc-sale-item-thumb {
        width: 80px;
        height: 54px;
    }

    .rcc-blog-item-action,
    .rcc-sale-item-action {
        margin-left: auto;
    }

    .rcc-blog-btn {
        font-size: 0.8em;
        padding: 7px 12px;
    }
}

@media (max-width: 440px) {
    .rcc-blog-section,
    .rcc-sale-section {
        padding: 12px 12px 16px;
    }

    .rcc-blog-item,
    .rcc-sale-item {
        gap: 10px;
    }
}
