/* ============================================
   TLR WooCommerce Features - Styles
   ============================================ */

/* --- Rating Hover --- */
.tlr-rating-hover {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.woocommerce ul.products li.product:hover .tlr-rating-hover,
.woocommerce ul.products li.product:focus-within .tlr-rating-hover {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tlr-rating-hover {
        opacity: 1;
        transform: none;
    }
}

.tlr-rating-hover .star-rating {
    font-size: 0.85em;
}

.tlr-rating-count {
    font-size: 0.78em;
    color: #888;
}

/* --- Content Blocks --- */
.tlr-content-blocks {
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.tlr-content-block {
    background: #f9f7f4;
    border-radius: 4px;
    padding: 24px;
    border: 1px solid #ececec;
}

.tlr-block-title {
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tlr-block-icon {
    font-size: 1.2em;
}

.tlr-block-content {
    font-size: 0.88em;
    color: #666;
    line-height: 1.7;
}

.tlr-block-content ul {
    padding-left: 18px;
    margin: 0;
}

.tlr-block-content li {
    margin-bottom: 4px;
}

@media (max-width: 600px) {
    .tlr-content-blocks {
        grid-template-columns: 1fr;
    }
}

/* --- Video Section --- */
.tlr-video-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.tlr-video-title {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.tlr-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.tlr-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Shipping Bar --- */
.tlr-shipping-bar {
    background: transparent;
    border-top: 1px solid #e8e4df;
    border-bottom: 1px solid #e8e4df;
    padding: 12px 0;
    margin: 16px 0;
}

.tlr-shipping-msg {
    font-size: 0.78em;
    margin: 0 0 8px 0;
    color: #888;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tlr-shipping-msg strong {
    color: #333;
    font-weight: 600;
}

.tlr-shipping-achieved {
    color: #555;
    font-weight: 500;
}

.tlr-bar-track {
    height: 2px;
    background: #e8e4df;
    overflow: hidden;
}

.tlr-bar-fill {
    height: 100%;
    background: #333;
    transition: width 0.4s ease;
}

@media (max-width: 768px) {
    .tlr-shipping-bar {
        margin: 12px 0;
    }
}
