/* Modificaciones Específicas de Sellos sobre cuero */

/* Ajustes del contenedor de previsualización para prevenir desbordes */
#previewArea {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 380px;
    margin: 20px auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

#leatherBase {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

/* Limitación de tamaño para los botones de selección de objeto (Sección 2) */
.product-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-picker .prod-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 90px;
    max-width: 130px;
}

.product-picker .prod-tab-btn.active {
    border-color: #ff6600;
    background: #fff2ea;
}

.product-picker .prod-tab-btn img {
    max-height: 50px !important;
    max-width: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin-bottom: 6px;
}

.product-picker .prod-tab-btn span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Grid de tipos de sello para 5 opciones (Sección 3) */
.stamp-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.stamp-picker-grid .prod-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.stamp-picker-grid .prod-tab-btn:hover {
    border-color: #ff6600;
    background: #fff8f5;
}

.stamp-picker-grid .prod-tab-btn.active {
    border-color: #ff6600;
    background: #fff2ea;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}

.stamp-picker-grid .prod-tab-btn img {
    max-height: 48px !important;
    max-width: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin-bottom: 6px;
}

.stamp-picker-grid .prod-tab-btn span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Tarjeta de Accesorios (Sección 5) */
.accessory-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessory-card:hover {
    border-color: #ff6600;
    background: #fff8f5;
}

.accessory-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
}

.accessory-info {
    flex: 1;
    text-align: left;
}

.accessory-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.accessory-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.accessory-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6600;
}

/* Espaciado compacto */
.form-group > p {
    margin-bottom: 8px !important;
}
