.additional-attributes-wrapper {
    width: 100%;
}

.dynamic-attributes-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.dynamic-attributes-table {
    border: 2px solid #e0e0e0;
    border-collapse: collapse;
    transition: all 0.3s ease;
    width: 100%;
}

.dynamic-attributes-table caption {
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
}

.dynamic-attributes-table tbody tr th,
.dynamic-attributes-table tbody tr td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.dynamic-attributes-table tbody tr th {
    font-weight: 600;
    background: #f9f9f9;
    width: 60%;
    position: relative;
    padding-left: 45px;
}

.dynamic-attributes-table tbody tr th::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    opacity: 0.7;
}

/* Manufacturer icon - factory/building */
#manufacturer-row th::before {
    content: '🏭';
}

/* Season icon - sun/snowflake */
#sezon-row th::before,
#anvelope-sezon-row th::before {
    content: '🌤️';
}

/* Omologare icon - certificate/badge */
#omologare-row th::before,
#anvelope-omologare-row th::before {
    content: '✓';
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.5em;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Peco icon - fuel/energy efficiency */
#peco-row th::before {
    content: '⚡';
}

/* Ploaie icon - water/rain */
#ploaie-row th::before,
#ploaie-code-row th::before {
    content: '💧';
}

/* Zgomot icon - sound/volume */
#zgomot-row th::before {
    content: '🔊';
}

/* EAN icon - barcode */
#ean-row th::before {
    content: '🏷️';
}

/* Latime icon - width/arrows */
#anvelope-latime-row th::before {
    content: '↔️';
}

/* Inaltime icon - height/arrows */
#anvelope-inaltime-row th::before {
    content: '↕️';
}

/* Diametru icon - circle/wheel */
#anvelope-diametru-row th::before,
#anvelope-diametru-c-row th::before,
#anvelope-diametru-camioane-row th::before {
    content: '⭕';
}

/* Indice de viteza icon - speedometer */
#codul-de-viteza-row th::before {
    content: '🏎️';
}

/* Indice de sarcina icon - weight */
#indicele-de-sarcina-row th::before {
    content: '⚖️';
}

/* DOT icon - calendar/date */
#info-dot-row th::before {
    content: '📅';
}

/* RunFlat icon - tire/shield */
#anvelope-runflat-select-row th::before {
    content: '🛡️';
}

/* Anvelope model icon */
#anvelope-model-row th::before {
    content: '🔤';
}

.dynamic-attributes-table tbody tr td {
    background: #fff;
    width: 40%;
}

#omologare-value,
#peco-value,
#ploaie-value,
#zgomot-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Highlight animation */
.dynamic-attributes-highlight {
    animation: highlightPulse 2s ease-in-out;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.dynamic-attributes-highlight #omologare-value,
.dynamic-attributes-highlight #peco-value,
.dynamic-attributes-highlight #ploaie-value,
.dynamic-attributes-highlight #zgomot-value {
    color: #ff6b35;
    transform: scale(1.1);
}

@keyframes highlightPulse {
    0% {
        background-color: transparent;
        border-color: #e0e0e0;
    }
    10% {
        background-color: #fff3e0;
        border-color: #ff6b35;
    }
    90% {
        background-color: #fff3e0;
        border-color: #ff6b35;
    }
    100% {
        background-color: transparent;
        border-color: #e0e0e0;
    }
}

/* Responsive: Full width on mobile */
@media (max-width: 768px) {
    .dynamic-attributes-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .dynamic-attributes-table {
        font-size: 14px;
    }

    .dynamic-attributes-table caption {
        font-size: 1em;
        padding: 8px;
    }

    .dynamic-attributes-table tbody tr th,
    .dynamic-attributes-table tbody tr td {
        padding: 10px 8px;
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .dynamic-attributes-table tbody tr th {
        background: #f5f5f5 !important;
        font-weight: 700 !important;
        border-top: 2px solid #e0e0e0 !important;
        position: relative !important;
        padding: 10px 8px !important;
        padding-left: 36px !important;
    }

    .dynamic-attributes-table tbody tr th::before {
        left: 8px !important;
        font-size: 1em !important;
        flex-shrink: 0;
        min-width: 20px;
    }

    .dynamic-attributes-table tbody tr td {
        background: #fff !important;
        font-weight: 600 !important;
        color: #333 !important;
        padding: 10px 8px !important;
        padding-left: 36px !important;
    }

    .dynamic-attributes-table tbody tr {
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 5px;
    }

    #omologare-value,
    #peco-value,
    #ploaie-value,
    #zgomot-value {
        font-size: 1.1em;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .dynamic-attributes-wrapper {
        padding: 0 5px;
    }

    .dynamic-attributes-table {
        font-size: 12px;
        border: 1px solid #e0e0e0;
    }

    .dynamic-attributes-table caption {
        font-size: 0.9em;
        padding: 6px 4px;
        word-wrap: break-word;
    }

    .dynamic-attributes-table tbody tr th,
    .dynamic-attributes-table tbody tr td {
        padding: 6px 4px;
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .dynamic-attributes-table tbody tr th {
        padding-left: 28px;
        position: relative;
    }

    .dynamic-attributes-table tbody tr th::before {
        left: 4px;
        font-size: 0.9em;
        transform: translateY(-50%) scale(0.85);
        flex-shrink: 0;
        min-width: 18px;
    }

    .dynamic-attributes-table tbody tr td {
        padding-left: 8px;
    }

    #omologare-value,
    #peco-value,
    #ploaie-value,
    #zgomot-value {
        font-size: 0.95em;
    }

    #omologare-row th::before,
    #anvelope-omologare-row th::before {
        width: 14px;
        height: 14px;
        font-size: 1em;
        border-width: 1.5px;
    }
}

/* Ultra small devices (minimum Chrome resize) */
@media (max-width: 360px) {
    .dynamic-attributes-table {
        font-size: 11px;
    }

    .dynamic-attributes-table caption {
        font-size: 0.85em;
        padding: 5px 3px;
    }

    .dynamic-attributes-table tbody tr th,
    .dynamic-attributes-table tbody tr td {
        padding: 5px 3px;
        font-size: 11px;
    }

    .dynamic-attributes-table tbody tr th {
        padding-left: 26px;
        position: relative;
    }

    .dynamic-attributes-table tbody tr th::before {
        left: 3px;
        font-size: 0.8em;
        transform: translateY(-50%) scale(0.75);
        flex-shrink: 0;
        min-width: 16px;
    }

    .dynamic-attributes-table tbody tr td {
        padding-left: 6px;
    }

    #omologare-value,
    #peco-value,
    #ploaie-value,
    #zgomot-value {
        font-size: 0.9em;
    }

    #omologare-row th::before,
    #anvelope-omologare-row th::before {
        width: 12px;
        height: 12px;
        font-size: 0.9em;
        border-width: 1px;
    }
}
