/* ===========================================================
   Plásticos Roca — color picker + cert strip
   (basado en el sistema de Shellcon, adaptado a la paleta naranja)
   =========================================================== */

/* === Color picker === */
.color-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.color-picker-grid .color-swatch {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem 0.5rem;
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.15s ease, transform 0.15s ease;
    min-width: 56px;
    width: auto;
    height: auto;
}
.color-picker-grid .color-swatch:hover { transform: translateY(-2px); }
.color-picker-grid .color-swatch.is-active { border-color: #0f172a; background: #ffffff; }

.color-picker-grid .color-swatch-fill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    display: block;
}
.color-picker-grid .color-swatch.is-light .color-swatch-fill { border-color: rgba(0, 0, 0, 0.2); }

.color-picker-grid .color-swatch-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.color-picker-grid .color-swatch.is-active .color-swatch-check { opacity: 1; }

.color-picker-grid .color-swatch-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    line-height: 1;
}
.color-picker-grid .color-swatch.is-active .color-swatch-label { color: #0f172a; }

/* === Cert strip === */
.cert-strip {
    margin-top: 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.25rem;
    background: #ffffff;
}
.cert-strip-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1rem;
}
.cert-strip-head > i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff7ed;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid #fed7aa;
}
.cert-strip-subtitle {
    color: #475569;
    font-size: 0.8125rem;
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.875rem;
}
@media (max-width: 640px) {
    .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f1f5f9;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    min-height: 96px;
}
.cert-item:hover {
    border-color: #f97316;
    background: #fff7ed;
    transform: translateY(-2px);
}
.cert-item img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.cert-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.cert-item-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Image-swap suave */
#main-product-img { transition: opacity 0.28s ease; }
