/* last_edited: 2026-01-15T11:52:39+00:00 */
/**
 * TLD Product Info Bar v5.3
 * - Pill design matching module
 * - Reduced height, animation overspill allowed
 * - Space for 3 use icons, 4 ingredient icons
 * - Strength with [ dots ] brackets in Special Elite
 * - CBD + Volume specs
 */

.tld-product-info-bar {
    --tld-accent-color: #1a4a5e;
    display: grid;
    /* Use icons 18%, Ingredients 32%, Strength 22%, Specs 28% */
    grid-template-columns: 18% 32% 22% 28%;
    align-items: center;
    padding: 0;
    background: #f5f0e8;
    border-radius: 12px;
    margin-bottom: 6px;
    overflow: visible;
    color: #121212;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Section separators */
.tld-info-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    position: relative;
    justify-content: center;
}

.tld-info-section:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   USE ICONS (up to 3)
   ============================================ */
.tld-use-icons {
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 10px;
}

.tld-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
    transition: transform 0.2s ease;
    min-width: 82px; /* Accommodate 10-character labels + ellipsis space */
}

.tld-icon-item:hover {
    transform: scale(1.08);
}

.tld-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.2s ease;
    filter: none;
    opacity: 0.85;
}

.tld-icon-item:hover .tld-icon-img {
    transform: scale(1.1);
    opacity: 1;
}

.tld-icon-label {
    font-size: 8px;
    color: #333;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* 10 characters + letter-spacing (10chars × ~6px + 9gaps × 0.3px = ~63px + padding) */
}

/* Helper utilities to control how longer ingredient labels wrap */
.tld-icon-label--nowrap {
    white-space: nowrap;
}

.tld-icon-label--split {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tld-icon-label--split .tld-icon-line {
    line-height: 1.05;
    display: block;
}

.tld-use-icons .tld-icon-label {
    max-width: 80px; /* 10 characters with letter-spacing */
}

.tld-ingredient-icons .tld-icon-label {
    max-width: 80px; /* 10 characters with letter-spacing */
    white-space: nowrap;
}

/* ============================================
   INGREDIENT ICONS (up to 4)
   ============================================ */
.tld-ingredient-icons {
    justify-content: space-evenly;
    flex-wrap: nowrap;
    gap: 10px;
}

/* ============================================
   STRENGTH WITH [ DOTS ] BRACKETS
   ============================================ */
.tld-strength-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    justify-content: center;
    transition: transform 0.2s ease;
    width: fit-content;
}

.tld-strength-top {
    display: flex;
    align-items: baseline;
    gap: 5px;
    justify-content: center;
    line-height: 1;
    width: 100%;
}

.tld-strength-label {
    font-size: 12px;
    color: #333;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.tld-strength-value {
    font-family: 'Special Elite', cursive;
    font-size: 17px;
    font-weight: 700;
    color: #323232;
}

.tld-strength-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    width: 100%;
}

.tld-bracket {
    font-family: 'Special Elite', cursive;
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1;
}

.tld-bracket:first-of-type {
    margin-right: 2px;
}

.tld-bracket:last-of-type {
    margin-left: 2px;
}

.tld-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 0.25);
    transition: background 0.2s ease;
}

.tld-dot.filled {
    background: #323232;
}

/* ============================================
   CBD + VOLUME SPECS (max 3 items, evenly spaced)
   ============================================ */
.tld-specs-section {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-evenly;
    transition: transform 0.2s ease;
    flex-wrap: nowrap;
}

/* Keep each spec metric stacked with the primary value on one line and the label underneath */
.tld-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
    transition: transform 0.2s ease;
    flex: 0 1 auto;
}

.tld-strength-section:hover,
.tld-specs-section:hover {
    transform: scale(1.03);
}

.tld-spec-item:hover {
    transform: scale(1.02);
}

.tld-spec-value {
    font-family: 'Special Elite', cursive;
    font-size: 15px;
    font-weight: 700;
    color: #323232;
    white-space: nowrap;
    line-height: 1.1;
}

.tld-spec-label {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
    line-height: 1.2;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet - optimize for smaller screens */
@media (max-width: 900px) {
    .tld-product-info-bar {
        grid-template-columns: 20% 30% 22% 28%;
        padding: 0;
    }

    .tld-info-section {
        padding: 6px 6px;
        gap: 8px;
    }

    .tld-icon-img {
        width: 34px;
        height: 34px;
    }

    .tld-icon-label {
        font-size: 7px;
        max-width: 80px;
    }

    .tld-strength-value,
    .tld-spec-value {
        font-size: 14px;
    }

    .tld-spec-label {
        font-size: 7px;
    }
}

/* Mobile - 2 rows max, 2 columns */
@media (max-width: 768px) {
    .tld-product-info-bar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0;
        padding: 8px 4px;
        min-height: auto;
    }

    .tld-info-section {
        padding: 10px 6px;
        gap: 6px;
    }

    .tld-info-section:not(:last-child)::after {
        display: none;
    }

    /* Top row: Use Icons | Ingredient Icons */
    .tld-use-icons {
        grid-column: 1;
        grid-row: 1;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: space-evenly;
    }

    .tld-ingredient-icons {
        grid-column: 2;
        grid-row: 1;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        justify-content: space-evenly;
    }

    /* Bottom row: Strength | Specs */
    .tld-strength-section {
        grid-column: 1;
        grid-row: 2;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }

    .tld-specs-section {
        grid-column: 2;
        grid-row: 2;
        justify-content: space-evenly;
    }

    /* Compact icons */
    .tld-use-icons,
    .tld-ingredient-icons {
        gap: 4px;
        flex-wrap: nowrap;
    }

    .tld-icon-item {
        gap: 2px;
        min-width: 30px;
        flex: 0 1 auto;
    }

    .tld-icon-img {
        width: 30px;
        height: 30px;
    }

    .tld-icon-label {
        font-size: 6.5px;
        max-width: 80px;
        line-height: 1.1;
    }

    /* Strength compact */
    .tld-strength-section {
        gap: 2px;
    }

    .tld-strength-label {
        font-size: 10px;
    }

    .tld-strength-value {
        font-size: 14px;
    }

    .tld-strength-dots {
        gap: 2px;
    }

    .tld-dot {
        width: 7px;
        height: 7px;
    }

    .tld-bracket {
        font-size: 12px;
    }

    /* Specs compact */
    .tld-specs-section {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .tld-spec-item {
        min-width: 38px;
        gap: 1px;
        flex: 0 1 auto;
    }

    .tld-spec-value {
        font-size: 13px;
    }

    .tld-spec-label {
        font-size: 6.5px;
        letter-spacing: 0.2px;
    }
}

/* Small mobile - extra compact */
@media (max-width: 480px) {
    .tld-product-info-bar {
        padding: 4px;
    }

    .tld-info-section {
        padding: 6px 4px;
    }

    .tld-icon-img {
        width: 26px;
        height: 26px;
    }

    .tld-icon-label {
        font-size: 5.5px;
        max-width: 80px;
    }

    .tld-icon-item {
        min-width: 28px;
    }

    .tld-strength-label {
        font-size: 9px;
    }

    .tld-strength-value {
        font-size: 12px;
    }

    .tld-dot {
        width: 6px;
        height: 6px;
    }

    .tld-bracket {
        font-size: 11px;
    }

    .tld-spec-value {
        font-size: 12px;
    }

    .tld-spec-label {
        font-size: 5.5px;
    }

    .tld-specs-section {
        gap: 6px;
    }

    .tld-spec-item {
        min-width: 36px;
    }
}

/* Very small screens - ultra compact */
@media (max-width: 360px) {
    .tld-icon-img {
        width: 24px;
        height: 24px;
    }

    .tld-icon-label {
        font-size: 5px;
        max-width: 80px;
    }

    .tld-strength-value,
    .tld-spec-value {
        font-size: 11px;
    }

    .tld-dot {
        width: 5px;
        height: 5px;
    }

    .tld-specs-section {
        gap: 5px;
    }

    .tld-spec-item {
        min-width: 32px;
    }
}
